@milaboratories/pl-middle-layer 1.43.83 → 1.43.84
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/classes/comparator.cjs +162 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/classes/comparator.cjs.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/classes/comparator.js +160 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/classes/comparator.js.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/classes/range.cjs +576 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/classes/range.cjs.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/classes/range.js +574 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/classes/range.js.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/classes/semver.cjs +337 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/classes/semver.cjs.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/classes/semver.js +335 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/classes/semver.js.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/clean.cjs +22 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/clean.cjs.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/clean.js +20 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/clean.js.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/cmp.cjs +73 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/cmp.cjs.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/cmp.js +71 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/cmp.js.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/coerce.cjs +78 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/coerce.cjs.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/coerce.js +76 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/coerce.js.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/compare-build.cjs +23 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/compare-build.cjs.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/compare-build.js +21 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/compare-build.js.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/compare-loose.cjs +19 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/compare-loose.cjs.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/compare-loose.js +17 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/compare-loose.js.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/compare.cjs +21 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/compare.cjs.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/compare.js +19 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/compare.js.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/diff.cjs +74 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/diff.cjs.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/diff.js +72 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/diff.js.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/eq.cjs +19 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/eq.cjs.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/eq.js +17 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/eq.js.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/gt.cjs +19 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/gt.cjs.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/gt.js +17 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/gt.js.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/gte.cjs +19 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/gte.cjs.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/gte.js +17 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/gte.js.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/inc.cjs +35 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/inc.cjs.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/inc.js +33 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/inc.js.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/lt.cjs +19 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/lt.cjs.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/lt.js +17 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/lt.js.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/lte.cjs +19 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/lte.cjs.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/lte.js +17 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/lte.js.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/major.cjs +19 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/major.cjs.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/major.js +17 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/major.js.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/minor.cjs +19 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/minor.cjs.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/minor.js +17 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/minor.js.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/neq.cjs +19 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/neq.cjs.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/neq.js +17 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/neq.js.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/parse.cjs +32 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/parse.cjs.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/parse.js +30 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/parse.js.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/patch.cjs +19 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/patch.cjs.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/patch.js +17 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/patch.js.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/prerelease.cjs +22 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/prerelease.cjs.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/prerelease.js +20 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/prerelease.js.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/rcompare.cjs +19 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/rcompare.cjs.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/rcompare.js +17 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/rcompare.js.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/rsort.cjs +19 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/rsort.cjs.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/rsort.js +17 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/rsort.js.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/satisfies.cjs +26 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/satisfies.cjs.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/satisfies.js +24 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/satisfies.js.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/sort.cjs +19 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/sort.cjs.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/sort.js +17 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/sort.js.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/valid.cjs +22 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/valid.cjs.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/valid.js +20 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/functions/valid.js.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/index.cjs +145 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/index.cjs.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/index.js +143 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/index.js.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/internal/constants.cjs +49 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/internal/constants.cjs.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/internal/constants.js +47 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/internal/constants.js.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/internal/debug.cjs +23 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/internal/debug.cjs.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/internal/debug.js +21 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/internal/debug.js.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/internal/identifiers.cjs +37 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/internal/identifiers.cjs.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/internal/identifiers.js +35 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/internal/identifiers.js.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/internal/lrucache.cjs +54 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/internal/lrucache.cjs.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/internal/lrucache.js +52 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/internal/lrucache.js.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/internal/parse-options.cjs +29 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/internal/parse-options.cjs.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/internal/parse-options.js +27 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/internal/parse-options.js.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/internal/re.cjs +240 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/internal/re.cjs.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/internal/re.js +238 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/internal/re.js.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/ranges/gtr.cjs +20 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/ranges/gtr.cjs.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/ranges/gtr.js +18 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/ranges/gtr.js.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/ranges/intersects.cjs +23 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/ranges/intersects.cjs.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/ranges/intersects.js +21 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/ranges/intersects.js.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/ranges/ltr.cjs +20 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/ranges/ltr.cjs.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/ranges/ltr.js +18 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/ranges/ltr.js.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/ranges/max-satisfying.cjs +42 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/ranges/max-satisfying.cjs.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/ranges/max-satisfying.js +40 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/ranges/max-satisfying.js.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/ranges/min-satisfying.cjs +41 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/ranges/min-satisfying.cjs.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/ranges/min-satisfying.js +39 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/ranges/min-satisfying.js.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/ranges/min-version.cjs +79 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/ranges/min-version.cjs.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/ranges/min-version.js +77 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/ranges/min-version.js.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/ranges/outside.cjs +103 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/ranges/outside.cjs.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/ranges/outside.js +101 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/ranges/outside.js.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/ranges/simplify.cjs +64 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/ranges/simplify.cjs.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/ranges/simplify.js +62 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/ranges/simplify.js.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/ranges/subset.cjs +266 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/ranges/subset.cjs.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/ranges/subset.js +264 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/ranges/subset.js.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/ranges/to-comparators.cjs +24 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/ranges/to-comparators.cjs.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/ranges/to-comparators.js +22 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/ranges/to-comparators.js.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/ranges/valid.cjs +27 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/ranges/valid.cjs.map +1 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/ranges/valid.js +25 -0
- package/dist/__external/.pnpm/semver@7.7.2/__external/semver/ranges/valid.js.map +1 -0
- package/dist/_virtual/_commonjsHelpers.cjs +8 -0
- package/dist/_virtual/_commonjsHelpers.cjs.map +1 -0
- package/dist/_virtual/_commonjsHelpers.js +6 -0
- package/dist/_virtual/_commonjsHelpers.js.map +1 -0
- package/dist/_virtual/index.cjs +10 -0
- package/dist/_virtual/index.cjs.map +1 -0
- package/dist/_virtual/index.js +8 -0
- package/dist/_virtual/index.js.map +1 -0
- package/dist/_virtual/re.cjs +6 -0
- package/dist/_virtual/re.cjs.map +1 -0
- package/dist/_virtual/re.js +4 -0
- package/dist/_virtual/re.js.map +1 -0
- package/dist/block_registry/watcher.cjs +2 -2
- package/dist/block_registry/watcher.cjs.map +1 -1
- package/dist/block_registry/watcher.js +1 -1
- package/package.json +11 -11
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var range = require('../classes/range.cjs');
|
|
4
|
+
var comparator = require('../classes/comparator.cjs');
|
|
5
|
+
var satisfies = require('../functions/satisfies.cjs');
|
|
6
|
+
var compare = require('../functions/compare.cjs');
|
|
7
|
+
|
|
8
|
+
var subset_1;
|
|
9
|
+
var hasRequiredSubset;
|
|
10
|
+
|
|
11
|
+
function requireSubset () {
|
|
12
|
+
if (hasRequiredSubset) return subset_1;
|
|
13
|
+
hasRequiredSubset = 1;
|
|
14
|
+
|
|
15
|
+
const Range = range.__require();
|
|
16
|
+
const Comparator = comparator.__require();
|
|
17
|
+
const { ANY } = Comparator;
|
|
18
|
+
const satisfies$1 = satisfies.__require();
|
|
19
|
+
const compare$1 = compare.__require();
|
|
20
|
+
|
|
21
|
+
// Complex range `r1 || r2 || ...` is a subset of `R1 || R2 || ...` iff:
|
|
22
|
+
// - Every simple range `r1, r2, ...` is a null set, OR
|
|
23
|
+
// - Every simple range `r1, r2, ...` which is not a null set is a subset of
|
|
24
|
+
// some `R1, R2, ...`
|
|
25
|
+
//
|
|
26
|
+
// Simple range `c1 c2 ...` is a subset of simple range `C1 C2 ...` iff:
|
|
27
|
+
// - If c is only the ANY comparator
|
|
28
|
+
// - If C is only the ANY comparator, return true
|
|
29
|
+
// - Else if in prerelease mode, return false
|
|
30
|
+
// - else replace c with `[>=0.0.0]`
|
|
31
|
+
// - If C is only the ANY comparator
|
|
32
|
+
// - if in prerelease mode, return true
|
|
33
|
+
// - else replace C with `[>=0.0.0]`
|
|
34
|
+
// - Let EQ be the set of = comparators in c
|
|
35
|
+
// - If EQ is more than one, return true (null set)
|
|
36
|
+
// - Let GT be the highest > or >= comparator in c
|
|
37
|
+
// - Let LT be the lowest < or <= comparator in c
|
|
38
|
+
// - If GT and LT, and GT.semver > LT.semver, return true (null set)
|
|
39
|
+
// - If any C is a = range, and GT or LT are set, return false
|
|
40
|
+
// - If EQ
|
|
41
|
+
// - If GT, and EQ does not satisfy GT, return true (null set)
|
|
42
|
+
// - If LT, and EQ does not satisfy LT, return true (null set)
|
|
43
|
+
// - If EQ satisfies every C, return true
|
|
44
|
+
// - Else return false
|
|
45
|
+
// - If GT
|
|
46
|
+
// - If GT.semver is lower than any > or >= comp in C, return false
|
|
47
|
+
// - If GT is >=, and GT.semver does not satisfy every C, return false
|
|
48
|
+
// - If GT.semver has a prerelease, and not in prerelease mode
|
|
49
|
+
// - If no C has a prerelease and the GT.semver tuple, return false
|
|
50
|
+
// - If LT
|
|
51
|
+
// - If LT.semver is greater than any < or <= comp in C, return false
|
|
52
|
+
// - If LT is <=, and LT.semver does not satisfy every C, return false
|
|
53
|
+
// - If GT.semver has a prerelease, and not in prerelease mode
|
|
54
|
+
// - If no C has a prerelease and the LT.semver tuple, return false
|
|
55
|
+
// - Else return true
|
|
56
|
+
|
|
57
|
+
const subset = (sub, dom, options = {}) => {
|
|
58
|
+
if (sub === dom) {
|
|
59
|
+
return true
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
sub = new Range(sub, options);
|
|
63
|
+
dom = new Range(dom, options);
|
|
64
|
+
let sawNonNull = false;
|
|
65
|
+
|
|
66
|
+
OUTER: for (const simpleSub of sub.set) {
|
|
67
|
+
for (const simpleDom of dom.set) {
|
|
68
|
+
const isSub = simpleSubset(simpleSub, simpleDom, options);
|
|
69
|
+
sawNonNull = sawNonNull || isSub !== null;
|
|
70
|
+
if (isSub) {
|
|
71
|
+
continue OUTER
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
// the null set is a subset of everything, but null simple ranges in
|
|
75
|
+
// a complex range should be ignored. so if we saw a non-null range,
|
|
76
|
+
// then we know this isn't a subset, but if EVERY simple range was null,
|
|
77
|
+
// then it is a subset.
|
|
78
|
+
if (sawNonNull) {
|
|
79
|
+
return false
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
return true
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
const minimumVersionWithPreRelease = [new Comparator('>=0.0.0-0')];
|
|
86
|
+
const minimumVersion = [new Comparator('>=0.0.0')];
|
|
87
|
+
|
|
88
|
+
const simpleSubset = (sub, dom, options) => {
|
|
89
|
+
if (sub === dom) {
|
|
90
|
+
return true
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
if (sub.length === 1 && sub[0].semver === ANY) {
|
|
94
|
+
if (dom.length === 1 && dom[0].semver === ANY) {
|
|
95
|
+
return true
|
|
96
|
+
} else if (options.includePrerelease) {
|
|
97
|
+
sub = minimumVersionWithPreRelease;
|
|
98
|
+
} else {
|
|
99
|
+
sub = minimumVersion;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
if (dom.length === 1 && dom[0].semver === ANY) {
|
|
104
|
+
if (options.includePrerelease) {
|
|
105
|
+
return true
|
|
106
|
+
} else {
|
|
107
|
+
dom = minimumVersion;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
const eqSet = new Set();
|
|
112
|
+
let gt, lt;
|
|
113
|
+
for (const c of sub) {
|
|
114
|
+
if (c.operator === '>' || c.operator === '>=') {
|
|
115
|
+
gt = higherGT(gt, c, options);
|
|
116
|
+
} else if (c.operator === '<' || c.operator === '<=') {
|
|
117
|
+
lt = lowerLT(lt, c, options);
|
|
118
|
+
} else {
|
|
119
|
+
eqSet.add(c.semver);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
if (eqSet.size > 1) {
|
|
124
|
+
return null
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
let gtltComp;
|
|
128
|
+
if (gt && lt) {
|
|
129
|
+
gtltComp = compare$1(gt.semver, lt.semver, options);
|
|
130
|
+
if (gtltComp > 0) {
|
|
131
|
+
return null
|
|
132
|
+
} else if (gtltComp === 0 && (gt.operator !== '>=' || lt.operator !== '<=')) {
|
|
133
|
+
return null
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
// will iterate one or zero times
|
|
138
|
+
for (const eq of eqSet) {
|
|
139
|
+
if (gt && !satisfies$1(eq, String(gt), options)) {
|
|
140
|
+
return null
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
if (lt && !satisfies$1(eq, String(lt), options)) {
|
|
144
|
+
return null
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
for (const c of dom) {
|
|
148
|
+
if (!satisfies$1(eq, String(c), options)) {
|
|
149
|
+
return false
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
return true
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
let higher, lower;
|
|
157
|
+
let hasDomLT, hasDomGT;
|
|
158
|
+
// if the subset has a prerelease, we need a comparator in the superset
|
|
159
|
+
// with the same tuple and a prerelease, or it's not a subset
|
|
160
|
+
let needDomLTPre = lt &&
|
|
161
|
+
!options.includePrerelease &&
|
|
162
|
+
lt.semver.prerelease.length ? lt.semver : false;
|
|
163
|
+
let needDomGTPre = gt &&
|
|
164
|
+
!options.includePrerelease &&
|
|
165
|
+
gt.semver.prerelease.length ? gt.semver : false;
|
|
166
|
+
// exception: <1.2.3-0 is the same as <1.2.3
|
|
167
|
+
if (needDomLTPre && needDomLTPre.prerelease.length === 1 &&
|
|
168
|
+
lt.operator === '<' && needDomLTPre.prerelease[0] === 0) {
|
|
169
|
+
needDomLTPre = false;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
for (const c of dom) {
|
|
173
|
+
hasDomGT = hasDomGT || c.operator === '>' || c.operator === '>=';
|
|
174
|
+
hasDomLT = hasDomLT || c.operator === '<' || c.operator === '<=';
|
|
175
|
+
if (gt) {
|
|
176
|
+
if (needDomGTPre) {
|
|
177
|
+
if (c.semver.prerelease && c.semver.prerelease.length &&
|
|
178
|
+
c.semver.major === needDomGTPre.major &&
|
|
179
|
+
c.semver.minor === needDomGTPre.minor &&
|
|
180
|
+
c.semver.patch === needDomGTPre.patch) {
|
|
181
|
+
needDomGTPre = false;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
if (c.operator === '>' || c.operator === '>=') {
|
|
185
|
+
higher = higherGT(gt, c, options);
|
|
186
|
+
if (higher === c && higher !== gt) {
|
|
187
|
+
return false
|
|
188
|
+
}
|
|
189
|
+
} else if (gt.operator === '>=' && !satisfies$1(gt.semver, String(c), options)) {
|
|
190
|
+
return false
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
if (lt) {
|
|
194
|
+
if (needDomLTPre) {
|
|
195
|
+
if (c.semver.prerelease && c.semver.prerelease.length &&
|
|
196
|
+
c.semver.major === needDomLTPre.major &&
|
|
197
|
+
c.semver.minor === needDomLTPre.minor &&
|
|
198
|
+
c.semver.patch === needDomLTPre.patch) {
|
|
199
|
+
needDomLTPre = false;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
if (c.operator === '<' || c.operator === '<=') {
|
|
203
|
+
lower = lowerLT(lt, c, options);
|
|
204
|
+
if (lower === c && lower !== lt) {
|
|
205
|
+
return false
|
|
206
|
+
}
|
|
207
|
+
} else if (lt.operator === '<=' && !satisfies$1(lt.semver, String(c), options)) {
|
|
208
|
+
return false
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
if (!c.operator && (lt || gt) && gtltComp !== 0) {
|
|
212
|
+
return false
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
// if there was a < or >, and nothing in the dom, then must be false
|
|
217
|
+
// UNLESS it was limited by another range in the other direction.
|
|
218
|
+
// Eg, >1.0.0 <1.0.1 is still a subset of <2.0.0
|
|
219
|
+
if (gt && hasDomLT && !lt && gtltComp !== 0) {
|
|
220
|
+
return false
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
if (lt && hasDomGT && !gt && gtltComp !== 0) {
|
|
224
|
+
return false
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
// we needed a prerelease range in a specific tuple, but didn't get one
|
|
228
|
+
// then this isn't a subset. eg >=1.2.3-pre is not a subset of >=1.0.0,
|
|
229
|
+
// because it includes prereleases in the 1.2.3 tuple
|
|
230
|
+
if (needDomGTPre || needDomLTPre) {
|
|
231
|
+
return false
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
return true
|
|
235
|
+
};
|
|
236
|
+
|
|
237
|
+
// >=1.2.3 is lower than >1.2.3
|
|
238
|
+
const higherGT = (a, b, options) => {
|
|
239
|
+
if (!a) {
|
|
240
|
+
return b
|
|
241
|
+
}
|
|
242
|
+
const comp = compare$1(a.semver, b.semver, options);
|
|
243
|
+
return comp > 0 ? a
|
|
244
|
+
: comp < 0 ? b
|
|
245
|
+
: b.operator === '>' && a.operator === '>=' ? b
|
|
246
|
+
: a
|
|
247
|
+
};
|
|
248
|
+
|
|
249
|
+
// <=1.2.3 is higher than <1.2.3
|
|
250
|
+
const lowerLT = (a, b, options) => {
|
|
251
|
+
if (!a) {
|
|
252
|
+
return b
|
|
253
|
+
}
|
|
254
|
+
const comp = compare$1(a.semver, b.semver, options);
|
|
255
|
+
return comp < 0 ? a
|
|
256
|
+
: comp > 0 ? b
|
|
257
|
+
: b.operator === '<' && a.operator === '<=' ? b
|
|
258
|
+
: a
|
|
259
|
+
};
|
|
260
|
+
|
|
261
|
+
subset_1 = subset;
|
|
262
|
+
return subset_1;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
exports.__require = requireSubset;
|
|
266
|
+
//# sourceMappingURL=subset.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subset.cjs","sources":["../../../../../../../../../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/subset.js"],"sourcesContent":["'use strict'\n\nconst Range = require('../classes/range.js')\nconst Comparator = require('../classes/comparator.js')\nconst { ANY } = Comparator\nconst satisfies = require('../functions/satisfies.js')\nconst compare = require('../functions/compare.js')\n\n// Complex range `r1 || r2 || ...` is a subset of `R1 || R2 || ...` iff:\n// - Every simple range `r1, r2, ...` is a null set, OR\n// - Every simple range `r1, r2, ...` which is not a null set is a subset of\n// some `R1, R2, ...`\n//\n// Simple range `c1 c2 ...` is a subset of simple range `C1 C2 ...` iff:\n// - If c is only the ANY comparator\n// - If C is only the ANY comparator, return true\n// - Else if in prerelease mode, return false\n// - else replace c with `[>=0.0.0]`\n// - If C is only the ANY comparator\n// - if in prerelease mode, return true\n// - else replace C with `[>=0.0.0]`\n// - Let EQ be the set of = comparators in c\n// - If EQ is more than one, return true (null set)\n// - Let GT be the highest > or >= comparator in c\n// - Let LT be the lowest < or <= comparator in c\n// - If GT and LT, and GT.semver > LT.semver, return true (null set)\n// - If any C is a = range, and GT or LT are set, return false\n// - If EQ\n// - If GT, and EQ does not satisfy GT, return true (null set)\n// - If LT, and EQ does not satisfy LT, return true (null set)\n// - If EQ satisfies every C, return true\n// - Else return false\n// - If GT\n// - If GT.semver is lower than any > or >= comp in C, return false\n// - If GT is >=, and GT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the GT.semver tuple, return false\n// - If LT\n// - If LT.semver is greater than any < or <= comp in C, return false\n// - If LT is <=, and LT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the LT.semver tuple, return false\n// - Else return true\n\nconst subset = (sub, dom, options = {}) => {\n if (sub === dom) {\n return true\n }\n\n sub = new Range(sub, options)\n dom = new Range(dom, options)\n let sawNonNull = false\n\n OUTER: for (const simpleSub of sub.set) {\n for (const simpleDom of dom.set) {\n const isSub = simpleSubset(simpleSub, simpleDom, options)\n sawNonNull = sawNonNull || isSub !== null\n if (isSub) {\n continue OUTER\n }\n }\n // the null set is a subset of everything, but null simple ranges in\n // a complex range should be ignored. so if we saw a non-null range,\n // then we know this isn't a subset, but if EVERY simple range was null,\n // then it is a subset.\n if (sawNonNull) {\n return false\n }\n }\n return true\n}\n\nconst minimumVersionWithPreRelease = [new Comparator('>=0.0.0-0')]\nconst minimumVersion = [new Comparator('>=0.0.0')]\n\nconst simpleSubset = (sub, dom, options) => {\n if (sub === dom) {\n return true\n }\n\n if (sub.length === 1 && sub[0].semver === ANY) {\n if (dom.length === 1 && dom[0].semver === ANY) {\n return true\n } else if (options.includePrerelease) {\n sub = minimumVersionWithPreRelease\n } else {\n sub = minimumVersion\n }\n }\n\n if (dom.length === 1 && dom[0].semver === ANY) {\n if (options.includePrerelease) {\n return true\n } else {\n dom = minimumVersion\n }\n }\n\n const eqSet = new Set()\n let gt, lt\n for (const c of sub) {\n if (c.operator === '>' || c.operator === '>=') {\n gt = higherGT(gt, c, options)\n } else if (c.operator === '<' || c.operator === '<=') {\n lt = lowerLT(lt, c, options)\n } else {\n eqSet.add(c.semver)\n }\n }\n\n if (eqSet.size > 1) {\n return null\n }\n\n let gtltComp\n if (gt && lt) {\n gtltComp = compare(gt.semver, lt.semver, options)\n if (gtltComp > 0) {\n return null\n } else if (gtltComp === 0 && (gt.operator !== '>=' || lt.operator !== '<=')) {\n return null\n }\n }\n\n // will iterate one or zero times\n for (const eq of eqSet) {\n if (gt && !satisfies(eq, String(gt), options)) {\n return null\n }\n\n if (lt && !satisfies(eq, String(lt), options)) {\n return null\n }\n\n for (const c of dom) {\n if (!satisfies(eq, String(c), options)) {\n return false\n }\n }\n\n return true\n }\n\n let higher, lower\n let hasDomLT, hasDomGT\n // if the subset has a prerelease, we need a comparator in the superset\n // with the same tuple and a prerelease, or it's not a subset\n let needDomLTPre = lt &&\n !options.includePrerelease &&\n lt.semver.prerelease.length ? lt.semver : false\n let needDomGTPre = gt &&\n !options.includePrerelease &&\n gt.semver.prerelease.length ? gt.semver : false\n // exception: <1.2.3-0 is the same as <1.2.3\n if (needDomLTPre && needDomLTPre.prerelease.length === 1 &&\n lt.operator === '<' && needDomLTPre.prerelease[0] === 0) {\n needDomLTPre = false\n }\n\n for (const c of dom) {\n hasDomGT = hasDomGT || c.operator === '>' || c.operator === '>='\n hasDomLT = hasDomLT || c.operator === '<' || c.operator === '<='\n if (gt) {\n if (needDomGTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length &&\n c.semver.major === needDomGTPre.major &&\n c.semver.minor === needDomGTPre.minor &&\n c.semver.patch === needDomGTPre.patch) {\n needDomGTPre = false\n }\n }\n if (c.operator === '>' || c.operator === '>=') {\n higher = higherGT(gt, c, options)\n if (higher === c && higher !== gt) {\n return false\n }\n } else if (gt.operator === '>=' && !satisfies(gt.semver, String(c), options)) {\n return false\n }\n }\n if (lt) {\n if (needDomLTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length &&\n c.semver.major === needDomLTPre.major &&\n c.semver.minor === needDomLTPre.minor &&\n c.semver.patch === needDomLTPre.patch) {\n needDomLTPre = false\n }\n }\n if (c.operator === '<' || c.operator === '<=') {\n lower = lowerLT(lt, c, options)\n if (lower === c && lower !== lt) {\n return false\n }\n } else if (lt.operator === '<=' && !satisfies(lt.semver, String(c), options)) {\n return false\n }\n }\n if (!c.operator && (lt || gt) && gtltComp !== 0) {\n return false\n }\n }\n\n // if there was a < or >, and nothing in the dom, then must be false\n // UNLESS it was limited by another range in the other direction.\n // Eg, >1.0.0 <1.0.1 is still a subset of <2.0.0\n if (gt && hasDomLT && !lt && gtltComp !== 0) {\n return false\n }\n\n if (lt && hasDomGT && !gt && gtltComp !== 0) {\n return false\n }\n\n // we needed a prerelease range in a specific tuple, but didn't get one\n // then this isn't a subset. eg >=1.2.3-pre is not a subset of >=1.0.0,\n // because it includes prereleases in the 1.2.3 tuple\n if (needDomGTPre || needDomLTPre) {\n return false\n }\n\n return true\n}\n\n// >=1.2.3 is lower than >1.2.3\nconst higherGT = (a, b, options) => {\n if (!a) {\n return b\n }\n const comp = compare(a.semver, b.semver, options)\n return comp > 0 ? a\n : comp < 0 ? b\n : b.operator === '>' && a.operator === '>=' ? b\n : a\n}\n\n// <=1.2.3 is higher than <1.2.3\nconst lowerLT = (a, b, options) => {\n if (!a) {\n return b\n }\n const comp = compare(a.semver, b.semver, options)\n return comp < 0 ? a\n : comp > 0 ? b\n : b.operator === '<' && a.operator === '<=' ? b\n : a\n}\n\nmodule.exports = subset\n"],"names":["require$$0","require$$1","satisfies","require$$2","compare","require$$3"],"mappings":";;;;;;;;;;;;;;AAEA,CAAA,MAAM,KAAK,GAAGA,eAAA;AACd,CAAA,MAAM,UAAU,GAAGC,oBAAA;CACnB,MAAM,EAAE,GAAG,EAAE,GAAG;AAChB,CAAA,MAAMC,WAAS,GAAGC,mBAAA;AAClB,CAAA,MAAMC,SAAO,GAAGC,iBAAA;;AAEhB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;CAEA,MAAM,MAAM,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,GAAG,EAA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,OAAO;AACX,GAAA;AACA,GAAE,MAAM,IAAI,GAAGE,SAAO,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,OAAO;AAClD,GAAE,OAAO,IAAI,GAAG,CAAC,GAAG;OACd,IAAI,GAAG,CAAC,GAAG;OACX,CAAC,CAAC,QAAQ,KAAK,GAAG,IAAI,CAAC,CAAC,QAAQ,KAAK,IAAI,GAAG;OAC5C;AACN,CAAA;;AAEA;CACA,MAAM,OAAO,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,OAAO,KAAK;GACjC,IAAI,CAAC,CAAC,EAAE;AACV,KAAI,OAAO;AACX,GAAA;AACA,GAAE,MAAM,IAAI,GAAGA,SAAO,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,OAAO;AAClD,GAAE,OAAO,IAAI,GAAG,CAAC,GAAG;OACd,IAAI,GAAG,CAAC,GAAG;OACX,CAAC,CAAC,QAAQ,KAAK,GAAG,IAAI,CAAC,CAAC,QAAQ,KAAK,IAAI,GAAG;OAC5C;AACN,CAAA;;AAEA,CAAA,QAAc,GAAG;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
import { __require as requireRange } from '../classes/range.js';
|
|
2
|
+
import { __require as requireComparator } from '../classes/comparator.js';
|
|
3
|
+
import { __require as requireSatisfies } from '../functions/satisfies.js';
|
|
4
|
+
import { __require as requireCompare } from '../functions/compare.js';
|
|
5
|
+
|
|
6
|
+
var subset_1;
|
|
7
|
+
var hasRequiredSubset;
|
|
8
|
+
|
|
9
|
+
function requireSubset () {
|
|
10
|
+
if (hasRequiredSubset) return subset_1;
|
|
11
|
+
hasRequiredSubset = 1;
|
|
12
|
+
|
|
13
|
+
const Range = requireRange();
|
|
14
|
+
const Comparator = requireComparator();
|
|
15
|
+
const { ANY } = Comparator;
|
|
16
|
+
const satisfies = requireSatisfies();
|
|
17
|
+
const compare = requireCompare();
|
|
18
|
+
|
|
19
|
+
// Complex range `r1 || r2 || ...` is a subset of `R1 || R2 || ...` iff:
|
|
20
|
+
// - Every simple range `r1, r2, ...` is a null set, OR
|
|
21
|
+
// - Every simple range `r1, r2, ...` which is not a null set is a subset of
|
|
22
|
+
// some `R1, R2, ...`
|
|
23
|
+
//
|
|
24
|
+
// Simple range `c1 c2 ...` is a subset of simple range `C1 C2 ...` iff:
|
|
25
|
+
// - If c is only the ANY comparator
|
|
26
|
+
// - If C is only the ANY comparator, return true
|
|
27
|
+
// - Else if in prerelease mode, return false
|
|
28
|
+
// - else replace c with `[>=0.0.0]`
|
|
29
|
+
// - If C is only the ANY comparator
|
|
30
|
+
// - if in prerelease mode, return true
|
|
31
|
+
// - else replace C with `[>=0.0.0]`
|
|
32
|
+
// - Let EQ be the set of = comparators in c
|
|
33
|
+
// - If EQ is more than one, return true (null set)
|
|
34
|
+
// - Let GT be the highest > or >= comparator in c
|
|
35
|
+
// - Let LT be the lowest < or <= comparator in c
|
|
36
|
+
// - If GT and LT, and GT.semver > LT.semver, return true (null set)
|
|
37
|
+
// - If any C is a = range, and GT or LT are set, return false
|
|
38
|
+
// - If EQ
|
|
39
|
+
// - If GT, and EQ does not satisfy GT, return true (null set)
|
|
40
|
+
// - If LT, and EQ does not satisfy LT, return true (null set)
|
|
41
|
+
// - If EQ satisfies every C, return true
|
|
42
|
+
// - Else return false
|
|
43
|
+
// - If GT
|
|
44
|
+
// - If GT.semver is lower than any > or >= comp in C, return false
|
|
45
|
+
// - If GT is >=, and GT.semver does not satisfy every C, return false
|
|
46
|
+
// - If GT.semver has a prerelease, and not in prerelease mode
|
|
47
|
+
// - If no C has a prerelease and the GT.semver tuple, return false
|
|
48
|
+
// - If LT
|
|
49
|
+
// - If LT.semver is greater than any < or <= comp in C, return false
|
|
50
|
+
// - If LT is <=, and LT.semver does not satisfy every C, return false
|
|
51
|
+
// - If GT.semver has a prerelease, and not in prerelease mode
|
|
52
|
+
// - If no C has a prerelease and the LT.semver tuple, return false
|
|
53
|
+
// - Else return true
|
|
54
|
+
|
|
55
|
+
const subset = (sub, dom, options = {}) => {
|
|
56
|
+
if (sub === dom) {
|
|
57
|
+
return true
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
sub = new Range(sub, options);
|
|
61
|
+
dom = new Range(dom, options);
|
|
62
|
+
let sawNonNull = false;
|
|
63
|
+
|
|
64
|
+
OUTER: for (const simpleSub of sub.set) {
|
|
65
|
+
for (const simpleDom of dom.set) {
|
|
66
|
+
const isSub = simpleSubset(simpleSub, simpleDom, options);
|
|
67
|
+
sawNonNull = sawNonNull || isSub !== null;
|
|
68
|
+
if (isSub) {
|
|
69
|
+
continue OUTER
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
// the null set is a subset of everything, but null simple ranges in
|
|
73
|
+
// a complex range should be ignored. so if we saw a non-null range,
|
|
74
|
+
// then we know this isn't a subset, but if EVERY simple range was null,
|
|
75
|
+
// then it is a subset.
|
|
76
|
+
if (sawNonNull) {
|
|
77
|
+
return false
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
return true
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
const minimumVersionWithPreRelease = [new Comparator('>=0.0.0-0')];
|
|
84
|
+
const minimumVersion = [new Comparator('>=0.0.0')];
|
|
85
|
+
|
|
86
|
+
const simpleSubset = (sub, dom, options) => {
|
|
87
|
+
if (sub === dom) {
|
|
88
|
+
return true
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
if (sub.length === 1 && sub[0].semver === ANY) {
|
|
92
|
+
if (dom.length === 1 && dom[0].semver === ANY) {
|
|
93
|
+
return true
|
|
94
|
+
} else if (options.includePrerelease) {
|
|
95
|
+
sub = minimumVersionWithPreRelease;
|
|
96
|
+
} else {
|
|
97
|
+
sub = minimumVersion;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
if (dom.length === 1 && dom[0].semver === ANY) {
|
|
102
|
+
if (options.includePrerelease) {
|
|
103
|
+
return true
|
|
104
|
+
} else {
|
|
105
|
+
dom = minimumVersion;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
const eqSet = new Set();
|
|
110
|
+
let gt, lt;
|
|
111
|
+
for (const c of sub) {
|
|
112
|
+
if (c.operator === '>' || c.operator === '>=') {
|
|
113
|
+
gt = higherGT(gt, c, options);
|
|
114
|
+
} else if (c.operator === '<' || c.operator === '<=') {
|
|
115
|
+
lt = lowerLT(lt, c, options);
|
|
116
|
+
} else {
|
|
117
|
+
eqSet.add(c.semver);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
if (eqSet.size > 1) {
|
|
122
|
+
return null
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
let gtltComp;
|
|
126
|
+
if (gt && lt) {
|
|
127
|
+
gtltComp = compare(gt.semver, lt.semver, options);
|
|
128
|
+
if (gtltComp > 0) {
|
|
129
|
+
return null
|
|
130
|
+
} else if (gtltComp === 0 && (gt.operator !== '>=' || lt.operator !== '<=')) {
|
|
131
|
+
return null
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
// will iterate one or zero times
|
|
136
|
+
for (const eq of eqSet) {
|
|
137
|
+
if (gt && !satisfies(eq, String(gt), options)) {
|
|
138
|
+
return null
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
if (lt && !satisfies(eq, String(lt), options)) {
|
|
142
|
+
return null
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
for (const c of dom) {
|
|
146
|
+
if (!satisfies(eq, String(c), options)) {
|
|
147
|
+
return false
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
return true
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
let higher, lower;
|
|
155
|
+
let hasDomLT, hasDomGT;
|
|
156
|
+
// if the subset has a prerelease, we need a comparator in the superset
|
|
157
|
+
// with the same tuple and a prerelease, or it's not a subset
|
|
158
|
+
let needDomLTPre = lt &&
|
|
159
|
+
!options.includePrerelease &&
|
|
160
|
+
lt.semver.prerelease.length ? lt.semver : false;
|
|
161
|
+
let needDomGTPre = gt &&
|
|
162
|
+
!options.includePrerelease &&
|
|
163
|
+
gt.semver.prerelease.length ? gt.semver : false;
|
|
164
|
+
// exception: <1.2.3-0 is the same as <1.2.3
|
|
165
|
+
if (needDomLTPre && needDomLTPre.prerelease.length === 1 &&
|
|
166
|
+
lt.operator === '<' && needDomLTPre.prerelease[0] === 0) {
|
|
167
|
+
needDomLTPre = false;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
for (const c of dom) {
|
|
171
|
+
hasDomGT = hasDomGT || c.operator === '>' || c.operator === '>=';
|
|
172
|
+
hasDomLT = hasDomLT || c.operator === '<' || c.operator === '<=';
|
|
173
|
+
if (gt) {
|
|
174
|
+
if (needDomGTPre) {
|
|
175
|
+
if (c.semver.prerelease && c.semver.prerelease.length &&
|
|
176
|
+
c.semver.major === needDomGTPre.major &&
|
|
177
|
+
c.semver.minor === needDomGTPre.minor &&
|
|
178
|
+
c.semver.patch === needDomGTPre.patch) {
|
|
179
|
+
needDomGTPre = false;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
if (c.operator === '>' || c.operator === '>=') {
|
|
183
|
+
higher = higherGT(gt, c, options);
|
|
184
|
+
if (higher === c && higher !== gt) {
|
|
185
|
+
return false
|
|
186
|
+
}
|
|
187
|
+
} else if (gt.operator === '>=' && !satisfies(gt.semver, String(c), options)) {
|
|
188
|
+
return false
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
if (lt) {
|
|
192
|
+
if (needDomLTPre) {
|
|
193
|
+
if (c.semver.prerelease && c.semver.prerelease.length &&
|
|
194
|
+
c.semver.major === needDomLTPre.major &&
|
|
195
|
+
c.semver.minor === needDomLTPre.minor &&
|
|
196
|
+
c.semver.patch === needDomLTPre.patch) {
|
|
197
|
+
needDomLTPre = false;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
if (c.operator === '<' || c.operator === '<=') {
|
|
201
|
+
lower = lowerLT(lt, c, options);
|
|
202
|
+
if (lower === c && lower !== lt) {
|
|
203
|
+
return false
|
|
204
|
+
}
|
|
205
|
+
} else if (lt.operator === '<=' && !satisfies(lt.semver, String(c), options)) {
|
|
206
|
+
return false
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
if (!c.operator && (lt || gt) && gtltComp !== 0) {
|
|
210
|
+
return false
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
// if there was a < or >, and nothing in the dom, then must be false
|
|
215
|
+
// UNLESS it was limited by another range in the other direction.
|
|
216
|
+
// Eg, >1.0.0 <1.0.1 is still a subset of <2.0.0
|
|
217
|
+
if (gt && hasDomLT && !lt && gtltComp !== 0) {
|
|
218
|
+
return false
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
if (lt && hasDomGT && !gt && gtltComp !== 0) {
|
|
222
|
+
return false
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
// we needed a prerelease range in a specific tuple, but didn't get one
|
|
226
|
+
// then this isn't a subset. eg >=1.2.3-pre is not a subset of >=1.0.0,
|
|
227
|
+
// because it includes prereleases in the 1.2.3 tuple
|
|
228
|
+
if (needDomGTPre || needDomLTPre) {
|
|
229
|
+
return false
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
return true
|
|
233
|
+
};
|
|
234
|
+
|
|
235
|
+
// >=1.2.3 is lower than >1.2.3
|
|
236
|
+
const higherGT = (a, b, options) => {
|
|
237
|
+
if (!a) {
|
|
238
|
+
return b
|
|
239
|
+
}
|
|
240
|
+
const comp = compare(a.semver, b.semver, options);
|
|
241
|
+
return comp > 0 ? a
|
|
242
|
+
: comp < 0 ? b
|
|
243
|
+
: b.operator === '>' && a.operator === '>=' ? b
|
|
244
|
+
: a
|
|
245
|
+
};
|
|
246
|
+
|
|
247
|
+
// <=1.2.3 is higher than <1.2.3
|
|
248
|
+
const lowerLT = (a, b, options) => {
|
|
249
|
+
if (!a) {
|
|
250
|
+
return b
|
|
251
|
+
}
|
|
252
|
+
const comp = compare(a.semver, b.semver, options);
|
|
253
|
+
return comp < 0 ? a
|
|
254
|
+
: comp > 0 ? b
|
|
255
|
+
: b.operator === '<' && a.operator === '<=' ? b
|
|
256
|
+
: a
|
|
257
|
+
};
|
|
258
|
+
|
|
259
|
+
subset_1 = subset;
|
|
260
|
+
return subset_1;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
export { requireSubset as __require };
|
|
264
|
+
//# sourceMappingURL=subset.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subset.js","sources":["../../../../../../../../../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/subset.js"],"sourcesContent":["'use strict'\n\nconst Range = require('../classes/range.js')\nconst Comparator = require('../classes/comparator.js')\nconst { ANY } = Comparator\nconst satisfies = require('../functions/satisfies.js')\nconst compare = require('../functions/compare.js')\n\n// Complex range `r1 || r2 || ...` is a subset of `R1 || R2 || ...` iff:\n// - Every simple range `r1, r2, ...` is a null set, OR\n// - Every simple range `r1, r2, ...` which is not a null set is a subset of\n// some `R1, R2, ...`\n//\n// Simple range `c1 c2 ...` is a subset of simple range `C1 C2 ...` iff:\n// - If c is only the ANY comparator\n// - If C is only the ANY comparator, return true\n// - Else if in prerelease mode, return false\n// - else replace c with `[>=0.0.0]`\n// - If C is only the ANY comparator\n// - if in prerelease mode, return true\n// - else replace C with `[>=0.0.0]`\n// - Let EQ be the set of = comparators in c\n// - If EQ is more than one, return true (null set)\n// - Let GT be the highest > or >= comparator in c\n// - Let LT be the lowest < or <= comparator in c\n// - If GT and LT, and GT.semver > LT.semver, return true (null set)\n// - If any C is a = range, and GT or LT are set, return false\n// - If EQ\n// - If GT, and EQ does not satisfy GT, return true (null set)\n// - If LT, and EQ does not satisfy LT, return true (null set)\n// - If EQ satisfies every C, return true\n// - Else return false\n// - If GT\n// - If GT.semver is lower than any > or >= comp in C, return false\n// - If GT is >=, and GT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the GT.semver tuple, return false\n// - If LT\n// - If LT.semver is greater than any < or <= comp in C, return false\n// - If LT is <=, and LT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the LT.semver tuple, return false\n// - Else return true\n\nconst subset = (sub, dom, options = {}) => {\n if (sub === dom) {\n return true\n }\n\n sub = new Range(sub, options)\n dom = new Range(dom, options)\n let sawNonNull = false\n\n OUTER: for (const simpleSub of sub.set) {\n for (const simpleDom of dom.set) {\n const isSub = simpleSubset(simpleSub, simpleDom, options)\n sawNonNull = sawNonNull || isSub !== null\n if (isSub) {\n continue OUTER\n }\n }\n // the null set is a subset of everything, but null simple ranges in\n // a complex range should be ignored. so if we saw a non-null range,\n // then we know this isn't a subset, but if EVERY simple range was null,\n // then it is a subset.\n if (sawNonNull) {\n return false\n }\n }\n return true\n}\n\nconst minimumVersionWithPreRelease = [new Comparator('>=0.0.0-0')]\nconst minimumVersion = [new Comparator('>=0.0.0')]\n\nconst simpleSubset = (sub, dom, options) => {\n if (sub === dom) {\n return true\n }\n\n if (sub.length === 1 && sub[0].semver === ANY) {\n if (dom.length === 1 && dom[0].semver === ANY) {\n return true\n } else if (options.includePrerelease) {\n sub = minimumVersionWithPreRelease\n } else {\n sub = minimumVersion\n }\n }\n\n if (dom.length === 1 && dom[0].semver === ANY) {\n if (options.includePrerelease) {\n return true\n } else {\n dom = minimumVersion\n }\n }\n\n const eqSet = new Set()\n let gt, lt\n for (const c of sub) {\n if (c.operator === '>' || c.operator === '>=') {\n gt = higherGT(gt, c, options)\n } else if (c.operator === '<' || c.operator === '<=') {\n lt = lowerLT(lt, c, options)\n } else {\n eqSet.add(c.semver)\n }\n }\n\n if (eqSet.size > 1) {\n return null\n }\n\n let gtltComp\n if (gt && lt) {\n gtltComp = compare(gt.semver, lt.semver, options)\n if (gtltComp > 0) {\n return null\n } else if (gtltComp === 0 && (gt.operator !== '>=' || lt.operator !== '<=')) {\n return null\n }\n }\n\n // will iterate one or zero times\n for (const eq of eqSet) {\n if (gt && !satisfies(eq, String(gt), options)) {\n return null\n }\n\n if (lt && !satisfies(eq, String(lt), options)) {\n return null\n }\n\n for (const c of dom) {\n if (!satisfies(eq, String(c), options)) {\n return false\n }\n }\n\n return true\n }\n\n let higher, lower\n let hasDomLT, hasDomGT\n // if the subset has a prerelease, we need a comparator in the superset\n // with the same tuple and a prerelease, or it's not a subset\n let needDomLTPre = lt &&\n !options.includePrerelease &&\n lt.semver.prerelease.length ? lt.semver : false\n let needDomGTPre = gt &&\n !options.includePrerelease &&\n gt.semver.prerelease.length ? gt.semver : false\n // exception: <1.2.3-0 is the same as <1.2.3\n if (needDomLTPre && needDomLTPre.prerelease.length === 1 &&\n lt.operator === '<' && needDomLTPre.prerelease[0] === 0) {\n needDomLTPre = false\n }\n\n for (const c of dom) {\n hasDomGT = hasDomGT || c.operator === '>' || c.operator === '>='\n hasDomLT = hasDomLT || c.operator === '<' || c.operator === '<='\n if (gt) {\n if (needDomGTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length &&\n c.semver.major === needDomGTPre.major &&\n c.semver.minor === needDomGTPre.minor &&\n c.semver.patch === needDomGTPre.patch) {\n needDomGTPre = false\n }\n }\n if (c.operator === '>' || c.operator === '>=') {\n higher = higherGT(gt, c, options)\n if (higher === c && higher !== gt) {\n return false\n }\n } else if (gt.operator === '>=' && !satisfies(gt.semver, String(c), options)) {\n return false\n }\n }\n if (lt) {\n if (needDomLTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length &&\n c.semver.major === needDomLTPre.major &&\n c.semver.minor === needDomLTPre.minor &&\n c.semver.patch === needDomLTPre.patch) {\n needDomLTPre = false\n }\n }\n if (c.operator === '<' || c.operator === '<=') {\n lower = lowerLT(lt, c, options)\n if (lower === c && lower !== lt) {\n return false\n }\n } else if (lt.operator === '<=' && !satisfies(lt.semver, String(c), options)) {\n return false\n }\n }\n if (!c.operator && (lt || gt) && gtltComp !== 0) {\n return false\n }\n }\n\n // if there was a < or >, and nothing in the dom, then must be false\n // UNLESS it was limited by another range in the other direction.\n // Eg, >1.0.0 <1.0.1 is still a subset of <2.0.0\n if (gt && hasDomLT && !lt && gtltComp !== 0) {\n return false\n }\n\n if (lt && hasDomGT && !gt && gtltComp !== 0) {\n return false\n }\n\n // we needed a prerelease range in a specific tuple, but didn't get one\n // then this isn't a subset. eg >=1.2.3-pre is not a subset of >=1.0.0,\n // because it includes prereleases in the 1.2.3 tuple\n if (needDomGTPre || needDomLTPre) {\n return false\n }\n\n return true\n}\n\n// >=1.2.3 is lower than >1.2.3\nconst higherGT = (a, b, options) => {\n if (!a) {\n return b\n }\n const comp = compare(a.semver, b.semver, options)\n return comp > 0 ? a\n : comp < 0 ? b\n : b.operator === '>' && a.operator === '>=' ? b\n : a\n}\n\n// <=1.2.3 is higher than <1.2.3\nconst lowerLT = (a, b, options) => {\n if (!a) {\n return b\n }\n const comp = compare(a.semver, b.semver, options)\n return comp < 0 ? a\n : comp > 0 ? b\n : b.operator === '<' && a.operator === '<=' ? b\n : a\n}\n\nmodule.exports = subset\n"],"names":["require$$0","require$$1","require$$2","require$$3"],"mappings":";;;;;;;;;;;;AAEA,CAAA,MAAM,KAAK,GAAGA,YAAA;AACd,CAAA,MAAM,UAAU,GAAGC,iBAAA;CACnB,MAAM,EAAE,GAAG,EAAE,GAAG;AAChB,CAAA,MAAM,SAAS,GAAGC,gBAAA;AAClB,CAAA,MAAM,OAAO,GAAGC,cAAA;;AAEhB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;CAEA,MAAM,MAAM,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,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ACV,KAAI,OAAO;AACX,GAAA;AACA,GAAE,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,OAAO;AAClD,GAAE,OAAO,IAAI,GAAG,CAAC,GAAG;OACd,IAAI,GAAG,CAAC,GAAG;OACX,CAAC,CAAC,QAAQ,KAAK,GAAG,IAAI,CAAC,CAAC,QAAQ,KAAK,IAAI,GAAG;OAC5C;AACN,CAAA;;AAEA;CACA,MAAM,OAAO,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,OAAO,KAAK;GACjC,IAAI,CAAC,CAAC,EAAE;AACV,KAAI,OAAO;AACX,GAAA;AACA,GAAE,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,OAAO;AAClD,GAAE,OAAO,IAAI,GAAG,CAAC,GAAG;OACd,IAAI,GAAG,CAAC,GAAG;OACX,CAAC,CAAC,QAAQ,KAAK,GAAG,IAAI,CAAC,CAAC,QAAQ,KAAK,IAAI,GAAG;OAC5C;AACN,CAAA;;AAEA,CAAA,QAAc,GAAG;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var range = require('../classes/range.cjs');
|
|
4
|
+
|
|
5
|
+
var toComparators_1;
|
|
6
|
+
var hasRequiredToComparators;
|
|
7
|
+
|
|
8
|
+
function requireToComparators () {
|
|
9
|
+
if (hasRequiredToComparators) return toComparators_1;
|
|
10
|
+
hasRequiredToComparators = 1;
|
|
11
|
+
|
|
12
|
+
const Range = range.__require();
|
|
13
|
+
|
|
14
|
+
// Mostly just for testing and legacy API reasons
|
|
15
|
+
const toComparators = (range, options) =>
|
|
16
|
+
new Range(range, options).set
|
|
17
|
+
.map(comp => comp.map(c => c.value).join(' ').trim().split(' '));
|
|
18
|
+
|
|
19
|
+
toComparators_1 = toComparators;
|
|
20
|
+
return toComparators_1;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
exports.__require = requireToComparators;
|
|
24
|
+
//# sourceMappingURL=to-comparators.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"to-comparators.cjs","sources":["../../../../../../../../../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/to-comparators.js"],"sourcesContent":["'use strict'\n\nconst Range = require('../classes/range')\n\n// Mostly just for testing and legacy API reasons\nconst toComparators = (range, options) =>\n new Range(range, options).set\n .map(comp => comp.map(c => c.value).join(' ').trim().split(' '))\n\nmodule.exports = toComparators\n"],"names":["require$$0"],"mappings":";;;;;;;;;;;AAEA,CAAA,MAAM,KAAK,GAAGA,eAAA;;AAEd;AACA,CAAA,MAAM,aAAa,GAAG,CAAC,KAAK,EAAE,OAAO;AACrC,GAAE,IAAI,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;MACvB,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC;;AAEnE,CAAA,eAAc,GAAG;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { __require as requireRange } from '../classes/range.js';
|
|
2
|
+
|
|
3
|
+
var toComparators_1;
|
|
4
|
+
var hasRequiredToComparators;
|
|
5
|
+
|
|
6
|
+
function requireToComparators () {
|
|
7
|
+
if (hasRequiredToComparators) return toComparators_1;
|
|
8
|
+
hasRequiredToComparators = 1;
|
|
9
|
+
|
|
10
|
+
const Range = requireRange();
|
|
11
|
+
|
|
12
|
+
// Mostly just for testing and legacy API reasons
|
|
13
|
+
const toComparators = (range, options) =>
|
|
14
|
+
new Range(range, options).set
|
|
15
|
+
.map(comp => comp.map(c => c.value).join(' ').trim().split(' '));
|
|
16
|
+
|
|
17
|
+
toComparators_1 = toComparators;
|
|
18
|
+
return toComparators_1;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { requireToComparators as __require };
|
|
22
|
+
//# sourceMappingURL=to-comparators.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"to-comparators.js","sources":["../../../../../../../../../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/to-comparators.js"],"sourcesContent":["'use strict'\n\nconst Range = require('../classes/range')\n\n// Mostly just for testing and legacy API reasons\nconst toComparators = (range, options) =>\n new Range(range, options).set\n .map(comp => comp.map(c => c.value).join(' ').trim().split(' '))\n\nmodule.exports = toComparators\n"],"names":["require$$0"],"mappings":";;;;;;;;;AAEA,CAAA,MAAM,KAAK,GAAGA,YAAA;;AAEd;AACA,CAAA,MAAM,aAAa,GAAG,CAAC,KAAK,EAAE,OAAO;AACrC,GAAE,IAAI,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;MACvB,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC;;AAEnE,CAAA,eAAc,GAAG;;;;;;","x_google_ignoreList":[0]}
|