@milaboratories/pl-middle-layer 1.43.82 → 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 +12 -12
|
@@ -0,0 +1,576 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var lrucache = require('../internal/lrucache.cjs');
|
|
4
|
+
var parseOptions = require('../internal/parse-options.cjs');
|
|
5
|
+
var comparator = require('./comparator.cjs');
|
|
6
|
+
var debug = require('../internal/debug.cjs');
|
|
7
|
+
var semver = require('./semver.cjs');
|
|
8
|
+
var re = require('../internal/re.cjs');
|
|
9
|
+
var constants = require('../internal/constants.cjs');
|
|
10
|
+
|
|
11
|
+
var range;
|
|
12
|
+
var hasRequiredRange;
|
|
13
|
+
|
|
14
|
+
function requireRange () {
|
|
15
|
+
if (hasRequiredRange) return range;
|
|
16
|
+
hasRequiredRange = 1;
|
|
17
|
+
|
|
18
|
+
const SPACE_CHARACTERS = /\s+/g;
|
|
19
|
+
|
|
20
|
+
// hoisted class for cyclic dependency
|
|
21
|
+
class Range {
|
|
22
|
+
constructor (range, options) {
|
|
23
|
+
options = parseOptions$1(options);
|
|
24
|
+
|
|
25
|
+
if (range instanceof Range) {
|
|
26
|
+
if (
|
|
27
|
+
range.loose === !!options.loose &&
|
|
28
|
+
range.includePrerelease === !!options.includePrerelease
|
|
29
|
+
) {
|
|
30
|
+
return range
|
|
31
|
+
} else {
|
|
32
|
+
return new Range(range.raw, options)
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
if (range instanceof Comparator) {
|
|
37
|
+
// just put it in the set and return
|
|
38
|
+
this.raw = range.value;
|
|
39
|
+
this.set = [[range]];
|
|
40
|
+
this.formatted = undefined;
|
|
41
|
+
return this
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
this.options = options;
|
|
45
|
+
this.loose = !!options.loose;
|
|
46
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
47
|
+
|
|
48
|
+
// First reduce all whitespace as much as possible so we do not have to rely
|
|
49
|
+
// on potentially slow regexes like \s*. This is then stored and used for
|
|
50
|
+
// future error messages as well.
|
|
51
|
+
this.raw = range.trim().replace(SPACE_CHARACTERS, ' ');
|
|
52
|
+
|
|
53
|
+
// First, split on ||
|
|
54
|
+
this.set = this.raw
|
|
55
|
+
.split('||')
|
|
56
|
+
// map the range to a 2d array of comparators
|
|
57
|
+
.map(r => this.parseRange(r.trim()))
|
|
58
|
+
// throw out any comparator lists that are empty
|
|
59
|
+
// this generally means that it was not a valid range, which is allowed
|
|
60
|
+
// in loose mode, but will still throw if the WHOLE range is invalid.
|
|
61
|
+
.filter(c => c.length);
|
|
62
|
+
|
|
63
|
+
if (!this.set.length) {
|
|
64
|
+
throw new TypeError(`Invalid SemVer Range: ${this.raw}`)
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// if we have any that are not the null set, throw out null sets.
|
|
68
|
+
if (this.set.length > 1) {
|
|
69
|
+
// keep the first one, in case they're all null sets
|
|
70
|
+
const first = this.set[0];
|
|
71
|
+
this.set = this.set.filter(c => !isNullSet(c[0]));
|
|
72
|
+
if (this.set.length === 0) {
|
|
73
|
+
this.set = [first];
|
|
74
|
+
} else if (this.set.length > 1) {
|
|
75
|
+
// if we have any that are *, then the range is just *
|
|
76
|
+
for (const c of this.set) {
|
|
77
|
+
if (c.length === 1 && isAny(c[0])) {
|
|
78
|
+
this.set = [c];
|
|
79
|
+
break
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
this.formatted = undefined;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
get range () {
|
|
89
|
+
if (this.formatted === undefined) {
|
|
90
|
+
this.formatted = '';
|
|
91
|
+
for (let i = 0; i < this.set.length; i++) {
|
|
92
|
+
if (i > 0) {
|
|
93
|
+
this.formatted += '||';
|
|
94
|
+
}
|
|
95
|
+
const comps = this.set[i];
|
|
96
|
+
for (let k = 0; k < comps.length; k++) {
|
|
97
|
+
if (k > 0) {
|
|
98
|
+
this.formatted += ' ';
|
|
99
|
+
}
|
|
100
|
+
this.formatted += comps[k].toString().trim();
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
return this.formatted
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
format () {
|
|
108
|
+
return this.range
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
toString () {
|
|
112
|
+
return this.range
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
parseRange (range) {
|
|
116
|
+
// memoize range parsing for performance.
|
|
117
|
+
// this is a very hot path, and fully deterministic.
|
|
118
|
+
const memoOpts =
|
|
119
|
+
(this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) |
|
|
120
|
+
(this.options.loose && FLAG_LOOSE);
|
|
121
|
+
const memoKey = memoOpts + ':' + range;
|
|
122
|
+
const cached = cache.get(memoKey);
|
|
123
|
+
if (cached) {
|
|
124
|
+
return cached
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
const loose = this.options.loose;
|
|
128
|
+
// `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`
|
|
129
|
+
const hr = loose ? re$1[t.HYPHENRANGELOOSE] : re$1[t.HYPHENRANGE];
|
|
130
|
+
range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
|
|
131
|
+
debug$1('hyphen replace', range);
|
|
132
|
+
|
|
133
|
+
// `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`
|
|
134
|
+
range = range.replace(re$1[t.COMPARATORTRIM], comparatorTrimReplace);
|
|
135
|
+
debug$1('comparator trim', range);
|
|
136
|
+
|
|
137
|
+
// `~ 1.2.3` => `~1.2.3`
|
|
138
|
+
range = range.replace(re$1[t.TILDETRIM], tildeTrimReplace);
|
|
139
|
+
debug$1('tilde trim', range);
|
|
140
|
+
|
|
141
|
+
// `^ 1.2.3` => `^1.2.3`
|
|
142
|
+
range = range.replace(re$1[t.CARETTRIM], caretTrimReplace);
|
|
143
|
+
debug$1('caret trim', range);
|
|
144
|
+
|
|
145
|
+
// At this point, the range is completely trimmed and
|
|
146
|
+
// ready to be split into comparators.
|
|
147
|
+
|
|
148
|
+
let rangeList = range
|
|
149
|
+
.split(' ')
|
|
150
|
+
.map(comp => parseComparator(comp, this.options))
|
|
151
|
+
.join(' ')
|
|
152
|
+
.split(/\s+/)
|
|
153
|
+
// >=0.0.0 is equivalent to *
|
|
154
|
+
.map(comp => replaceGTE0(comp, this.options));
|
|
155
|
+
|
|
156
|
+
if (loose) {
|
|
157
|
+
// in loose mode, throw out any that are not valid comparators
|
|
158
|
+
rangeList = rangeList.filter(comp => {
|
|
159
|
+
debug$1('loose invalid filter', comp, this.options);
|
|
160
|
+
return !!comp.match(re$1[t.COMPARATORLOOSE])
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
debug$1('range list', rangeList);
|
|
164
|
+
|
|
165
|
+
// if any comparators are the null set, then replace with JUST null set
|
|
166
|
+
// if more than one comparator, remove any * comparators
|
|
167
|
+
// also, don't include the same comparator more than once
|
|
168
|
+
const rangeMap = new Map();
|
|
169
|
+
const comparators = rangeList.map(comp => new Comparator(comp, this.options));
|
|
170
|
+
for (const comp of comparators) {
|
|
171
|
+
if (isNullSet(comp)) {
|
|
172
|
+
return [comp]
|
|
173
|
+
}
|
|
174
|
+
rangeMap.set(comp.value, comp);
|
|
175
|
+
}
|
|
176
|
+
if (rangeMap.size > 1 && rangeMap.has('')) {
|
|
177
|
+
rangeMap.delete('');
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
const result = [...rangeMap.values()];
|
|
181
|
+
cache.set(memoKey, result);
|
|
182
|
+
return result
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
intersects (range, options) {
|
|
186
|
+
if (!(range instanceof Range)) {
|
|
187
|
+
throw new TypeError('a Range is required')
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
return this.set.some((thisComparators) => {
|
|
191
|
+
return (
|
|
192
|
+
isSatisfiable(thisComparators, options) &&
|
|
193
|
+
range.set.some((rangeComparators) => {
|
|
194
|
+
return (
|
|
195
|
+
isSatisfiable(rangeComparators, options) &&
|
|
196
|
+
thisComparators.every((thisComparator) => {
|
|
197
|
+
return rangeComparators.every((rangeComparator) => {
|
|
198
|
+
return thisComparator.intersects(rangeComparator, options)
|
|
199
|
+
})
|
|
200
|
+
})
|
|
201
|
+
)
|
|
202
|
+
})
|
|
203
|
+
)
|
|
204
|
+
})
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
// if ANY of the sets match ALL of its comparators, then pass
|
|
208
|
+
test (version) {
|
|
209
|
+
if (!version) {
|
|
210
|
+
return false
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
if (typeof version === 'string') {
|
|
214
|
+
try {
|
|
215
|
+
version = new SemVer(version, this.options);
|
|
216
|
+
} catch (er) {
|
|
217
|
+
return false
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
for (let i = 0; i < this.set.length; i++) {
|
|
222
|
+
if (testSet(this.set[i], version, this.options)) {
|
|
223
|
+
return true
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
return false
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
range = Range;
|
|
231
|
+
|
|
232
|
+
const LRU = lrucache.__require();
|
|
233
|
+
const cache = new LRU();
|
|
234
|
+
|
|
235
|
+
const parseOptions$1 = parseOptions.__require();
|
|
236
|
+
const Comparator = comparator.__require();
|
|
237
|
+
const debug$1 = debug.__require();
|
|
238
|
+
const SemVer = semver.__require();
|
|
239
|
+
const {
|
|
240
|
+
safeRe: re$1,
|
|
241
|
+
t,
|
|
242
|
+
comparatorTrimReplace,
|
|
243
|
+
tildeTrimReplace,
|
|
244
|
+
caretTrimReplace,
|
|
245
|
+
} = re.__require();
|
|
246
|
+
const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = constants.__require();
|
|
247
|
+
|
|
248
|
+
const isNullSet = c => c.value === '<0.0.0-0';
|
|
249
|
+
const isAny = c => c.value === '';
|
|
250
|
+
|
|
251
|
+
// take a set of comparators and determine whether there
|
|
252
|
+
// exists a version which can satisfy it
|
|
253
|
+
const isSatisfiable = (comparators, options) => {
|
|
254
|
+
let result = true;
|
|
255
|
+
const remainingComparators = comparators.slice();
|
|
256
|
+
let testComparator = remainingComparators.pop();
|
|
257
|
+
|
|
258
|
+
while (result && remainingComparators.length) {
|
|
259
|
+
result = remainingComparators.every((otherComparator) => {
|
|
260
|
+
return testComparator.intersects(otherComparator, options)
|
|
261
|
+
});
|
|
262
|
+
|
|
263
|
+
testComparator = remainingComparators.pop();
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
return result
|
|
267
|
+
};
|
|
268
|
+
|
|
269
|
+
// comprised of xranges, tildes, stars, and gtlt's at this point.
|
|
270
|
+
// already replaced the hyphen ranges
|
|
271
|
+
// turn into a set of JUST comparators.
|
|
272
|
+
const parseComparator = (comp, options) => {
|
|
273
|
+
debug$1('comp', comp, options);
|
|
274
|
+
comp = replaceCarets(comp, options);
|
|
275
|
+
debug$1('caret', comp);
|
|
276
|
+
comp = replaceTildes(comp, options);
|
|
277
|
+
debug$1('tildes', comp);
|
|
278
|
+
comp = replaceXRanges(comp, options);
|
|
279
|
+
debug$1('xrange', comp);
|
|
280
|
+
comp = replaceStars(comp, options);
|
|
281
|
+
debug$1('stars', comp);
|
|
282
|
+
return comp
|
|
283
|
+
};
|
|
284
|
+
|
|
285
|
+
const isX = id => !id || id.toLowerCase() === 'x' || id === '*';
|
|
286
|
+
|
|
287
|
+
// ~, ~> --> * (any, kinda silly)
|
|
288
|
+
// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0-0
|
|
289
|
+
// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0-0
|
|
290
|
+
// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0-0
|
|
291
|
+
// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0-0
|
|
292
|
+
// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0-0
|
|
293
|
+
// ~0.0.1 --> >=0.0.1 <0.1.0-0
|
|
294
|
+
const replaceTildes = (comp, options) => {
|
|
295
|
+
return comp
|
|
296
|
+
.trim()
|
|
297
|
+
.split(/\s+/)
|
|
298
|
+
.map((c) => replaceTilde(c, options))
|
|
299
|
+
.join(' ')
|
|
300
|
+
};
|
|
301
|
+
|
|
302
|
+
const replaceTilde = (comp, options) => {
|
|
303
|
+
const r = options.loose ? re$1[t.TILDELOOSE] : re$1[t.TILDE];
|
|
304
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
305
|
+
debug$1('tilde', comp, _, M, m, p, pr);
|
|
306
|
+
let ret;
|
|
307
|
+
|
|
308
|
+
if (isX(M)) {
|
|
309
|
+
ret = '';
|
|
310
|
+
} else if (isX(m)) {
|
|
311
|
+
ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
|
|
312
|
+
} else if (isX(p)) {
|
|
313
|
+
// ~1.2 == >=1.2.0 <1.3.0-0
|
|
314
|
+
ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
|
|
315
|
+
} else if (pr) {
|
|
316
|
+
debug$1('replaceTilde pr', pr);
|
|
317
|
+
ret = `>=${M}.${m}.${p}-${pr
|
|
318
|
+
} <${M}.${+m + 1}.0-0`;
|
|
319
|
+
} else {
|
|
320
|
+
// ~1.2.3 == >=1.2.3 <1.3.0-0
|
|
321
|
+
ret = `>=${M}.${m}.${p
|
|
322
|
+
} <${M}.${+m + 1}.0-0`;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
debug$1('tilde return', ret);
|
|
326
|
+
return ret
|
|
327
|
+
})
|
|
328
|
+
};
|
|
329
|
+
|
|
330
|
+
// ^ --> * (any, kinda silly)
|
|
331
|
+
// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0-0
|
|
332
|
+
// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0-0
|
|
333
|
+
// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0-0
|
|
334
|
+
// ^1.2.3 --> >=1.2.3 <2.0.0-0
|
|
335
|
+
// ^1.2.0 --> >=1.2.0 <2.0.0-0
|
|
336
|
+
// ^0.0.1 --> >=0.0.1 <0.0.2-0
|
|
337
|
+
// ^0.1.0 --> >=0.1.0 <0.2.0-0
|
|
338
|
+
const replaceCarets = (comp, options) => {
|
|
339
|
+
return comp
|
|
340
|
+
.trim()
|
|
341
|
+
.split(/\s+/)
|
|
342
|
+
.map((c) => replaceCaret(c, options))
|
|
343
|
+
.join(' ')
|
|
344
|
+
};
|
|
345
|
+
|
|
346
|
+
const replaceCaret = (comp, options) => {
|
|
347
|
+
debug$1('caret', comp, options);
|
|
348
|
+
const r = options.loose ? re$1[t.CARETLOOSE] : re$1[t.CARET];
|
|
349
|
+
const z = options.includePrerelease ? '-0' : '';
|
|
350
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
351
|
+
debug$1('caret', comp, _, M, m, p, pr);
|
|
352
|
+
let ret;
|
|
353
|
+
|
|
354
|
+
if (isX(M)) {
|
|
355
|
+
ret = '';
|
|
356
|
+
} else if (isX(m)) {
|
|
357
|
+
ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
|
|
358
|
+
} else if (isX(p)) {
|
|
359
|
+
if (M === '0') {
|
|
360
|
+
ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
|
|
361
|
+
} else {
|
|
362
|
+
ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
|
|
363
|
+
}
|
|
364
|
+
} else if (pr) {
|
|
365
|
+
debug$1('replaceCaret pr', pr);
|
|
366
|
+
if (M === '0') {
|
|
367
|
+
if (m === '0') {
|
|
368
|
+
ret = `>=${M}.${m}.${p}-${pr
|
|
369
|
+
} <${M}.${m}.${+p + 1}-0`;
|
|
370
|
+
} else {
|
|
371
|
+
ret = `>=${M}.${m}.${p}-${pr
|
|
372
|
+
} <${M}.${+m + 1}.0-0`;
|
|
373
|
+
}
|
|
374
|
+
} else {
|
|
375
|
+
ret = `>=${M}.${m}.${p}-${pr
|
|
376
|
+
} <${+M + 1}.0.0-0`;
|
|
377
|
+
}
|
|
378
|
+
} else {
|
|
379
|
+
debug$1('no pr');
|
|
380
|
+
if (M === '0') {
|
|
381
|
+
if (m === '0') {
|
|
382
|
+
ret = `>=${M}.${m}.${p
|
|
383
|
+
}${z} <${M}.${m}.${+p + 1}-0`;
|
|
384
|
+
} else {
|
|
385
|
+
ret = `>=${M}.${m}.${p
|
|
386
|
+
}${z} <${M}.${+m + 1}.0-0`;
|
|
387
|
+
}
|
|
388
|
+
} else {
|
|
389
|
+
ret = `>=${M}.${m}.${p
|
|
390
|
+
} <${+M + 1}.0.0-0`;
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
debug$1('caret return', ret);
|
|
395
|
+
return ret
|
|
396
|
+
})
|
|
397
|
+
};
|
|
398
|
+
|
|
399
|
+
const replaceXRanges = (comp, options) => {
|
|
400
|
+
debug$1('replaceXRanges', comp, options);
|
|
401
|
+
return comp
|
|
402
|
+
.split(/\s+/)
|
|
403
|
+
.map((c) => replaceXRange(c, options))
|
|
404
|
+
.join(' ')
|
|
405
|
+
};
|
|
406
|
+
|
|
407
|
+
const replaceXRange = (comp, options) => {
|
|
408
|
+
comp = comp.trim();
|
|
409
|
+
const r = options.loose ? re$1[t.XRANGELOOSE] : re$1[t.XRANGE];
|
|
410
|
+
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
|
|
411
|
+
debug$1('xRange', comp, ret, gtlt, M, m, p, pr);
|
|
412
|
+
const xM = isX(M);
|
|
413
|
+
const xm = xM || isX(m);
|
|
414
|
+
const xp = xm || isX(p);
|
|
415
|
+
const anyX = xp;
|
|
416
|
+
|
|
417
|
+
if (gtlt === '=' && anyX) {
|
|
418
|
+
gtlt = '';
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
// if we're including prereleases in the match, then we need
|
|
422
|
+
// to fix this to -0, the lowest possible prerelease value
|
|
423
|
+
pr = options.includePrerelease ? '-0' : '';
|
|
424
|
+
|
|
425
|
+
if (xM) {
|
|
426
|
+
if (gtlt === '>' || gtlt === '<') {
|
|
427
|
+
// nothing is allowed
|
|
428
|
+
ret = '<0.0.0-0';
|
|
429
|
+
} else {
|
|
430
|
+
// nothing is forbidden
|
|
431
|
+
ret = '*';
|
|
432
|
+
}
|
|
433
|
+
} else if (gtlt && anyX) {
|
|
434
|
+
// we know patch is an x, because we have any x at all.
|
|
435
|
+
// replace X with 0
|
|
436
|
+
if (xm) {
|
|
437
|
+
m = 0;
|
|
438
|
+
}
|
|
439
|
+
p = 0;
|
|
440
|
+
|
|
441
|
+
if (gtlt === '>') {
|
|
442
|
+
// >1 => >=2.0.0
|
|
443
|
+
// >1.2 => >=1.3.0
|
|
444
|
+
gtlt = '>=';
|
|
445
|
+
if (xm) {
|
|
446
|
+
M = +M + 1;
|
|
447
|
+
m = 0;
|
|
448
|
+
p = 0;
|
|
449
|
+
} else {
|
|
450
|
+
m = +m + 1;
|
|
451
|
+
p = 0;
|
|
452
|
+
}
|
|
453
|
+
} else if (gtlt === '<=') {
|
|
454
|
+
// <=0.7.x is actually <0.8.0, since any 0.7.x should
|
|
455
|
+
// pass. Similarly, <=7.x is actually <8.0.0, etc.
|
|
456
|
+
gtlt = '<';
|
|
457
|
+
if (xm) {
|
|
458
|
+
M = +M + 1;
|
|
459
|
+
} else {
|
|
460
|
+
m = +m + 1;
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
if (gtlt === '<') {
|
|
465
|
+
pr = '-0';
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
ret = `${gtlt + M}.${m}.${p}${pr}`;
|
|
469
|
+
} else if (xm) {
|
|
470
|
+
ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
|
|
471
|
+
} else if (xp) {
|
|
472
|
+
ret = `>=${M}.${m}.0${pr
|
|
473
|
+
} <${M}.${+m + 1}.0-0`;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
debug$1('xRange return', ret);
|
|
477
|
+
|
|
478
|
+
return ret
|
|
479
|
+
})
|
|
480
|
+
};
|
|
481
|
+
|
|
482
|
+
// Because * is AND-ed with everything else in the comparator,
|
|
483
|
+
// and '' means "any version", just remove the *s entirely.
|
|
484
|
+
const replaceStars = (comp, options) => {
|
|
485
|
+
debug$1('replaceStars', comp, options);
|
|
486
|
+
// Looseness is ignored here. star is always as loose as it gets!
|
|
487
|
+
return comp
|
|
488
|
+
.trim()
|
|
489
|
+
.replace(re$1[t.STAR], '')
|
|
490
|
+
};
|
|
491
|
+
|
|
492
|
+
const replaceGTE0 = (comp, options) => {
|
|
493
|
+
debug$1('replaceGTE0', comp, options);
|
|
494
|
+
return comp
|
|
495
|
+
.trim()
|
|
496
|
+
.replace(re$1[options.includePrerelease ? t.GTE0PRE : t.GTE0], '')
|
|
497
|
+
};
|
|
498
|
+
|
|
499
|
+
// This function is passed to string.replace(re[t.HYPHENRANGE])
|
|
500
|
+
// M, m, patch, prerelease, build
|
|
501
|
+
// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5
|
|
502
|
+
// 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do
|
|
503
|
+
// 1.2 - 3.4 => >=1.2.0 <3.5.0-0
|
|
504
|
+
// TODO build?
|
|
505
|
+
const hyphenReplace = incPr => ($0,
|
|
506
|
+
from, fM, fm, fp, fpr, fb,
|
|
507
|
+
to, tM, tm, tp, tpr) => {
|
|
508
|
+
if (isX(fM)) {
|
|
509
|
+
from = '';
|
|
510
|
+
} else if (isX(fm)) {
|
|
511
|
+
from = `>=${fM}.0.0${incPr ? '-0' : ''}`;
|
|
512
|
+
} else if (isX(fp)) {
|
|
513
|
+
from = `>=${fM}.${fm}.0${incPr ? '-0' : ''}`;
|
|
514
|
+
} else if (fpr) {
|
|
515
|
+
from = `>=${from}`;
|
|
516
|
+
} else {
|
|
517
|
+
from = `>=${from}${incPr ? '-0' : ''}`;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
if (isX(tM)) {
|
|
521
|
+
to = '';
|
|
522
|
+
} else if (isX(tm)) {
|
|
523
|
+
to = `<${+tM + 1}.0.0-0`;
|
|
524
|
+
} else if (isX(tp)) {
|
|
525
|
+
to = `<${tM}.${+tm + 1}.0-0`;
|
|
526
|
+
} else if (tpr) {
|
|
527
|
+
to = `<=${tM}.${tm}.${tp}-${tpr}`;
|
|
528
|
+
} else if (incPr) {
|
|
529
|
+
to = `<${tM}.${tm}.${+tp + 1}-0`;
|
|
530
|
+
} else {
|
|
531
|
+
to = `<=${to}`;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
return `${from} ${to}`.trim()
|
|
535
|
+
};
|
|
536
|
+
|
|
537
|
+
const testSet = (set, version, options) => {
|
|
538
|
+
for (let i = 0; i < set.length; i++) {
|
|
539
|
+
if (!set[i].test(version)) {
|
|
540
|
+
return false
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
if (version.prerelease.length && !options.includePrerelease) {
|
|
545
|
+
// Find the set of versions that are allowed to have prereleases
|
|
546
|
+
// For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0
|
|
547
|
+
// That should allow `1.2.3-pr.2` to pass.
|
|
548
|
+
// However, `1.2.4-alpha.notready` should NOT be allowed,
|
|
549
|
+
// even though it's within the range set by the comparators.
|
|
550
|
+
for (let i = 0; i < set.length; i++) {
|
|
551
|
+
debug$1(set[i].semver);
|
|
552
|
+
if (set[i].semver === Comparator.ANY) {
|
|
553
|
+
continue
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
if (set[i].semver.prerelease.length > 0) {
|
|
557
|
+
const allowed = set[i].semver;
|
|
558
|
+
if (allowed.major === version.major &&
|
|
559
|
+
allowed.minor === version.minor &&
|
|
560
|
+
allowed.patch === version.patch) {
|
|
561
|
+
return true
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
// Version has a -pre, but it's not one of the ones we like.
|
|
567
|
+
return false
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
return true
|
|
571
|
+
};
|
|
572
|
+
return range;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
exports.__require = requireRange;
|
|
576
|
+
//# sourceMappingURL=range.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"range.cjs","sources":["../../../../../../../../../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/range.js"],"sourcesContent":["'use strict'\n\nconst SPACE_CHARACTERS = /\\s+/g\n\n// hoisted class for cyclic dependency\nclass Range {\n constructor (range, options) {\n options = parseOptions(options)\n\n if (range instanceof Range) {\n if (\n range.loose === !!options.loose &&\n range.includePrerelease === !!options.includePrerelease\n ) {\n return range\n } else {\n return new Range(range.raw, options)\n }\n }\n\n if (range instanceof Comparator) {\n // just put it in the set and return\n this.raw = range.value\n this.set = [[range]]\n this.formatted = undefined\n return this\n }\n\n this.options = options\n this.loose = !!options.loose\n this.includePrerelease = !!options.includePrerelease\n\n // First reduce all whitespace as much as possible so we do not have to rely\n // on potentially slow regexes like \\s*. This is then stored and used for\n // future error messages as well.\n this.raw = range.trim().replace(SPACE_CHARACTERS, ' ')\n\n // First, split on ||\n this.set = this.raw\n .split('||')\n // map the range to a 2d array of comparators\n .map(r => this.parseRange(r.trim()))\n // throw out any comparator lists that are empty\n // this generally means that it was not a valid range, which is allowed\n // in loose mode, but will still throw if the WHOLE range is invalid.\n .filter(c => c.length)\n\n if (!this.set.length) {\n throw new TypeError(`Invalid SemVer Range: ${this.raw}`)\n }\n\n // if we have any that are not the null set, throw out null sets.\n if (this.set.length > 1) {\n // keep the first one, in case they're all null sets\n const first = this.set[0]\n this.set = this.set.filter(c => !isNullSet(c[0]))\n if (this.set.length === 0) {\n this.set = [first]\n } else if (this.set.length > 1) {\n // if we have any that are *, then the range is just *\n for (const c of this.set) {\n if (c.length === 1 && isAny(c[0])) {\n this.set = [c]\n break\n }\n }\n }\n }\n\n this.formatted = undefined\n }\n\n get range () {\n if (this.formatted === undefined) {\n this.formatted = ''\n for (let i = 0; i < this.set.length; i++) {\n if (i > 0) {\n this.formatted += '||'\n }\n const comps = this.set[i]\n for (let k = 0; k < comps.length; k++) {\n if (k > 0) {\n this.formatted += ' '\n }\n this.formatted += comps[k].toString().trim()\n }\n }\n }\n return this.formatted\n }\n\n format () {\n return this.range\n }\n\n toString () {\n return this.range\n }\n\n parseRange (range) {\n // memoize range parsing for performance.\n // this is a very hot path, and fully deterministic.\n const memoOpts =\n (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) |\n (this.options.loose && FLAG_LOOSE)\n const memoKey = memoOpts + ':' + range\n const cached = cache.get(memoKey)\n if (cached) {\n return cached\n }\n\n const loose = this.options.loose\n // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`\n const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE]\n range = range.replace(hr, hyphenReplace(this.options.includePrerelease))\n debug('hyphen replace', range)\n\n // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`\n range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace)\n debug('comparator trim', range)\n\n // `~ 1.2.3` => `~1.2.3`\n range = range.replace(re[t.TILDETRIM], tildeTrimReplace)\n debug('tilde trim', range)\n\n // `^ 1.2.3` => `^1.2.3`\n range = range.replace(re[t.CARETTRIM], caretTrimReplace)\n debug('caret trim', range)\n\n // At this point, the range is completely trimmed and\n // ready to be split into comparators.\n\n let rangeList = range\n .split(' ')\n .map(comp => parseComparator(comp, this.options))\n .join(' ')\n .split(/\\s+/)\n // >=0.0.0 is equivalent to *\n .map(comp => replaceGTE0(comp, this.options))\n\n if (loose) {\n // in loose mode, throw out any that are not valid comparators\n rangeList = rangeList.filter(comp => {\n debug('loose invalid filter', comp, this.options)\n return !!comp.match(re[t.COMPARATORLOOSE])\n })\n }\n debug('range list', rangeList)\n\n // if any comparators are the null set, then replace with JUST null set\n // if more than one comparator, remove any * comparators\n // also, don't include the same comparator more than once\n const rangeMap = new Map()\n const comparators = rangeList.map(comp => new Comparator(comp, this.options))\n for (const comp of comparators) {\n if (isNullSet(comp)) {\n return [comp]\n }\n rangeMap.set(comp.value, comp)\n }\n if (rangeMap.size > 1 && rangeMap.has('')) {\n rangeMap.delete('')\n }\n\n const result = [...rangeMap.values()]\n cache.set(memoKey, result)\n return result\n }\n\n intersects (range, options) {\n if (!(range instanceof Range)) {\n throw new TypeError('a Range is required')\n }\n\n return this.set.some((thisComparators) => {\n return (\n isSatisfiable(thisComparators, options) &&\n range.set.some((rangeComparators) => {\n return (\n isSatisfiable(rangeComparators, options) &&\n thisComparators.every((thisComparator) => {\n return rangeComparators.every((rangeComparator) => {\n return thisComparator.intersects(rangeComparator, options)\n })\n })\n )\n })\n )\n })\n }\n\n // if ANY of the sets match ALL of its comparators, then pass\n test (version) {\n if (!version) {\n return false\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n for (let i = 0; i < this.set.length; i++) {\n if (testSet(this.set[i], version, this.options)) {\n return true\n }\n }\n return false\n }\n}\n\nmodule.exports = Range\n\nconst LRU = require('../internal/lrucache')\nconst cache = new LRU()\n\nconst parseOptions = require('../internal/parse-options')\nconst Comparator = require('./comparator')\nconst debug = require('../internal/debug')\nconst SemVer = require('./semver')\nconst {\n safeRe: re,\n t,\n comparatorTrimReplace,\n tildeTrimReplace,\n caretTrimReplace,\n} = require('../internal/re')\nconst { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require('../internal/constants')\n\nconst isNullSet = c => c.value === '<0.0.0-0'\nconst isAny = c => c.value === ''\n\n// take a set of comparators and determine whether there\n// exists a version which can satisfy it\nconst isSatisfiable = (comparators, options) => {\n let result = true\n const remainingComparators = comparators.slice()\n let testComparator = remainingComparators.pop()\n\n while (result && remainingComparators.length) {\n result = remainingComparators.every((otherComparator) => {\n return testComparator.intersects(otherComparator, options)\n })\n\n testComparator = remainingComparators.pop()\n }\n\n return result\n}\n\n// comprised of xranges, tildes, stars, and gtlt's at this point.\n// already replaced the hyphen ranges\n// turn into a set of JUST comparators.\nconst parseComparator = (comp, options) => {\n debug('comp', comp, options)\n comp = replaceCarets(comp, options)\n debug('caret', comp)\n comp = replaceTildes(comp, options)\n debug('tildes', comp)\n comp = replaceXRanges(comp, options)\n debug('xrange', comp)\n comp = replaceStars(comp, options)\n debug('stars', comp)\n return comp\n}\n\nconst isX = id => !id || id.toLowerCase() === 'x' || id === '*'\n\n// ~, ~> --> * (any, kinda silly)\n// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0-0\n// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0-0\n// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0-0\n// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0-0\n// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0-0\n// ~0.0.1 --> >=0.0.1 <0.1.0-0\nconst replaceTildes = (comp, options) => {\n return comp\n .trim()\n .split(/\\s+/)\n .map((c) => replaceTilde(c, options))\n .join(' ')\n}\n\nconst replaceTilde = (comp, options) => {\n const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE]\n return comp.replace(r, (_, M, m, p, pr) => {\n debug('tilde', comp, _, M, m, p, pr)\n let ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = `>=${M}.0.0 <${+M + 1}.0.0-0`\n } else if (isX(p)) {\n // ~1.2 == >=1.2.0 <1.3.0-0\n ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`\n } else if (pr) {\n debug('replaceTilde pr', pr)\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${+m + 1}.0-0`\n } else {\n // ~1.2.3 == >=1.2.3 <1.3.0-0\n ret = `>=${M}.${m}.${p\n } <${M}.${+m + 1}.0-0`\n }\n\n debug('tilde return', ret)\n return ret\n })\n}\n\n// ^ --> * (any, kinda silly)\n// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0-0\n// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0-0\n// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0-0\n// ^1.2.3 --> >=1.2.3 <2.0.0-0\n// ^1.2.0 --> >=1.2.0 <2.0.0-0\n// ^0.0.1 --> >=0.0.1 <0.0.2-0\n// ^0.1.0 --> >=0.1.0 <0.2.0-0\nconst replaceCarets = (comp, options) => {\n return comp\n .trim()\n .split(/\\s+/)\n .map((c) => replaceCaret(c, options))\n .join(' ')\n}\n\nconst replaceCaret = (comp, options) => {\n debug('caret', comp, options)\n const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET]\n const z = options.includePrerelease ? '-0' : ''\n return comp.replace(r, (_, M, m, p, pr) => {\n debug('caret', comp, _, M, m, p, pr)\n let ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`\n } else if (isX(p)) {\n if (M === '0') {\n ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`\n } else {\n ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`\n }\n } else if (pr) {\n debug('replaceCaret pr', pr)\n if (M === '0') {\n if (m === '0') {\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${m}.${+p + 1}-0`\n } else {\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${+m + 1}.0-0`\n }\n } else {\n ret = `>=${M}.${m}.${p}-${pr\n } <${+M + 1}.0.0-0`\n }\n } else {\n debug('no pr')\n if (M === '0') {\n if (m === '0') {\n ret = `>=${M}.${m}.${p\n }${z} <${M}.${m}.${+p + 1}-0`\n } else {\n ret = `>=${M}.${m}.${p\n }${z} <${M}.${+m + 1}.0-0`\n }\n } else {\n ret = `>=${M}.${m}.${p\n } <${+M + 1}.0.0-0`\n }\n }\n\n debug('caret return', ret)\n return ret\n })\n}\n\nconst replaceXRanges = (comp, options) => {\n debug('replaceXRanges', comp, options)\n return comp\n .split(/\\s+/)\n .map((c) => replaceXRange(c, options))\n .join(' ')\n}\n\nconst replaceXRange = (comp, options) => {\n comp = comp.trim()\n const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE]\n return comp.replace(r, (ret, gtlt, M, m, p, pr) => {\n debug('xRange', comp, ret, gtlt, M, m, p, pr)\n const xM = isX(M)\n const xm = xM || isX(m)\n const xp = xm || isX(p)\n const anyX = xp\n\n if (gtlt === '=' && anyX) {\n gtlt = ''\n }\n\n // if we're including prereleases in the match, then we need\n // to fix this to -0, the lowest possible prerelease value\n pr = options.includePrerelease ? '-0' : ''\n\n if (xM) {\n if (gtlt === '>' || gtlt === '<') {\n // nothing is allowed\n ret = '<0.0.0-0'\n } else {\n // nothing is forbidden\n ret = '*'\n }\n } else if (gtlt && anyX) {\n // we know patch is an x, because we have any x at all.\n // replace X with 0\n if (xm) {\n m = 0\n }\n p = 0\n\n if (gtlt === '>') {\n // >1 => >=2.0.0\n // >1.2 => >=1.3.0\n gtlt = '>='\n if (xm) {\n M = +M + 1\n m = 0\n p = 0\n } else {\n m = +m + 1\n p = 0\n }\n } else if (gtlt === '<=') {\n // <=0.7.x is actually <0.8.0, since any 0.7.x should\n // pass. Similarly, <=7.x is actually <8.0.0, etc.\n gtlt = '<'\n if (xm) {\n M = +M + 1\n } else {\n m = +m + 1\n }\n }\n\n if (gtlt === '<') {\n pr = '-0'\n }\n\n ret = `${gtlt + M}.${m}.${p}${pr}`\n } else if (xm) {\n ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`\n } else if (xp) {\n ret = `>=${M}.${m}.0${pr\n } <${M}.${+m + 1}.0-0`\n }\n\n debug('xRange return', ret)\n\n return ret\n })\n}\n\n// Because * is AND-ed with everything else in the comparator,\n// and '' means \"any version\", just remove the *s entirely.\nconst replaceStars = (comp, options) => {\n debug('replaceStars', comp, options)\n // Looseness is ignored here. star is always as loose as it gets!\n return comp\n .trim()\n .replace(re[t.STAR], '')\n}\n\nconst replaceGTE0 = (comp, options) => {\n debug('replaceGTE0', comp, options)\n return comp\n .trim()\n .replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], '')\n}\n\n// This function is passed to string.replace(re[t.HYPHENRANGE])\n// M, m, patch, prerelease, build\n// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5\n// 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do\n// 1.2 - 3.4 => >=1.2.0 <3.5.0-0\n// TODO build?\nconst hyphenReplace = incPr => ($0,\n from, fM, fm, fp, fpr, fb,\n to, tM, tm, tp, tpr) => {\n if (isX(fM)) {\n from = ''\n } else if (isX(fm)) {\n from = `>=${fM}.0.0${incPr ? '-0' : ''}`\n } else if (isX(fp)) {\n from = `>=${fM}.${fm}.0${incPr ? '-0' : ''}`\n } else if (fpr) {\n from = `>=${from}`\n } else {\n from = `>=${from}${incPr ? '-0' : ''}`\n }\n\n if (isX(tM)) {\n to = ''\n } else if (isX(tm)) {\n to = `<${+tM + 1}.0.0-0`\n } else if (isX(tp)) {\n to = `<${tM}.${+tm + 1}.0-0`\n } else if (tpr) {\n to = `<=${tM}.${tm}.${tp}-${tpr}`\n } else if (incPr) {\n to = `<${tM}.${tm}.${+tp + 1}-0`\n } else {\n to = `<=${to}`\n }\n\n return `${from} ${to}`.trim()\n}\n\nconst testSet = (set, version, options) => {\n for (let i = 0; i < set.length; i++) {\n if (!set[i].test(version)) {\n return false\n }\n }\n\n if (version.prerelease.length && !options.includePrerelease) {\n // Find the set of versions that are allowed to have prereleases\n // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0\n // That should allow `1.2.3-pr.2` to pass.\n // However, `1.2.4-alpha.notready` should NOT be allowed,\n // even though it's within the range set by the comparators.\n for (let i = 0; i < set.length; i++) {\n debug(set[i].semver)\n if (set[i].semver === Comparator.ANY) {\n continue\n }\n\n if (set[i].semver.prerelease.length > 0) {\n const allowed = set[i].semver\n if (allowed.major === version.major &&\n allowed.minor === version.minor &&\n allowed.patch === version.patch) {\n return true\n }\n }\n }\n\n // Version has a -pre, but it's not one of the ones we like.\n return false\n }\n\n return true\n}\n"],"names":["parseOptions","re","debug","require$$0","require$$1","require$$2","require$$3","require$$4","require$$5","require$$6"],"mappings":";;;;;;;;;;;;;;;;;AAEA,CAAA,MAAM,gBAAgB,GAAG;;AAEzB;AACA,CAAA,MAAM,KAAK,CAAC;AACZ,GAAE,WAAW,CAAC,CAAC,KAAK,EAAE,OAAO,EAAE;AAC/B,KAAI,OAAO,GAAGA,cAAY,CAAC,OAAO;;AAElC,KAAI,IAAI,KAAK,YAAY,KAAK,EAAE;OAC1B;SACE,KAAK,CAAC,KAAK,KAAK,CAAC,CAA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