Sha256: 4f42ced535be66177426c5def2145d7d752a74237c513ca09def0ec23da47bed
Contents?: true
Size: 819 Bytes
Versions: 7
Compression:
Stored size: 819 Bytes
Contents
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.removeUnnecessaryItems = removeUnnecessaryItems; exports.removeUnsupportedItems = removeUnsupportedItems; var _semver = require("semver"); var _availablePlugins = require("./available-plugins"); const has = Function.call.bind(Object.hasOwnProperty); function removeUnnecessaryItems(items, overlapping) { items.forEach(item => { var _overlapping$item; (_overlapping$item = overlapping[item]) == null ? void 0 : _overlapping$item.forEach(name => items.delete(name)); }); } function removeUnsupportedItems(items, babelVersion) { items.forEach(item => { if (has(_availablePlugins.minVersions, item) && (0, _semver.lt)(babelVersion, _availablePlugins.minVersions[item])) { items.delete(item); } }); }
Version data entries
7 entries across 7 versions & 1 rubygems