xref: /expo/packages/@expo/config-plugins/build/utils/history.js (revision dfd15ebd)
  • 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;
8
9function getHistoryItem(config, name) {
10  var _config$_internal$plu, _config$_internal, _config$_internal$plu2;
11
12  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;
13}
14
15function addHistoryItem(config, item) {
16  if (!config._internal) {
17    config._internal = {};
18  }
19
20  if (!config._internal.pluginHistory) {
21    config._internal.pluginHistory = {};
22  }
23
24  if (!item.version) {
25    item.version = 'UNVERSIONED';
26  }
27
28  config._internal.pluginHistory[item.name] = item;
29  return config;
30}
31//# sourceMappingURL=history.js.map

served by {OpenGrok

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