@shopify/create-app 3.78.2 → 3.79.1
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/{chunk-PS6NFRCK.js → chunk-CZWBQ3CZ.js} +104 -19
- package/dist/{chunk-KNEC3BRF.js → chunk-FEMRLJY6.js} +5 -5
- package/dist/{chunk-NT557SK2.js → chunk-KRGUVLHQ.js} +1198 -129
- package/dist/{chunk-EQR72MUQ.js → chunk-OOQNNVSN.js} +10 -6
- package/dist/{chunk-HYAKRM37.js → chunk-WP4C65OV.js} +15 -14
- package/dist/{chunk-WHWAKQQY.js → chunk-YTWZ7YHV.js} +6 -1129
- package/dist/{custom-oclif-loader-4XA4AN34.js → custom-oclif-loader-BLG7V5O6.js} +2 -2
- package/dist/{error-handler-M5SCW37U.js → error-handler-CHLL2XNT.js} +6 -6
- package/dist/hooks/postrun.js +4 -4
- package/dist/hooks/prerun.js +4 -4
- package/dist/index.js +17420 -17075
- package/dist/is-wsl-YAJ3DFN7.js +64 -0
- package/dist/{local-ZUDPXH3G.js → local-DUTQKZTQ.js} +2 -4
- package/dist/{node-package-manager-FFT43K5J.js → node-package-manager-R2Z7LRGK.js} +3 -3
- package/dist/toml-patch-wasm-J5VGG6WG.js +140 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-FBSFOBFT.js → ui-6KCDQVWI.js} +2 -2
- package/oclif.manifest.json +1 -1
- package/package.json +3 -3
|
@@ -16,9 +16,10 @@ import {
|
|
|
16
16
|
outputToken,
|
|
17
17
|
readFile,
|
|
18
18
|
require_get_stream,
|
|
19
|
+
require_semver,
|
|
19
20
|
runWithTimer,
|
|
20
21
|
writeFile
|
|
21
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-KRGUVLHQ.js";
|
|
22
23
|
import {
|
|
23
24
|
dirname,
|
|
24
25
|
joinPath
|
|
@@ -5082,1130 +5083,6 @@ var require_dist = __commonJS({
|
|
|
5082
5083
|
}
|
|
5083
5084
|
});
|
|
5084
5085
|
|
|
5085
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/constants.js
|
|
5086
|
-
var require_constants = __commonJS({
|
|
5087
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/constants.js"(exports, module) {
|
|
5088
|
-
init_cjs_shims();
|
|
5089
|
-
var SEMVER_SPEC_VERSION = "2.0.0", MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
|
|
5090
|
-
9007199254740991, MAX_SAFE_COMPONENT_LENGTH = 16, MAX_SAFE_BUILD_LENGTH = 250, RELEASE_TYPES = [
|
|
5091
|
-
"major",
|
|
5092
|
-
"premajor",
|
|
5093
|
-
"minor",
|
|
5094
|
-
"preminor",
|
|
5095
|
-
"patch",
|
|
5096
|
-
"prepatch",
|
|
5097
|
-
"prerelease"
|
|
5098
|
-
];
|
|
5099
|
-
module.exports = {
|
|
5100
|
-
MAX_LENGTH: 256,
|
|
5101
|
-
MAX_SAFE_COMPONENT_LENGTH,
|
|
5102
|
-
MAX_SAFE_BUILD_LENGTH,
|
|
5103
|
-
MAX_SAFE_INTEGER,
|
|
5104
|
-
RELEASE_TYPES,
|
|
5105
|
-
SEMVER_SPEC_VERSION,
|
|
5106
|
-
FLAG_INCLUDE_PRERELEASE: 1,
|
|
5107
|
-
FLAG_LOOSE: 2
|
|
5108
|
-
};
|
|
5109
|
-
}
|
|
5110
|
-
});
|
|
5111
|
-
|
|
5112
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/debug.js
|
|
5113
|
-
var require_debug = __commonJS({
|
|
5114
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/debug.js"(exports, module) {
|
|
5115
|
-
init_cjs_shims();
|
|
5116
|
-
var debug = typeof process == "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
|
|
5117
|
-
};
|
|
5118
|
-
module.exports = debug;
|
|
5119
|
-
}
|
|
5120
|
-
});
|
|
5121
|
-
|
|
5122
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/re.js
|
|
5123
|
-
var require_re = __commonJS({
|
|
5124
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/re.js"(exports, module) {
|
|
5125
|
-
init_cjs_shims();
|
|
5126
|
-
var {
|
|
5127
|
-
MAX_SAFE_COMPONENT_LENGTH,
|
|
5128
|
-
MAX_SAFE_BUILD_LENGTH,
|
|
5129
|
-
MAX_LENGTH
|
|
5130
|
-
} = require_constants(), debug = require_debug();
|
|
5131
|
-
exports = module.exports = {};
|
|
5132
|
-
var re = exports.re = [], safeRe = exports.safeRe = [], src = exports.src = [], t = exports.t = {}, R = 0, LETTERDASHNUMBER = "[a-zA-Z0-9-]", safeRegexReplacements = [
|
|
5133
|
-
["\\s", 1],
|
|
5134
|
-
["\\d", MAX_LENGTH],
|
|
5135
|
-
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
|
|
5136
|
-
], makeSafeRegex = (value) => {
|
|
5137
|
-
for (let [token, max] of safeRegexReplacements)
|
|
5138
|
-
value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
|
|
5139
|
-
return value;
|
|
5140
|
-
}, createToken = (name, value, isGlobal) => {
|
|
5141
|
-
let safe = makeSafeRegex(value), index = R++;
|
|
5142
|
-
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);
|
|
5143
|
-
};
|
|
5144
|
-
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
5145
|
-
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
5146
|
-
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
5147
|
-
createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
|
|
5148
|
-
createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
5149
|
-
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`);
|
|
5150
|
-
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NUMERICIDENTIFIERLOOSE]}|${src[t.NONNUMERICIDENTIFIER]})`);
|
|
5151
|
-
createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
5152
|
-
createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
5153
|
-
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
5154
|
-
createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
|
|
5155
|
-
createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
|
|
5156
|
-
createToken("FULL", `^${src[t.FULLPLAIN]}$`);
|
|
5157
|
-
createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
|
|
5158
|
-
createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
|
|
5159
|
-
createToken("GTLT", "((?:<|>)?=?)");
|
|
5160
|
-
createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
|
5161
|
-
createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
|
|
5162
|
-
createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
|
|
5163
|
-
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
|
|
5164
|
-
createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
|
|
5165
|
-
createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
|
|
5166
|
-
createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
|
5167
|
-
createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
5168
|
-
createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
|
|
5169
|
-
createToken("COERCERTL", src[t.COERCE], !0);
|
|
5170
|
-
createToken("COERCERTLFULL", src[t.COERCEFULL], !0);
|
|
5171
|
-
createToken("LONETILDE", "(?:~>?)");
|
|
5172
|
-
createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, !0);
|
|
5173
|
-
exports.tildeTrimReplace = "$1~";
|
|
5174
|
-
createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
|
|
5175
|
-
createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
5176
|
-
createToken("LONECARET", "(?:\\^)");
|
|
5177
|
-
createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, !0);
|
|
5178
|
-
exports.caretTrimReplace = "$1^";
|
|
5179
|
-
createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
|
|
5180
|
-
createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
5181
|
-
createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
|
|
5182
|
-
createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
|
|
5183
|
-
createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, !0);
|
|
5184
|
-
exports.comparatorTrimReplace = "$1$2$3";
|
|
5185
|
-
createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
|
|
5186
|
-
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
|
|
5187
|
-
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
5188
|
-
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
5189
|
-
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
5190
|
-
}
|
|
5191
|
-
});
|
|
5192
|
-
|
|
5193
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/parse-options.js
|
|
5194
|
-
var require_parse_options = __commonJS({
|
|
5195
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/parse-options.js"(exports, module) {
|
|
5196
|
-
init_cjs_shims();
|
|
5197
|
-
var looseOption = Object.freeze({ loose: !0 }), emptyOpts = Object.freeze({}), parseOptions = (options) => options ? typeof options != "object" ? looseOption : options : emptyOpts;
|
|
5198
|
-
module.exports = parseOptions;
|
|
5199
|
-
}
|
|
5200
|
-
});
|
|
5201
|
-
|
|
5202
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/identifiers.js
|
|
5203
|
-
var require_identifiers = __commonJS({
|
|
5204
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/identifiers.js"(exports, module) {
|
|
5205
|
-
init_cjs_shims();
|
|
5206
|
-
var numeric = /^[0-9]+$/, compareIdentifiers = (a, b) => {
|
|
5207
|
-
let anum = numeric.test(a), bnum = numeric.test(b);
|
|
5208
|
-
return anum && bnum && (a = +a, b = +b), a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
|
|
5209
|
-
}, rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
|
|
5210
|
-
module.exports = {
|
|
5211
|
-
compareIdentifiers,
|
|
5212
|
-
rcompareIdentifiers
|
|
5213
|
-
};
|
|
5214
|
-
}
|
|
5215
|
-
});
|
|
5216
|
-
|
|
5217
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/semver.js
|
|
5218
|
-
var require_semver = __commonJS({
|
|
5219
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/semver.js"(exports, module) {
|
|
5220
|
-
init_cjs_shims();
|
|
5221
|
-
var debug = require_debug(), { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants(), { safeRe: re, t } = require_re(), parseOptions = require_parse_options(), { compareIdentifiers } = require_identifiers(), SemVer2 = class _SemVer {
|
|
5222
|
-
constructor(version, options) {
|
|
5223
|
-
if (options = parseOptions(options), version instanceof _SemVer) {
|
|
5224
|
-
if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease)
|
|
5225
|
-
return version;
|
|
5226
|
-
version = version.version;
|
|
5227
|
-
} else if (typeof version != "string")
|
|
5228
|
-
throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
5229
|
-
if (version.length > MAX_LENGTH)
|
|
5230
|
-
throw new TypeError(
|
|
5231
|
-
`version is longer than ${MAX_LENGTH} characters`
|
|
5232
|
-
);
|
|
5233
|
-
debug("SemVer", version, options), this.options = options, this.loose = !!options.loose, this.includePrerelease = !!options.includePrerelease;
|
|
5234
|
-
let m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
|
|
5235
|
-
if (!m)
|
|
5236
|
-
throw new TypeError(`Invalid Version: ${version}`);
|
|
5237
|
-
if (this.raw = version, this.major = +m[1], this.minor = +m[2], this.patch = +m[3], this.major > MAX_SAFE_INTEGER || this.major < 0)
|
|
5238
|
-
throw new TypeError("Invalid major version");
|
|
5239
|
-
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0)
|
|
5240
|
-
throw new TypeError("Invalid minor version");
|
|
5241
|
-
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0)
|
|
5242
|
-
throw new TypeError("Invalid patch version");
|
|
5243
|
-
m[4] ? this.prerelease = m[4].split(".").map((id) => {
|
|
5244
|
-
if (/^[0-9]+$/.test(id)) {
|
|
5245
|
-
let num = +id;
|
|
5246
|
-
if (num >= 0 && num < MAX_SAFE_INTEGER)
|
|
5247
|
-
return num;
|
|
5248
|
-
}
|
|
5249
|
-
return id;
|
|
5250
|
-
}) : this.prerelease = [], this.build = m[5] ? m[5].split(".") : [], this.format();
|
|
5251
|
-
}
|
|
5252
|
-
format() {
|
|
5253
|
-
return this.version = `${this.major}.${this.minor}.${this.patch}`, this.prerelease.length && (this.version += `-${this.prerelease.join(".")}`), this.version;
|
|
5254
|
-
}
|
|
5255
|
-
toString() {
|
|
5256
|
-
return this.version;
|
|
5257
|
-
}
|
|
5258
|
-
compare(other) {
|
|
5259
|
-
if (debug("SemVer.compare", this.version, this.options, other), !(other instanceof _SemVer)) {
|
|
5260
|
-
if (typeof other == "string" && other === this.version)
|
|
5261
|
-
return 0;
|
|
5262
|
-
other = new _SemVer(other, this.options);
|
|
5263
|
-
}
|
|
5264
|
-
return other.version === this.version ? 0 : this.compareMain(other) || this.comparePre(other);
|
|
5265
|
-
}
|
|
5266
|
-
compareMain(other) {
|
|
5267
|
-
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);
|
|
5268
|
-
}
|
|
5269
|
-
comparePre(other) {
|
|
5270
|
-
if (other instanceof _SemVer || (other = new _SemVer(other, this.options)), this.prerelease.length && !other.prerelease.length)
|
|
5271
|
-
return -1;
|
|
5272
|
-
if (!this.prerelease.length && other.prerelease.length)
|
|
5273
|
-
return 1;
|
|
5274
|
-
if (!this.prerelease.length && !other.prerelease.length)
|
|
5275
|
-
return 0;
|
|
5276
|
-
let i = 0;
|
|
5277
|
-
do {
|
|
5278
|
-
let a = this.prerelease[i], b = other.prerelease[i];
|
|
5279
|
-
if (debug("prerelease compare", i, a, b), a === void 0 && b === void 0)
|
|
5280
|
-
return 0;
|
|
5281
|
-
if (b === void 0)
|
|
5282
|
-
return 1;
|
|
5283
|
-
if (a === void 0)
|
|
5284
|
-
return -1;
|
|
5285
|
-
if (a === b)
|
|
5286
|
-
continue;
|
|
5287
|
-
return compareIdentifiers(a, b);
|
|
5288
|
-
} while (++i);
|
|
5289
|
-
}
|
|
5290
|
-
compareBuild(other) {
|
|
5291
|
-
other instanceof _SemVer || (other = new _SemVer(other, this.options));
|
|
5292
|
-
let i = 0;
|
|
5293
|
-
do {
|
|
5294
|
-
let a = this.build[i], b = other.build[i];
|
|
5295
|
-
if (debug("build compare", i, a, b), a === void 0 && b === void 0)
|
|
5296
|
-
return 0;
|
|
5297
|
-
if (b === void 0)
|
|
5298
|
-
return 1;
|
|
5299
|
-
if (a === void 0)
|
|
5300
|
-
return -1;
|
|
5301
|
-
if (a === b)
|
|
5302
|
-
continue;
|
|
5303
|
-
return compareIdentifiers(a, b);
|
|
5304
|
-
} while (++i);
|
|
5305
|
-
}
|
|
5306
|
-
// preminor will bump the version up to the next minor release, and immediately
|
|
5307
|
-
// down to pre-release. premajor and prepatch work the same way.
|
|
5308
|
-
inc(release, identifier, identifierBase) {
|
|
5309
|
-
switch (release) {
|
|
5310
|
-
case "premajor":
|
|
5311
|
-
this.prerelease.length = 0, this.patch = 0, this.minor = 0, this.major++, this.inc("pre", identifier, identifierBase);
|
|
5312
|
-
break;
|
|
5313
|
-
case "preminor":
|
|
5314
|
-
this.prerelease.length = 0, this.patch = 0, this.minor++, this.inc("pre", identifier, identifierBase);
|
|
5315
|
-
break;
|
|
5316
|
-
case "prepatch":
|
|
5317
|
-
this.prerelease.length = 0, this.inc("patch", identifier, identifierBase), this.inc("pre", identifier, identifierBase);
|
|
5318
|
-
break;
|
|
5319
|
-
// If the input is a non-prerelease version, this acts the same as
|
|
5320
|
-
// prepatch.
|
|
5321
|
-
case "prerelease":
|
|
5322
|
-
this.prerelease.length === 0 && this.inc("patch", identifier, identifierBase), this.inc("pre", identifier, identifierBase);
|
|
5323
|
-
break;
|
|
5324
|
-
case "major":
|
|
5325
|
-
(this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) && this.major++, this.minor = 0, this.patch = 0, this.prerelease = [];
|
|
5326
|
-
break;
|
|
5327
|
-
case "minor":
|
|
5328
|
-
(this.patch !== 0 || this.prerelease.length === 0) && this.minor++, this.patch = 0, this.prerelease = [];
|
|
5329
|
-
break;
|
|
5330
|
-
case "patch":
|
|
5331
|
-
this.prerelease.length === 0 && this.patch++, this.prerelease = [];
|
|
5332
|
-
break;
|
|
5333
|
-
// This probably shouldn't be used publicly.
|
|
5334
|
-
// 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
|
|
5335
|
-
case "pre": {
|
|
5336
|
-
let base = Number(identifierBase) ? 1 : 0;
|
|
5337
|
-
if (!identifier && identifierBase === !1)
|
|
5338
|
-
throw new Error("invalid increment argument: identifier is empty");
|
|
5339
|
-
if (this.prerelease.length === 0)
|
|
5340
|
-
this.prerelease = [base];
|
|
5341
|
-
else {
|
|
5342
|
-
let i = this.prerelease.length;
|
|
5343
|
-
for (; --i >= 0; )
|
|
5344
|
-
typeof this.prerelease[i] == "number" && (this.prerelease[i]++, i = -2);
|
|
5345
|
-
if (i === -1) {
|
|
5346
|
-
if (identifier === this.prerelease.join(".") && identifierBase === !1)
|
|
5347
|
-
throw new Error("invalid increment argument: identifier already exists");
|
|
5348
|
-
this.prerelease.push(base);
|
|
5349
|
-
}
|
|
5350
|
-
}
|
|
5351
|
-
if (identifier) {
|
|
5352
|
-
let prerelease = [identifier, base];
|
|
5353
|
-
identifierBase === !1 && (prerelease = [identifier]), compareIdentifiers(this.prerelease[0], identifier) === 0 ? isNaN(this.prerelease[1]) && (this.prerelease = prerelease) : this.prerelease = prerelease;
|
|
5354
|
-
}
|
|
5355
|
-
break;
|
|
5356
|
-
}
|
|
5357
|
-
default:
|
|
5358
|
-
throw new Error(`invalid increment argument: ${release}`);
|
|
5359
|
-
}
|
|
5360
|
-
return this.raw = this.format(), this.build.length && (this.raw += `+${this.build.join(".")}`), this;
|
|
5361
|
-
}
|
|
5362
|
-
};
|
|
5363
|
-
module.exports = SemVer2;
|
|
5364
|
-
}
|
|
5365
|
-
});
|
|
5366
|
-
|
|
5367
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/parse.js
|
|
5368
|
-
var require_parse = __commonJS({
|
|
5369
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/parse.js"(exports, module) {
|
|
5370
|
-
init_cjs_shims();
|
|
5371
|
-
var SemVer2 = require_semver(), parse = (version, options, throwErrors = !1) => {
|
|
5372
|
-
if (version instanceof SemVer2)
|
|
5373
|
-
return version;
|
|
5374
|
-
try {
|
|
5375
|
-
return new SemVer2(version, options);
|
|
5376
|
-
} catch (er) {
|
|
5377
|
-
if (!throwErrors)
|
|
5378
|
-
return null;
|
|
5379
|
-
throw er;
|
|
5380
|
-
}
|
|
5381
|
-
};
|
|
5382
|
-
module.exports = parse;
|
|
5383
|
-
}
|
|
5384
|
-
});
|
|
5385
|
-
|
|
5386
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/valid.js
|
|
5387
|
-
var require_valid = __commonJS({
|
|
5388
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/valid.js"(exports, module) {
|
|
5389
|
-
init_cjs_shims();
|
|
5390
|
-
var parse = require_parse(), valid = (version, options) => {
|
|
5391
|
-
let v = parse(version, options);
|
|
5392
|
-
return v ? v.version : null;
|
|
5393
|
-
};
|
|
5394
|
-
module.exports = valid;
|
|
5395
|
-
}
|
|
5396
|
-
});
|
|
5397
|
-
|
|
5398
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/clean.js
|
|
5399
|
-
var require_clean = __commonJS({
|
|
5400
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/clean.js"(exports, module) {
|
|
5401
|
-
init_cjs_shims();
|
|
5402
|
-
var parse = require_parse(), clean = (version, options) => {
|
|
5403
|
-
let s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
5404
|
-
return s ? s.version : null;
|
|
5405
|
-
};
|
|
5406
|
-
module.exports = clean;
|
|
5407
|
-
}
|
|
5408
|
-
});
|
|
5409
|
-
|
|
5410
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/inc.js
|
|
5411
|
-
var require_inc = __commonJS({
|
|
5412
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/inc.js"(exports, module) {
|
|
5413
|
-
init_cjs_shims();
|
|
5414
|
-
var SemVer2 = require_semver(), inc = (version, release, options, identifier, identifierBase) => {
|
|
5415
|
-
typeof options == "string" && (identifierBase = identifier, identifier = options, options = void 0);
|
|
5416
|
-
try {
|
|
5417
|
-
return new SemVer2(
|
|
5418
|
-
version instanceof SemVer2 ? version.version : version,
|
|
5419
|
-
options
|
|
5420
|
-
).inc(release, identifier, identifierBase).version;
|
|
5421
|
-
} catch {
|
|
5422
|
-
return null;
|
|
5423
|
-
}
|
|
5424
|
-
};
|
|
5425
|
-
module.exports = inc;
|
|
5426
|
-
}
|
|
5427
|
-
});
|
|
5428
|
-
|
|
5429
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/diff.js
|
|
5430
|
-
var require_diff = __commonJS({
|
|
5431
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/diff.js"(exports, module) {
|
|
5432
|
-
init_cjs_shims();
|
|
5433
|
-
var parse = require_parse(), diff = (version1, version2) => {
|
|
5434
|
-
let v1 = parse(version1, null, !0), v2 = parse(version2, null, !0), comparison = v1.compare(v2);
|
|
5435
|
-
if (comparison === 0)
|
|
5436
|
-
return null;
|
|
5437
|
-
let v1Higher = comparison > 0, highVersion = v1Higher ? v1 : v2, lowVersion = v1Higher ? v2 : v1, highHasPre = !!highVersion.prerelease.length;
|
|
5438
|
-
if (!!lowVersion.prerelease.length && !highHasPre)
|
|
5439
|
-
return !lowVersion.patch && !lowVersion.minor ? "major" : highVersion.patch ? "patch" : highVersion.minor ? "minor" : "major";
|
|
5440
|
-
let prefix = highHasPre ? "pre" : "";
|
|
5441
|
-
return v1.major !== v2.major ? prefix + "major" : v1.minor !== v2.minor ? prefix + "minor" : v1.patch !== v2.patch ? prefix + "patch" : "prerelease";
|
|
5442
|
-
};
|
|
5443
|
-
module.exports = diff;
|
|
5444
|
-
}
|
|
5445
|
-
});
|
|
5446
|
-
|
|
5447
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/major.js
|
|
5448
|
-
var require_major = __commonJS({
|
|
5449
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/major.js"(exports, module) {
|
|
5450
|
-
init_cjs_shims();
|
|
5451
|
-
var SemVer2 = require_semver(), major2 = (a, loose) => new SemVer2(a, loose).major;
|
|
5452
|
-
module.exports = major2;
|
|
5453
|
-
}
|
|
5454
|
-
});
|
|
5455
|
-
|
|
5456
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/minor.js
|
|
5457
|
-
var require_minor = __commonJS({
|
|
5458
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/minor.js"(exports, module) {
|
|
5459
|
-
init_cjs_shims();
|
|
5460
|
-
var SemVer2 = require_semver(), minor2 = (a, loose) => new SemVer2(a, loose).minor;
|
|
5461
|
-
module.exports = minor2;
|
|
5462
|
-
}
|
|
5463
|
-
});
|
|
5464
|
-
|
|
5465
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/patch.js
|
|
5466
|
-
var require_patch = __commonJS({
|
|
5467
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/patch.js"(exports, module) {
|
|
5468
|
-
init_cjs_shims();
|
|
5469
|
-
var SemVer2 = require_semver(), patch = (a, loose) => new SemVer2(a, loose).patch;
|
|
5470
|
-
module.exports = patch;
|
|
5471
|
-
}
|
|
5472
|
-
});
|
|
5473
|
-
|
|
5474
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/prerelease.js
|
|
5475
|
-
var require_prerelease = __commonJS({
|
|
5476
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/prerelease.js"(exports, module) {
|
|
5477
|
-
init_cjs_shims();
|
|
5478
|
-
var parse = require_parse(), prerelease = (version, options) => {
|
|
5479
|
-
let parsed = parse(version, options);
|
|
5480
|
-
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
5481
|
-
};
|
|
5482
|
-
module.exports = prerelease;
|
|
5483
|
-
}
|
|
5484
|
-
});
|
|
5485
|
-
|
|
5486
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare.js
|
|
5487
|
-
var require_compare = __commonJS({
|
|
5488
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare.js"(exports, module) {
|
|
5489
|
-
init_cjs_shims();
|
|
5490
|
-
var SemVer2 = require_semver(), compare = (a, b, loose) => new SemVer2(a, loose).compare(new SemVer2(b, loose));
|
|
5491
|
-
module.exports = compare;
|
|
5492
|
-
}
|
|
5493
|
-
});
|
|
5494
|
-
|
|
5495
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/rcompare.js
|
|
5496
|
-
var require_rcompare = __commonJS({
|
|
5497
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/rcompare.js"(exports, module) {
|
|
5498
|
-
init_cjs_shims();
|
|
5499
|
-
var compare = require_compare(), rcompare = (a, b, loose) => compare(b, a, loose);
|
|
5500
|
-
module.exports = rcompare;
|
|
5501
|
-
}
|
|
5502
|
-
});
|
|
5503
|
-
|
|
5504
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare-loose.js
|
|
5505
|
-
var require_compare_loose = __commonJS({
|
|
5506
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare-loose.js"(exports, module) {
|
|
5507
|
-
init_cjs_shims();
|
|
5508
|
-
var compare = require_compare(), compareLoose = (a, b) => compare(a, b, !0);
|
|
5509
|
-
module.exports = compareLoose;
|
|
5510
|
-
}
|
|
5511
|
-
});
|
|
5512
|
-
|
|
5513
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare-build.js
|
|
5514
|
-
var require_compare_build = __commonJS({
|
|
5515
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare-build.js"(exports, module) {
|
|
5516
|
-
init_cjs_shims();
|
|
5517
|
-
var SemVer2 = require_semver(), compareBuild = (a, b, loose) => {
|
|
5518
|
-
let versionA = new SemVer2(a, loose), versionB = new SemVer2(b, loose);
|
|
5519
|
-
return versionA.compare(versionB) || versionA.compareBuild(versionB);
|
|
5520
|
-
};
|
|
5521
|
-
module.exports = compareBuild;
|
|
5522
|
-
}
|
|
5523
|
-
});
|
|
5524
|
-
|
|
5525
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/sort.js
|
|
5526
|
-
var require_sort = __commonJS({
|
|
5527
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/sort.js"(exports, module) {
|
|
5528
|
-
init_cjs_shims();
|
|
5529
|
-
var compareBuild = require_compare_build(), sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
5530
|
-
module.exports = sort;
|
|
5531
|
-
}
|
|
5532
|
-
});
|
|
5533
|
-
|
|
5534
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/rsort.js
|
|
5535
|
-
var require_rsort = __commonJS({
|
|
5536
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/rsort.js"(exports, module) {
|
|
5537
|
-
init_cjs_shims();
|
|
5538
|
-
var compareBuild = require_compare_build(), rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
5539
|
-
module.exports = rsort;
|
|
5540
|
-
}
|
|
5541
|
-
});
|
|
5542
|
-
|
|
5543
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/gt.js
|
|
5544
|
-
var require_gt = __commonJS({
|
|
5545
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/gt.js"(exports, module) {
|
|
5546
|
-
init_cjs_shims();
|
|
5547
|
-
var compare = require_compare(), gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
5548
|
-
module.exports = gt;
|
|
5549
|
-
}
|
|
5550
|
-
});
|
|
5551
|
-
|
|
5552
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/lt.js
|
|
5553
|
-
var require_lt = __commonJS({
|
|
5554
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/lt.js"(exports, module) {
|
|
5555
|
-
init_cjs_shims();
|
|
5556
|
-
var compare = require_compare(), lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
5557
|
-
module.exports = lt;
|
|
5558
|
-
}
|
|
5559
|
-
});
|
|
5560
|
-
|
|
5561
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/eq.js
|
|
5562
|
-
var require_eq = __commonJS({
|
|
5563
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/eq.js"(exports, module) {
|
|
5564
|
-
init_cjs_shims();
|
|
5565
|
-
var compare = require_compare(), eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
5566
|
-
module.exports = eq;
|
|
5567
|
-
}
|
|
5568
|
-
});
|
|
5569
|
-
|
|
5570
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/neq.js
|
|
5571
|
-
var require_neq = __commonJS({
|
|
5572
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/neq.js"(exports, module) {
|
|
5573
|
-
init_cjs_shims();
|
|
5574
|
-
var compare = require_compare(), neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
5575
|
-
module.exports = neq;
|
|
5576
|
-
}
|
|
5577
|
-
});
|
|
5578
|
-
|
|
5579
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/gte.js
|
|
5580
|
-
var require_gte = __commonJS({
|
|
5581
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/gte.js"(exports, module) {
|
|
5582
|
-
init_cjs_shims();
|
|
5583
|
-
var compare = require_compare(), gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
5584
|
-
module.exports = gte;
|
|
5585
|
-
}
|
|
5586
|
-
});
|
|
5587
|
-
|
|
5588
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/lte.js
|
|
5589
|
-
var require_lte = __commonJS({
|
|
5590
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/lte.js"(exports, module) {
|
|
5591
|
-
init_cjs_shims();
|
|
5592
|
-
var compare = require_compare(), lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
5593
|
-
module.exports = lte;
|
|
5594
|
-
}
|
|
5595
|
-
});
|
|
5596
|
-
|
|
5597
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/cmp.js
|
|
5598
|
-
var require_cmp = __commonJS({
|
|
5599
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/cmp.js"(exports, module) {
|
|
5600
|
-
init_cjs_shims();
|
|
5601
|
-
var eq = require_eq(), neq = require_neq(), gt = require_gt(), gte = require_gte(), lt = require_lt(), lte = require_lte(), cmp = (a, op, b, loose) => {
|
|
5602
|
-
switch (op) {
|
|
5603
|
-
case "===":
|
|
5604
|
-
return typeof a == "object" && (a = a.version), typeof b == "object" && (b = b.version), a === b;
|
|
5605
|
-
case "!==":
|
|
5606
|
-
return typeof a == "object" && (a = a.version), typeof b == "object" && (b = b.version), a !== b;
|
|
5607
|
-
case "":
|
|
5608
|
-
case "=":
|
|
5609
|
-
case "==":
|
|
5610
|
-
return eq(a, b, loose);
|
|
5611
|
-
case "!=":
|
|
5612
|
-
return neq(a, b, loose);
|
|
5613
|
-
case ">":
|
|
5614
|
-
return gt(a, b, loose);
|
|
5615
|
-
case ">=":
|
|
5616
|
-
return gte(a, b, loose);
|
|
5617
|
-
case "<":
|
|
5618
|
-
return lt(a, b, loose);
|
|
5619
|
-
case "<=":
|
|
5620
|
-
return lte(a, b, loose);
|
|
5621
|
-
default:
|
|
5622
|
-
throw new TypeError(`Invalid operator: ${op}`);
|
|
5623
|
-
}
|
|
5624
|
-
};
|
|
5625
|
-
module.exports = cmp;
|
|
5626
|
-
}
|
|
5627
|
-
});
|
|
5628
|
-
|
|
5629
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/coerce.js
|
|
5630
|
-
var require_coerce = __commonJS({
|
|
5631
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/coerce.js"(exports, module) {
|
|
5632
|
-
init_cjs_shims();
|
|
5633
|
-
var SemVer2 = require_semver(), parse = require_parse(), { safeRe: re, t } = require_re(), coerce = (version, options) => {
|
|
5634
|
-
if (version instanceof SemVer2)
|
|
5635
|
-
return version;
|
|
5636
|
-
if (typeof version == "number" && (version = String(version)), typeof version != "string")
|
|
5637
|
-
return null;
|
|
5638
|
-
options = options || {};
|
|
5639
|
-
let match = null;
|
|
5640
|
-
if (!options.rtl)
|
|
5641
|
-
match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
|
|
5642
|
-
else {
|
|
5643
|
-
let coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL], next;
|
|
5644
|
-
for (; (next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length); )
|
|
5645
|
-
(!match || next.index + next[0].length !== match.index + match[0].length) && (match = next), coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
|
5646
|
-
coerceRtlRegex.lastIndex = -1;
|
|
5647
|
-
}
|
|
5648
|
-
if (match === null)
|
|
5649
|
-
return null;
|
|
5650
|
-
let major2 = match[2], minor2 = match[3] || "0", patch = match[4] || "0", prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : "", build = options.includePrerelease && match[6] ? `+${match[6]}` : "";
|
|
5651
|
-
return parse(`${major2}.${minor2}.${patch}${prerelease}${build}`, options);
|
|
5652
|
-
};
|
|
5653
|
-
module.exports = coerce;
|
|
5654
|
-
}
|
|
5655
|
-
});
|
|
5656
|
-
|
|
5657
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/lrucache.js
|
|
5658
|
-
var require_lrucache = __commonJS({
|
|
5659
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/lrucache.js"(exports, module) {
|
|
5660
|
-
init_cjs_shims();
|
|
5661
|
-
var LRUCache = class {
|
|
5662
|
-
constructor() {
|
|
5663
|
-
this.max = 1e3, this.map = /* @__PURE__ */ new Map();
|
|
5664
|
-
}
|
|
5665
|
-
get(key) {
|
|
5666
|
-
let value = this.map.get(key);
|
|
5667
|
-
if (value !== void 0)
|
|
5668
|
-
return this.map.delete(key), this.map.set(key, value), value;
|
|
5669
|
-
}
|
|
5670
|
-
delete(key) {
|
|
5671
|
-
return this.map.delete(key);
|
|
5672
|
-
}
|
|
5673
|
-
set(key, value) {
|
|
5674
|
-
if (!this.delete(key) && value !== void 0) {
|
|
5675
|
-
if (this.map.size >= this.max) {
|
|
5676
|
-
let firstKey = this.map.keys().next().value;
|
|
5677
|
-
this.delete(firstKey);
|
|
5678
|
-
}
|
|
5679
|
-
this.map.set(key, value);
|
|
5680
|
-
}
|
|
5681
|
-
return this;
|
|
5682
|
-
}
|
|
5683
|
-
};
|
|
5684
|
-
module.exports = LRUCache;
|
|
5685
|
-
}
|
|
5686
|
-
});
|
|
5687
|
-
|
|
5688
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/range.js
|
|
5689
|
-
var require_range = __commonJS({
|
|
5690
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/range.js"(exports, module) {
|
|
5691
|
-
init_cjs_shims();
|
|
5692
|
-
var SPACE_CHARACTERS = /\s+/g, Range = class _Range {
|
|
5693
|
-
constructor(range, options) {
|
|
5694
|
-
if (options = parseOptions(options), range instanceof _Range)
|
|
5695
|
-
return range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease ? range : new _Range(range.raw, options);
|
|
5696
|
-
if (range instanceof Comparator)
|
|
5697
|
-
return this.raw = range.value, this.set = [[range]], this.formatted = void 0, this;
|
|
5698
|
-
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)
|
|
5699
|
-
throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
5700
|
-
if (this.set.length > 1) {
|
|
5701
|
-
let first = this.set[0];
|
|
5702
|
-
if (this.set = this.set.filter((c) => !isNullSet(c[0])), this.set.length === 0)
|
|
5703
|
-
this.set = [first];
|
|
5704
|
-
else if (this.set.length > 1) {
|
|
5705
|
-
for (let c of this.set)
|
|
5706
|
-
if (c.length === 1 && isAny(c[0])) {
|
|
5707
|
-
this.set = [c];
|
|
5708
|
-
break;
|
|
5709
|
-
}
|
|
5710
|
-
}
|
|
5711
|
-
}
|
|
5712
|
-
this.formatted = void 0;
|
|
5713
|
-
}
|
|
5714
|
-
get range() {
|
|
5715
|
-
if (this.formatted === void 0) {
|
|
5716
|
-
this.formatted = "";
|
|
5717
|
-
for (let i = 0; i < this.set.length; i++) {
|
|
5718
|
-
i > 0 && (this.formatted += "||");
|
|
5719
|
-
let comps = this.set[i];
|
|
5720
|
-
for (let k = 0; k < comps.length; k++)
|
|
5721
|
-
k > 0 && (this.formatted += " "), this.formatted += comps[k].toString().trim();
|
|
5722
|
-
}
|
|
5723
|
-
}
|
|
5724
|
-
return this.formatted;
|
|
5725
|
-
}
|
|
5726
|
-
format() {
|
|
5727
|
-
return this.range;
|
|
5728
|
-
}
|
|
5729
|
-
toString() {
|
|
5730
|
-
return this.range;
|
|
5731
|
-
}
|
|
5732
|
-
parseRange(range) {
|
|
5733
|
-
let memoKey = ((this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE)) + ":" + range, cached = cache.get(memoKey);
|
|
5734
|
-
if (cached)
|
|
5735
|
-
return cached;
|
|
5736
|
-
let loose = this.options.loose, hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
|
|
5737
|
-
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);
|
|
5738
|
-
let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
|
|
5739
|
-
loose && (rangeList = rangeList.filter((comp) => (debug("loose invalid filter", comp, this.options), !!comp.match(re[t.COMPARATORLOOSE])))), debug("range list", rangeList);
|
|
5740
|
-
let rangeMap = /* @__PURE__ */ new Map(), comparators = rangeList.map((comp) => new Comparator(comp, this.options));
|
|
5741
|
-
for (let comp of comparators) {
|
|
5742
|
-
if (isNullSet(comp))
|
|
5743
|
-
return [comp];
|
|
5744
|
-
rangeMap.set(comp.value, comp);
|
|
5745
|
-
}
|
|
5746
|
-
rangeMap.size > 1 && rangeMap.has("") && rangeMap.delete("");
|
|
5747
|
-
let result = [...rangeMap.values()];
|
|
5748
|
-
return cache.set(memoKey, result), result;
|
|
5749
|
-
}
|
|
5750
|
-
intersects(range, options) {
|
|
5751
|
-
if (!(range instanceof _Range))
|
|
5752
|
-
throw new TypeError("a Range is required");
|
|
5753
|
-
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)))));
|
|
5754
|
-
}
|
|
5755
|
-
// if ANY of the sets match ALL of its comparators, then pass
|
|
5756
|
-
test(version) {
|
|
5757
|
-
if (!version)
|
|
5758
|
-
return !1;
|
|
5759
|
-
if (typeof version == "string")
|
|
5760
|
-
try {
|
|
5761
|
-
version = new SemVer2(version, this.options);
|
|
5762
|
-
} catch {
|
|
5763
|
-
return !1;
|
|
5764
|
-
}
|
|
5765
|
-
for (let i = 0; i < this.set.length; i++)
|
|
5766
|
-
if (testSet(this.set[i], version, this.options))
|
|
5767
|
-
return !0;
|
|
5768
|
-
return !1;
|
|
5769
|
-
}
|
|
5770
|
-
};
|
|
5771
|
-
module.exports = Range;
|
|
5772
|
-
var LRU = require_lrucache(), cache = new LRU(), parseOptions = require_parse_options(), Comparator = require_comparator(), debug = require_debug(), SemVer2 = require_semver(), {
|
|
5773
|
-
safeRe: re,
|
|
5774
|
-
t,
|
|
5775
|
-
comparatorTrimReplace,
|
|
5776
|
-
tildeTrimReplace,
|
|
5777
|
-
caretTrimReplace
|
|
5778
|
-
} = require_re(), { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants(), isNullSet = (c) => c.value === "<0.0.0-0", isAny = (c) => c.value === "", isSatisfiable = (comparators, options) => {
|
|
5779
|
-
let result = !0, remainingComparators = comparators.slice(), testComparator = remainingComparators.pop();
|
|
5780
|
-
for (; result && remainingComparators.length; )
|
|
5781
|
-
result = remainingComparators.every((otherComparator) => testComparator.intersects(otherComparator, options)), testComparator = remainingComparators.pop();
|
|
5782
|
-
return result;
|
|
5783
|
-
}, 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) => {
|
|
5784
|
-
let r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
|
|
5785
|
-
return comp.replace(r, (_, M, m, p, pr) => {
|
|
5786
|
-
debug("tilde", comp, _, M, m, p, pr);
|
|
5787
|
-
let ret;
|
|
5788
|
-
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;
|
|
5789
|
-
});
|
|
5790
|
-
}, replaceCarets = (comp, options) => comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" "), replaceCaret = (comp, options) => {
|
|
5791
|
-
debug("caret", comp, options);
|
|
5792
|
-
let r = options.loose ? re[t.CARETLOOSE] : re[t.CARET], z = options.includePrerelease ? "-0" : "";
|
|
5793
|
-
return comp.replace(r, (_, M, m, p, pr) => {
|
|
5794
|
-
debug("caret", comp, _, M, m, p, pr);
|
|
5795
|
-
let ret;
|
|
5796
|
-
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;
|
|
5797
|
-
});
|
|
5798
|
-
}, replaceXRanges = (comp, options) => (debug("replaceXRanges", comp, options), comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ")), replaceXRange = (comp, options) => {
|
|
5799
|
-
comp = comp.trim();
|
|
5800
|
-
let r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
|
|
5801
|
-
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
|
|
5802
|
-
debug("xRange", comp, ret, gtlt, M, m, p, pr);
|
|
5803
|
-
let xM = isX(M), xm = xM || isX(m), xp = xm || isX(p), anyX = xp;
|
|
5804
|
-
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;
|
|
5805
|
-
});
|
|
5806
|
-
}, 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) => {
|
|
5807
|
-
for (let i = 0; i < set.length; i++)
|
|
5808
|
-
if (!set[i].test(version))
|
|
5809
|
-
return !1;
|
|
5810
|
-
if (version.prerelease.length && !options.includePrerelease) {
|
|
5811
|
-
for (let i = 0; i < set.length; i++)
|
|
5812
|
-
if (debug(set[i].semver), set[i].semver !== Comparator.ANY && set[i].semver.prerelease.length > 0) {
|
|
5813
|
-
let allowed = set[i].semver;
|
|
5814
|
-
if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch)
|
|
5815
|
-
return !0;
|
|
5816
|
-
}
|
|
5817
|
-
return !1;
|
|
5818
|
-
}
|
|
5819
|
-
return !0;
|
|
5820
|
-
};
|
|
5821
|
-
}
|
|
5822
|
-
});
|
|
5823
|
-
|
|
5824
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/comparator.js
|
|
5825
|
-
var require_comparator = __commonJS({
|
|
5826
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/comparator.js"(exports, module) {
|
|
5827
|
-
init_cjs_shims();
|
|
5828
|
-
var ANY = Symbol("SemVer ANY"), Comparator = class _Comparator {
|
|
5829
|
-
static get ANY() {
|
|
5830
|
-
return ANY;
|
|
5831
|
-
}
|
|
5832
|
-
constructor(comp, options) {
|
|
5833
|
-
if (options = parseOptions(options), comp instanceof _Comparator) {
|
|
5834
|
-
if (comp.loose === !!options.loose)
|
|
5835
|
-
return comp;
|
|
5836
|
-
comp = comp.value;
|
|
5837
|
-
}
|
|
5838
|
-
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);
|
|
5839
|
-
}
|
|
5840
|
-
parse(comp) {
|
|
5841
|
-
let r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR], m = comp.match(r);
|
|
5842
|
-
if (!m)
|
|
5843
|
-
throw new TypeError(`Invalid comparator: ${comp}`);
|
|
5844
|
-
this.operator = m[1] !== void 0 ? m[1] : "", this.operator === "=" && (this.operator = ""), m[2] ? this.semver = new SemVer2(m[2], this.options.loose) : this.semver = ANY;
|
|
5845
|
-
}
|
|
5846
|
-
toString() {
|
|
5847
|
-
return this.value;
|
|
5848
|
-
}
|
|
5849
|
-
test(version) {
|
|
5850
|
-
if (debug("Comparator.test", version, this.options.loose), this.semver === ANY || version === ANY)
|
|
5851
|
-
return !0;
|
|
5852
|
-
if (typeof version == "string")
|
|
5853
|
-
try {
|
|
5854
|
-
version = new SemVer2(version, this.options);
|
|
5855
|
-
} catch {
|
|
5856
|
-
return !1;
|
|
5857
|
-
}
|
|
5858
|
-
return cmp(version, this.operator, this.semver, this.options);
|
|
5859
|
-
}
|
|
5860
|
-
intersects(comp, options) {
|
|
5861
|
-
if (!(comp instanceof _Comparator))
|
|
5862
|
-
throw new TypeError("a Comparator is required");
|
|
5863
|
-
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(">")));
|
|
5864
|
-
}
|
|
5865
|
-
};
|
|
5866
|
-
module.exports = Comparator;
|
|
5867
|
-
var parseOptions = require_parse_options(), { safeRe: re, t } = require_re(), cmp = require_cmp(), debug = require_debug(), SemVer2 = require_semver(), Range = require_range();
|
|
5868
|
-
}
|
|
5869
|
-
});
|
|
5870
|
-
|
|
5871
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/satisfies.js
|
|
5872
|
-
var require_satisfies = __commonJS({
|
|
5873
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/satisfies.js"(exports, module) {
|
|
5874
|
-
init_cjs_shims();
|
|
5875
|
-
var Range = require_range(), satisfies = (version, range, options) => {
|
|
5876
|
-
try {
|
|
5877
|
-
range = new Range(range, options);
|
|
5878
|
-
} catch {
|
|
5879
|
-
return !1;
|
|
5880
|
-
}
|
|
5881
|
-
return range.test(version);
|
|
5882
|
-
};
|
|
5883
|
-
module.exports = satisfies;
|
|
5884
|
-
}
|
|
5885
|
-
});
|
|
5886
|
-
|
|
5887
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/to-comparators.js
|
|
5888
|
-
var require_to_comparators = __commonJS({
|
|
5889
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/to-comparators.js"(exports, module) {
|
|
5890
|
-
init_cjs_shims();
|
|
5891
|
-
var Range = require_range(), toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
5892
|
-
module.exports = toComparators;
|
|
5893
|
-
}
|
|
5894
|
-
});
|
|
5895
|
-
|
|
5896
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/max-satisfying.js
|
|
5897
|
-
var require_max_satisfying = __commonJS({
|
|
5898
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/max-satisfying.js"(exports, module) {
|
|
5899
|
-
init_cjs_shims();
|
|
5900
|
-
var SemVer2 = require_semver(), Range = require_range(), maxSatisfying = (versions, range, options) => {
|
|
5901
|
-
let max = null, maxSV = null, rangeObj = null;
|
|
5902
|
-
try {
|
|
5903
|
-
rangeObj = new Range(range, options);
|
|
5904
|
-
} catch {
|
|
5905
|
-
return null;
|
|
5906
|
-
}
|
|
5907
|
-
return versions.forEach((v) => {
|
|
5908
|
-
rangeObj.test(v) && (!max || maxSV.compare(v) === -1) && (max = v, maxSV = new SemVer2(max, options));
|
|
5909
|
-
}), max;
|
|
5910
|
-
};
|
|
5911
|
-
module.exports = maxSatisfying;
|
|
5912
|
-
}
|
|
5913
|
-
});
|
|
5914
|
-
|
|
5915
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/min-satisfying.js
|
|
5916
|
-
var require_min_satisfying = __commonJS({
|
|
5917
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/min-satisfying.js"(exports, module) {
|
|
5918
|
-
init_cjs_shims();
|
|
5919
|
-
var SemVer2 = require_semver(), Range = require_range(), minSatisfying = (versions, range, options) => {
|
|
5920
|
-
let min = null, minSV = null, rangeObj = null;
|
|
5921
|
-
try {
|
|
5922
|
-
rangeObj = new Range(range, options);
|
|
5923
|
-
} catch {
|
|
5924
|
-
return null;
|
|
5925
|
-
}
|
|
5926
|
-
return versions.forEach((v) => {
|
|
5927
|
-
rangeObj.test(v) && (!min || minSV.compare(v) === 1) && (min = v, minSV = new SemVer2(min, options));
|
|
5928
|
-
}), min;
|
|
5929
|
-
};
|
|
5930
|
-
module.exports = minSatisfying;
|
|
5931
|
-
}
|
|
5932
|
-
});
|
|
5933
|
-
|
|
5934
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/min-version.js
|
|
5935
|
-
var require_min_version = __commonJS({
|
|
5936
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/min-version.js"(exports, module) {
|
|
5937
|
-
init_cjs_shims();
|
|
5938
|
-
var SemVer2 = require_semver(), Range = require_range(), gt = require_gt(), minVersion = (range, loose) => {
|
|
5939
|
-
range = new Range(range, loose);
|
|
5940
|
-
let minver = new SemVer2("0.0.0");
|
|
5941
|
-
if (range.test(minver) || (minver = new SemVer2("0.0.0-0"), range.test(minver)))
|
|
5942
|
-
return minver;
|
|
5943
|
-
minver = null;
|
|
5944
|
-
for (let i = 0; i < range.set.length; ++i) {
|
|
5945
|
-
let comparators = range.set[i], setMin = null;
|
|
5946
|
-
comparators.forEach((comparator) => {
|
|
5947
|
-
let compver = new SemVer2(comparator.semver.version);
|
|
5948
|
-
switch (comparator.operator) {
|
|
5949
|
-
case ">":
|
|
5950
|
-
compver.prerelease.length === 0 ? compver.patch++ : compver.prerelease.push(0), compver.raw = compver.format();
|
|
5951
|
-
/* fallthrough */
|
|
5952
|
-
case "":
|
|
5953
|
-
case ">=":
|
|
5954
|
-
(!setMin || gt(compver, setMin)) && (setMin = compver);
|
|
5955
|
-
break;
|
|
5956
|
-
case "<":
|
|
5957
|
-
case "<=":
|
|
5958
|
-
break;
|
|
5959
|
-
/* istanbul ignore next */
|
|
5960
|
-
default:
|
|
5961
|
-
throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
5962
|
-
}
|
|
5963
|
-
}), setMin && (!minver || gt(minver, setMin)) && (minver = setMin);
|
|
5964
|
-
}
|
|
5965
|
-
return minver && range.test(minver) ? minver : null;
|
|
5966
|
-
};
|
|
5967
|
-
module.exports = minVersion;
|
|
5968
|
-
}
|
|
5969
|
-
});
|
|
5970
|
-
|
|
5971
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/valid.js
|
|
5972
|
-
var require_valid2 = __commonJS({
|
|
5973
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/valid.js"(exports, module) {
|
|
5974
|
-
init_cjs_shims();
|
|
5975
|
-
var Range = require_range(), validRange = (range, options) => {
|
|
5976
|
-
try {
|
|
5977
|
-
return new Range(range, options).range || "*";
|
|
5978
|
-
} catch {
|
|
5979
|
-
return null;
|
|
5980
|
-
}
|
|
5981
|
-
};
|
|
5982
|
-
module.exports = validRange;
|
|
5983
|
-
}
|
|
5984
|
-
});
|
|
5985
|
-
|
|
5986
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/outside.js
|
|
5987
|
-
var require_outside = __commonJS({
|
|
5988
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/outside.js"(exports, module) {
|
|
5989
|
-
init_cjs_shims();
|
|
5990
|
-
var SemVer2 = 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) => {
|
|
5991
|
-
version = new SemVer2(version, options), range = new Range(range, options);
|
|
5992
|
-
let gtfn, ltefn, ltfn, comp, ecomp;
|
|
5993
|
-
switch (hilo) {
|
|
5994
|
-
case ">":
|
|
5995
|
-
gtfn = gt, ltefn = lte, ltfn = lt, comp = ">", ecomp = ">=";
|
|
5996
|
-
break;
|
|
5997
|
-
case "<":
|
|
5998
|
-
gtfn = lt, ltefn = gte, ltfn = gt, comp = "<", ecomp = "<=";
|
|
5999
|
-
break;
|
|
6000
|
-
default:
|
|
6001
|
-
throw new TypeError('Must provide a hilo val of "<" or ">"');
|
|
6002
|
-
}
|
|
6003
|
-
if (satisfies(version, range, options))
|
|
6004
|
-
return !1;
|
|
6005
|
-
for (let i = 0; i < range.set.length; ++i) {
|
|
6006
|
-
let comparators = range.set[i], high = null, low = null;
|
|
6007
|
-
if (comparators.forEach((comparator) => {
|
|
6008
|
-
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);
|
|
6009
|
-
}), high.operator === comp || high.operator === ecomp || (!low.operator || low.operator === comp) && ltefn(version, low.semver))
|
|
6010
|
-
return !1;
|
|
6011
|
-
if (low.operator === ecomp && ltfn(version, low.semver))
|
|
6012
|
-
return !1;
|
|
6013
|
-
}
|
|
6014
|
-
return !0;
|
|
6015
|
-
};
|
|
6016
|
-
module.exports = outside;
|
|
6017
|
-
}
|
|
6018
|
-
});
|
|
6019
|
-
|
|
6020
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/gtr.js
|
|
6021
|
-
var require_gtr = __commonJS({
|
|
6022
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/gtr.js"(exports, module) {
|
|
6023
|
-
init_cjs_shims();
|
|
6024
|
-
var outside = require_outside(), gtr = (version, range, options) => outside(version, range, ">", options);
|
|
6025
|
-
module.exports = gtr;
|
|
6026
|
-
}
|
|
6027
|
-
});
|
|
6028
|
-
|
|
6029
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/ltr.js
|
|
6030
|
-
var require_ltr = __commonJS({
|
|
6031
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/ltr.js"(exports, module) {
|
|
6032
|
-
init_cjs_shims();
|
|
6033
|
-
var outside = require_outside(), ltr = (version, range, options) => outside(version, range, "<", options);
|
|
6034
|
-
module.exports = ltr;
|
|
6035
|
-
}
|
|
6036
|
-
});
|
|
6037
|
-
|
|
6038
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/intersects.js
|
|
6039
|
-
var require_intersects = __commonJS({
|
|
6040
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/intersects.js"(exports, module) {
|
|
6041
|
-
init_cjs_shims();
|
|
6042
|
-
var Range = require_range(), intersects = (r1, r2, options) => (r1 = new Range(r1, options), r2 = new Range(r2, options), r1.intersects(r2, options));
|
|
6043
|
-
module.exports = intersects;
|
|
6044
|
-
}
|
|
6045
|
-
});
|
|
6046
|
-
|
|
6047
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/simplify.js
|
|
6048
|
-
var require_simplify = __commonJS({
|
|
6049
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/simplify.js"(exports, module) {
|
|
6050
|
-
init_cjs_shims();
|
|
6051
|
-
var satisfies = require_satisfies(), compare = require_compare();
|
|
6052
|
-
module.exports = (versions, range, options) => {
|
|
6053
|
-
let set = [], first = null, prev = null, v = versions.sort((a, b) => compare(a, b, options));
|
|
6054
|
-
for (let version of v)
|
|
6055
|
-
satisfies(version, range, options) ? (prev = version, first || (first = version)) : (prev && set.push([first, prev]), prev = null, first = null);
|
|
6056
|
-
first && set.push([first, null]);
|
|
6057
|
-
let ranges = [];
|
|
6058
|
-
for (let [min, max] of set)
|
|
6059
|
-
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}`);
|
|
6060
|
-
let simplified = ranges.join(" || "), original = typeof range.raw == "string" ? range.raw : String(range);
|
|
6061
|
-
return simplified.length < original.length ? simplified : range;
|
|
6062
|
-
};
|
|
6063
|
-
}
|
|
6064
|
-
});
|
|
6065
|
-
|
|
6066
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/subset.js
|
|
6067
|
-
var require_subset = __commonJS({
|
|
6068
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/subset.js"(exports, module) {
|
|
6069
|
-
init_cjs_shims();
|
|
6070
|
-
var Range = require_range(), Comparator = require_comparator(), { ANY } = Comparator, satisfies = require_satisfies(), compare = require_compare(), subset = (sub, dom, options = {}) => {
|
|
6071
|
-
if (sub === dom)
|
|
6072
|
-
return !0;
|
|
6073
|
-
sub = new Range(sub, options), dom = new Range(dom, options);
|
|
6074
|
-
let sawNonNull = !1;
|
|
6075
|
-
OUTER: for (let simpleSub of sub.set) {
|
|
6076
|
-
for (let simpleDom of dom.set) {
|
|
6077
|
-
let isSub = simpleSubset(simpleSub, simpleDom, options);
|
|
6078
|
-
if (sawNonNull = sawNonNull || isSub !== null, isSub)
|
|
6079
|
-
continue OUTER;
|
|
6080
|
-
}
|
|
6081
|
-
if (sawNonNull)
|
|
6082
|
-
return !1;
|
|
6083
|
-
}
|
|
6084
|
-
return !0;
|
|
6085
|
-
}, minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")], minimumVersion = [new Comparator(">=0.0.0")], simpleSubset = (sub, dom, options) => {
|
|
6086
|
-
if (sub === dom)
|
|
6087
|
-
return !0;
|
|
6088
|
-
if (sub.length === 1 && sub[0].semver === ANY) {
|
|
6089
|
-
if (dom.length === 1 && dom[0].semver === ANY)
|
|
6090
|
-
return !0;
|
|
6091
|
-
options.includePrerelease ? sub = minimumVersionWithPreRelease : sub = minimumVersion;
|
|
6092
|
-
}
|
|
6093
|
-
if (dom.length === 1 && dom[0].semver === ANY) {
|
|
6094
|
-
if (options.includePrerelease)
|
|
6095
|
-
return !0;
|
|
6096
|
-
dom = minimumVersion;
|
|
6097
|
-
}
|
|
6098
|
-
let eqSet = /* @__PURE__ */ new Set(), gt, lt;
|
|
6099
|
-
for (let c of sub)
|
|
6100
|
-
c.operator === ">" || c.operator === ">=" ? gt = higherGT(gt, c, options) : c.operator === "<" || c.operator === "<=" ? lt = lowerLT(lt, c, options) : eqSet.add(c.semver);
|
|
6101
|
-
if (eqSet.size > 1)
|
|
6102
|
-
return null;
|
|
6103
|
-
let gtltComp;
|
|
6104
|
-
if (gt && lt) {
|
|
6105
|
-
if (gtltComp = compare(gt.semver, lt.semver, options), gtltComp > 0)
|
|
6106
|
-
return null;
|
|
6107
|
-
if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<="))
|
|
6108
|
-
return null;
|
|
6109
|
-
}
|
|
6110
|
-
for (let eq of eqSet) {
|
|
6111
|
-
if (gt && !satisfies(eq, String(gt), options) || lt && !satisfies(eq, String(lt), options))
|
|
6112
|
-
return null;
|
|
6113
|
-
for (let c of dom)
|
|
6114
|
-
if (!satisfies(eq, String(c), options))
|
|
6115
|
-
return !1;
|
|
6116
|
-
return !0;
|
|
6117
|
-
}
|
|
6118
|
-
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;
|
|
6119
|
-
needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0 && (needDomLTPre = !1);
|
|
6120
|
-
for (let c of dom) {
|
|
6121
|
-
if (hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=", hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=", gt) {
|
|
6122
|
-
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 === ">=") {
|
|
6123
|
-
if (higher = higherGT(gt, c, options), higher === c && higher !== gt)
|
|
6124
|
-
return !1;
|
|
6125
|
-
} else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options))
|
|
6126
|
-
return !1;
|
|
6127
|
-
}
|
|
6128
|
-
if (lt) {
|
|
6129
|
-
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 === "<=") {
|
|
6130
|
-
if (lower = lowerLT(lt, c, options), lower === c && lower !== lt)
|
|
6131
|
-
return !1;
|
|
6132
|
-
} else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options))
|
|
6133
|
-
return !1;
|
|
6134
|
-
}
|
|
6135
|
-
if (!c.operator && (lt || gt) && gtltComp !== 0)
|
|
6136
|
-
return !1;
|
|
6137
|
-
}
|
|
6138
|
-
return !(gt && hasDomLT && !lt && gtltComp !== 0 || lt && hasDomGT && !gt && gtltComp !== 0 || needDomGTPre || needDomLTPre);
|
|
6139
|
-
}, higherGT = (a, b, options) => {
|
|
6140
|
-
if (!a)
|
|
6141
|
-
return b;
|
|
6142
|
-
let comp = compare(a.semver, b.semver, options);
|
|
6143
|
-
return comp > 0 ? a : comp < 0 || b.operator === ">" && a.operator === ">=" ? b : a;
|
|
6144
|
-
}, lowerLT = (a, b, options) => {
|
|
6145
|
-
if (!a)
|
|
6146
|
-
return b;
|
|
6147
|
-
let comp = compare(a.semver, b.semver, options);
|
|
6148
|
-
return comp < 0 ? a : comp > 0 || b.operator === "<" && a.operator === "<=" ? b : a;
|
|
6149
|
-
};
|
|
6150
|
-
module.exports = subset;
|
|
6151
|
-
}
|
|
6152
|
-
});
|
|
6153
|
-
|
|
6154
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/index.js
|
|
6155
|
-
var require_semver2 = __commonJS({
|
|
6156
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/index.js"(exports, module) {
|
|
6157
|
-
init_cjs_shims();
|
|
6158
|
-
var internalRe = require_re(), constants = require_constants(), SemVer2 = require_semver(), identifiers = require_identifiers(), parse = require_parse(), valid = require_valid(), clean = require_clean(), inc = require_inc(), diff = require_diff(), major2 = require_major(), minor2 = 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();
|
|
6159
|
-
module.exports = {
|
|
6160
|
-
parse,
|
|
6161
|
-
valid,
|
|
6162
|
-
clean,
|
|
6163
|
-
inc,
|
|
6164
|
-
diff,
|
|
6165
|
-
major: major2,
|
|
6166
|
-
minor: minor2,
|
|
6167
|
-
patch,
|
|
6168
|
-
prerelease,
|
|
6169
|
-
compare,
|
|
6170
|
-
rcompare,
|
|
6171
|
-
compareLoose,
|
|
6172
|
-
compareBuild,
|
|
6173
|
-
sort,
|
|
6174
|
-
rsort,
|
|
6175
|
-
gt,
|
|
6176
|
-
lt,
|
|
6177
|
-
eq,
|
|
6178
|
-
neq,
|
|
6179
|
-
gte,
|
|
6180
|
-
lte,
|
|
6181
|
-
cmp,
|
|
6182
|
-
coerce,
|
|
6183
|
-
Comparator,
|
|
6184
|
-
Range,
|
|
6185
|
-
satisfies,
|
|
6186
|
-
toComparators,
|
|
6187
|
-
maxSatisfying,
|
|
6188
|
-
minSatisfying,
|
|
6189
|
-
minVersion,
|
|
6190
|
-
validRange,
|
|
6191
|
-
outside,
|
|
6192
|
-
gtr,
|
|
6193
|
-
ltr,
|
|
6194
|
-
intersects,
|
|
6195
|
-
simplifyRange,
|
|
6196
|
-
subset,
|
|
6197
|
-
SemVer: SemVer2,
|
|
6198
|
-
re: internalRe.re,
|
|
6199
|
-
src: internalRe.src,
|
|
6200
|
-
tokens: internalRe.t,
|
|
6201
|
-
SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
|
|
6202
|
-
RELEASE_TYPES: constants.RELEASE_TYPES,
|
|
6203
|
-
compareIdentifiers: identifiers.compareIdentifiers,
|
|
6204
|
-
rcompareIdentifiers: identifiers.rcompareIdentifiers
|
|
6205
|
-
};
|
|
6206
|
-
}
|
|
6207
|
-
});
|
|
6208
|
-
|
|
6209
5086
|
// ../../node_modules/.pnpm/defer-to-connect@2.0.1/node_modules/defer-to-connect/dist/source/index.js
|
|
6210
5087
|
var require_source = __commonJS({
|
|
6211
5088
|
"../../node_modules/.pnpm/defer-to-connect@2.0.1/node_modules/defer-to-connect/dist/source/index.js"(exports, module) {
|
|
@@ -10425,7 +9302,7 @@ var debounceFn = (inputFunction, options = {}) => {
|
|
|
10425
9302
|
}, debounce_fn_default = debounceFn;
|
|
10426
9303
|
|
|
10427
9304
|
// ../../node_modules/.pnpm/conf@11.0.2/node_modules/conf/dist/source/index.js
|
|
10428
|
-
var import_semver = __toESM(
|
|
9305
|
+
var import_semver = __toESM(require_semver(), 1), __classPrivateFieldSet = function(receiver, state, value, kind, f) {
|
|
10429
9306
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
10430
9307
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
10431
9308
|
if (typeof state == "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
@@ -14462,7 +13339,7 @@ function registryUrl(scope) {
|
|
|
14462
13339
|
}
|
|
14463
13340
|
|
|
14464
13341
|
// ../../node_modules/.pnpm/package-json@8.1.1/node_modules/package-json/index.js
|
|
14465
|
-
var import_registry_auth_token = __toESM(require_registry_auth_token(), 1), import_semver2 = __toESM(
|
|
13342
|
+
var import_registry_auth_token = __toESM(require_registry_auth_token(), 1), import_semver2 = __toESM(require_semver(), 1), agentOptions = {
|
|
14466
13343
|
keepAlive: !0,
|
|
14467
13344
|
maxSockets: 50
|
|
14468
13345
|
}, httpAgent = new HttpAgent(agentOptions), httpsAgent = new HttpsAgent(agentOptions), PackageNotFoundError = class extends Error {
|
|
@@ -14523,7 +13400,7 @@ async function latestVersion(packageName, options) {
|
|
|
14523
13400
|
}
|
|
14524
13401
|
|
|
14525
13402
|
// ../cli-kit/dist/public/node/node-package-manager.js
|
|
14526
|
-
var import_semver3 = __toESM(
|
|
13403
|
+
var import_semver3 = __toESM(require_semver(), 1), yarnLockfile = "yarn.lock", npmLockfile = "package-lock.json", pnpmLockfile = "pnpm-lock.yaml", bunLockfile = "bun.lockb", pnpmWorkspaceFile = "pnpm-workspace.yaml", lockfiles = [yarnLockfile, pnpmLockfile, npmLockfile, bunLockfile], lockfilesByManager = {
|
|
14527
13404
|
yarn: yarnLockfile,
|
|
14528
13405
|
npm: npmLockfile,
|
|
14529
13406
|
pnpm: pnpmLockfile,
|
|
@@ -14831,4 +13708,4 @@ deep-extend/lib/deep-extend.js:
|
|
|
14831
13708
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
14832
13709
|
*)
|
|
14833
13710
|
*/
|
|
14834
|
-
//# sourceMappingURL=chunk-
|
|
13711
|
+
//# sourceMappingURL=chunk-YTWZ7YHV.js.map
|