UNPKG

@expo/config-plugins

Version:

A library for Expo config plugins

24 lines (23 loc) 613 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.addHistoryItem = addHistoryItem; exports.getHistoryItem = getHistoryItem; function getHistoryItem(config, name) { return config._internal?.pluginHistory?.[name] ?? null; } function addHistoryItem(config, item) { if (!config._internal) { config._internal = {}; } if (!config._internal.pluginHistory) { config._internal.pluginHistory = {}; } if (!item.version) { item.version = 'UNVERSIONED'; } config._internal.pluginHistory[item.name] = item; return config; } //# sourceMappingURL=history.js.map