@shopify/create-app 3.94.3 → 4.0.0
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/analytics-XLT3JDGP.js +33 -0
- package/dist/analytics-XUVDQAYG.js +39 -0
- package/dist/chunk-37G3KLO2.js +78 -0
- package/dist/chunk-4CS37CS5.js +665 -0
- package/dist/chunk-6OOTYTVB.js +1133 -0
- package/dist/{chunk-NIYBO6HO.js → chunk-ACS6S42W.js} +3 -3
- package/dist/chunk-ANIFE3UR.js +12 -0
- package/dist/{chunk-KKIDWI27.js → chunk-DHAC6KEL.js} +47 -12
- package/dist/chunk-DJW2W7VA.js +21 -0
- package/dist/chunk-DNF3EUMN.js +1771 -0
- package/dist/{chunk-LI75HRH4.js → chunk-DWGHKWV5.js} +1 -1
- package/dist/chunk-IGDZPTDH.js +371 -0
- package/dist/chunk-JCETIRLI.js +30 -0
- package/dist/chunk-JUV7D377.js +264 -0
- package/dist/{chunk-BRNDLYPU.js → chunk-LNOZTAML.js} +3618 -10143
- package/dist/{chunk-IFG7N3S2.js → chunk-OO33NRTL.js} +8 -12671
- package/dist/chunk-PES3XMQM.js +70 -0
- package/dist/chunk-QMXFPY46.js +55 -0
- package/dist/chunk-QN5KFM2B.js +104 -0
- package/dist/{chunk-HUNONZYG.js → chunk-STHW3YIX.js} +43773 -43784
- package/dist/chunk-UMSYG5WJ.js +110 -0
- package/dist/chunk-UX6FRPFM.js +11555 -0
- package/dist/{chunk-CXPWSYGC.js → chunk-X2WZCKNE.js} +4 -14
- package/dist/chunk-YIHECXVH.js +5652 -0
- package/dist/chunk-YUPQUA3D.js +6106 -0
- package/dist/conf-store-RAVX2WFV.js +54 -0
- package/dist/custom-oclif-loader-354VAVF4.js +54 -0
- package/dist/deprecations-2QTB3736.js +55 -0
- package/dist/environments-LTWWRWCC.js +26 -0
- package/dist/error-handler-KHJE653Z.js +37 -0
- package/dist/fs-XENRLBMU.js +109 -0
- package/dist/hooks/postrun.js +6 -9
- package/dist/hooks/prerun.js +12 -25
- package/dist/{http-proxy-node16-U5VBDLS3.js → http-proxy-node16-XB2DSBCB.js} +3 -2
- package/dist/index.js +8986 -10517
- package/dist/is-global-KZMSAFQT.js +21 -0
- package/dist/latest-version-3PFKLJZM.js +7713 -0
- package/dist/lib-HWIFANCM.js +11 -0
- package/dist/{local-6XZDLEBK.js → local-NQALOHJX.js} +3 -8
- package/dist/metadata-FXCUDE5I.js +20 -0
- package/dist/{node-package-manager-JVAQNYVX.js → node-package-manager-7R7HDW4R.js} +17 -7
- package/dist/notifications-system-7QMDSL5Y.js +40 -0
- package/dist/output-PQSQ7U45.js +51 -0
- package/dist/{path-NQ6GZ2WO.js → path-EOPO7QNL.js} +2 -2
- package/dist/{prettier-67WYXU6J.js → prettier-UAG5TKE4.js} +2 -2
- package/dist/system-W4MMMHEV.js +47 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/typescript-TKTDYKKG.js +6 -0
- package/dist/{ui-7HBWZC7M.js → ui-2FROV2IT.js} +15 -6
- package/dist/{chunk-PWU6XFUQ.js → upgrade-FAUZ7VAF.js} +77 -125
- package/dist/version-HKPHVW5M.js +30 -0
- package/dist/version-T73ZLUJK.js +8 -0
- package/oclif.manifest.json +63 -66
- package/package.json +5 -5
- package/dist/chunk-HYOIEQ5O.js +0 -14117
- package/dist/error-handler-WFIT65SZ.js +0 -25
- package/dist/lib-PPI2FZOR.js +0 -8
|
@@ -0,0 +1,1133 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__commonJS,
|
|
3
|
+
init_cjs_shims
|
|
4
|
+
} from "./chunk-PKR7KJ6P.js";
|
|
5
|
+
|
|
6
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/constants.js
|
|
7
|
+
var require_constants = __commonJS({
|
|
8
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/constants.js"(exports, module) {
|
|
9
|
+
init_cjs_shims();
|
|
10
|
+
var SEMVER_SPEC_VERSION = "2.0.0", MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
|
|
11
|
+
9007199254740991, MAX_SAFE_COMPONENT_LENGTH = 16, MAX_SAFE_BUILD_LENGTH = 250, RELEASE_TYPES = [
|
|
12
|
+
"major",
|
|
13
|
+
"premajor",
|
|
14
|
+
"minor",
|
|
15
|
+
"preminor",
|
|
16
|
+
"patch",
|
|
17
|
+
"prepatch",
|
|
18
|
+
"prerelease"
|
|
19
|
+
];
|
|
20
|
+
module.exports = {
|
|
21
|
+
MAX_LENGTH: 256,
|
|
22
|
+
MAX_SAFE_COMPONENT_LENGTH,
|
|
23
|
+
MAX_SAFE_BUILD_LENGTH,
|
|
24
|
+
MAX_SAFE_INTEGER,
|
|
25
|
+
RELEASE_TYPES,
|
|
26
|
+
SEMVER_SPEC_VERSION,
|
|
27
|
+
FLAG_INCLUDE_PRERELEASE: 1,
|
|
28
|
+
FLAG_LOOSE: 2
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/debug.js
|
|
34
|
+
var require_debug = __commonJS({
|
|
35
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/debug.js"(exports, module) {
|
|
36
|
+
init_cjs_shims();
|
|
37
|
+
var debug = typeof process == "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
|
|
38
|
+
};
|
|
39
|
+
module.exports = debug;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/re.js
|
|
44
|
+
var require_re = __commonJS({
|
|
45
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/re.js"(exports, module) {
|
|
46
|
+
init_cjs_shims();
|
|
47
|
+
var {
|
|
48
|
+
MAX_SAFE_COMPONENT_LENGTH,
|
|
49
|
+
MAX_SAFE_BUILD_LENGTH,
|
|
50
|
+
MAX_LENGTH
|
|
51
|
+
} = require_constants(), debug = require_debug();
|
|
52
|
+
exports = module.exports = {};
|
|
53
|
+
var re = exports.re = [], safeRe = exports.safeRe = [], src = exports.src = [], t = exports.t = {}, R = 0, LETTERDASHNUMBER = "[a-zA-Z0-9-]", safeRegexReplacements = [
|
|
54
|
+
["\\s", 1],
|
|
55
|
+
["\\d", MAX_LENGTH],
|
|
56
|
+
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
|
|
57
|
+
], makeSafeRegex = (value) => {
|
|
58
|
+
for (let [token, max] of safeRegexReplacements)
|
|
59
|
+
value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
|
|
60
|
+
return value;
|
|
61
|
+
}, createToken = (name, value, isGlobal) => {
|
|
62
|
+
let safe = makeSafeRegex(value), index = R++;
|
|
63
|
+
debug(name, index, value), t[name] = index, src[index] = value, re[index] = new RegExp(value, isGlobal ? "g" : void 0), safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
64
|
+
};
|
|
65
|
+
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
66
|
+
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
67
|
+
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
68
|
+
createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
|
|
69
|
+
createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
70
|
+
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`);
|
|
71
|
+
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NUMERICIDENTIFIERLOOSE]}|${src[t.NONNUMERICIDENTIFIER]})`);
|
|
72
|
+
createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
73
|
+
createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
74
|
+
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
75
|
+
createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
|
|
76
|
+
createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
|
|
77
|
+
createToken("FULL", `^${src[t.FULLPLAIN]}$`);
|
|
78
|
+
createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
|
|
79
|
+
createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
|
|
80
|
+
createToken("GTLT", "((?:<|>)?=?)");
|
|
81
|
+
createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
|
82
|
+
createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
|
|
83
|
+
createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
|
|
84
|
+
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
|
|
85
|
+
createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
|
|
86
|
+
createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
|
|
87
|
+
createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
|
88
|
+
createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
89
|
+
createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
|
|
90
|
+
createToken("COERCERTL", src[t.COERCE], !0);
|
|
91
|
+
createToken("COERCERTLFULL", src[t.COERCEFULL], !0);
|
|
92
|
+
createToken("LONETILDE", "(?:~>?)");
|
|
93
|
+
createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, !0);
|
|
94
|
+
exports.tildeTrimReplace = "$1~";
|
|
95
|
+
createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
|
|
96
|
+
createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
97
|
+
createToken("LONECARET", "(?:\\^)");
|
|
98
|
+
createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, !0);
|
|
99
|
+
exports.caretTrimReplace = "$1^";
|
|
100
|
+
createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
|
|
101
|
+
createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
102
|
+
createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
|
|
103
|
+
createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
|
|
104
|
+
createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, !0);
|
|
105
|
+
exports.comparatorTrimReplace = "$1$2$3";
|
|
106
|
+
createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
|
|
107
|
+
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
|
|
108
|
+
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
109
|
+
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
110
|
+
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/parse-options.js
|
|
115
|
+
var require_parse_options = __commonJS({
|
|
116
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/parse-options.js"(exports, module) {
|
|
117
|
+
init_cjs_shims();
|
|
118
|
+
var looseOption = Object.freeze({ loose: !0 }), emptyOpts = Object.freeze({}), parseOptions = (options) => options ? typeof options != "object" ? looseOption : options : emptyOpts;
|
|
119
|
+
module.exports = parseOptions;
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/identifiers.js
|
|
124
|
+
var require_identifiers = __commonJS({
|
|
125
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/identifiers.js"(exports, module) {
|
|
126
|
+
init_cjs_shims();
|
|
127
|
+
var numeric = /^[0-9]+$/, compareIdentifiers = (a, b) => {
|
|
128
|
+
let anum = numeric.test(a), bnum = numeric.test(b);
|
|
129
|
+
return anum && bnum && (a = +a, b = +b), a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
|
|
130
|
+
}, rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
|
|
131
|
+
module.exports = {
|
|
132
|
+
compareIdentifiers,
|
|
133
|
+
rcompareIdentifiers
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
|
|
138
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/semver.js
|
|
139
|
+
var require_semver = __commonJS({
|
|
140
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/semver.js"(exports, module) {
|
|
141
|
+
init_cjs_shims();
|
|
142
|
+
var debug = require_debug(), { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants(), { safeRe: re, t } = require_re(), parseOptions = require_parse_options(), { compareIdentifiers } = require_identifiers(), SemVer = class _SemVer {
|
|
143
|
+
constructor(version, options) {
|
|
144
|
+
if (options = parseOptions(options), version instanceof _SemVer) {
|
|
145
|
+
if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease)
|
|
146
|
+
return version;
|
|
147
|
+
version = version.version;
|
|
148
|
+
} else if (typeof version != "string")
|
|
149
|
+
throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
150
|
+
if (version.length > MAX_LENGTH)
|
|
151
|
+
throw new TypeError(
|
|
152
|
+
`version is longer than ${MAX_LENGTH} characters`
|
|
153
|
+
);
|
|
154
|
+
debug("SemVer", version, options), this.options = options, this.loose = !!options.loose, this.includePrerelease = !!options.includePrerelease;
|
|
155
|
+
let m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
|
|
156
|
+
if (!m)
|
|
157
|
+
throw new TypeError(`Invalid Version: ${version}`);
|
|
158
|
+
if (this.raw = version, this.major = +m[1], this.minor = +m[2], this.patch = +m[3], this.major > MAX_SAFE_INTEGER || this.major < 0)
|
|
159
|
+
throw new TypeError("Invalid major version");
|
|
160
|
+
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0)
|
|
161
|
+
throw new TypeError("Invalid minor version");
|
|
162
|
+
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0)
|
|
163
|
+
throw new TypeError("Invalid patch version");
|
|
164
|
+
m[4] ? this.prerelease = m[4].split(".").map((id) => {
|
|
165
|
+
if (/^[0-9]+$/.test(id)) {
|
|
166
|
+
let num = +id;
|
|
167
|
+
if (num >= 0 && num < MAX_SAFE_INTEGER)
|
|
168
|
+
return num;
|
|
169
|
+
}
|
|
170
|
+
return id;
|
|
171
|
+
}) : this.prerelease = [], this.build = m[5] ? m[5].split(".") : [], this.format();
|
|
172
|
+
}
|
|
173
|
+
format() {
|
|
174
|
+
return this.version = `${this.major}.${this.minor}.${this.patch}`, this.prerelease.length && (this.version += `-${this.prerelease.join(".")}`), this.version;
|
|
175
|
+
}
|
|
176
|
+
toString() {
|
|
177
|
+
return this.version;
|
|
178
|
+
}
|
|
179
|
+
compare(other) {
|
|
180
|
+
if (debug("SemVer.compare", this.version, this.options, other), !(other instanceof _SemVer)) {
|
|
181
|
+
if (typeof other == "string" && other === this.version)
|
|
182
|
+
return 0;
|
|
183
|
+
other = new _SemVer(other, this.options);
|
|
184
|
+
}
|
|
185
|
+
return other.version === this.version ? 0 : this.compareMain(other) || this.comparePre(other);
|
|
186
|
+
}
|
|
187
|
+
compareMain(other) {
|
|
188
|
+
return other instanceof _SemVer || (other = new _SemVer(other, this.options)), compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);
|
|
189
|
+
}
|
|
190
|
+
comparePre(other) {
|
|
191
|
+
if (other instanceof _SemVer || (other = new _SemVer(other, this.options)), this.prerelease.length && !other.prerelease.length)
|
|
192
|
+
return -1;
|
|
193
|
+
if (!this.prerelease.length && other.prerelease.length)
|
|
194
|
+
return 1;
|
|
195
|
+
if (!this.prerelease.length && !other.prerelease.length)
|
|
196
|
+
return 0;
|
|
197
|
+
let i = 0;
|
|
198
|
+
do {
|
|
199
|
+
let a = this.prerelease[i], b = other.prerelease[i];
|
|
200
|
+
if (debug("prerelease compare", i, a, b), a === void 0 && b === void 0)
|
|
201
|
+
return 0;
|
|
202
|
+
if (b === void 0)
|
|
203
|
+
return 1;
|
|
204
|
+
if (a === void 0)
|
|
205
|
+
return -1;
|
|
206
|
+
if (a === b)
|
|
207
|
+
continue;
|
|
208
|
+
return compareIdentifiers(a, b);
|
|
209
|
+
} while (++i);
|
|
210
|
+
}
|
|
211
|
+
compareBuild(other) {
|
|
212
|
+
other instanceof _SemVer || (other = new _SemVer(other, this.options));
|
|
213
|
+
let i = 0;
|
|
214
|
+
do {
|
|
215
|
+
let a = this.build[i], b = other.build[i];
|
|
216
|
+
if (debug("build compare", i, a, b), a === void 0 && b === void 0)
|
|
217
|
+
return 0;
|
|
218
|
+
if (b === void 0)
|
|
219
|
+
return 1;
|
|
220
|
+
if (a === void 0)
|
|
221
|
+
return -1;
|
|
222
|
+
if (a === b)
|
|
223
|
+
continue;
|
|
224
|
+
return compareIdentifiers(a, b);
|
|
225
|
+
} while (++i);
|
|
226
|
+
}
|
|
227
|
+
// preminor will bump the version up to the next minor release, and immediately
|
|
228
|
+
// down to pre-release. premajor and prepatch work the same way.
|
|
229
|
+
inc(release, identifier, identifierBase) {
|
|
230
|
+
switch (release) {
|
|
231
|
+
case "premajor":
|
|
232
|
+
this.prerelease.length = 0, this.patch = 0, this.minor = 0, this.major++, this.inc("pre", identifier, identifierBase);
|
|
233
|
+
break;
|
|
234
|
+
case "preminor":
|
|
235
|
+
this.prerelease.length = 0, this.patch = 0, this.minor++, this.inc("pre", identifier, identifierBase);
|
|
236
|
+
break;
|
|
237
|
+
case "prepatch":
|
|
238
|
+
this.prerelease.length = 0, this.inc("patch", identifier, identifierBase), this.inc("pre", identifier, identifierBase);
|
|
239
|
+
break;
|
|
240
|
+
// If the input is a non-prerelease version, this acts the same as
|
|
241
|
+
// prepatch.
|
|
242
|
+
case "prerelease":
|
|
243
|
+
this.prerelease.length === 0 && this.inc("patch", identifier, identifierBase), this.inc("pre", identifier, identifierBase);
|
|
244
|
+
break;
|
|
245
|
+
case "major":
|
|
246
|
+
(this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) && this.major++, this.minor = 0, this.patch = 0, this.prerelease = [];
|
|
247
|
+
break;
|
|
248
|
+
case "minor":
|
|
249
|
+
(this.patch !== 0 || this.prerelease.length === 0) && this.minor++, this.patch = 0, this.prerelease = [];
|
|
250
|
+
break;
|
|
251
|
+
case "patch":
|
|
252
|
+
this.prerelease.length === 0 && this.patch++, this.prerelease = [];
|
|
253
|
+
break;
|
|
254
|
+
// This probably shouldn't be used publicly.
|
|
255
|
+
// 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
|
|
256
|
+
case "pre": {
|
|
257
|
+
let base = Number(identifierBase) ? 1 : 0;
|
|
258
|
+
if (!identifier && identifierBase === !1)
|
|
259
|
+
throw new Error("invalid increment argument: identifier is empty");
|
|
260
|
+
if (this.prerelease.length === 0)
|
|
261
|
+
this.prerelease = [base];
|
|
262
|
+
else {
|
|
263
|
+
let i = this.prerelease.length;
|
|
264
|
+
for (; --i >= 0; )
|
|
265
|
+
typeof this.prerelease[i] == "number" && (this.prerelease[i]++, i = -2);
|
|
266
|
+
if (i === -1) {
|
|
267
|
+
if (identifier === this.prerelease.join(".") && identifierBase === !1)
|
|
268
|
+
throw new Error("invalid increment argument: identifier already exists");
|
|
269
|
+
this.prerelease.push(base);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
if (identifier) {
|
|
273
|
+
let prerelease = [identifier, base];
|
|
274
|
+
identifierBase === !1 && (prerelease = [identifier]), compareIdentifiers(this.prerelease[0], identifier) === 0 ? isNaN(this.prerelease[1]) && (this.prerelease = prerelease) : this.prerelease = prerelease;
|
|
275
|
+
}
|
|
276
|
+
break;
|
|
277
|
+
}
|
|
278
|
+
default:
|
|
279
|
+
throw new Error(`invalid increment argument: ${release}`);
|
|
280
|
+
}
|
|
281
|
+
return this.raw = this.format(), this.build.length && (this.raw += `+${this.build.join(".")}`), this;
|
|
282
|
+
}
|
|
283
|
+
};
|
|
284
|
+
module.exports = SemVer;
|
|
285
|
+
}
|
|
286
|
+
});
|
|
287
|
+
|
|
288
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/parse.js
|
|
289
|
+
var require_parse = __commonJS({
|
|
290
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/parse.js"(exports, module) {
|
|
291
|
+
init_cjs_shims();
|
|
292
|
+
var SemVer = require_semver(), parse = (version, options, throwErrors = !1) => {
|
|
293
|
+
if (version instanceof SemVer)
|
|
294
|
+
return version;
|
|
295
|
+
try {
|
|
296
|
+
return new SemVer(version, options);
|
|
297
|
+
} catch (er) {
|
|
298
|
+
if (!throwErrors)
|
|
299
|
+
return null;
|
|
300
|
+
throw er;
|
|
301
|
+
}
|
|
302
|
+
};
|
|
303
|
+
module.exports = parse;
|
|
304
|
+
}
|
|
305
|
+
});
|
|
306
|
+
|
|
307
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/valid.js
|
|
308
|
+
var require_valid = __commonJS({
|
|
309
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/valid.js"(exports, module) {
|
|
310
|
+
init_cjs_shims();
|
|
311
|
+
var parse = require_parse(), valid = (version, options) => {
|
|
312
|
+
let v = parse(version, options);
|
|
313
|
+
return v ? v.version : null;
|
|
314
|
+
};
|
|
315
|
+
module.exports = valid;
|
|
316
|
+
}
|
|
317
|
+
});
|
|
318
|
+
|
|
319
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/clean.js
|
|
320
|
+
var require_clean = __commonJS({
|
|
321
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/clean.js"(exports, module) {
|
|
322
|
+
init_cjs_shims();
|
|
323
|
+
var parse = require_parse(), clean = (version, options) => {
|
|
324
|
+
let s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
325
|
+
return s ? s.version : null;
|
|
326
|
+
};
|
|
327
|
+
module.exports = clean;
|
|
328
|
+
}
|
|
329
|
+
});
|
|
330
|
+
|
|
331
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/inc.js
|
|
332
|
+
var require_inc = __commonJS({
|
|
333
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/inc.js"(exports, module) {
|
|
334
|
+
init_cjs_shims();
|
|
335
|
+
var SemVer = require_semver(), inc = (version, release, options, identifier, identifierBase) => {
|
|
336
|
+
typeof options == "string" && (identifierBase = identifier, identifier = options, options = void 0);
|
|
337
|
+
try {
|
|
338
|
+
return new SemVer(
|
|
339
|
+
version instanceof SemVer ? version.version : version,
|
|
340
|
+
options
|
|
341
|
+
).inc(release, identifier, identifierBase).version;
|
|
342
|
+
} catch {
|
|
343
|
+
return null;
|
|
344
|
+
}
|
|
345
|
+
};
|
|
346
|
+
module.exports = inc;
|
|
347
|
+
}
|
|
348
|
+
});
|
|
349
|
+
|
|
350
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/diff.js
|
|
351
|
+
var require_diff = __commonJS({
|
|
352
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/diff.js"(exports, module) {
|
|
353
|
+
init_cjs_shims();
|
|
354
|
+
var parse = require_parse(), diff = (version1, version2) => {
|
|
355
|
+
let v1 = parse(version1, null, !0), v2 = parse(version2, null, !0), comparison = v1.compare(v2);
|
|
356
|
+
if (comparison === 0)
|
|
357
|
+
return null;
|
|
358
|
+
let v1Higher = comparison > 0, highVersion = v1Higher ? v1 : v2, lowVersion = v1Higher ? v2 : v1, highHasPre = !!highVersion.prerelease.length;
|
|
359
|
+
if (!!lowVersion.prerelease.length && !highHasPre)
|
|
360
|
+
return !lowVersion.patch && !lowVersion.minor ? "major" : highVersion.patch ? "patch" : highVersion.minor ? "minor" : "major";
|
|
361
|
+
let prefix = highHasPre ? "pre" : "";
|
|
362
|
+
return v1.major !== v2.major ? prefix + "major" : v1.minor !== v2.minor ? prefix + "minor" : v1.patch !== v2.patch ? prefix + "patch" : "prerelease";
|
|
363
|
+
};
|
|
364
|
+
module.exports = diff;
|
|
365
|
+
}
|
|
366
|
+
});
|
|
367
|
+
|
|
368
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/major.js
|
|
369
|
+
var require_major = __commonJS({
|
|
370
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/major.js"(exports, module) {
|
|
371
|
+
init_cjs_shims();
|
|
372
|
+
var SemVer = require_semver(), major = (a, loose) => new SemVer(a, loose).major;
|
|
373
|
+
module.exports = major;
|
|
374
|
+
}
|
|
375
|
+
});
|
|
376
|
+
|
|
377
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/minor.js
|
|
378
|
+
var require_minor = __commonJS({
|
|
379
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/minor.js"(exports, module) {
|
|
380
|
+
init_cjs_shims();
|
|
381
|
+
var SemVer = require_semver(), minor = (a, loose) => new SemVer(a, loose).minor;
|
|
382
|
+
module.exports = minor;
|
|
383
|
+
}
|
|
384
|
+
});
|
|
385
|
+
|
|
386
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/patch.js
|
|
387
|
+
var require_patch = __commonJS({
|
|
388
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/patch.js"(exports, module) {
|
|
389
|
+
init_cjs_shims();
|
|
390
|
+
var SemVer = require_semver(), patch = (a, loose) => new SemVer(a, loose).patch;
|
|
391
|
+
module.exports = patch;
|
|
392
|
+
}
|
|
393
|
+
});
|
|
394
|
+
|
|
395
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/prerelease.js
|
|
396
|
+
var require_prerelease = __commonJS({
|
|
397
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/prerelease.js"(exports, module) {
|
|
398
|
+
init_cjs_shims();
|
|
399
|
+
var parse = require_parse(), prerelease = (version, options) => {
|
|
400
|
+
let parsed = parse(version, options);
|
|
401
|
+
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
402
|
+
};
|
|
403
|
+
module.exports = prerelease;
|
|
404
|
+
}
|
|
405
|
+
});
|
|
406
|
+
|
|
407
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare.js
|
|
408
|
+
var require_compare = __commonJS({
|
|
409
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare.js"(exports, module) {
|
|
410
|
+
init_cjs_shims();
|
|
411
|
+
var SemVer = require_semver(), compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
412
|
+
module.exports = compare;
|
|
413
|
+
}
|
|
414
|
+
});
|
|
415
|
+
|
|
416
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/rcompare.js
|
|
417
|
+
var require_rcompare = __commonJS({
|
|
418
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/rcompare.js"(exports, module) {
|
|
419
|
+
init_cjs_shims();
|
|
420
|
+
var compare = require_compare(), rcompare = (a, b, loose) => compare(b, a, loose);
|
|
421
|
+
module.exports = rcompare;
|
|
422
|
+
}
|
|
423
|
+
});
|
|
424
|
+
|
|
425
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare-loose.js
|
|
426
|
+
var require_compare_loose = __commonJS({
|
|
427
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare-loose.js"(exports, module) {
|
|
428
|
+
init_cjs_shims();
|
|
429
|
+
var compare = require_compare(), compareLoose = (a, b) => compare(a, b, !0);
|
|
430
|
+
module.exports = compareLoose;
|
|
431
|
+
}
|
|
432
|
+
});
|
|
433
|
+
|
|
434
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare-build.js
|
|
435
|
+
var require_compare_build = __commonJS({
|
|
436
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare-build.js"(exports, module) {
|
|
437
|
+
init_cjs_shims();
|
|
438
|
+
var SemVer = require_semver(), compareBuild = (a, b, loose) => {
|
|
439
|
+
let versionA = new SemVer(a, loose), versionB = new SemVer(b, loose);
|
|
440
|
+
return versionA.compare(versionB) || versionA.compareBuild(versionB);
|
|
441
|
+
};
|
|
442
|
+
module.exports = compareBuild;
|
|
443
|
+
}
|
|
444
|
+
});
|
|
445
|
+
|
|
446
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/sort.js
|
|
447
|
+
var require_sort = __commonJS({
|
|
448
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/sort.js"(exports, module) {
|
|
449
|
+
init_cjs_shims();
|
|
450
|
+
var compareBuild = require_compare_build(), sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
451
|
+
module.exports = sort;
|
|
452
|
+
}
|
|
453
|
+
});
|
|
454
|
+
|
|
455
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/rsort.js
|
|
456
|
+
var require_rsort = __commonJS({
|
|
457
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/rsort.js"(exports, module) {
|
|
458
|
+
init_cjs_shims();
|
|
459
|
+
var compareBuild = require_compare_build(), rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
460
|
+
module.exports = rsort;
|
|
461
|
+
}
|
|
462
|
+
});
|
|
463
|
+
|
|
464
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/gt.js
|
|
465
|
+
var require_gt = __commonJS({
|
|
466
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/gt.js"(exports, module) {
|
|
467
|
+
init_cjs_shims();
|
|
468
|
+
var compare = require_compare(), gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
469
|
+
module.exports = gt;
|
|
470
|
+
}
|
|
471
|
+
});
|
|
472
|
+
|
|
473
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/lt.js
|
|
474
|
+
var require_lt = __commonJS({
|
|
475
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/lt.js"(exports, module) {
|
|
476
|
+
init_cjs_shims();
|
|
477
|
+
var compare = require_compare(), lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
478
|
+
module.exports = lt;
|
|
479
|
+
}
|
|
480
|
+
});
|
|
481
|
+
|
|
482
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/eq.js
|
|
483
|
+
var require_eq = __commonJS({
|
|
484
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/eq.js"(exports, module) {
|
|
485
|
+
init_cjs_shims();
|
|
486
|
+
var compare = require_compare(), eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
487
|
+
module.exports = eq;
|
|
488
|
+
}
|
|
489
|
+
});
|
|
490
|
+
|
|
491
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/neq.js
|
|
492
|
+
var require_neq = __commonJS({
|
|
493
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/neq.js"(exports, module) {
|
|
494
|
+
init_cjs_shims();
|
|
495
|
+
var compare = require_compare(), neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
496
|
+
module.exports = neq;
|
|
497
|
+
}
|
|
498
|
+
});
|
|
499
|
+
|
|
500
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/gte.js
|
|
501
|
+
var require_gte = __commonJS({
|
|
502
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/gte.js"(exports, module) {
|
|
503
|
+
init_cjs_shims();
|
|
504
|
+
var compare = require_compare(), gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
505
|
+
module.exports = gte;
|
|
506
|
+
}
|
|
507
|
+
});
|
|
508
|
+
|
|
509
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/lte.js
|
|
510
|
+
var require_lte = __commonJS({
|
|
511
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/lte.js"(exports, module) {
|
|
512
|
+
init_cjs_shims();
|
|
513
|
+
var compare = require_compare(), lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
514
|
+
module.exports = lte;
|
|
515
|
+
}
|
|
516
|
+
});
|
|
517
|
+
|
|
518
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/cmp.js
|
|
519
|
+
var require_cmp = __commonJS({
|
|
520
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/cmp.js"(exports, module) {
|
|
521
|
+
init_cjs_shims();
|
|
522
|
+
var eq = require_eq(), neq = require_neq(), gt = require_gt(), gte = require_gte(), lt = require_lt(), lte = require_lte(), cmp = (a, op, b, loose) => {
|
|
523
|
+
switch (op) {
|
|
524
|
+
case "===":
|
|
525
|
+
return typeof a == "object" && (a = a.version), typeof b == "object" && (b = b.version), a === b;
|
|
526
|
+
case "!==":
|
|
527
|
+
return typeof a == "object" && (a = a.version), typeof b == "object" && (b = b.version), a !== b;
|
|
528
|
+
case "":
|
|
529
|
+
case "=":
|
|
530
|
+
case "==":
|
|
531
|
+
return eq(a, b, loose);
|
|
532
|
+
case "!=":
|
|
533
|
+
return neq(a, b, loose);
|
|
534
|
+
case ">":
|
|
535
|
+
return gt(a, b, loose);
|
|
536
|
+
case ">=":
|
|
537
|
+
return gte(a, b, loose);
|
|
538
|
+
case "<":
|
|
539
|
+
return lt(a, b, loose);
|
|
540
|
+
case "<=":
|
|
541
|
+
return lte(a, b, loose);
|
|
542
|
+
default:
|
|
543
|
+
throw new TypeError(`Invalid operator: ${op}`);
|
|
544
|
+
}
|
|
545
|
+
};
|
|
546
|
+
module.exports = cmp;
|
|
547
|
+
}
|
|
548
|
+
});
|
|
549
|
+
|
|
550
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/coerce.js
|
|
551
|
+
var require_coerce = __commonJS({
|
|
552
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/coerce.js"(exports, module) {
|
|
553
|
+
init_cjs_shims();
|
|
554
|
+
var SemVer = require_semver(), parse = require_parse(), { safeRe: re, t } = require_re(), coerce = (version, options) => {
|
|
555
|
+
if (version instanceof SemVer)
|
|
556
|
+
return version;
|
|
557
|
+
if (typeof version == "number" && (version = String(version)), typeof version != "string")
|
|
558
|
+
return null;
|
|
559
|
+
options = options || {};
|
|
560
|
+
let match = null;
|
|
561
|
+
if (!options.rtl)
|
|
562
|
+
match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
|
|
563
|
+
else {
|
|
564
|
+
let coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL], next;
|
|
565
|
+
for (; (next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length); )
|
|
566
|
+
(!match || next.index + next[0].length !== match.index + match[0].length) && (match = next), coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
|
567
|
+
coerceRtlRegex.lastIndex = -1;
|
|
568
|
+
}
|
|
569
|
+
if (match === null)
|
|
570
|
+
return null;
|
|
571
|
+
let major = match[2], minor = match[3] || "0", patch = match[4] || "0", prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : "", build = options.includePrerelease && match[6] ? `+${match[6]}` : "";
|
|
572
|
+
return parse(`${major}.${minor}.${patch}${prerelease}${build}`, options);
|
|
573
|
+
};
|
|
574
|
+
module.exports = coerce;
|
|
575
|
+
}
|
|
576
|
+
});
|
|
577
|
+
|
|
578
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/lrucache.js
|
|
579
|
+
var require_lrucache = __commonJS({
|
|
580
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/lrucache.js"(exports, module) {
|
|
581
|
+
init_cjs_shims();
|
|
582
|
+
var LRUCache = class {
|
|
583
|
+
constructor() {
|
|
584
|
+
this.max = 1e3, this.map = /* @__PURE__ */ new Map();
|
|
585
|
+
}
|
|
586
|
+
get(key) {
|
|
587
|
+
let value = this.map.get(key);
|
|
588
|
+
if (value !== void 0)
|
|
589
|
+
return this.map.delete(key), this.map.set(key, value), value;
|
|
590
|
+
}
|
|
591
|
+
delete(key) {
|
|
592
|
+
return this.map.delete(key);
|
|
593
|
+
}
|
|
594
|
+
set(key, value) {
|
|
595
|
+
if (!this.delete(key) && value !== void 0) {
|
|
596
|
+
if (this.map.size >= this.max) {
|
|
597
|
+
let firstKey = this.map.keys().next().value;
|
|
598
|
+
this.delete(firstKey);
|
|
599
|
+
}
|
|
600
|
+
this.map.set(key, value);
|
|
601
|
+
}
|
|
602
|
+
return this;
|
|
603
|
+
}
|
|
604
|
+
};
|
|
605
|
+
module.exports = LRUCache;
|
|
606
|
+
}
|
|
607
|
+
});
|
|
608
|
+
|
|
609
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/range.js
|
|
610
|
+
var require_range = __commonJS({
|
|
611
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/range.js"(exports, module) {
|
|
612
|
+
init_cjs_shims();
|
|
613
|
+
var SPACE_CHARACTERS = /\s+/g, Range = class _Range {
|
|
614
|
+
constructor(range, options) {
|
|
615
|
+
if (options = parseOptions(options), range instanceof _Range)
|
|
616
|
+
return range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease ? range : new _Range(range.raw, options);
|
|
617
|
+
if (range instanceof Comparator)
|
|
618
|
+
return this.raw = range.value, this.set = [[range]], this.formatted = void 0, this;
|
|
619
|
+
if (this.options = options, this.loose = !!options.loose, this.includePrerelease = !!options.includePrerelease, this.raw = range.trim().replace(SPACE_CHARACTERS, " "), this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length), !this.set.length)
|
|
620
|
+
throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
621
|
+
if (this.set.length > 1) {
|
|
622
|
+
let first = this.set[0];
|
|
623
|
+
if (this.set = this.set.filter((c) => !isNullSet(c[0])), this.set.length === 0)
|
|
624
|
+
this.set = [first];
|
|
625
|
+
else if (this.set.length > 1) {
|
|
626
|
+
for (let c of this.set)
|
|
627
|
+
if (c.length === 1 && isAny(c[0])) {
|
|
628
|
+
this.set = [c];
|
|
629
|
+
break;
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
this.formatted = void 0;
|
|
634
|
+
}
|
|
635
|
+
get range() {
|
|
636
|
+
if (this.formatted === void 0) {
|
|
637
|
+
this.formatted = "";
|
|
638
|
+
for (let i = 0; i < this.set.length; i++) {
|
|
639
|
+
i > 0 && (this.formatted += "||");
|
|
640
|
+
let comps = this.set[i];
|
|
641
|
+
for (let k = 0; k < comps.length; k++)
|
|
642
|
+
k > 0 && (this.formatted += " "), this.formatted += comps[k].toString().trim();
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
return this.formatted;
|
|
646
|
+
}
|
|
647
|
+
format() {
|
|
648
|
+
return this.range;
|
|
649
|
+
}
|
|
650
|
+
toString() {
|
|
651
|
+
return this.range;
|
|
652
|
+
}
|
|
653
|
+
parseRange(range) {
|
|
654
|
+
let memoKey = ((this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE)) + ":" + range, cached = cache.get(memoKey);
|
|
655
|
+
if (cached)
|
|
656
|
+
return cached;
|
|
657
|
+
let loose = this.options.loose, hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
|
|
658
|
+
range = range.replace(hr, hyphenReplace(this.options.includePrerelease)), debug("hyphen replace", range), range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace), debug("comparator trim", range), range = range.replace(re[t.TILDETRIM], tildeTrimReplace), debug("tilde trim", range), range = range.replace(re[t.CARETTRIM], caretTrimReplace), debug("caret trim", range);
|
|
659
|
+
let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
|
|
660
|
+
loose && (rangeList = rangeList.filter((comp) => (debug("loose invalid filter", comp, this.options), !!comp.match(re[t.COMPARATORLOOSE])))), debug("range list", rangeList);
|
|
661
|
+
let rangeMap = /* @__PURE__ */ new Map(), comparators = rangeList.map((comp) => new Comparator(comp, this.options));
|
|
662
|
+
for (let comp of comparators) {
|
|
663
|
+
if (isNullSet(comp))
|
|
664
|
+
return [comp];
|
|
665
|
+
rangeMap.set(comp.value, comp);
|
|
666
|
+
}
|
|
667
|
+
rangeMap.size > 1 && rangeMap.has("") && rangeMap.delete("");
|
|
668
|
+
let result = [...rangeMap.values()];
|
|
669
|
+
return cache.set(memoKey, result), result;
|
|
670
|
+
}
|
|
671
|
+
intersects(range, options) {
|
|
672
|
+
if (!(range instanceof _Range))
|
|
673
|
+
throw new TypeError("a Range is required");
|
|
674
|
+
return this.set.some((thisComparators) => isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => rangeComparators.every((rangeComparator) => thisComparator.intersects(rangeComparator, options)))));
|
|
675
|
+
}
|
|
676
|
+
// if ANY of the sets match ALL of its comparators, then pass
|
|
677
|
+
test(version) {
|
|
678
|
+
if (!version)
|
|
679
|
+
return !1;
|
|
680
|
+
if (typeof version == "string")
|
|
681
|
+
try {
|
|
682
|
+
version = new SemVer(version, this.options);
|
|
683
|
+
} catch {
|
|
684
|
+
return !1;
|
|
685
|
+
}
|
|
686
|
+
for (let i = 0; i < this.set.length; i++)
|
|
687
|
+
if (testSet(this.set[i], version, this.options))
|
|
688
|
+
return !0;
|
|
689
|
+
return !1;
|
|
690
|
+
}
|
|
691
|
+
};
|
|
692
|
+
module.exports = Range;
|
|
693
|
+
var LRU = require_lrucache(), cache = new LRU(), parseOptions = require_parse_options(), Comparator = require_comparator(), debug = require_debug(), SemVer = require_semver(), {
|
|
694
|
+
safeRe: re,
|
|
695
|
+
t,
|
|
696
|
+
comparatorTrimReplace,
|
|
697
|
+
tildeTrimReplace,
|
|
698
|
+
caretTrimReplace
|
|
699
|
+
} = require_re(), { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants(), isNullSet = (c) => c.value === "<0.0.0-0", isAny = (c) => c.value === "", isSatisfiable = (comparators, options) => {
|
|
700
|
+
let result = !0, remainingComparators = comparators.slice(), testComparator = remainingComparators.pop();
|
|
701
|
+
for (; result && remainingComparators.length; )
|
|
702
|
+
result = remainingComparators.every((otherComparator) => testComparator.intersects(otherComparator, options)), testComparator = remainingComparators.pop();
|
|
703
|
+
return result;
|
|
704
|
+
}, parseComparator = (comp, options) => (debug("comp", comp, options), comp = replaceCarets(comp, options), debug("caret", comp), comp = replaceTildes(comp, options), debug("tildes", comp), comp = replaceXRanges(comp, options), debug("xrange", comp), comp = replaceStars(comp, options), debug("stars", comp), comp), isX = (id) => !id || id.toLowerCase() === "x" || id === "*", replaceTildes = (comp, options) => comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" "), replaceTilde = (comp, options) => {
|
|
705
|
+
let r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
|
|
706
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
707
|
+
debug("tilde", comp, _, M, m, p, pr);
|
|
708
|
+
let ret;
|
|
709
|
+
return isX(M) ? ret = "" : isX(m) ? ret = `>=${M}.0.0 <${+M + 1}.0.0-0` : isX(p) ? ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0` : pr ? (debug("replaceTilde pr", pr), ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`) : ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`, debug("tilde return", ret), ret;
|
|
710
|
+
});
|
|
711
|
+
}, replaceCarets = (comp, options) => comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" "), replaceCaret = (comp, options) => {
|
|
712
|
+
debug("caret", comp, options);
|
|
713
|
+
let r = options.loose ? re[t.CARETLOOSE] : re[t.CARET], z = options.includePrerelease ? "-0" : "";
|
|
714
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
715
|
+
debug("caret", comp, _, M, m, p, pr);
|
|
716
|
+
let ret;
|
|
717
|
+
return isX(M) ? ret = "" : isX(m) ? ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0` : isX(p) ? M === "0" ? ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0` : ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0` : pr ? (debug("replaceCaret pr", pr), M === "0" ? m === "0" ? ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0` : ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0` : ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`) : (debug("no pr"), M === "0" ? m === "0" ? ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0` : ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0` : ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`), debug("caret return", ret), ret;
|
|
718
|
+
});
|
|
719
|
+
}, replaceXRanges = (comp, options) => (debug("replaceXRanges", comp, options), comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ")), replaceXRange = (comp, options) => {
|
|
720
|
+
comp = comp.trim();
|
|
721
|
+
let r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
|
|
722
|
+
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
|
|
723
|
+
debug("xRange", comp, ret, gtlt, M, m, p, pr);
|
|
724
|
+
let xM = isX(M), xm = xM || isX(m), xp = xm || isX(p), anyX = xp;
|
|
725
|
+
return gtlt === "=" && anyX && (gtlt = ""), pr = options.includePrerelease ? "-0" : "", xM ? gtlt === ">" || gtlt === "<" ? ret = "<0.0.0-0" : ret = "*" : gtlt && anyX ? (xm && (m = 0), p = 0, gtlt === ">" ? (gtlt = ">=", xm ? (M = +M + 1, m = 0, p = 0) : (m = +m + 1, p = 0)) : gtlt === "<=" && (gtlt = "<", xm ? M = +M + 1 : m = +m + 1), gtlt === "<" && (pr = "-0"), ret = `${gtlt + M}.${m}.${p}${pr}`) : xm ? ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0` : xp && (ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`), debug("xRange return", ret), ret;
|
|
726
|
+
});
|
|
727
|
+
}, replaceStars = (comp, options) => (debug("replaceStars", comp, options), comp.trim().replace(re[t.STAR], "")), replaceGTE0 = (comp, options) => (debug("replaceGTE0", comp, options), comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "")), hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => (isX(fM) ? from = "" : isX(fm) ? from = `>=${fM}.0.0${incPr ? "-0" : ""}` : isX(fp) ? from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}` : fpr ? from = `>=${from}` : from = `>=${from}${incPr ? "-0" : ""}`, isX(tM) ? to = "" : isX(tm) ? to = `<${+tM + 1}.0.0-0` : isX(tp) ? to = `<${tM}.${+tm + 1}.0-0` : tpr ? to = `<=${tM}.${tm}.${tp}-${tpr}` : incPr ? to = `<${tM}.${tm}.${+tp + 1}-0` : to = `<=${to}`, `${from} ${to}`.trim()), testSet = (set, version, options) => {
|
|
728
|
+
for (let i = 0; i < set.length; i++)
|
|
729
|
+
if (!set[i].test(version))
|
|
730
|
+
return !1;
|
|
731
|
+
if (version.prerelease.length && !options.includePrerelease) {
|
|
732
|
+
for (let i = 0; i < set.length; i++)
|
|
733
|
+
if (debug(set[i].semver), set[i].semver !== Comparator.ANY && set[i].semver.prerelease.length > 0) {
|
|
734
|
+
let allowed = set[i].semver;
|
|
735
|
+
if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch)
|
|
736
|
+
return !0;
|
|
737
|
+
}
|
|
738
|
+
return !1;
|
|
739
|
+
}
|
|
740
|
+
return !0;
|
|
741
|
+
};
|
|
742
|
+
}
|
|
743
|
+
});
|
|
744
|
+
|
|
745
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/comparator.js
|
|
746
|
+
var require_comparator = __commonJS({
|
|
747
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/comparator.js"(exports, module) {
|
|
748
|
+
init_cjs_shims();
|
|
749
|
+
var ANY = /* @__PURE__ */ Symbol("SemVer ANY"), Comparator = class _Comparator {
|
|
750
|
+
static get ANY() {
|
|
751
|
+
return ANY;
|
|
752
|
+
}
|
|
753
|
+
constructor(comp, options) {
|
|
754
|
+
if (options = parseOptions(options), comp instanceof _Comparator) {
|
|
755
|
+
if (comp.loose === !!options.loose)
|
|
756
|
+
return comp;
|
|
757
|
+
comp = comp.value;
|
|
758
|
+
}
|
|
759
|
+
comp = comp.trim().split(/\s+/).join(" "), debug("comparator", comp, options), this.options = options, this.loose = !!options.loose, this.parse(comp), this.semver === ANY ? this.value = "" : this.value = this.operator + this.semver.version, debug("comp", this);
|
|
760
|
+
}
|
|
761
|
+
parse(comp) {
|
|
762
|
+
let r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR], m = comp.match(r);
|
|
763
|
+
if (!m)
|
|
764
|
+
throw new TypeError(`Invalid comparator: ${comp}`);
|
|
765
|
+
this.operator = m[1] !== void 0 ? m[1] : "", this.operator === "=" && (this.operator = ""), m[2] ? this.semver = new SemVer(m[2], this.options.loose) : this.semver = ANY;
|
|
766
|
+
}
|
|
767
|
+
toString() {
|
|
768
|
+
return this.value;
|
|
769
|
+
}
|
|
770
|
+
test(version) {
|
|
771
|
+
if (debug("Comparator.test", version, this.options.loose), this.semver === ANY || version === ANY)
|
|
772
|
+
return !0;
|
|
773
|
+
if (typeof version == "string")
|
|
774
|
+
try {
|
|
775
|
+
version = new SemVer(version, this.options);
|
|
776
|
+
} catch {
|
|
777
|
+
return !1;
|
|
778
|
+
}
|
|
779
|
+
return cmp(version, this.operator, this.semver, this.options);
|
|
780
|
+
}
|
|
781
|
+
intersects(comp, options) {
|
|
782
|
+
if (!(comp instanceof _Comparator))
|
|
783
|
+
throw new TypeError("a Comparator is required");
|
|
784
|
+
return this.operator === "" ? this.value === "" ? !0 : new Range(comp.value, options).test(this.value) : comp.operator === "" ? comp.value === "" ? !0 : new Range(this.value, options).test(comp.semver) : (options = parseOptions(options), options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0") || !options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0")) ? !1 : !!(this.operator.startsWith(">") && comp.operator.startsWith(">") || this.operator.startsWith("<") && comp.operator.startsWith("<") || this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=") || cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<") || cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")));
|
|
785
|
+
}
|
|
786
|
+
};
|
|
787
|
+
module.exports = Comparator;
|
|
788
|
+
var parseOptions = require_parse_options(), { safeRe: re, t } = require_re(), cmp = require_cmp(), debug = require_debug(), SemVer = require_semver(), Range = require_range();
|
|
789
|
+
}
|
|
790
|
+
});
|
|
791
|
+
|
|
792
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/satisfies.js
|
|
793
|
+
var require_satisfies = __commonJS({
|
|
794
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/satisfies.js"(exports, module) {
|
|
795
|
+
init_cjs_shims();
|
|
796
|
+
var Range = require_range(), satisfies = (version, range, options) => {
|
|
797
|
+
try {
|
|
798
|
+
range = new Range(range, options);
|
|
799
|
+
} catch {
|
|
800
|
+
return !1;
|
|
801
|
+
}
|
|
802
|
+
return range.test(version);
|
|
803
|
+
};
|
|
804
|
+
module.exports = satisfies;
|
|
805
|
+
}
|
|
806
|
+
});
|
|
807
|
+
|
|
808
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/to-comparators.js
|
|
809
|
+
var require_to_comparators = __commonJS({
|
|
810
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/to-comparators.js"(exports, module) {
|
|
811
|
+
init_cjs_shims();
|
|
812
|
+
var Range = require_range(), toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
813
|
+
module.exports = toComparators;
|
|
814
|
+
}
|
|
815
|
+
});
|
|
816
|
+
|
|
817
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/max-satisfying.js
|
|
818
|
+
var require_max_satisfying = __commonJS({
|
|
819
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/max-satisfying.js"(exports, module) {
|
|
820
|
+
init_cjs_shims();
|
|
821
|
+
var SemVer = require_semver(), Range = require_range(), maxSatisfying = (versions, range, options) => {
|
|
822
|
+
let max = null, maxSV = null, rangeObj = null;
|
|
823
|
+
try {
|
|
824
|
+
rangeObj = new Range(range, options);
|
|
825
|
+
} catch {
|
|
826
|
+
return null;
|
|
827
|
+
}
|
|
828
|
+
return versions.forEach((v) => {
|
|
829
|
+
rangeObj.test(v) && (!max || maxSV.compare(v) === -1) && (max = v, maxSV = new SemVer(max, options));
|
|
830
|
+
}), max;
|
|
831
|
+
};
|
|
832
|
+
module.exports = maxSatisfying;
|
|
833
|
+
}
|
|
834
|
+
});
|
|
835
|
+
|
|
836
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/min-satisfying.js
|
|
837
|
+
var require_min_satisfying = __commonJS({
|
|
838
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/min-satisfying.js"(exports, module) {
|
|
839
|
+
init_cjs_shims();
|
|
840
|
+
var SemVer = require_semver(), Range = require_range(), minSatisfying = (versions, range, options) => {
|
|
841
|
+
let min = null, minSV = null, rangeObj = null;
|
|
842
|
+
try {
|
|
843
|
+
rangeObj = new Range(range, options);
|
|
844
|
+
} catch {
|
|
845
|
+
return null;
|
|
846
|
+
}
|
|
847
|
+
return versions.forEach((v) => {
|
|
848
|
+
rangeObj.test(v) && (!min || minSV.compare(v) === 1) && (min = v, minSV = new SemVer(min, options));
|
|
849
|
+
}), min;
|
|
850
|
+
};
|
|
851
|
+
module.exports = minSatisfying;
|
|
852
|
+
}
|
|
853
|
+
});
|
|
854
|
+
|
|
855
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/min-version.js
|
|
856
|
+
var require_min_version = __commonJS({
|
|
857
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/min-version.js"(exports, module) {
|
|
858
|
+
init_cjs_shims();
|
|
859
|
+
var SemVer = require_semver(), Range = require_range(), gt = require_gt(), minVersion = (range, loose) => {
|
|
860
|
+
range = new Range(range, loose);
|
|
861
|
+
let minver = new SemVer("0.0.0");
|
|
862
|
+
if (range.test(minver) || (minver = new SemVer("0.0.0-0"), range.test(minver)))
|
|
863
|
+
return minver;
|
|
864
|
+
minver = null;
|
|
865
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
866
|
+
let comparators = range.set[i], setMin = null;
|
|
867
|
+
comparators.forEach((comparator) => {
|
|
868
|
+
let compver = new SemVer(comparator.semver.version);
|
|
869
|
+
switch (comparator.operator) {
|
|
870
|
+
case ">":
|
|
871
|
+
compver.prerelease.length === 0 ? compver.patch++ : compver.prerelease.push(0), compver.raw = compver.format();
|
|
872
|
+
/* fallthrough */
|
|
873
|
+
case "":
|
|
874
|
+
case ">=":
|
|
875
|
+
(!setMin || gt(compver, setMin)) && (setMin = compver);
|
|
876
|
+
break;
|
|
877
|
+
case "<":
|
|
878
|
+
case "<=":
|
|
879
|
+
break;
|
|
880
|
+
/* istanbul ignore next */
|
|
881
|
+
default:
|
|
882
|
+
throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
883
|
+
}
|
|
884
|
+
}), setMin && (!minver || gt(minver, setMin)) && (minver = setMin);
|
|
885
|
+
}
|
|
886
|
+
return minver && range.test(minver) ? minver : null;
|
|
887
|
+
};
|
|
888
|
+
module.exports = minVersion;
|
|
889
|
+
}
|
|
890
|
+
});
|
|
891
|
+
|
|
892
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/valid.js
|
|
893
|
+
var require_valid2 = __commonJS({
|
|
894
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/valid.js"(exports, module) {
|
|
895
|
+
init_cjs_shims();
|
|
896
|
+
var Range = require_range(), validRange = (range, options) => {
|
|
897
|
+
try {
|
|
898
|
+
return new Range(range, options).range || "*";
|
|
899
|
+
} catch {
|
|
900
|
+
return null;
|
|
901
|
+
}
|
|
902
|
+
};
|
|
903
|
+
module.exports = validRange;
|
|
904
|
+
}
|
|
905
|
+
});
|
|
906
|
+
|
|
907
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/outside.js
|
|
908
|
+
var require_outside = __commonJS({
|
|
909
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/outside.js"(exports, module) {
|
|
910
|
+
init_cjs_shims();
|
|
911
|
+
var SemVer = require_semver(), Comparator = require_comparator(), { ANY } = Comparator, Range = require_range(), satisfies = require_satisfies(), gt = require_gt(), lt = require_lt(), lte = require_lte(), gte = require_gte(), outside = (version, range, hilo, options) => {
|
|
912
|
+
version = new SemVer(version, options), range = new Range(range, options);
|
|
913
|
+
let gtfn, ltefn, ltfn, comp, ecomp;
|
|
914
|
+
switch (hilo) {
|
|
915
|
+
case ">":
|
|
916
|
+
gtfn = gt, ltefn = lte, ltfn = lt, comp = ">", ecomp = ">=";
|
|
917
|
+
break;
|
|
918
|
+
case "<":
|
|
919
|
+
gtfn = lt, ltefn = gte, ltfn = gt, comp = "<", ecomp = "<=";
|
|
920
|
+
break;
|
|
921
|
+
default:
|
|
922
|
+
throw new TypeError('Must provide a hilo val of "<" or ">"');
|
|
923
|
+
}
|
|
924
|
+
if (satisfies(version, range, options))
|
|
925
|
+
return !1;
|
|
926
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
927
|
+
let comparators = range.set[i], high = null, low = null;
|
|
928
|
+
if (comparators.forEach((comparator) => {
|
|
929
|
+
comparator.semver === ANY && (comparator = new Comparator(">=0.0.0")), high = high || comparator, low = low || comparator, gtfn(comparator.semver, high.semver, options) ? high = comparator : ltfn(comparator.semver, low.semver, options) && (low = comparator);
|
|
930
|
+
}), high.operator === comp || high.operator === ecomp || (!low.operator || low.operator === comp) && ltefn(version, low.semver))
|
|
931
|
+
return !1;
|
|
932
|
+
if (low.operator === ecomp && ltfn(version, low.semver))
|
|
933
|
+
return !1;
|
|
934
|
+
}
|
|
935
|
+
return !0;
|
|
936
|
+
};
|
|
937
|
+
module.exports = outside;
|
|
938
|
+
}
|
|
939
|
+
});
|
|
940
|
+
|
|
941
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/gtr.js
|
|
942
|
+
var require_gtr = __commonJS({
|
|
943
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/gtr.js"(exports, module) {
|
|
944
|
+
init_cjs_shims();
|
|
945
|
+
var outside = require_outside(), gtr = (version, range, options) => outside(version, range, ">", options);
|
|
946
|
+
module.exports = gtr;
|
|
947
|
+
}
|
|
948
|
+
});
|
|
949
|
+
|
|
950
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/ltr.js
|
|
951
|
+
var require_ltr = __commonJS({
|
|
952
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/ltr.js"(exports, module) {
|
|
953
|
+
init_cjs_shims();
|
|
954
|
+
var outside = require_outside(), ltr = (version, range, options) => outside(version, range, "<", options);
|
|
955
|
+
module.exports = ltr;
|
|
956
|
+
}
|
|
957
|
+
});
|
|
958
|
+
|
|
959
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/intersects.js
|
|
960
|
+
var require_intersects = __commonJS({
|
|
961
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/intersects.js"(exports, module) {
|
|
962
|
+
init_cjs_shims();
|
|
963
|
+
var Range = require_range(), intersects = (r1, r2, options) => (r1 = new Range(r1, options), r2 = new Range(r2, options), r1.intersects(r2, options));
|
|
964
|
+
module.exports = intersects;
|
|
965
|
+
}
|
|
966
|
+
});
|
|
967
|
+
|
|
968
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/simplify.js
|
|
969
|
+
var require_simplify = __commonJS({
|
|
970
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/simplify.js"(exports, module) {
|
|
971
|
+
init_cjs_shims();
|
|
972
|
+
var satisfies = require_satisfies(), compare = require_compare();
|
|
973
|
+
module.exports = (versions, range, options) => {
|
|
974
|
+
let set = [], first = null, prev = null, v = versions.sort((a, b) => compare(a, b, options));
|
|
975
|
+
for (let version of v)
|
|
976
|
+
satisfies(version, range, options) ? (prev = version, first || (first = version)) : (prev && set.push([first, prev]), prev = null, first = null);
|
|
977
|
+
first && set.push([first, null]);
|
|
978
|
+
let ranges = [];
|
|
979
|
+
for (let [min, max] of set)
|
|
980
|
+
min === max ? ranges.push(min) : !max && min === v[0] ? ranges.push("*") : max ? min === v[0] ? ranges.push(`<=${max}`) : ranges.push(`${min} - ${max}`) : ranges.push(`>=${min}`);
|
|
981
|
+
let simplified = ranges.join(" || "), original = typeof range.raw == "string" ? range.raw : String(range);
|
|
982
|
+
return simplified.length < original.length ? simplified : range;
|
|
983
|
+
};
|
|
984
|
+
}
|
|
985
|
+
});
|
|
986
|
+
|
|
987
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/subset.js
|
|
988
|
+
var require_subset = __commonJS({
|
|
989
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/subset.js"(exports, module) {
|
|
990
|
+
init_cjs_shims();
|
|
991
|
+
var Range = require_range(), Comparator = require_comparator(), { ANY } = Comparator, satisfies = require_satisfies(), compare = require_compare(), subset = (sub, dom, options = {}) => {
|
|
992
|
+
if (sub === dom)
|
|
993
|
+
return !0;
|
|
994
|
+
sub = new Range(sub, options), dom = new Range(dom, options);
|
|
995
|
+
let sawNonNull = !1;
|
|
996
|
+
OUTER: for (let simpleSub of sub.set) {
|
|
997
|
+
for (let simpleDom of dom.set) {
|
|
998
|
+
let isSub = simpleSubset(simpleSub, simpleDom, options);
|
|
999
|
+
if (sawNonNull = sawNonNull || isSub !== null, isSub)
|
|
1000
|
+
continue OUTER;
|
|
1001
|
+
}
|
|
1002
|
+
if (sawNonNull)
|
|
1003
|
+
return !1;
|
|
1004
|
+
}
|
|
1005
|
+
return !0;
|
|
1006
|
+
}, minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")], minimumVersion = [new Comparator(">=0.0.0")], simpleSubset = (sub, dom, options) => {
|
|
1007
|
+
if (sub === dom)
|
|
1008
|
+
return !0;
|
|
1009
|
+
if (sub.length === 1 && sub[0].semver === ANY) {
|
|
1010
|
+
if (dom.length === 1 && dom[0].semver === ANY)
|
|
1011
|
+
return !0;
|
|
1012
|
+
options.includePrerelease ? sub = minimumVersionWithPreRelease : sub = minimumVersion;
|
|
1013
|
+
}
|
|
1014
|
+
if (dom.length === 1 && dom[0].semver === ANY) {
|
|
1015
|
+
if (options.includePrerelease)
|
|
1016
|
+
return !0;
|
|
1017
|
+
dom = minimumVersion;
|
|
1018
|
+
}
|
|
1019
|
+
let eqSet = /* @__PURE__ */ new Set(), gt, lt;
|
|
1020
|
+
for (let c of sub)
|
|
1021
|
+
c.operator === ">" || c.operator === ">=" ? gt = higherGT(gt, c, options) : c.operator === "<" || c.operator === "<=" ? lt = lowerLT(lt, c, options) : eqSet.add(c.semver);
|
|
1022
|
+
if (eqSet.size > 1)
|
|
1023
|
+
return null;
|
|
1024
|
+
let gtltComp;
|
|
1025
|
+
if (gt && lt) {
|
|
1026
|
+
if (gtltComp = compare(gt.semver, lt.semver, options), gtltComp > 0)
|
|
1027
|
+
return null;
|
|
1028
|
+
if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<="))
|
|
1029
|
+
return null;
|
|
1030
|
+
}
|
|
1031
|
+
for (let eq of eqSet) {
|
|
1032
|
+
if (gt && !satisfies(eq, String(gt), options) || lt && !satisfies(eq, String(lt), options))
|
|
1033
|
+
return null;
|
|
1034
|
+
for (let c of dom)
|
|
1035
|
+
if (!satisfies(eq, String(c), options))
|
|
1036
|
+
return !1;
|
|
1037
|
+
return !0;
|
|
1038
|
+
}
|
|
1039
|
+
let higher, lower, hasDomLT, hasDomGT, needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : !1, needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : !1;
|
|
1040
|
+
needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0 && (needDomLTPre = !1);
|
|
1041
|
+
for (let c of dom) {
|
|
1042
|
+
if (hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=", hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=", gt) {
|
|
1043
|
+
if (needDomGTPre && c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomGTPre.major && c.semver.minor === needDomGTPre.minor && c.semver.patch === needDomGTPre.patch && (needDomGTPre = !1), c.operator === ">" || c.operator === ">=") {
|
|
1044
|
+
if (higher = higherGT(gt, c, options), higher === c && higher !== gt)
|
|
1045
|
+
return !1;
|
|
1046
|
+
} else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options))
|
|
1047
|
+
return !1;
|
|
1048
|
+
}
|
|
1049
|
+
if (lt) {
|
|
1050
|
+
if (needDomLTPre && c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomLTPre.major && c.semver.minor === needDomLTPre.minor && c.semver.patch === needDomLTPre.patch && (needDomLTPre = !1), c.operator === "<" || c.operator === "<=") {
|
|
1051
|
+
if (lower = lowerLT(lt, c, options), lower === c && lower !== lt)
|
|
1052
|
+
return !1;
|
|
1053
|
+
} else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options))
|
|
1054
|
+
return !1;
|
|
1055
|
+
}
|
|
1056
|
+
if (!c.operator && (lt || gt) && gtltComp !== 0)
|
|
1057
|
+
return !1;
|
|
1058
|
+
}
|
|
1059
|
+
return !(gt && hasDomLT && !lt && gtltComp !== 0 || lt && hasDomGT && !gt && gtltComp !== 0 || needDomGTPre || needDomLTPre);
|
|
1060
|
+
}, higherGT = (a, b, options) => {
|
|
1061
|
+
if (!a)
|
|
1062
|
+
return b;
|
|
1063
|
+
let comp = compare(a.semver, b.semver, options);
|
|
1064
|
+
return comp > 0 ? a : comp < 0 || b.operator === ">" && a.operator === ">=" ? b : a;
|
|
1065
|
+
}, lowerLT = (a, b, options) => {
|
|
1066
|
+
if (!a)
|
|
1067
|
+
return b;
|
|
1068
|
+
let comp = compare(a.semver, b.semver, options);
|
|
1069
|
+
return comp < 0 ? a : comp > 0 || b.operator === "<" && a.operator === "<=" ? b : a;
|
|
1070
|
+
};
|
|
1071
|
+
module.exports = subset;
|
|
1072
|
+
}
|
|
1073
|
+
});
|
|
1074
|
+
|
|
1075
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/index.js
|
|
1076
|
+
var require_semver2 = __commonJS({
|
|
1077
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/index.js"(exports, module) {
|
|
1078
|
+
init_cjs_shims();
|
|
1079
|
+
var internalRe = require_re(), constants = require_constants(), SemVer = require_semver(), identifiers = require_identifiers(), parse = require_parse(), valid = require_valid(), clean = require_clean(), inc = require_inc(), diff = require_diff(), major = require_major(), minor = require_minor(), patch = require_patch(), prerelease = require_prerelease(), compare = require_compare(), rcompare = require_rcompare(), compareLoose = require_compare_loose(), compareBuild = require_compare_build(), sort = require_sort(), rsort = require_rsort(), gt = require_gt(), lt = require_lt(), eq = require_eq(), neq = require_neq(), gte = require_gte(), lte = require_lte(), cmp = require_cmp(), coerce = require_coerce(), Comparator = require_comparator(), Range = require_range(), satisfies = require_satisfies(), toComparators = require_to_comparators(), maxSatisfying = require_max_satisfying(), minSatisfying = require_min_satisfying(), minVersion = require_min_version(), validRange = require_valid2(), outside = require_outside(), gtr = require_gtr(), ltr = require_ltr(), intersects = require_intersects(), simplifyRange = require_simplify(), subset = require_subset();
|
|
1080
|
+
module.exports = {
|
|
1081
|
+
parse,
|
|
1082
|
+
valid,
|
|
1083
|
+
clean,
|
|
1084
|
+
inc,
|
|
1085
|
+
diff,
|
|
1086
|
+
major,
|
|
1087
|
+
minor,
|
|
1088
|
+
patch,
|
|
1089
|
+
prerelease,
|
|
1090
|
+
compare,
|
|
1091
|
+
rcompare,
|
|
1092
|
+
compareLoose,
|
|
1093
|
+
compareBuild,
|
|
1094
|
+
sort,
|
|
1095
|
+
rsort,
|
|
1096
|
+
gt,
|
|
1097
|
+
lt,
|
|
1098
|
+
eq,
|
|
1099
|
+
neq,
|
|
1100
|
+
gte,
|
|
1101
|
+
lte,
|
|
1102
|
+
cmp,
|
|
1103
|
+
coerce,
|
|
1104
|
+
Comparator,
|
|
1105
|
+
Range,
|
|
1106
|
+
satisfies,
|
|
1107
|
+
toComparators,
|
|
1108
|
+
maxSatisfying,
|
|
1109
|
+
minSatisfying,
|
|
1110
|
+
minVersion,
|
|
1111
|
+
validRange,
|
|
1112
|
+
outside,
|
|
1113
|
+
gtr,
|
|
1114
|
+
ltr,
|
|
1115
|
+
intersects,
|
|
1116
|
+
simplifyRange,
|
|
1117
|
+
subset,
|
|
1118
|
+
SemVer,
|
|
1119
|
+
re: internalRe.re,
|
|
1120
|
+
src: internalRe.src,
|
|
1121
|
+
tokens: internalRe.t,
|
|
1122
|
+
SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
|
|
1123
|
+
RELEASE_TYPES: constants.RELEASE_TYPES,
|
|
1124
|
+
compareIdentifiers: identifiers.compareIdentifiers,
|
|
1125
|
+
rcompareIdentifiers: identifiers.rcompareIdentifiers
|
|
1126
|
+
};
|
|
1127
|
+
}
|
|
1128
|
+
});
|
|
1129
|
+
|
|
1130
|
+
export {
|
|
1131
|
+
require_semver2 as require_semver
|
|
1132
|
+
};
|
|
1133
|
+
//# sourceMappingURL=chunk-6OOTYTVB.js.map
|