@milaboratories/pl-middle-layer 1.43.83 → 1.43.85
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 +13 -13
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
import { __require as requireDebug } from '../internal/debug.js';
|
|
2
|
+
import { __require as requireConstants } from '../internal/constants.js';
|
|
3
|
+
import { __require as requireRe } from '../internal/re.js';
|
|
4
|
+
import { __require as requireParseOptions } from '../internal/parse-options.js';
|
|
5
|
+
import { __require as requireIdentifiers } from '../internal/identifiers.js';
|
|
6
|
+
|
|
7
|
+
var semver;
|
|
8
|
+
var hasRequiredSemver;
|
|
9
|
+
|
|
10
|
+
function requireSemver () {
|
|
11
|
+
if (hasRequiredSemver) return semver;
|
|
12
|
+
hasRequiredSemver = 1;
|
|
13
|
+
|
|
14
|
+
const debug = requireDebug();
|
|
15
|
+
const { MAX_LENGTH, MAX_SAFE_INTEGER } = requireConstants();
|
|
16
|
+
const { safeRe: re, t } = requireRe();
|
|
17
|
+
|
|
18
|
+
const parseOptions = requireParseOptions();
|
|
19
|
+
const { compareIdentifiers } = requireIdentifiers();
|
|
20
|
+
class SemVer {
|
|
21
|
+
constructor (version, options) {
|
|
22
|
+
options = parseOptions(options);
|
|
23
|
+
|
|
24
|
+
if (version instanceof SemVer) {
|
|
25
|
+
if (version.loose === !!options.loose &&
|
|
26
|
+
version.includePrerelease === !!options.includePrerelease) {
|
|
27
|
+
return version
|
|
28
|
+
} else {
|
|
29
|
+
version = version.version;
|
|
30
|
+
}
|
|
31
|
+
} else if (typeof version !== 'string') {
|
|
32
|
+
throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`)
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
if (version.length > MAX_LENGTH) {
|
|
36
|
+
throw new TypeError(
|
|
37
|
+
`version is longer than ${MAX_LENGTH} characters`
|
|
38
|
+
)
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
debug('SemVer', version, options);
|
|
42
|
+
this.options = options;
|
|
43
|
+
this.loose = !!options.loose;
|
|
44
|
+
// this isn't actually relevant for versions, but keep it so that we
|
|
45
|
+
// don't run into trouble passing this.options around.
|
|
46
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
47
|
+
|
|
48
|
+
const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
|
|
49
|
+
|
|
50
|
+
if (!m) {
|
|
51
|
+
throw new TypeError(`Invalid Version: ${version}`)
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
this.raw = version;
|
|
55
|
+
|
|
56
|
+
// these are actually numbers
|
|
57
|
+
this.major = +m[1];
|
|
58
|
+
this.minor = +m[2];
|
|
59
|
+
this.patch = +m[3];
|
|
60
|
+
|
|
61
|
+
if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
|
|
62
|
+
throw new TypeError('Invalid major version')
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
|
|
66
|
+
throw new TypeError('Invalid minor version')
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
|
|
70
|
+
throw new TypeError('Invalid patch version')
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// numberify any prerelease numeric ids
|
|
74
|
+
if (!m[4]) {
|
|
75
|
+
this.prerelease = [];
|
|
76
|
+
} else {
|
|
77
|
+
this.prerelease = m[4].split('.').map((id) => {
|
|
78
|
+
if (/^[0-9]+$/.test(id)) {
|
|
79
|
+
const num = +id;
|
|
80
|
+
if (num >= 0 && num < MAX_SAFE_INTEGER) {
|
|
81
|
+
return num
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return id
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
this.build = m[5] ? m[5].split('.') : [];
|
|
89
|
+
this.format();
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
format () {
|
|
93
|
+
this.version = `${this.major}.${this.minor}.${this.patch}`;
|
|
94
|
+
if (this.prerelease.length) {
|
|
95
|
+
this.version += `-${this.prerelease.join('.')}`;
|
|
96
|
+
}
|
|
97
|
+
return this.version
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
toString () {
|
|
101
|
+
return this.version
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
compare (other) {
|
|
105
|
+
debug('SemVer.compare', this.version, this.options, other);
|
|
106
|
+
if (!(other instanceof SemVer)) {
|
|
107
|
+
if (typeof other === 'string' && other === this.version) {
|
|
108
|
+
return 0
|
|
109
|
+
}
|
|
110
|
+
other = new SemVer(other, this.options);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
if (other.version === this.version) {
|
|
114
|
+
return 0
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
return this.compareMain(other) || this.comparePre(other)
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
compareMain (other) {
|
|
121
|
+
if (!(other instanceof SemVer)) {
|
|
122
|
+
other = new SemVer(other, this.options);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
return (
|
|
126
|
+
compareIdentifiers(this.major, other.major) ||
|
|
127
|
+
compareIdentifiers(this.minor, other.minor) ||
|
|
128
|
+
compareIdentifiers(this.patch, other.patch)
|
|
129
|
+
)
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
comparePre (other) {
|
|
133
|
+
if (!(other instanceof SemVer)) {
|
|
134
|
+
other = new SemVer(other, this.options);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
// NOT having a prerelease is > having one
|
|
138
|
+
if (this.prerelease.length && !other.prerelease.length) {
|
|
139
|
+
return -1
|
|
140
|
+
} else if (!this.prerelease.length && other.prerelease.length) {
|
|
141
|
+
return 1
|
|
142
|
+
} else if (!this.prerelease.length && !other.prerelease.length) {
|
|
143
|
+
return 0
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
let i = 0;
|
|
147
|
+
do {
|
|
148
|
+
const a = this.prerelease[i];
|
|
149
|
+
const b = other.prerelease[i];
|
|
150
|
+
debug('prerelease compare', i, a, b);
|
|
151
|
+
if (a === undefined && b === undefined) {
|
|
152
|
+
return 0
|
|
153
|
+
} else if (b === undefined) {
|
|
154
|
+
return 1
|
|
155
|
+
} else if (a === undefined) {
|
|
156
|
+
return -1
|
|
157
|
+
} else if (a === b) {
|
|
158
|
+
continue
|
|
159
|
+
} else {
|
|
160
|
+
return compareIdentifiers(a, b)
|
|
161
|
+
}
|
|
162
|
+
} while (++i)
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
compareBuild (other) {
|
|
166
|
+
if (!(other instanceof SemVer)) {
|
|
167
|
+
other = new SemVer(other, this.options);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
let i = 0;
|
|
171
|
+
do {
|
|
172
|
+
const a = this.build[i];
|
|
173
|
+
const b = other.build[i];
|
|
174
|
+
debug('build compare', i, a, b);
|
|
175
|
+
if (a === undefined && b === undefined) {
|
|
176
|
+
return 0
|
|
177
|
+
} else if (b === undefined) {
|
|
178
|
+
return 1
|
|
179
|
+
} else if (a === undefined) {
|
|
180
|
+
return -1
|
|
181
|
+
} else if (a === b) {
|
|
182
|
+
continue
|
|
183
|
+
} else {
|
|
184
|
+
return compareIdentifiers(a, b)
|
|
185
|
+
}
|
|
186
|
+
} while (++i)
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
// preminor will bump the version up to the next minor release, and immediately
|
|
190
|
+
// down to pre-release. premajor and prepatch work the same way.
|
|
191
|
+
inc (release, identifier, identifierBase) {
|
|
192
|
+
if (release.startsWith('pre')) {
|
|
193
|
+
if (!identifier && identifierBase === false) {
|
|
194
|
+
throw new Error('invalid increment argument: identifier is empty')
|
|
195
|
+
}
|
|
196
|
+
// Avoid an invalid semver results
|
|
197
|
+
if (identifier) {
|
|
198
|
+
const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
|
|
199
|
+
if (!match || match[1] !== identifier) {
|
|
200
|
+
throw new Error(`invalid identifier: ${identifier}`)
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
switch (release) {
|
|
206
|
+
case 'premajor':
|
|
207
|
+
this.prerelease.length = 0;
|
|
208
|
+
this.patch = 0;
|
|
209
|
+
this.minor = 0;
|
|
210
|
+
this.major++;
|
|
211
|
+
this.inc('pre', identifier, identifierBase);
|
|
212
|
+
break
|
|
213
|
+
case 'preminor':
|
|
214
|
+
this.prerelease.length = 0;
|
|
215
|
+
this.patch = 0;
|
|
216
|
+
this.minor++;
|
|
217
|
+
this.inc('pre', identifier, identifierBase);
|
|
218
|
+
break
|
|
219
|
+
case 'prepatch':
|
|
220
|
+
// If this is already a prerelease, it will bump to the next version
|
|
221
|
+
// drop any prereleases that might already exist, since they are not
|
|
222
|
+
// relevant at this point.
|
|
223
|
+
this.prerelease.length = 0;
|
|
224
|
+
this.inc('patch', identifier, identifierBase);
|
|
225
|
+
this.inc('pre', identifier, identifierBase);
|
|
226
|
+
break
|
|
227
|
+
// If the input is a non-prerelease version, this acts the same as
|
|
228
|
+
// prepatch.
|
|
229
|
+
case 'prerelease':
|
|
230
|
+
if (this.prerelease.length === 0) {
|
|
231
|
+
this.inc('patch', identifier, identifierBase);
|
|
232
|
+
}
|
|
233
|
+
this.inc('pre', identifier, identifierBase);
|
|
234
|
+
break
|
|
235
|
+
case 'release':
|
|
236
|
+
if (this.prerelease.length === 0) {
|
|
237
|
+
throw new Error(`version ${this.raw} is not a prerelease`)
|
|
238
|
+
}
|
|
239
|
+
this.prerelease.length = 0;
|
|
240
|
+
break
|
|
241
|
+
|
|
242
|
+
case 'major':
|
|
243
|
+
// If this is a pre-major version, bump up to the same major version.
|
|
244
|
+
// Otherwise increment major.
|
|
245
|
+
// 1.0.0-5 bumps to 1.0.0
|
|
246
|
+
// 1.1.0 bumps to 2.0.0
|
|
247
|
+
if (
|
|
248
|
+
this.minor !== 0 ||
|
|
249
|
+
this.patch !== 0 ||
|
|
250
|
+
this.prerelease.length === 0
|
|
251
|
+
) {
|
|
252
|
+
this.major++;
|
|
253
|
+
}
|
|
254
|
+
this.minor = 0;
|
|
255
|
+
this.patch = 0;
|
|
256
|
+
this.prerelease = [];
|
|
257
|
+
break
|
|
258
|
+
case 'minor':
|
|
259
|
+
// If this is a pre-minor version, bump up to the same minor version.
|
|
260
|
+
// Otherwise increment minor.
|
|
261
|
+
// 1.2.0-5 bumps to 1.2.0
|
|
262
|
+
// 1.2.1 bumps to 1.3.0
|
|
263
|
+
if (this.patch !== 0 || this.prerelease.length === 0) {
|
|
264
|
+
this.minor++;
|
|
265
|
+
}
|
|
266
|
+
this.patch = 0;
|
|
267
|
+
this.prerelease = [];
|
|
268
|
+
break
|
|
269
|
+
case 'patch':
|
|
270
|
+
// If this is not a pre-release version, it will increment the patch.
|
|
271
|
+
// If it is a pre-release it will bump up to the same patch version.
|
|
272
|
+
// 1.2.0-5 patches to 1.2.0
|
|
273
|
+
// 1.2.0 patches to 1.2.1
|
|
274
|
+
if (this.prerelease.length === 0) {
|
|
275
|
+
this.patch++;
|
|
276
|
+
}
|
|
277
|
+
this.prerelease = [];
|
|
278
|
+
break
|
|
279
|
+
// This probably shouldn't be used publicly.
|
|
280
|
+
// 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
|
|
281
|
+
case 'pre': {
|
|
282
|
+
const base = Number(identifierBase) ? 1 : 0;
|
|
283
|
+
|
|
284
|
+
if (this.prerelease.length === 0) {
|
|
285
|
+
this.prerelease = [base];
|
|
286
|
+
} else {
|
|
287
|
+
let i = this.prerelease.length;
|
|
288
|
+
while (--i >= 0) {
|
|
289
|
+
if (typeof this.prerelease[i] === 'number') {
|
|
290
|
+
this.prerelease[i]++;
|
|
291
|
+
i = -2;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
if (i === -1) {
|
|
295
|
+
// didn't increment anything
|
|
296
|
+
if (identifier === this.prerelease.join('.') && identifierBase === false) {
|
|
297
|
+
throw new Error('invalid increment argument: identifier already exists')
|
|
298
|
+
}
|
|
299
|
+
this.prerelease.push(base);
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
if (identifier) {
|
|
303
|
+
// 1.2.0-beta.1 bumps to 1.2.0-beta.2,
|
|
304
|
+
// 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0
|
|
305
|
+
let prerelease = [identifier, base];
|
|
306
|
+
if (identifierBase === false) {
|
|
307
|
+
prerelease = [identifier];
|
|
308
|
+
}
|
|
309
|
+
if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
|
|
310
|
+
if (isNaN(this.prerelease[1])) {
|
|
311
|
+
this.prerelease = prerelease;
|
|
312
|
+
}
|
|
313
|
+
} else {
|
|
314
|
+
this.prerelease = prerelease;
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
break
|
|
318
|
+
}
|
|
319
|
+
default:
|
|
320
|
+
throw new Error(`invalid increment argument: ${release}`)
|
|
321
|
+
}
|
|
322
|
+
this.raw = this.format();
|
|
323
|
+
if (this.build.length) {
|
|
324
|
+
this.raw += `+${this.build.join('.')}`;
|
|
325
|
+
}
|
|
326
|
+
return this
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
semver = SemVer;
|
|
331
|
+
return semver;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
export { requireSemver as __require };
|
|
335
|
+
//# sourceMappingURL=semver.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"semver.js","sources":["../../../../../../../../../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/semver.js"],"sourcesContent":["'use strict'\n\nconst debug = require('../internal/debug')\nconst { MAX_LENGTH, MAX_SAFE_INTEGER } = require('../internal/constants')\nconst { safeRe: re, t } = require('../internal/re')\n\nconst parseOptions = require('../internal/parse-options')\nconst { compareIdentifiers } = require('../internal/identifiers')\nclass SemVer {\n constructor (version, options) {\n options = parseOptions(options)\n\n if (version instanceof SemVer) {\n if (version.loose === !!options.loose &&\n version.includePrerelease === !!options.includePrerelease) {\n return version\n } else {\n version = version.version\n }\n } else if (typeof version !== 'string') {\n throw new TypeError(`Invalid version. Must be a string. Got type \"${typeof version}\".`)\n }\n\n if (version.length > MAX_LENGTH) {\n throw new TypeError(\n `version is longer than ${MAX_LENGTH} characters`\n )\n }\n\n debug('SemVer', version, options)\n this.options = options\n this.loose = !!options.loose\n // this isn't actually relevant for versions, but keep it so that we\n // don't run into trouble passing this.options around.\n this.includePrerelease = !!options.includePrerelease\n\n const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL])\n\n if (!m) {\n throw new TypeError(`Invalid Version: ${version}`)\n }\n\n this.raw = version\n\n // these are actually numbers\n this.major = +m[1]\n this.minor = +m[2]\n this.patch = +m[3]\n\n if (this.major > MAX_SAFE_INTEGER || this.major < 0) {\n throw new TypeError('Invalid major version')\n }\n\n if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {\n throw new TypeError('Invalid minor version')\n }\n\n if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {\n throw new TypeError('Invalid patch version')\n }\n\n // numberify any prerelease numeric ids\n if (!m[4]) {\n this.prerelease = []\n } else {\n this.prerelease = m[4].split('.').map((id) => {\n if (/^[0-9]+$/.test(id)) {\n const num = +id\n if (num >= 0 && num < MAX_SAFE_INTEGER) {\n return num\n }\n }\n return id\n })\n }\n\n this.build = m[5] ? m[5].split('.') : []\n this.format()\n }\n\n format () {\n this.version = `${this.major}.${this.minor}.${this.patch}`\n if (this.prerelease.length) {\n this.version += `-${this.prerelease.join('.')}`\n }\n return this.version\n }\n\n toString () {\n return this.version\n }\n\n compare (other) {\n debug('SemVer.compare', this.version, this.options, other)\n if (!(other instanceof SemVer)) {\n if (typeof other === 'string' && other === this.version) {\n return 0\n }\n other = new SemVer(other, this.options)\n }\n\n if (other.version === this.version) {\n return 0\n }\n\n return this.compareMain(other) || this.comparePre(other)\n }\n\n compareMain (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n return (\n compareIdentifiers(this.major, other.major) ||\n compareIdentifiers(this.minor, other.minor) ||\n compareIdentifiers(this.patch, other.patch)\n )\n }\n\n comparePre (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n // NOT having a prerelease is > having one\n if (this.prerelease.length && !other.prerelease.length) {\n return -1\n } else if (!this.prerelease.length && other.prerelease.length) {\n return 1\n } else if (!this.prerelease.length && !other.prerelease.length) {\n return 0\n }\n\n let i = 0\n do {\n const a = this.prerelease[i]\n const b = other.prerelease[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n compareBuild (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n let i = 0\n do {\n const a = this.build[i]\n const b = other.build[i]\n debug('build compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n // preminor will bump the version up to the next minor release, and immediately\n // down to pre-release. premajor and prepatch work the same way.\n inc (release, identifier, identifierBase) {\n if (release.startsWith('pre')) {\n if (!identifier && identifierBase === false) {\n throw new Error('invalid increment argument: identifier is empty')\n }\n // Avoid an invalid semver results\n if (identifier) {\n const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE])\n if (!match || match[1] !== identifier) {\n throw new Error(`invalid identifier: ${identifier}`)\n }\n }\n }\n\n switch (release) {\n case 'premajor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor = 0\n this.major++\n this.inc('pre', identifier, identifierBase)\n break\n case 'preminor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor++\n this.inc('pre', identifier, identifierBase)\n break\n case 'prepatch':\n // If this is already a prerelease, it will bump to the next version\n // drop any prereleases that might already exist, since they are not\n // relevant at this point.\n this.prerelease.length = 0\n this.inc('patch', identifier, identifierBase)\n this.inc('pre', identifier, identifierBase)\n break\n // If the input is a non-prerelease version, this acts the same as\n // prepatch.\n case 'prerelease':\n if (this.prerelease.length === 0) {\n this.inc('patch', identifier, identifierBase)\n }\n this.inc('pre', identifier, identifierBase)\n break\n case 'release':\n if (this.prerelease.length === 0) {\n throw new Error(`version ${this.raw} is not a prerelease`)\n }\n this.prerelease.length = 0\n break\n\n case 'major':\n // If this is a pre-major version, bump up to the same major version.\n // Otherwise increment major.\n // 1.0.0-5 bumps to 1.0.0\n // 1.1.0 bumps to 2.0.0\n if (\n this.minor !== 0 ||\n this.patch !== 0 ||\n this.prerelease.length === 0\n ) {\n this.major++\n }\n this.minor = 0\n this.patch = 0\n this.prerelease = []\n break\n case 'minor':\n // If this is a pre-minor version, bump up to the same minor version.\n // Otherwise increment minor.\n // 1.2.0-5 bumps to 1.2.0\n // 1.2.1 bumps to 1.3.0\n if (this.patch !== 0 || this.prerelease.length === 0) {\n this.minor++\n }\n this.patch = 0\n this.prerelease = []\n break\n case 'patch':\n // If this is not a pre-release version, it will increment the patch.\n // If it is a pre-release it will bump up to the same patch version.\n // 1.2.0-5 patches to 1.2.0\n // 1.2.0 patches to 1.2.1\n if (this.prerelease.length === 0) {\n this.patch++\n }\n this.prerelease = []\n break\n // This probably shouldn't be used publicly.\n // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.\n case 'pre': {\n const base = Number(identifierBase) ? 1 : 0\n\n if (this.prerelease.length === 0) {\n this.prerelease = [base]\n } else {\n let i = this.prerelease.length\n while (--i >= 0) {\n if (typeof this.prerelease[i] === 'number') {\n this.prerelease[i]++\n i = -2\n }\n }\n if (i === -1) {\n // didn't increment anything\n if (identifier === this.prerelease.join('.') && identifierBase === false) {\n throw new Error('invalid increment argument: identifier already exists')\n }\n this.prerelease.push(base)\n }\n }\n if (identifier) {\n // 1.2.0-beta.1 bumps to 1.2.0-beta.2,\n // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0\n let prerelease = [identifier, base]\n if (identifierBase === false) {\n prerelease = [identifier]\n }\n if (compareIdentifiers(this.prerelease[0], identifier) === 0) {\n if (isNaN(this.prerelease[1])) {\n this.prerelease = prerelease\n }\n } else {\n this.prerelease = prerelease\n }\n }\n break\n }\n default:\n throw new Error(`invalid increment argument: ${release}`)\n }\n this.raw = this.format()\n if (this.build.length) {\n this.raw += `+${this.build.join('.')}`\n }\n return this\n }\n}\n\nmodule.exports = SemVer\n"],"names":["require$$0","require$$1","require$$2","require$$3","require$$4"],"mappings":";;;;;;;;;;;;;AAEA,CAAA,MAAM,KAAK,GAAGA,YAAA;AACd,CAAA,MAAM,EAAE,UAAU,EAAE,gBAAgB,EAAE,GAAGC,gBAAA;AACzC,CAAA,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,EAAE,GAAGC,SAAA;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4BAA4B,EAAE,OAAO,CAAC,CAAC;AAChE;AACA,KAAI,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,MAAM;AAC1B,KAAI,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE;AAC3B,OAAM,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC3C,KAAA;AACA,KAAI,OAAO;AACX,GAAA;AACA;;AAEA,CAAA,MAAc,GAAG;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var parse = require('./parse.cjs');
|
|
4
|
+
|
|
5
|
+
var clean_1;
|
|
6
|
+
var hasRequiredClean;
|
|
7
|
+
|
|
8
|
+
function requireClean () {
|
|
9
|
+
if (hasRequiredClean) return clean_1;
|
|
10
|
+
hasRequiredClean = 1;
|
|
11
|
+
|
|
12
|
+
const parse$1 = parse.__require();
|
|
13
|
+
const clean = (version, options) => {
|
|
14
|
+
const s = parse$1(version.trim().replace(/^[=v]+/, ''), options);
|
|
15
|
+
return s ? s.version : null
|
|
16
|
+
};
|
|
17
|
+
clean_1 = clean;
|
|
18
|
+
return clean_1;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
exports.__require = requireClean;
|
|
22
|
+
//# sourceMappingURL=clean.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clean.cjs","sources":["../../../../../../../../../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/clean.js"],"sourcesContent":["'use strict'\n\nconst parse = require('./parse')\nconst clean = (version, options) => {\n const s = parse(version.trim().replace(/^[=v]+/, ''), options)\n return s ? s.version : null\n}\nmodule.exports = clean\n"],"names":["parse","require$$0"],"mappings":";;;;;;;;;;;AAEA,CAAA,MAAMA,OAAK,GAAGC,eAAA;AACd,CAAA,MAAM,KAAK,GAAG,CAAC,OAAO,EAAE,OAAO,KAAK;AACpC,GAAE,MAAM,CAAC,GAAGD,OAAK,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,EAAE,OAAO;AAC/D,GAAE,OAAO,CAAC,GAAG,CAAC,CAAC,OAAO,GAAG;AACzB,CAAA;AACA,CAAA,OAAc,GAAG;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { __require as requireParse } from './parse.js';
|
|
2
|
+
|
|
3
|
+
var clean_1;
|
|
4
|
+
var hasRequiredClean;
|
|
5
|
+
|
|
6
|
+
function requireClean () {
|
|
7
|
+
if (hasRequiredClean) return clean_1;
|
|
8
|
+
hasRequiredClean = 1;
|
|
9
|
+
|
|
10
|
+
const parse = requireParse();
|
|
11
|
+
const clean = (version, options) => {
|
|
12
|
+
const s = parse(version.trim().replace(/^[=v]+/, ''), options);
|
|
13
|
+
return s ? s.version : null
|
|
14
|
+
};
|
|
15
|
+
clean_1 = clean;
|
|
16
|
+
return clean_1;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { requireClean as __require };
|
|
20
|
+
//# sourceMappingURL=clean.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clean.js","sources":["../../../../../../../../../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/clean.js"],"sourcesContent":["'use strict'\n\nconst parse = require('./parse')\nconst clean = (version, options) => {\n const s = parse(version.trim().replace(/^[=v]+/, ''), options)\n return s ? s.version : null\n}\nmodule.exports = clean\n"],"names":["require$$0"],"mappings":";;;;;;;;;AAEA,CAAA,MAAM,KAAK,GAAGA,YAAA;AACd,CAAA,MAAM,KAAK,GAAG,CAAC,OAAO,EAAE,OAAO,KAAK;AACpC,GAAE,MAAM,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,EAAE,OAAO;AAC/D,GAAE,OAAO,CAAC,GAAG,CAAC,CAAC,OAAO,GAAG;AACzB,CAAA;AACA,CAAA,OAAc,GAAG;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var eq = require('./eq.cjs');
|
|
4
|
+
var neq = require('./neq.cjs');
|
|
5
|
+
var gt = require('./gt.cjs');
|
|
6
|
+
var gte = require('./gte.cjs');
|
|
7
|
+
var lt = require('./lt.cjs');
|
|
8
|
+
var lte = require('./lte.cjs');
|
|
9
|
+
|
|
10
|
+
var cmp_1;
|
|
11
|
+
var hasRequiredCmp;
|
|
12
|
+
|
|
13
|
+
function requireCmp () {
|
|
14
|
+
if (hasRequiredCmp) return cmp_1;
|
|
15
|
+
hasRequiredCmp = 1;
|
|
16
|
+
|
|
17
|
+
const eq$1 = eq.__require();
|
|
18
|
+
const neq$1 = neq.__require();
|
|
19
|
+
const gt$1 = gt.__require();
|
|
20
|
+
const gte$1 = gte.__require();
|
|
21
|
+
const lt$1 = lt.__require();
|
|
22
|
+
const lte$1 = lte.__require();
|
|
23
|
+
|
|
24
|
+
const cmp = (a, op, b, loose) => {
|
|
25
|
+
switch (op) {
|
|
26
|
+
case '===':
|
|
27
|
+
if (typeof a === 'object') {
|
|
28
|
+
a = a.version;
|
|
29
|
+
}
|
|
30
|
+
if (typeof b === 'object') {
|
|
31
|
+
b = b.version;
|
|
32
|
+
}
|
|
33
|
+
return a === b
|
|
34
|
+
|
|
35
|
+
case '!==':
|
|
36
|
+
if (typeof a === 'object') {
|
|
37
|
+
a = a.version;
|
|
38
|
+
}
|
|
39
|
+
if (typeof b === 'object') {
|
|
40
|
+
b = b.version;
|
|
41
|
+
}
|
|
42
|
+
return a !== b
|
|
43
|
+
|
|
44
|
+
case '':
|
|
45
|
+
case '=':
|
|
46
|
+
case '==':
|
|
47
|
+
return eq$1(a, b, loose)
|
|
48
|
+
|
|
49
|
+
case '!=':
|
|
50
|
+
return neq$1(a, b, loose)
|
|
51
|
+
|
|
52
|
+
case '>':
|
|
53
|
+
return gt$1(a, b, loose)
|
|
54
|
+
|
|
55
|
+
case '>=':
|
|
56
|
+
return gte$1(a, b, loose)
|
|
57
|
+
|
|
58
|
+
case '<':
|
|
59
|
+
return lt$1(a, b, loose)
|
|
60
|
+
|
|
61
|
+
case '<=':
|
|
62
|
+
return lte$1(a, b, loose)
|
|
63
|
+
|
|
64
|
+
default:
|
|
65
|
+
throw new TypeError(`Invalid operator: ${op}`)
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
cmp_1 = cmp;
|
|
69
|
+
return cmp_1;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
exports.__require = requireCmp;
|
|
73
|
+
//# sourceMappingURL=cmp.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cmp.cjs","sources":["../../../../../../../../../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/cmp.js"],"sourcesContent":["'use strict'\n\nconst eq = require('./eq')\nconst neq = require('./neq')\nconst gt = require('./gt')\nconst gte = require('./gte')\nconst lt = require('./lt')\nconst lte = require('./lte')\n\nconst cmp = (a, op, b, loose) => {\n switch (op) {\n case '===':\n if (typeof a === 'object') {\n a = a.version\n }\n if (typeof b === 'object') {\n b = b.version\n }\n return a === b\n\n case '!==':\n if (typeof a === 'object') {\n a = a.version\n }\n if (typeof b === 'object') {\n b = b.version\n }\n return a !== b\n\n case '':\n case '=':\n case '==':\n return eq(a, b, loose)\n\n case '!=':\n return neq(a, b, loose)\n\n case '>':\n return gt(a, b, loose)\n\n case '>=':\n return gte(a, b, loose)\n\n case '<':\n return lt(a, b, loose)\n\n case '<=':\n return lte(a, b, loose)\n\n default:\n throw new TypeError(`Invalid operator: ${op}`)\n }\n}\nmodule.exports = cmp\n"],"names":["eq","require$$0","neq","require$$1","gt","require$$2","gte","require$$3","lt","require$$4","lte","require$$5"],"mappings":";;;;;;;;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OE,IAAE,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK;;AAE3B,KAAI,KAAK,IAAI;AACb,OAAM,OAAOE,KAAG,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK;;KAExB;OACE,MAAM,IAAI,SAAS,CAAC,CAAC,kBAAkB,EAAE,EAAE,CAAC,CAAC;AACnD;AACA,CAAA;AACA,CAAA,KAAc,GAAG;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { __require as requireEq } from './eq.js';
|
|
2
|
+
import { __require as requireNeq } from './neq.js';
|
|
3
|
+
import { __require as requireGt } from './gt.js';
|
|
4
|
+
import { __require as requireGte } from './gte.js';
|
|
5
|
+
import { __require as requireLt } from './lt.js';
|
|
6
|
+
import { __require as requireLte } from './lte.js';
|
|
7
|
+
|
|
8
|
+
var cmp_1;
|
|
9
|
+
var hasRequiredCmp;
|
|
10
|
+
|
|
11
|
+
function requireCmp () {
|
|
12
|
+
if (hasRequiredCmp) return cmp_1;
|
|
13
|
+
hasRequiredCmp = 1;
|
|
14
|
+
|
|
15
|
+
const eq = requireEq();
|
|
16
|
+
const neq = requireNeq();
|
|
17
|
+
const gt = requireGt();
|
|
18
|
+
const gte = requireGte();
|
|
19
|
+
const lt = requireLt();
|
|
20
|
+
const lte = requireLte();
|
|
21
|
+
|
|
22
|
+
const cmp = (a, op, b, loose) => {
|
|
23
|
+
switch (op) {
|
|
24
|
+
case '===':
|
|
25
|
+
if (typeof a === 'object') {
|
|
26
|
+
a = a.version;
|
|
27
|
+
}
|
|
28
|
+
if (typeof b === 'object') {
|
|
29
|
+
b = b.version;
|
|
30
|
+
}
|
|
31
|
+
return a === b
|
|
32
|
+
|
|
33
|
+
case '!==':
|
|
34
|
+
if (typeof a === 'object') {
|
|
35
|
+
a = a.version;
|
|
36
|
+
}
|
|
37
|
+
if (typeof b === 'object') {
|
|
38
|
+
b = b.version;
|
|
39
|
+
}
|
|
40
|
+
return a !== b
|
|
41
|
+
|
|
42
|
+
case '':
|
|
43
|
+
case '=':
|
|
44
|
+
case '==':
|
|
45
|
+
return eq(a, b, loose)
|
|
46
|
+
|
|
47
|
+
case '!=':
|
|
48
|
+
return neq(a, b, loose)
|
|
49
|
+
|
|
50
|
+
case '>':
|
|
51
|
+
return gt(a, b, loose)
|
|
52
|
+
|
|
53
|
+
case '>=':
|
|
54
|
+
return gte(a, b, loose)
|
|
55
|
+
|
|
56
|
+
case '<':
|
|
57
|
+
return lt(a, b, loose)
|
|
58
|
+
|
|
59
|
+
case '<=':
|
|
60
|
+
return lte(a, b, loose)
|
|
61
|
+
|
|
62
|
+
default:
|
|
63
|
+
throw new TypeError(`Invalid operator: ${op}`)
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
cmp_1 = cmp;
|
|
67
|
+
return cmp_1;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export { requireCmp as __require };
|
|
71
|
+
//# sourceMappingURL=cmp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cmp.js","sources":["../../../../../../../../../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/cmp.js"],"sourcesContent":["'use strict'\n\nconst eq = require('./eq')\nconst neq = require('./neq')\nconst gt = require('./gt')\nconst gte = require('./gte')\nconst lt = require('./lt')\nconst lte = require('./lte')\n\nconst cmp = (a, op, b, loose) => {\n switch (op) {\n case '===':\n if (typeof a === 'object') {\n a = a.version\n }\n if (typeof b === 'object') {\n b = b.version\n }\n return a === b\n\n case '!==':\n if (typeof a === 'object') {\n a = a.version\n }\n if (typeof b === 'object') {\n b = b.version\n }\n return a !== b\n\n case '':\n case '=':\n case '==':\n return eq(a, b, loose)\n\n case '!=':\n return neq(a, b, loose)\n\n case '>':\n return gt(a, b, loose)\n\n case '>=':\n return gte(a, b, loose)\n\n case '<':\n return lt(a, b, loose)\n\n case '<=':\n return lte(a, b, loose)\n\n default:\n throw new TypeError(`Invalid operator: ${op}`)\n }\n}\nm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AAC,EAAE,KAAK;;AAE5B,KAAI,KAAK,GAAG;AACZ,OAAM,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK;;AAE3B,KAAI,KAAK,IAAI;AACb,OAAM,OAAO,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK;;KAExB;OACE,MAAM,IAAI,SAAS,CAAC,CAAC,kBAAkB,EAAE,EAAE,CAAC,CAAC;AACnD;AACA,CAAA;AACA,CAAA,KAAc,GAAG;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var semver = require('../classes/semver.cjs');
|
|
4
|
+
var parse = require('./parse.cjs');
|
|
5
|
+
var re = require('../internal/re.cjs');
|
|
6
|
+
|
|
7
|
+
var coerce_1;
|
|
8
|
+
var hasRequiredCoerce;
|
|
9
|
+
|
|
10
|
+
function requireCoerce () {
|
|
11
|
+
if (hasRequiredCoerce) return coerce_1;
|
|
12
|
+
hasRequiredCoerce = 1;
|
|
13
|
+
|
|
14
|
+
const SemVer = semver.__require();
|
|
15
|
+
const parse$1 = parse.__require();
|
|
16
|
+
const { safeRe: re$1, t } = re.__require();
|
|
17
|
+
|
|
18
|
+
const coerce = (version, options) => {
|
|
19
|
+
if (version instanceof SemVer) {
|
|
20
|
+
return version
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
if (typeof version === 'number') {
|
|
24
|
+
version = String(version);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
if (typeof version !== 'string') {
|
|
28
|
+
return null
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
options = options || {};
|
|
32
|
+
|
|
33
|
+
let match = null;
|
|
34
|
+
if (!options.rtl) {
|
|
35
|
+
match = version.match(options.includePrerelease ? re$1[t.COERCEFULL] : re$1[t.COERCE]);
|
|
36
|
+
} else {
|
|
37
|
+
// Find the right-most coercible string that does not share
|
|
38
|
+
// a terminus with a more left-ward coercible string.
|
|
39
|
+
// Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'
|
|
40
|
+
// With includePrerelease option set, '1.2.3.4-rc' wants to coerce '2.3.4-rc', not '2.3.4'
|
|
41
|
+
//
|
|
42
|
+
// Walk through the string checking with a /g regexp
|
|
43
|
+
// Manually set the index so as to pick up overlapping matches.
|
|
44
|
+
// Stop when we get a match that ends at the string end, since no
|
|
45
|
+
// coercible string can be more right-ward without the same terminus.
|
|
46
|
+
const coerceRtlRegex = options.includePrerelease ? re$1[t.COERCERTLFULL] : re$1[t.COERCERTL];
|
|
47
|
+
let next;
|
|
48
|
+
while ((next = coerceRtlRegex.exec(version)) &&
|
|
49
|
+
(!match || match.index + match[0].length !== version.length)
|
|
50
|
+
) {
|
|
51
|
+
if (!match ||
|
|
52
|
+
next.index + next[0].length !== match.index + match[0].length) {
|
|
53
|
+
match = next;
|
|
54
|
+
}
|
|
55
|
+
coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
|
56
|
+
}
|
|
57
|
+
// leave it in a clean state
|
|
58
|
+
coerceRtlRegex.lastIndex = -1;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
if (match === null) {
|
|
62
|
+
return null
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
const major = match[2];
|
|
66
|
+
const minor = match[3] || '0';
|
|
67
|
+
const patch = match[4] || '0';
|
|
68
|
+
const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : '';
|
|
69
|
+
const build = options.includePrerelease && match[6] ? `+${match[6]}` : '';
|
|
70
|
+
|
|
71
|
+
return parse$1(`${major}.${minor}.${patch}${prerelease}${build}`, options)
|
|
72
|
+
};
|
|
73
|
+
coerce_1 = coerce;
|
|
74
|
+
return coerce_1;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
exports.__require = requireCoerce;
|
|
78
|
+
//# sourceMappingURL=coerce.cjs.map
|