xref: /expo/packages/@expo/config-plugins/build/utils/history.js (revision ae642c8a)
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4  value: true
5});
6exports.addHistoryItem = addHistoryItem;
7exports.getHistoryItem = getHistoryItem;
8function getHistoryItem(config, name) {
9  var _config$_internal$plu, _config$_internal, _config$_internal$plu2;
10  return (_config$_internal$plu = (_config$_internal = config._internal) === null || _config$_internal === void 0 ? void 0 : (_config$_internal$plu2 = _config$_internal.pluginHistory) === null || _config$_internal$plu2 === void 0 ? void 0 : _config$_internal$plu2[name]) !== null && _config$_internal$plu !== void 0 ? _config$_internal$plu : null;
11}
12function addHistoryItem(config, item) {
13  if (!config._internal) {
14    config._internal = {};
15  }
16  if (!config._internal.pluginHistory) {
17    config._internal.pluginHistory = {};
18  }
19  if (!item.version) {
20    item.version = 'UNVERSIONED';
21  }
22  config._internal.pluginHistory[item.name] = item;
23  return config;
24}
25//# sourceMappingURL=history.js.map

served by {OpenGrok

Last Index Update: Fri May 15 20:09:11 GMT 2026