@storm-software/git-tools 2.104.26 → 2.104.27
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/bin/{chunk-JCAUSR4X.js → chunk-ROSD7FSM.js} +10 -10
- package/bin/{chunk-OWXRZTBJ.cjs → chunk-RXIHQPJR.cjs} +10 -10
- package/bin/git.cjs +2034 -87
- package/bin/git.js +1970 -23
- package/bin/post-checkout.cjs +9 -9
- package/bin/post-checkout.js +1 -1
- package/bin/post-commit.cjs +9 -9
- package/bin/post-commit.js +1 -1
- package/bin/post-merge.cjs +9 -9
- package/bin/post-merge.js +1 -1
- package/bin/pre-commit.cjs +9 -9
- package/bin/pre-commit.js +1 -1
- package/bin/pre-install.cjs +9 -9
- package/bin/pre-install.js +1 -1
- package/bin/pre-push.cjs +13 -13
- package/bin/pre-push.js +1 -1
- package/bin/prepare.cjs +7 -7
- package/bin/prepare.js +1 -1
- package/bin/version-warning.cjs +5 -5
- package/bin/version-warning.js +1 -1
- package/package.json +4 -4
package/bin/git.js
CHANGED
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
writeInfo,
|
|
22
22
|
writeSuccess,
|
|
23
23
|
writeWarning
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-ROSD7FSM.js";
|
|
25
25
|
import {
|
|
26
26
|
defu
|
|
27
27
|
} from "./chunk-V2BQ32CU.js";
|
|
@@ -49188,6 +49188,1952 @@ var require_versions = __commonJS({
|
|
|
49188
49188
|
}
|
|
49189
49189
|
});
|
|
49190
49190
|
|
|
49191
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/internal/constants.js
|
|
49192
|
+
var require_constants2 = __commonJS({
|
|
49193
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/internal/constants.js"(exports, module) {
|
|
49194
|
+
init_esm_shims();
|
|
49195
|
+
var SEMVER_SPEC_VERSION = "2.0.0";
|
|
49196
|
+
var MAX_LENGTH = 256;
|
|
49197
|
+
var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
|
|
49198
|
+
9007199254740991;
|
|
49199
|
+
var MAX_SAFE_COMPONENT_LENGTH = 16;
|
|
49200
|
+
var MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6;
|
|
49201
|
+
var RELEASE_TYPES = [
|
|
49202
|
+
"major",
|
|
49203
|
+
"premajor",
|
|
49204
|
+
"minor",
|
|
49205
|
+
"preminor",
|
|
49206
|
+
"patch",
|
|
49207
|
+
"prepatch",
|
|
49208
|
+
"prerelease"
|
|
49209
|
+
];
|
|
49210
|
+
module.exports = {
|
|
49211
|
+
MAX_LENGTH,
|
|
49212
|
+
MAX_SAFE_COMPONENT_LENGTH,
|
|
49213
|
+
MAX_SAFE_BUILD_LENGTH,
|
|
49214
|
+
MAX_SAFE_INTEGER,
|
|
49215
|
+
RELEASE_TYPES,
|
|
49216
|
+
SEMVER_SPEC_VERSION,
|
|
49217
|
+
FLAG_INCLUDE_PRERELEASE: 1,
|
|
49218
|
+
FLAG_LOOSE: 2
|
|
49219
|
+
};
|
|
49220
|
+
}
|
|
49221
|
+
});
|
|
49222
|
+
|
|
49223
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/internal/debug.js
|
|
49224
|
+
var require_debug3 = __commonJS({
|
|
49225
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/internal/debug.js"(exports, module) {
|
|
49226
|
+
init_esm_shims();
|
|
49227
|
+
var debug2 = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
|
|
49228
|
+
};
|
|
49229
|
+
module.exports = debug2;
|
|
49230
|
+
}
|
|
49231
|
+
});
|
|
49232
|
+
|
|
49233
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/internal/re.js
|
|
49234
|
+
var require_re2 = __commonJS({
|
|
49235
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/internal/re.js"(exports, module) {
|
|
49236
|
+
init_esm_shims();
|
|
49237
|
+
var { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants2();
|
|
49238
|
+
var debug2 = require_debug3();
|
|
49239
|
+
exports = module.exports = {};
|
|
49240
|
+
var re = exports.re = [];
|
|
49241
|
+
var safeRe = exports.safeRe = [];
|
|
49242
|
+
var src = exports.src = [];
|
|
49243
|
+
var safeSrc = exports.safeSrc = [];
|
|
49244
|
+
var t = exports.t = {};
|
|
49245
|
+
var R = 0;
|
|
49246
|
+
var LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
49247
|
+
var safeRegexReplacements = [
|
|
49248
|
+
[
|
|
49249
|
+
"\\s",
|
|
49250
|
+
1
|
|
49251
|
+
],
|
|
49252
|
+
[
|
|
49253
|
+
"\\d",
|
|
49254
|
+
MAX_LENGTH
|
|
49255
|
+
],
|
|
49256
|
+
[
|
|
49257
|
+
LETTERDASHNUMBER,
|
|
49258
|
+
MAX_SAFE_BUILD_LENGTH
|
|
49259
|
+
]
|
|
49260
|
+
];
|
|
49261
|
+
var makeSafeRegex = /* @__PURE__ */ __name((value) => {
|
|
49262
|
+
for (const [token, max2] of safeRegexReplacements) {
|
|
49263
|
+
value = value.split(`${token}*`).join(`${token}{0,${max2}}`).split(`${token}+`).join(`${token}{1,${max2}}`);
|
|
49264
|
+
}
|
|
49265
|
+
return value;
|
|
49266
|
+
}, "makeSafeRegex");
|
|
49267
|
+
var createToken = /* @__PURE__ */ __name((name, value, isGlobal) => {
|
|
49268
|
+
const safe = makeSafeRegex(value);
|
|
49269
|
+
const index = R++;
|
|
49270
|
+
debug2(name, index, value);
|
|
49271
|
+
t[name] = index;
|
|
49272
|
+
src[index] = value;
|
|
49273
|
+
safeSrc[index] = safe;
|
|
49274
|
+
re[index] = new RegExp(value, isGlobal ? "g" : void 0);
|
|
49275
|
+
safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
49276
|
+
}, "createToken");
|
|
49277
|
+
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
49278
|
+
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
49279
|
+
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
49280
|
+
createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
|
|
49281
|
+
createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
49282
|
+
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`);
|
|
49283
|
+
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NUMERICIDENTIFIERLOOSE]}|${src[t.NONNUMERICIDENTIFIER]})`);
|
|
49284
|
+
createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
49285
|
+
createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
49286
|
+
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
49287
|
+
createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
|
|
49288
|
+
createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
|
|
49289
|
+
createToken("FULL", `^${src[t.FULLPLAIN]}$`);
|
|
49290
|
+
createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
|
|
49291
|
+
createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
|
|
49292
|
+
createToken("GTLT", "((?:<|>)?=?)");
|
|
49293
|
+
createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
|
49294
|
+
createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
|
|
49295
|
+
createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
|
|
49296
|
+
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
|
|
49297
|
+
createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
|
|
49298
|
+
createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
|
|
49299
|
+
createToken("COERCEPLAIN", `${"(^|[^\\d])(\\d{1,"}${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
|
49300
|
+
createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
49301
|
+
createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
|
|
49302
|
+
createToken("COERCERTL", src[t.COERCE], true);
|
|
49303
|
+
createToken("COERCERTLFULL", src[t.COERCEFULL], true);
|
|
49304
|
+
createToken("LONETILDE", "(?:~>?)");
|
|
49305
|
+
createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
|
|
49306
|
+
exports.tildeTrimReplace = "$1~";
|
|
49307
|
+
createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
|
|
49308
|
+
createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
49309
|
+
createToken("LONECARET", "(?:\\^)");
|
|
49310
|
+
createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
|
|
49311
|
+
exports.caretTrimReplace = "$1^";
|
|
49312
|
+
createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
|
|
49313
|
+
createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
49314
|
+
createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
|
|
49315
|
+
createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
|
|
49316
|
+
createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
|
|
49317
|
+
exports.comparatorTrimReplace = "$1$2$3";
|
|
49318
|
+
createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
|
|
49319
|
+
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
|
|
49320
|
+
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
49321
|
+
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
49322
|
+
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
49323
|
+
}
|
|
49324
|
+
});
|
|
49325
|
+
|
|
49326
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/internal/parse-options.js
|
|
49327
|
+
var require_parse_options2 = __commonJS({
|
|
49328
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/internal/parse-options.js"(exports, module) {
|
|
49329
|
+
init_esm_shims();
|
|
49330
|
+
var looseOption = Object.freeze({
|
|
49331
|
+
loose: true
|
|
49332
|
+
});
|
|
49333
|
+
var emptyOpts = Object.freeze({});
|
|
49334
|
+
var parseOptions = /* @__PURE__ */ __name((options) => {
|
|
49335
|
+
if (!options) {
|
|
49336
|
+
return emptyOpts;
|
|
49337
|
+
}
|
|
49338
|
+
if (typeof options !== "object") {
|
|
49339
|
+
return looseOption;
|
|
49340
|
+
}
|
|
49341
|
+
return options;
|
|
49342
|
+
}, "parseOptions");
|
|
49343
|
+
module.exports = parseOptions;
|
|
49344
|
+
}
|
|
49345
|
+
});
|
|
49346
|
+
|
|
49347
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/internal/identifiers.js
|
|
49348
|
+
var require_identifiers2 = __commonJS({
|
|
49349
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/internal/identifiers.js"(exports, module) {
|
|
49350
|
+
init_esm_shims();
|
|
49351
|
+
var numeric = /^[0-9]+$/;
|
|
49352
|
+
var compareIdentifiers = /* @__PURE__ */ __name((a, b) => {
|
|
49353
|
+
const anum = numeric.test(a);
|
|
49354
|
+
const bnum = numeric.test(b);
|
|
49355
|
+
if (anum && bnum) {
|
|
49356
|
+
a = +a;
|
|
49357
|
+
b = +b;
|
|
49358
|
+
}
|
|
49359
|
+
return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
|
|
49360
|
+
}, "compareIdentifiers");
|
|
49361
|
+
var rcompareIdentifiers = /* @__PURE__ */ __name((a, b) => compareIdentifiers(b, a), "rcompareIdentifiers");
|
|
49362
|
+
module.exports = {
|
|
49363
|
+
compareIdentifiers,
|
|
49364
|
+
rcompareIdentifiers
|
|
49365
|
+
};
|
|
49366
|
+
}
|
|
49367
|
+
});
|
|
49368
|
+
|
|
49369
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/classes/semver.js
|
|
49370
|
+
var require_semver3 = __commonJS({
|
|
49371
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/classes/semver.js"(exports, module) {
|
|
49372
|
+
init_esm_shims();
|
|
49373
|
+
var debug2 = require_debug3();
|
|
49374
|
+
var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants2();
|
|
49375
|
+
var { safeRe: re, safeSrc: src, t } = require_re2();
|
|
49376
|
+
var parseOptions = require_parse_options2();
|
|
49377
|
+
var { compareIdentifiers } = require_identifiers2();
|
|
49378
|
+
var SemVer = class SemVer2 {
|
|
49379
|
+
static {
|
|
49380
|
+
__name(this, "SemVer");
|
|
49381
|
+
}
|
|
49382
|
+
constructor(version, options) {
|
|
49383
|
+
options = parseOptions(options);
|
|
49384
|
+
if (version instanceof SemVer2) {
|
|
49385
|
+
if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) {
|
|
49386
|
+
return version;
|
|
49387
|
+
} else {
|
|
49388
|
+
version = version.version;
|
|
49389
|
+
}
|
|
49390
|
+
} else if (typeof version !== "string") {
|
|
49391
|
+
throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
49392
|
+
}
|
|
49393
|
+
if (version.length > MAX_LENGTH) {
|
|
49394
|
+
throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
|
|
49395
|
+
}
|
|
49396
|
+
debug2("SemVer", version, options);
|
|
49397
|
+
this.options = options;
|
|
49398
|
+
this.loose = !!options.loose;
|
|
49399
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
49400
|
+
const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
|
|
49401
|
+
if (!m) {
|
|
49402
|
+
throw new TypeError(`Invalid Version: ${version}`);
|
|
49403
|
+
}
|
|
49404
|
+
this.raw = version;
|
|
49405
|
+
this.major = +m[1];
|
|
49406
|
+
this.minor = +m[2];
|
|
49407
|
+
this.patch = +m[3];
|
|
49408
|
+
if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
|
|
49409
|
+
throw new TypeError("Invalid major version");
|
|
49410
|
+
}
|
|
49411
|
+
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
|
|
49412
|
+
throw new TypeError("Invalid minor version");
|
|
49413
|
+
}
|
|
49414
|
+
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
|
|
49415
|
+
throw new TypeError("Invalid patch version");
|
|
49416
|
+
}
|
|
49417
|
+
if (!m[4]) {
|
|
49418
|
+
this.prerelease = [];
|
|
49419
|
+
} else {
|
|
49420
|
+
this.prerelease = m[4].split(".").map((id) => {
|
|
49421
|
+
if (/^[0-9]+$/.test(id)) {
|
|
49422
|
+
const num = +id;
|
|
49423
|
+
if (num >= 0 && num < MAX_SAFE_INTEGER) {
|
|
49424
|
+
return num;
|
|
49425
|
+
}
|
|
49426
|
+
}
|
|
49427
|
+
return id;
|
|
49428
|
+
});
|
|
49429
|
+
}
|
|
49430
|
+
this.build = m[5] ? m[5].split(".") : [];
|
|
49431
|
+
this.format();
|
|
49432
|
+
}
|
|
49433
|
+
format() {
|
|
49434
|
+
this.version = `${this.major}.${this.minor}.${this.patch}`;
|
|
49435
|
+
if (this.prerelease.length) {
|
|
49436
|
+
this.version += `-${this.prerelease.join(".")}`;
|
|
49437
|
+
}
|
|
49438
|
+
return this.version;
|
|
49439
|
+
}
|
|
49440
|
+
toString() {
|
|
49441
|
+
return this.version;
|
|
49442
|
+
}
|
|
49443
|
+
compare(other) {
|
|
49444
|
+
debug2("SemVer.compare", this.version, this.options, other);
|
|
49445
|
+
if (!(other instanceof SemVer2)) {
|
|
49446
|
+
if (typeof other === "string" && other === this.version) {
|
|
49447
|
+
return 0;
|
|
49448
|
+
}
|
|
49449
|
+
other = new SemVer2(other, this.options);
|
|
49450
|
+
}
|
|
49451
|
+
if (other.version === this.version) {
|
|
49452
|
+
return 0;
|
|
49453
|
+
}
|
|
49454
|
+
return this.compareMain(other) || this.comparePre(other);
|
|
49455
|
+
}
|
|
49456
|
+
compareMain(other) {
|
|
49457
|
+
if (!(other instanceof SemVer2)) {
|
|
49458
|
+
other = new SemVer2(other, this.options);
|
|
49459
|
+
}
|
|
49460
|
+
return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);
|
|
49461
|
+
}
|
|
49462
|
+
comparePre(other) {
|
|
49463
|
+
if (!(other instanceof SemVer2)) {
|
|
49464
|
+
other = new SemVer2(other, this.options);
|
|
49465
|
+
}
|
|
49466
|
+
if (this.prerelease.length && !other.prerelease.length) {
|
|
49467
|
+
return -1;
|
|
49468
|
+
} else if (!this.prerelease.length && other.prerelease.length) {
|
|
49469
|
+
return 1;
|
|
49470
|
+
} else if (!this.prerelease.length && !other.prerelease.length) {
|
|
49471
|
+
return 0;
|
|
49472
|
+
}
|
|
49473
|
+
let i = 0;
|
|
49474
|
+
do {
|
|
49475
|
+
const a = this.prerelease[i];
|
|
49476
|
+
const b = other.prerelease[i];
|
|
49477
|
+
debug2("prerelease compare", i, a, b);
|
|
49478
|
+
if (a === void 0 && b === void 0) {
|
|
49479
|
+
return 0;
|
|
49480
|
+
} else if (b === void 0) {
|
|
49481
|
+
return 1;
|
|
49482
|
+
} else if (a === void 0) {
|
|
49483
|
+
return -1;
|
|
49484
|
+
} else if (a === b) {
|
|
49485
|
+
continue;
|
|
49486
|
+
} else {
|
|
49487
|
+
return compareIdentifiers(a, b);
|
|
49488
|
+
}
|
|
49489
|
+
} while (++i);
|
|
49490
|
+
}
|
|
49491
|
+
compareBuild(other) {
|
|
49492
|
+
if (!(other instanceof SemVer2)) {
|
|
49493
|
+
other = new SemVer2(other, this.options);
|
|
49494
|
+
}
|
|
49495
|
+
let i = 0;
|
|
49496
|
+
do {
|
|
49497
|
+
const a = this.build[i];
|
|
49498
|
+
const b = other.build[i];
|
|
49499
|
+
debug2("build compare", i, a, b);
|
|
49500
|
+
if (a === void 0 && b === void 0) {
|
|
49501
|
+
return 0;
|
|
49502
|
+
} else if (b === void 0) {
|
|
49503
|
+
return 1;
|
|
49504
|
+
} else if (a === void 0) {
|
|
49505
|
+
return -1;
|
|
49506
|
+
} else if (a === b) {
|
|
49507
|
+
continue;
|
|
49508
|
+
} else {
|
|
49509
|
+
return compareIdentifiers(a, b);
|
|
49510
|
+
}
|
|
49511
|
+
} while (++i);
|
|
49512
|
+
}
|
|
49513
|
+
// preminor will bump the version up to the next minor release, and immediately
|
|
49514
|
+
// down to pre-release. premajor and prepatch work the same way.
|
|
49515
|
+
inc(release, identifier, identifierBase) {
|
|
49516
|
+
if (release.startsWith("pre")) {
|
|
49517
|
+
if (!identifier && identifierBase === false) {
|
|
49518
|
+
throw new Error("invalid increment argument: identifier is empty");
|
|
49519
|
+
}
|
|
49520
|
+
if (identifier) {
|
|
49521
|
+
const r = new RegExp(`^${this.options.loose ? src[t.PRERELEASELOOSE] : src[t.PRERELEASE]}$`);
|
|
49522
|
+
const match = `-${identifier}`.match(r);
|
|
49523
|
+
if (!match || match[1] !== identifier) {
|
|
49524
|
+
throw new Error(`invalid identifier: ${identifier}`);
|
|
49525
|
+
}
|
|
49526
|
+
}
|
|
49527
|
+
}
|
|
49528
|
+
switch (release) {
|
|
49529
|
+
case "premajor":
|
|
49530
|
+
this.prerelease.length = 0;
|
|
49531
|
+
this.patch = 0;
|
|
49532
|
+
this.minor = 0;
|
|
49533
|
+
this.major++;
|
|
49534
|
+
this.inc("pre", identifier, identifierBase);
|
|
49535
|
+
break;
|
|
49536
|
+
case "preminor":
|
|
49537
|
+
this.prerelease.length = 0;
|
|
49538
|
+
this.patch = 0;
|
|
49539
|
+
this.minor++;
|
|
49540
|
+
this.inc("pre", identifier, identifierBase);
|
|
49541
|
+
break;
|
|
49542
|
+
case "prepatch":
|
|
49543
|
+
this.prerelease.length = 0;
|
|
49544
|
+
this.inc("patch", identifier, identifierBase);
|
|
49545
|
+
this.inc("pre", identifier, identifierBase);
|
|
49546
|
+
break;
|
|
49547
|
+
// If the input is a non-prerelease version, this acts the same as
|
|
49548
|
+
// prepatch.
|
|
49549
|
+
case "prerelease":
|
|
49550
|
+
if (this.prerelease.length === 0) {
|
|
49551
|
+
this.inc("patch", identifier, identifierBase);
|
|
49552
|
+
}
|
|
49553
|
+
this.inc("pre", identifier, identifierBase);
|
|
49554
|
+
break;
|
|
49555
|
+
case "release":
|
|
49556
|
+
if (this.prerelease.length === 0) {
|
|
49557
|
+
throw new Error(`version ${this.raw} is not a prerelease`);
|
|
49558
|
+
}
|
|
49559
|
+
this.prerelease.length = 0;
|
|
49560
|
+
break;
|
|
49561
|
+
case "major":
|
|
49562
|
+
if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) {
|
|
49563
|
+
this.major++;
|
|
49564
|
+
}
|
|
49565
|
+
this.minor = 0;
|
|
49566
|
+
this.patch = 0;
|
|
49567
|
+
this.prerelease = [];
|
|
49568
|
+
break;
|
|
49569
|
+
case "minor":
|
|
49570
|
+
if (this.patch !== 0 || this.prerelease.length === 0) {
|
|
49571
|
+
this.minor++;
|
|
49572
|
+
}
|
|
49573
|
+
this.patch = 0;
|
|
49574
|
+
this.prerelease = [];
|
|
49575
|
+
break;
|
|
49576
|
+
case "patch":
|
|
49577
|
+
if (this.prerelease.length === 0) {
|
|
49578
|
+
this.patch++;
|
|
49579
|
+
}
|
|
49580
|
+
this.prerelease = [];
|
|
49581
|
+
break;
|
|
49582
|
+
// This probably shouldn't be used publicly.
|
|
49583
|
+
// 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
|
|
49584
|
+
case "pre": {
|
|
49585
|
+
const base = Number(identifierBase) ? 1 : 0;
|
|
49586
|
+
if (this.prerelease.length === 0) {
|
|
49587
|
+
this.prerelease = [
|
|
49588
|
+
base
|
|
49589
|
+
];
|
|
49590
|
+
} else {
|
|
49591
|
+
let i = this.prerelease.length;
|
|
49592
|
+
while (--i >= 0) {
|
|
49593
|
+
if (typeof this.prerelease[i] === "number") {
|
|
49594
|
+
this.prerelease[i]++;
|
|
49595
|
+
i = -2;
|
|
49596
|
+
}
|
|
49597
|
+
}
|
|
49598
|
+
if (i === -1) {
|
|
49599
|
+
if (identifier === this.prerelease.join(".") && identifierBase === false) {
|
|
49600
|
+
throw new Error("invalid increment argument: identifier already exists");
|
|
49601
|
+
}
|
|
49602
|
+
this.prerelease.push(base);
|
|
49603
|
+
}
|
|
49604
|
+
}
|
|
49605
|
+
if (identifier) {
|
|
49606
|
+
let prerelease = [
|
|
49607
|
+
identifier,
|
|
49608
|
+
base
|
|
49609
|
+
];
|
|
49610
|
+
if (identifierBase === false) {
|
|
49611
|
+
prerelease = [
|
|
49612
|
+
identifier
|
|
49613
|
+
];
|
|
49614
|
+
}
|
|
49615
|
+
if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
|
|
49616
|
+
if (isNaN(this.prerelease[1])) {
|
|
49617
|
+
this.prerelease = prerelease;
|
|
49618
|
+
}
|
|
49619
|
+
} else {
|
|
49620
|
+
this.prerelease = prerelease;
|
|
49621
|
+
}
|
|
49622
|
+
}
|
|
49623
|
+
break;
|
|
49624
|
+
}
|
|
49625
|
+
default:
|
|
49626
|
+
throw new Error(`invalid increment argument: ${release}`);
|
|
49627
|
+
}
|
|
49628
|
+
this.raw = this.format();
|
|
49629
|
+
if (this.build.length) {
|
|
49630
|
+
this.raw += `+${this.build.join(".")}`;
|
|
49631
|
+
}
|
|
49632
|
+
return this;
|
|
49633
|
+
}
|
|
49634
|
+
};
|
|
49635
|
+
module.exports = SemVer;
|
|
49636
|
+
}
|
|
49637
|
+
});
|
|
49638
|
+
|
|
49639
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/parse.js
|
|
49640
|
+
var require_parse3 = __commonJS({
|
|
49641
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/parse.js"(exports, module) {
|
|
49642
|
+
init_esm_shims();
|
|
49643
|
+
var SemVer = require_semver3();
|
|
49644
|
+
var parse2 = /* @__PURE__ */ __name((version, options, throwErrors = false) => {
|
|
49645
|
+
if (version instanceof SemVer) {
|
|
49646
|
+
return version;
|
|
49647
|
+
}
|
|
49648
|
+
try {
|
|
49649
|
+
return new SemVer(version, options);
|
|
49650
|
+
} catch (er) {
|
|
49651
|
+
if (!throwErrors) {
|
|
49652
|
+
return null;
|
|
49653
|
+
}
|
|
49654
|
+
throw er;
|
|
49655
|
+
}
|
|
49656
|
+
}, "parse");
|
|
49657
|
+
module.exports = parse2;
|
|
49658
|
+
}
|
|
49659
|
+
});
|
|
49660
|
+
|
|
49661
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/valid.js
|
|
49662
|
+
var require_valid3 = __commonJS({
|
|
49663
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/valid.js"(exports, module) {
|
|
49664
|
+
init_esm_shims();
|
|
49665
|
+
var parse2 = require_parse3();
|
|
49666
|
+
var valid2 = /* @__PURE__ */ __name((version, options) => {
|
|
49667
|
+
const v = parse2(version, options);
|
|
49668
|
+
return v ? v.version : null;
|
|
49669
|
+
}, "valid");
|
|
49670
|
+
module.exports = valid2;
|
|
49671
|
+
}
|
|
49672
|
+
});
|
|
49673
|
+
|
|
49674
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/clean.js
|
|
49675
|
+
var require_clean2 = __commonJS({
|
|
49676
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/clean.js"(exports, module) {
|
|
49677
|
+
init_esm_shims();
|
|
49678
|
+
var parse2 = require_parse3();
|
|
49679
|
+
var clean = /* @__PURE__ */ __name((version, options) => {
|
|
49680
|
+
const s = parse2(version.trim().replace(/^[=v]+/, ""), options);
|
|
49681
|
+
return s ? s.version : null;
|
|
49682
|
+
}, "clean");
|
|
49683
|
+
module.exports = clean;
|
|
49684
|
+
}
|
|
49685
|
+
});
|
|
49686
|
+
|
|
49687
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/inc.js
|
|
49688
|
+
var require_inc2 = __commonJS({
|
|
49689
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/inc.js"(exports, module) {
|
|
49690
|
+
init_esm_shims();
|
|
49691
|
+
var SemVer = require_semver3();
|
|
49692
|
+
var inc = /* @__PURE__ */ __name((version, release, options, identifier, identifierBase) => {
|
|
49693
|
+
if (typeof options === "string") {
|
|
49694
|
+
identifierBase = identifier;
|
|
49695
|
+
identifier = options;
|
|
49696
|
+
options = void 0;
|
|
49697
|
+
}
|
|
49698
|
+
try {
|
|
49699
|
+
return new SemVer(version instanceof SemVer ? version.version : version, options).inc(release, identifier, identifierBase).version;
|
|
49700
|
+
} catch (er) {
|
|
49701
|
+
return null;
|
|
49702
|
+
}
|
|
49703
|
+
}, "inc");
|
|
49704
|
+
module.exports = inc;
|
|
49705
|
+
}
|
|
49706
|
+
});
|
|
49707
|
+
|
|
49708
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/diff.js
|
|
49709
|
+
var require_diff2 = __commonJS({
|
|
49710
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/diff.js"(exports, module) {
|
|
49711
|
+
init_esm_shims();
|
|
49712
|
+
var parse2 = require_parse3();
|
|
49713
|
+
var diff = /* @__PURE__ */ __name((version1, version2) => {
|
|
49714
|
+
const v1 = parse2(version1, null, true);
|
|
49715
|
+
const v2 = parse2(version2, null, true);
|
|
49716
|
+
const comparison = v1.compare(v2);
|
|
49717
|
+
if (comparison === 0) {
|
|
49718
|
+
return null;
|
|
49719
|
+
}
|
|
49720
|
+
const v1Higher = comparison > 0;
|
|
49721
|
+
const highVersion = v1Higher ? v1 : v2;
|
|
49722
|
+
const lowVersion = v1Higher ? v2 : v1;
|
|
49723
|
+
const highHasPre = !!highVersion.prerelease.length;
|
|
49724
|
+
const lowHasPre = !!lowVersion.prerelease.length;
|
|
49725
|
+
if (lowHasPre && !highHasPre) {
|
|
49726
|
+
if (!lowVersion.patch && !lowVersion.minor) {
|
|
49727
|
+
return "major";
|
|
49728
|
+
}
|
|
49729
|
+
if (lowVersion.compareMain(highVersion) === 0) {
|
|
49730
|
+
if (lowVersion.minor && !lowVersion.patch) {
|
|
49731
|
+
return "minor";
|
|
49732
|
+
}
|
|
49733
|
+
return "patch";
|
|
49734
|
+
}
|
|
49735
|
+
}
|
|
49736
|
+
const prefix = highHasPre ? "pre" : "";
|
|
49737
|
+
if (v1.major !== v2.major) {
|
|
49738
|
+
return prefix + "major";
|
|
49739
|
+
}
|
|
49740
|
+
if (v1.minor !== v2.minor) {
|
|
49741
|
+
return prefix + "minor";
|
|
49742
|
+
}
|
|
49743
|
+
if (v1.patch !== v2.patch) {
|
|
49744
|
+
return prefix + "patch";
|
|
49745
|
+
}
|
|
49746
|
+
return "prerelease";
|
|
49747
|
+
}, "diff");
|
|
49748
|
+
module.exports = diff;
|
|
49749
|
+
}
|
|
49750
|
+
});
|
|
49751
|
+
|
|
49752
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/major.js
|
|
49753
|
+
var require_major2 = __commonJS({
|
|
49754
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/major.js"(exports, module) {
|
|
49755
|
+
init_esm_shims();
|
|
49756
|
+
var SemVer = require_semver3();
|
|
49757
|
+
var major2 = /* @__PURE__ */ __name((a, loose) => new SemVer(a, loose).major, "major");
|
|
49758
|
+
module.exports = major2;
|
|
49759
|
+
}
|
|
49760
|
+
});
|
|
49761
|
+
|
|
49762
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/minor.js
|
|
49763
|
+
var require_minor2 = __commonJS({
|
|
49764
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/minor.js"(exports, module) {
|
|
49765
|
+
init_esm_shims();
|
|
49766
|
+
var SemVer = require_semver3();
|
|
49767
|
+
var minor = /* @__PURE__ */ __name((a, loose) => new SemVer(a, loose).minor, "minor");
|
|
49768
|
+
module.exports = minor;
|
|
49769
|
+
}
|
|
49770
|
+
});
|
|
49771
|
+
|
|
49772
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/patch.js
|
|
49773
|
+
var require_patch2 = __commonJS({
|
|
49774
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/patch.js"(exports, module) {
|
|
49775
|
+
init_esm_shims();
|
|
49776
|
+
var SemVer = require_semver3();
|
|
49777
|
+
var patch = /* @__PURE__ */ __name((a, loose) => new SemVer(a, loose).patch, "patch");
|
|
49778
|
+
module.exports = patch;
|
|
49779
|
+
}
|
|
49780
|
+
});
|
|
49781
|
+
|
|
49782
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/prerelease.js
|
|
49783
|
+
var require_prerelease2 = __commonJS({
|
|
49784
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/prerelease.js"(exports, module) {
|
|
49785
|
+
init_esm_shims();
|
|
49786
|
+
var parse2 = require_parse3();
|
|
49787
|
+
var prerelease = /* @__PURE__ */ __name((version, options) => {
|
|
49788
|
+
const parsed = parse2(version, options);
|
|
49789
|
+
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
49790
|
+
}, "prerelease");
|
|
49791
|
+
module.exports = prerelease;
|
|
49792
|
+
}
|
|
49793
|
+
});
|
|
49794
|
+
|
|
49795
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/compare.js
|
|
49796
|
+
var require_compare2 = __commonJS({
|
|
49797
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/compare.js"(exports, module) {
|
|
49798
|
+
init_esm_shims();
|
|
49799
|
+
var SemVer = require_semver3();
|
|
49800
|
+
var compare = /* @__PURE__ */ __name((a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose)), "compare");
|
|
49801
|
+
module.exports = compare;
|
|
49802
|
+
}
|
|
49803
|
+
});
|
|
49804
|
+
|
|
49805
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/rcompare.js
|
|
49806
|
+
var require_rcompare2 = __commonJS({
|
|
49807
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/rcompare.js"(exports, module) {
|
|
49808
|
+
init_esm_shims();
|
|
49809
|
+
var compare = require_compare2();
|
|
49810
|
+
var rcompare = /* @__PURE__ */ __name((a, b, loose) => compare(b, a, loose), "rcompare");
|
|
49811
|
+
module.exports = rcompare;
|
|
49812
|
+
}
|
|
49813
|
+
});
|
|
49814
|
+
|
|
49815
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/compare-loose.js
|
|
49816
|
+
var require_compare_loose2 = __commonJS({
|
|
49817
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/compare-loose.js"(exports, module) {
|
|
49818
|
+
init_esm_shims();
|
|
49819
|
+
var compare = require_compare2();
|
|
49820
|
+
var compareLoose = /* @__PURE__ */ __name((a, b) => compare(a, b, true), "compareLoose");
|
|
49821
|
+
module.exports = compareLoose;
|
|
49822
|
+
}
|
|
49823
|
+
});
|
|
49824
|
+
|
|
49825
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/compare-build.js
|
|
49826
|
+
var require_compare_build2 = __commonJS({
|
|
49827
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/compare-build.js"(exports, module) {
|
|
49828
|
+
init_esm_shims();
|
|
49829
|
+
var SemVer = require_semver3();
|
|
49830
|
+
var compareBuild = /* @__PURE__ */ __name((a, b, loose) => {
|
|
49831
|
+
const versionA = new SemVer(a, loose);
|
|
49832
|
+
const versionB = new SemVer(b, loose);
|
|
49833
|
+
return versionA.compare(versionB) || versionA.compareBuild(versionB);
|
|
49834
|
+
}, "compareBuild");
|
|
49835
|
+
module.exports = compareBuild;
|
|
49836
|
+
}
|
|
49837
|
+
});
|
|
49838
|
+
|
|
49839
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/sort.js
|
|
49840
|
+
var require_sort3 = __commonJS({
|
|
49841
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/sort.js"(exports, module) {
|
|
49842
|
+
init_esm_shims();
|
|
49843
|
+
var compareBuild = require_compare_build2();
|
|
49844
|
+
var sort = /* @__PURE__ */ __name((list, loose) => list.sort((a, b) => compareBuild(a, b, loose)), "sort");
|
|
49845
|
+
module.exports = sort;
|
|
49846
|
+
}
|
|
49847
|
+
});
|
|
49848
|
+
|
|
49849
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/rsort.js
|
|
49850
|
+
var require_rsort2 = __commonJS({
|
|
49851
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/rsort.js"(exports, module) {
|
|
49852
|
+
init_esm_shims();
|
|
49853
|
+
var compareBuild = require_compare_build2();
|
|
49854
|
+
var rsort = /* @__PURE__ */ __name((list, loose) => list.sort((a, b) => compareBuild(b, a, loose)), "rsort");
|
|
49855
|
+
module.exports = rsort;
|
|
49856
|
+
}
|
|
49857
|
+
});
|
|
49858
|
+
|
|
49859
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/gt.js
|
|
49860
|
+
var require_gt2 = __commonJS({
|
|
49861
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/gt.js"(exports, module) {
|
|
49862
|
+
init_esm_shims();
|
|
49863
|
+
var compare = require_compare2();
|
|
49864
|
+
var gt = /* @__PURE__ */ __name((a, b, loose) => compare(a, b, loose) > 0, "gt");
|
|
49865
|
+
module.exports = gt;
|
|
49866
|
+
}
|
|
49867
|
+
});
|
|
49868
|
+
|
|
49869
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/lt.js
|
|
49870
|
+
var require_lt2 = __commonJS({
|
|
49871
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/lt.js"(exports, module) {
|
|
49872
|
+
init_esm_shims();
|
|
49873
|
+
var compare = require_compare2();
|
|
49874
|
+
var lt = /* @__PURE__ */ __name((a, b, loose) => compare(a, b, loose) < 0, "lt");
|
|
49875
|
+
module.exports = lt;
|
|
49876
|
+
}
|
|
49877
|
+
});
|
|
49878
|
+
|
|
49879
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/eq.js
|
|
49880
|
+
var require_eq2 = __commonJS({
|
|
49881
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/eq.js"(exports, module) {
|
|
49882
|
+
init_esm_shims();
|
|
49883
|
+
var compare = require_compare2();
|
|
49884
|
+
var eq2 = /* @__PURE__ */ __name((a, b, loose) => compare(a, b, loose) === 0, "eq");
|
|
49885
|
+
module.exports = eq2;
|
|
49886
|
+
}
|
|
49887
|
+
});
|
|
49888
|
+
|
|
49889
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/neq.js
|
|
49890
|
+
var require_neq2 = __commonJS({
|
|
49891
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/neq.js"(exports, module) {
|
|
49892
|
+
init_esm_shims();
|
|
49893
|
+
var compare = require_compare2();
|
|
49894
|
+
var neq = /* @__PURE__ */ __name((a, b, loose) => compare(a, b, loose) !== 0, "neq");
|
|
49895
|
+
module.exports = neq;
|
|
49896
|
+
}
|
|
49897
|
+
});
|
|
49898
|
+
|
|
49899
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/gte.js
|
|
49900
|
+
var require_gte2 = __commonJS({
|
|
49901
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/gte.js"(exports, module) {
|
|
49902
|
+
init_esm_shims();
|
|
49903
|
+
var compare = require_compare2();
|
|
49904
|
+
var gte = /* @__PURE__ */ __name((a, b, loose) => compare(a, b, loose) >= 0, "gte");
|
|
49905
|
+
module.exports = gte;
|
|
49906
|
+
}
|
|
49907
|
+
});
|
|
49908
|
+
|
|
49909
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/lte.js
|
|
49910
|
+
var require_lte2 = __commonJS({
|
|
49911
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/lte.js"(exports, module) {
|
|
49912
|
+
init_esm_shims();
|
|
49913
|
+
var compare = require_compare2();
|
|
49914
|
+
var lte = /* @__PURE__ */ __name((a, b, loose) => compare(a, b, loose) <= 0, "lte");
|
|
49915
|
+
module.exports = lte;
|
|
49916
|
+
}
|
|
49917
|
+
});
|
|
49918
|
+
|
|
49919
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/cmp.js
|
|
49920
|
+
var require_cmp2 = __commonJS({
|
|
49921
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/cmp.js"(exports, module) {
|
|
49922
|
+
init_esm_shims();
|
|
49923
|
+
var eq2 = require_eq2();
|
|
49924
|
+
var neq = require_neq2();
|
|
49925
|
+
var gt = require_gt2();
|
|
49926
|
+
var gte = require_gte2();
|
|
49927
|
+
var lt = require_lt2();
|
|
49928
|
+
var lte = require_lte2();
|
|
49929
|
+
var cmp = /* @__PURE__ */ __name((a, op, b, loose) => {
|
|
49930
|
+
switch (op) {
|
|
49931
|
+
case "===":
|
|
49932
|
+
if (typeof a === "object") {
|
|
49933
|
+
a = a.version;
|
|
49934
|
+
}
|
|
49935
|
+
if (typeof b === "object") {
|
|
49936
|
+
b = b.version;
|
|
49937
|
+
}
|
|
49938
|
+
return a === b;
|
|
49939
|
+
case "!==":
|
|
49940
|
+
if (typeof a === "object") {
|
|
49941
|
+
a = a.version;
|
|
49942
|
+
}
|
|
49943
|
+
if (typeof b === "object") {
|
|
49944
|
+
b = b.version;
|
|
49945
|
+
}
|
|
49946
|
+
return a !== b;
|
|
49947
|
+
case "":
|
|
49948
|
+
case "=":
|
|
49949
|
+
case "==":
|
|
49950
|
+
return eq2(a, b, loose);
|
|
49951
|
+
case "!=":
|
|
49952
|
+
return neq(a, b, loose);
|
|
49953
|
+
case ">":
|
|
49954
|
+
return gt(a, b, loose);
|
|
49955
|
+
case ">=":
|
|
49956
|
+
return gte(a, b, loose);
|
|
49957
|
+
case "<":
|
|
49958
|
+
return lt(a, b, loose);
|
|
49959
|
+
case "<=":
|
|
49960
|
+
return lte(a, b, loose);
|
|
49961
|
+
default:
|
|
49962
|
+
throw new TypeError(`Invalid operator: ${op}`);
|
|
49963
|
+
}
|
|
49964
|
+
}, "cmp");
|
|
49965
|
+
module.exports = cmp;
|
|
49966
|
+
}
|
|
49967
|
+
});
|
|
49968
|
+
|
|
49969
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/coerce.js
|
|
49970
|
+
var require_coerce2 = __commonJS({
|
|
49971
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/coerce.js"(exports, module) {
|
|
49972
|
+
init_esm_shims();
|
|
49973
|
+
var SemVer = require_semver3();
|
|
49974
|
+
var parse2 = require_parse3();
|
|
49975
|
+
var { safeRe: re, t } = require_re2();
|
|
49976
|
+
var coerce = /* @__PURE__ */ __name((version, options) => {
|
|
49977
|
+
if (version instanceof SemVer) {
|
|
49978
|
+
return version;
|
|
49979
|
+
}
|
|
49980
|
+
if (typeof version === "number") {
|
|
49981
|
+
version = String(version);
|
|
49982
|
+
}
|
|
49983
|
+
if (typeof version !== "string") {
|
|
49984
|
+
return null;
|
|
49985
|
+
}
|
|
49986
|
+
options = options || {};
|
|
49987
|
+
let match = null;
|
|
49988
|
+
if (!options.rtl) {
|
|
49989
|
+
match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
|
|
49990
|
+
} else {
|
|
49991
|
+
const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL];
|
|
49992
|
+
let next;
|
|
49993
|
+
while ((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)) {
|
|
49994
|
+
if (!match || next.index + next[0].length !== match.index + match[0].length) {
|
|
49995
|
+
match = next;
|
|
49996
|
+
}
|
|
49997
|
+
coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
|
49998
|
+
}
|
|
49999
|
+
coerceRtlRegex.lastIndex = -1;
|
|
50000
|
+
}
|
|
50001
|
+
if (match === null) {
|
|
50002
|
+
return null;
|
|
50003
|
+
}
|
|
50004
|
+
const major2 = match[2];
|
|
50005
|
+
const minor = match[3] || "0";
|
|
50006
|
+
const patch = match[4] || "0";
|
|
50007
|
+
const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : "";
|
|
50008
|
+
const build = options.includePrerelease && match[6] ? `+${match[6]}` : "";
|
|
50009
|
+
return parse2(`${major2}.${minor}.${patch}${prerelease}${build}`, options);
|
|
50010
|
+
}, "coerce");
|
|
50011
|
+
module.exports = coerce;
|
|
50012
|
+
}
|
|
50013
|
+
});
|
|
50014
|
+
|
|
50015
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/internal/lrucache.js
|
|
50016
|
+
var require_lrucache2 = __commonJS({
|
|
50017
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/internal/lrucache.js"(exports, module) {
|
|
50018
|
+
init_esm_shims();
|
|
50019
|
+
var LRUCache = class LRUCache {
|
|
50020
|
+
static {
|
|
50021
|
+
__name(this, "LRUCache");
|
|
50022
|
+
}
|
|
50023
|
+
constructor() {
|
|
50024
|
+
this.max = 1e3;
|
|
50025
|
+
this.map = /* @__PURE__ */ new Map();
|
|
50026
|
+
}
|
|
50027
|
+
get(key) {
|
|
50028
|
+
const value = this.map.get(key);
|
|
50029
|
+
if (value === void 0) {
|
|
50030
|
+
return void 0;
|
|
50031
|
+
} else {
|
|
50032
|
+
this.map.delete(key);
|
|
50033
|
+
this.map.set(key, value);
|
|
50034
|
+
return value;
|
|
50035
|
+
}
|
|
50036
|
+
}
|
|
50037
|
+
delete(key) {
|
|
50038
|
+
return this.map.delete(key);
|
|
50039
|
+
}
|
|
50040
|
+
set(key, value) {
|
|
50041
|
+
const deleted = this.delete(key);
|
|
50042
|
+
if (!deleted && value !== void 0) {
|
|
50043
|
+
if (this.map.size >= this.max) {
|
|
50044
|
+
const firstKey = this.map.keys().next().value;
|
|
50045
|
+
this.delete(firstKey);
|
|
50046
|
+
}
|
|
50047
|
+
this.map.set(key, value);
|
|
50048
|
+
}
|
|
50049
|
+
return this;
|
|
50050
|
+
}
|
|
50051
|
+
};
|
|
50052
|
+
module.exports = LRUCache;
|
|
50053
|
+
}
|
|
50054
|
+
});
|
|
50055
|
+
|
|
50056
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/classes/range.js
|
|
50057
|
+
var require_range3 = __commonJS({
|
|
50058
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/classes/range.js"(exports, module) {
|
|
50059
|
+
init_esm_shims();
|
|
50060
|
+
var SPACE_CHARACTERS = /\s+/g;
|
|
50061
|
+
var Range = class Range2 {
|
|
50062
|
+
static {
|
|
50063
|
+
__name(this, "Range");
|
|
50064
|
+
}
|
|
50065
|
+
constructor(range2, options) {
|
|
50066
|
+
options = parseOptions(options);
|
|
50067
|
+
if (range2 instanceof Range2) {
|
|
50068
|
+
if (range2.loose === !!options.loose && range2.includePrerelease === !!options.includePrerelease) {
|
|
50069
|
+
return range2;
|
|
50070
|
+
} else {
|
|
50071
|
+
return new Range2(range2.raw, options);
|
|
50072
|
+
}
|
|
50073
|
+
}
|
|
50074
|
+
if (range2 instanceof Comparator) {
|
|
50075
|
+
this.raw = range2.value;
|
|
50076
|
+
this.set = [
|
|
50077
|
+
[
|
|
50078
|
+
range2
|
|
50079
|
+
]
|
|
50080
|
+
];
|
|
50081
|
+
this.formatted = void 0;
|
|
50082
|
+
return this;
|
|
50083
|
+
}
|
|
50084
|
+
this.options = options;
|
|
50085
|
+
this.loose = !!options.loose;
|
|
50086
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
50087
|
+
this.raw = range2.trim().replace(SPACE_CHARACTERS, " ");
|
|
50088
|
+
this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
|
|
50089
|
+
if (!this.set.length) {
|
|
50090
|
+
throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
50091
|
+
}
|
|
50092
|
+
if (this.set.length > 1) {
|
|
50093
|
+
const first2 = this.set[0];
|
|
50094
|
+
this.set = this.set.filter((c) => !isNullSet(c[0]));
|
|
50095
|
+
if (this.set.length === 0) {
|
|
50096
|
+
this.set = [
|
|
50097
|
+
first2
|
|
50098
|
+
];
|
|
50099
|
+
} else if (this.set.length > 1) {
|
|
50100
|
+
for (const c of this.set) {
|
|
50101
|
+
if (c.length === 1 && isAny(c[0])) {
|
|
50102
|
+
this.set = [
|
|
50103
|
+
c
|
|
50104
|
+
];
|
|
50105
|
+
break;
|
|
50106
|
+
}
|
|
50107
|
+
}
|
|
50108
|
+
}
|
|
50109
|
+
}
|
|
50110
|
+
this.formatted = void 0;
|
|
50111
|
+
}
|
|
50112
|
+
get range() {
|
|
50113
|
+
if (this.formatted === void 0) {
|
|
50114
|
+
this.formatted = "";
|
|
50115
|
+
for (let i = 0; i < this.set.length; i++) {
|
|
50116
|
+
if (i > 0) {
|
|
50117
|
+
this.formatted += "||";
|
|
50118
|
+
}
|
|
50119
|
+
const comps = this.set[i];
|
|
50120
|
+
for (let k = 0; k < comps.length; k++) {
|
|
50121
|
+
if (k > 0) {
|
|
50122
|
+
this.formatted += " ";
|
|
50123
|
+
}
|
|
50124
|
+
this.formatted += comps[k].toString().trim();
|
|
50125
|
+
}
|
|
50126
|
+
}
|
|
50127
|
+
}
|
|
50128
|
+
return this.formatted;
|
|
50129
|
+
}
|
|
50130
|
+
format() {
|
|
50131
|
+
return this.range;
|
|
50132
|
+
}
|
|
50133
|
+
toString() {
|
|
50134
|
+
return this.range;
|
|
50135
|
+
}
|
|
50136
|
+
parseRange(range2) {
|
|
50137
|
+
const memoOpts = (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE);
|
|
50138
|
+
const memoKey = memoOpts + ":" + range2;
|
|
50139
|
+
const cached = cache.get(memoKey);
|
|
50140
|
+
if (cached) {
|
|
50141
|
+
return cached;
|
|
50142
|
+
}
|
|
50143
|
+
const loose = this.options.loose;
|
|
50144
|
+
const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
|
|
50145
|
+
range2 = range2.replace(hr, hyphenReplace(this.options.includePrerelease));
|
|
50146
|
+
debug2("hyphen replace", range2);
|
|
50147
|
+
range2 = range2.replace(re[t.COMPARATORTRIM], comparatorTrimReplace);
|
|
50148
|
+
debug2("comparator trim", range2);
|
|
50149
|
+
range2 = range2.replace(re[t.TILDETRIM], tildeTrimReplace);
|
|
50150
|
+
debug2("tilde trim", range2);
|
|
50151
|
+
range2 = range2.replace(re[t.CARETTRIM], caretTrimReplace);
|
|
50152
|
+
debug2("caret trim", range2);
|
|
50153
|
+
let rangeList = range2.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
|
|
50154
|
+
if (loose) {
|
|
50155
|
+
rangeList = rangeList.filter((comp) => {
|
|
50156
|
+
debug2("loose invalid filter", comp, this.options);
|
|
50157
|
+
return !!comp.match(re[t.COMPARATORLOOSE]);
|
|
50158
|
+
});
|
|
50159
|
+
}
|
|
50160
|
+
debug2("range list", rangeList);
|
|
50161
|
+
const rangeMap = /* @__PURE__ */ new Map();
|
|
50162
|
+
const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
|
|
50163
|
+
for (const comp of comparators) {
|
|
50164
|
+
if (isNullSet(comp)) {
|
|
50165
|
+
return [
|
|
50166
|
+
comp
|
|
50167
|
+
];
|
|
50168
|
+
}
|
|
50169
|
+
rangeMap.set(comp.value, comp);
|
|
50170
|
+
}
|
|
50171
|
+
if (rangeMap.size > 1 && rangeMap.has("")) {
|
|
50172
|
+
rangeMap.delete("");
|
|
50173
|
+
}
|
|
50174
|
+
const result2 = [
|
|
50175
|
+
...rangeMap.values()
|
|
50176
|
+
];
|
|
50177
|
+
cache.set(memoKey, result2);
|
|
50178
|
+
return result2;
|
|
50179
|
+
}
|
|
50180
|
+
intersects(range2, options) {
|
|
50181
|
+
if (!(range2 instanceof Range2)) {
|
|
50182
|
+
throw new TypeError("a Range is required");
|
|
50183
|
+
}
|
|
50184
|
+
return this.set.some((thisComparators) => {
|
|
50185
|
+
return isSatisfiable(thisComparators, options) && range2.set.some((rangeComparators) => {
|
|
50186
|
+
return isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => {
|
|
50187
|
+
return rangeComparators.every((rangeComparator) => {
|
|
50188
|
+
return thisComparator.intersects(rangeComparator, options);
|
|
50189
|
+
});
|
|
50190
|
+
});
|
|
50191
|
+
});
|
|
50192
|
+
});
|
|
50193
|
+
}
|
|
50194
|
+
// if ANY of the sets match ALL of its comparators, then pass
|
|
50195
|
+
test(version) {
|
|
50196
|
+
if (!version) {
|
|
50197
|
+
return false;
|
|
50198
|
+
}
|
|
50199
|
+
if (typeof version === "string") {
|
|
50200
|
+
try {
|
|
50201
|
+
version = new SemVer(version, this.options);
|
|
50202
|
+
} catch (er) {
|
|
50203
|
+
return false;
|
|
50204
|
+
}
|
|
50205
|
+
}
|
|
50206
|
+
for (let i = 0; i < this.set.length; i++) {
|
|
50207
|
+
if (testSet(this.set[i], version, this.options)) {
|
|
50208
|
+
return true;
|
|
50209
|
+
}
|
|
50210
|
+
}
|
|
50211
|
+
return false;
|
|
50212
|
+
}
|
|
50213
|
+
};
|
|
50214
|
+
module.exports = Range;
|
|
50215
|
+
var LRU = require_lrucache2();
|
|
50216
|
+
var cache = new LRU();
|
|
50217
|
+
var parseOptions = require_parse_options2();
|
|
50218
|
+
var Comparator = require_comparator2();
|
|
50219
|
+
var debug2 = require_debug3();
|
|
50220
|
+
var SemVer = require_semver3();
|
|
50221
|
+
var { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re2();
|
|
50222
|
+
var { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants2();
|
|
50223
|
+
var isNullSet = /* @__PURE__ */ __name((c) => c.value === "<0.0.0-0", "isNullSet");
|
|
50224
|
+
var isAny = /* @__PURE__ */ __name((c) => c.value === "", "isAny");
|
|
50225
|
+
var isSatisfiable = /* @__PURE__ */ __name((comparators, options) => {
|
|
50226
|
+
let result2 = true;
|
|
50227
|
+
const remainingComparators = comparators.slice();
|
|
50228
|
+
let testComparator = remainingComparators.pop();
|
|
50229
|
+
while (result2 && remainingComparators.length) {
|
|
50230
|
+
result2 = remainingComparators.every((otherComparator) => {
|
|
50231
|
+
return testComparator.intersects(otherComparator, options);
|
|
50232
|
+
});
|
|
50233
|
+
testComparator = remainingComparators.pop();
|
|
50234
|
+
}
|
|
50235
|
+
return result2;
|
|
50236
|
+
}, "isSatisfiable");
|
|
50237
|
+
var parseComparator = /* @__PURE__ */ __name((comp, options) => {
|
|
50238
|
+
debug2("comp", comp, options);
|
|
50239
|
+
comp = replaceCarets(comp, options);
|
|
50240
|
+
debug2("caret", comp);
|
|
50241
|
+
comp = replaceTildes(comp, options);
|
|
50242
|
+
debug2("tildes", comp);
|
|
50243
|
+
comp = replaceXRanges(comp, options);
|
|
50244
|
+
debug2("xrange", comp);
|
|
50245
|
+
comp = replaceStars(comp, options);
|
|
50246
|
+
debug2("stars", comp);
|
|
50247
|
+
return comp;
|
|
50248
|
+
}, "parseComparator");
|
|
50249
|
+
var isX = /* @__PURE__ */ __name((id) => !id || id.toLowerCase() === "x" || id === "*", "isX");
|
|
50250
|
+
var replaceTildes = /* @__PURE__ */ __name((comp, options) => {
|
|
50251
|
+
return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
|
|
50252
|
+
}, "replaceTildes");
|
|
50253
|
+
var replaceTilde = /* @__PURE__ */ __name((comp, options) => {
|
|
50254
|
+
const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
|
|
50255
|
+
return comp.replace(r, (_3, M, m, p, pr) => {
|
|
50256
|
+
debug2("tilde", comp, _3, M, m, p, pr);
|
|
50257
|
+
let ret;
|
|
50258
|
+
if (isX(M)) {
|
|
50259
|
+
ret = "";
|
|
50260
|
+
} else if (isX(m)) {
|
|
50261
|
+
ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
|
|
50262
|
+
} else if (isX(p)) {
|
|
50263
|
+
ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
|
|
50264
|
+
} else if (pr) {
|
|
50265
|
+
debug2("replaceTilde pr", pr);
|
|
50266
|
+
ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
50267
|
+
} else {
|
|
50268
|
+
ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
|
|
50269
|
+
}
|
|
50270
|
+
debug2("tilde return", ret);
|
|
50271
|
+
return ret;
|
|
50272
|
+
});
|
|
50273
|
+
}, "replaceTilde");
|
|
50274
|
+
var replaceCarets = /* @__PURE__ */ __name((comp, options) => {
|
|
50275
|
+
return comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" ");
|
|
50276
|
+
}, "replaceCarets");
|
|
50277
|
+
var replaceCaret = /* @__PURE__ */ __name((comp, options) => {
|
|
50278
|
+
debug2("caret", comp, options);
|
|
50279
|
+
const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET];
|
|
50280
|
+
const z = options.includePrerelease ? "-0" : "";
|
|
50281
|
+
return comp.replace(r, (_3, M, m, p, pr) => {
|
|
50282
|
+
debug2("caret", comp, _3, M, m, p, pr);
|
|
50283
|
+
let ret;
|
|
50284
|
+
if (isX(M)) {
|
|
50285
|
+
ret = "";
|
|
50286
|
+
} else if (isX(m)) {
|
|
50287
|
+
ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
|
|
50288
|
+
} else if (isX(p)) {
|
|
50289
|
+
if (M === "0") {
|
|
50290
|
+
ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
|
|
50291
|
+
} else {
|
|
50292
|
+
ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
|
|
50293
|
+
}
|
|
50294
|
+
} else if (pr) {
|
|
50295
|
+
debug2("replaceCaret pr", pr);
|
|
50296
|
+
if (M === "0") {
|
|
50297
|
+
if (m === "0") {
|
|
50298
|
+
ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;
|
|
50299
|
+
} else {
|
|
50300
|
+
ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
50301
|
+
}
|
|
50302
|
+
} else {
|
|
50303
|
+
ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
|
|
50304
|
+
}
|
|
50305
|
+
} else {
|
|
50306
|
+
debug2("no pr");
|
|
50307
|
+
if (M === "0") {
|
|
50308
|
+
if (m === "0") {
|
|
50309
|
+
ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0`;
|
|
50310
|
+
} else {
|
|
50311
|
+
ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0`;
|
|
50312
|
+
}
|
|
50313
|
+
} else {
|
|
50314
|
+
ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
|
|
50315
|
+
}
|
|
50316
|
+
}
|
|
50317
|
+
debug2("caret return", ret);
|
|
50318
|
+
return ret;
|
|
50319
|
+
});
|
|
50320
|
+
}, "replaceCaret");
|
|
50321
|
+
var replaceXRanges = /* @__PURE__ */ __name((comp, options) => {
|
|
50322
|
+
debug2("replaceXRanges", comp, options);
|
|
50323
|
+
return comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ");
|
|
50324
|
+
}, "replaceXRanges");
|
|
50325
|
+
var replaceXRange = /* @__PURE__ */ __name((comp, options) => {
|
|
50326
|
+
comp = comp.trim();
|
|
50327
|
+
const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
|
|
50328
|
+
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
|
|
50329
|
+
debug2("xRange", comp, ret, gtlt, M, m, p, pr);
|
|
50330
|
+
const xM = isX(M);
|
|
50331
|
+
const xm = xM || isX(m);
|
|
50332
|
+
const xp = xm || isX(p);
|
|
50333
|
+
const anyX = xp;
|
|
50334
|
+
if (gtlt === "=" && anyX) {
|
|
50335
|
+
gtlt = "";
|
|
50336
|
+
}
|
|
50337
|
+
pr = options.includePrerelease ? "-0" : "";
|
|
50338
|
+
if (xM) {
|
|
50339
|
+
if (gtlt === ">" || gtlt === "<") {
|
|
50340
|
+
ret = "<0.0.0-0";
|
|
50341
|
+
} else {
|
|
50342
|
+
ret = "*";
|
|
50343
|
+
}
|
|
50344
|
+
} else if (gtlt && anyX) {
|
|
50345
|
+
if (xm) {
|
|
50346
|
+
m = 0;
|
|
50347
|
+
}
|
|
50348
|
+
p = 0;
|
|
50349
|
+
if (gtlt === ">") {
|
|
50350
|
+
gtlt = ">=";
|
|
50351
|
+
if (xm) {
|
|
50352
|
+
M = +M + 1;
|
|
50353
|
+
m = 0;
|
|
50354
|
+
p = 0;
|
|
50355
|
+
} else {
|
|
50356
|
+
m = +m + 1;
|
|
50357
|
+
p = 0;
|
|
50358
|
+
}
|
|
50359
|
+
} else if (gtlt === "<=") {
|
|
50360
|
+
gtlt = "<";
|
|
50361
|
+
if (xm) {
|
|
50362
|
+
M = +M + 1;
|
|
50363
|
+
} else {
|
|
50364
|
+
m = +m + 1;
|
|
50365
|
+
}
|
|
50366
|
+
}
|
|
50367
|
+
if (gtlt === "<") {
|
|
50368
|
+
pr = "-0";
|
|
50369
|
+
}
|
|
50370
|
+
ret = `${gtlt + M}.${m}.${p}${pr}`;
|
|
50371
|
+
} else if (xm) {
|
|
50372
|
+
ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
|
|
50373
|
+
} else if (xp) {
|
|
50374
|
+
ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;
|
|
50375
|
+
}
|
|
50376
|
+
debug2("xRange return", ret);
|
|
50377
|
+
return ret;
|
|
50378
|
+
});
|
|
50379
|
+
}, "replaceXRange");
|
|
50380
|
+
var replaceStars = /* @__PURE__ */ __name((comp, options) => {
|
|
50381
|
+
debug2("replaceStars", comp, options);
|
|
50382
|
+
return comp.trim().replace(re[t.STAR], "");
|
|
50383
|
+
}, "replaceStars");
|
|
50384
|
+
var replaceGTE0 = /* @__PURE__ */ __name((comp, options) => {
|
|
50385
|
+
debug2("replaceGTE0", comp, options);
|
|
50386
|
+
return comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
|
|
50387
|
+
}, "replaceGTE0");
|
|
50388
|
+
var hyphenReplace = /* @__PURE__ */ __name((incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
|
|
50389
|
+
if (isX(fM)) {
|
|
50390
|
+
from = "";
|
|
50391
|
+
} else if (isX(fm)) {
|
|
50392
|
+
from = `>=${fM}.0.0${incPr ? "-0" : ""}`;
|
|
50393
|
+
} else if (isX(fp)) {
|
|
50394
|
+
from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}`;
|
|
50395
|
+
} else if (fpr) {
|
|
50396
|
+
from = `>=${from}`;
|
|
50397
|
+
} else {
|
|
50398
|
+
from = `>=${from}${incPr ? "-0" : ""}`;
|
|
50399
|
+
}
|
|
50400
|
+
if (isX(tM)) {
|
|
50401
|
+
to = "";
|
|
50402
|
+
} else if (isX(tm)) {
|
|
50403
|
+
to = `<${+tM + 1}.0.0-0`;
|
|
50404
|
+
} else if (isX(tp)) {
|
|
50405
|
+
to = `<${tM}.${+tm + 1}.0-0`;
|
|
50406
|
+
} else if (tpr) {
|
|
50407
|
+
to = `<=${tM}.${tm}.${tp}-${tpr}`;
|
|
50408
|
+
} else if (incPr) {
|
|
50409
|
+
to = `<${tM}.${tm}.${+tp + 1}-0`;
|
|
50410
|
+
} else {
|
|
50411
|
+
to = `<=${to}`;
|
|
50412
|
+
}
|
|
50413
|
+
return `${from} ${to}`.trim();
|
|
50414
|
+
}, "hyphenReplace");
|
|
50415
|
+
var testSet = /* @__PURE__ */ __name((set, version, options) => {
|
|
50416
|
+
for (let i = 0; i < set.length; i++) {
|
|
50417
|
+
if (!set[i].test(version)) {
|
|
50418
|
+
return false;
|
|
50419
|
+
}
|
|
50420
|
+
}
|
|
50421
|
+
if (version.prerelease.length && !options.includePrerelease) {
|
|
50422
|
+
for (let i = 0; i < set.length; i++) {
|
|
50423
|
+
debug2(set[i].semver);
|
|
50424
|
+
if (set[i].semver === Comparator.ANY) {
|
|
50425
|
+
continue;
|
|
50426
|
+
}
|
|
50427
|
+
if (set[i].semver.prerelease.length > 0) {
|
|
50428
|
+
const allowed = set[i].semver;
|
|
50429
|
+
if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) {
|
|
50430
|
+
return true;
|
|
50431
|
+
}
|
|
50432
|
+
}
|
|
50433
|
+
}
|
|
50434
|
+
return false;
|
|
50435
|
+
}
|
|
50436
|
+
return true;
|
|
50437
|
+
}, "testSet");
|
|
50438
|
+
}
|
|
50439
|
+
});
|
|
50440
|
+
|
|
50441
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/classes/comparator.js
|
|
50442
|
+
var require_comparator2 = __commonJS({
|
|
50443
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/classes/comparator.js"(exports, module) {
|
|
50444
|
+
init_esm_shims();
|
|
50445
|
+
var ANY = Symbol("SemVer ANY");
|
|
50446
|
+
var Comparator = class Comparator2 {
|
|
50447
|
+
static {
|
|
50448
|
+
__name(this, "Comparator");
|
|
50449
|
+
}
|
|
50450
|
+
static get ANY() {
|
|
50451
|
+
return ANY;
|
|
50452
|
+
}
|
|
50453
|
+
constructor(comp, options) {
|
|
50454
|
+
options = parseOptions(options);
|
|
50455
|
+
if (comp instanceof Comparator2) {
|
|
50456
|
+
if (comp.loose === !!options.loose) {
|
|
50457
|
+
return comp;
|
|
50458
|
+
} else {
|
|
50459
|
+
comp = comp.value;
|
|
50460
|
+
}
|
|
50461
|
+
}
|
|
50462
|
+
comp = comp.trim().split(/\s+/).join(" ");
|
|
50463
|
+
debug2("comparator", comp, options);
|
|
50464
|
+
this.options = options;
|
|
50465
|
+
this.loose = !!options.loose;
|
|
50466
|
+
this.parse(comp);
|
|
50467
|
+
if (this.semver === ANY) {
|
|
50468
|
+
this.value = "";
|
|
50469
|
+
} else {
|
|
50470
|
+
this.value = this.operator + this.semver.version;
|
|
50471
|
+
}
|
|
50472
|
+
debug2("comp", this);
|
|
50473
|
+
}
|
|
50474
|
+
parse(comp) {
|
|
50475
|
+
const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR];
|
|
50476
|
+
const m = comp.match(r);
|
|
50477
|
+
if (!m) {
|
|
50478
|
+
throw new TypeError(`Invalid comparator: ${comp}`);
|
|
50479
|
+
}
|
|
50480
|
+
this.operator = m[1] !== void 0 ? m[1] : "";
|
|
50481
|
+
if (this.operator === "=") {
|
|
50482
|
+
this.operator = "";
|
|
50483
|
+
}
|
|
50484
|
+
if (!m[2]) {
|
|
50485
|
+
this.semver = ANY;
|
|
50486
|
+
} else {
|
|
50487
|
+
this.semver = new SemVer(m[2], this.options.loose);
|
|
50488
|
+
}
|
|
50489
|
+
}
|
|
50490
|
+
toString() {
|
|
50491
|
+
return this.value;
|
|
50492
|
+
}
|
|
50493
|
+
test(version) {
|
|
50494
|
+
debug2("Comparator.test", version, this.options.loose);
|
|
50495
|
+
if (this.semver === ANY || version === ANY) {
|
|
50496
|
+
return true;
|
|
50497
|
+
}
|
|
50498
|
+
if (typeof version === "string") {
|
|
50499
|
+
try {
|
|
50500
|
+
version = new SemVer(version, this.options);
|
|
50501
|
+
} catch (er) {
|
|
50502
|
+
return false;
|
|
50503
|
+
}
|
|
50504
|
+
}
|
|
50505
|
+
return cmp(version, this.operator, this.semver, this.options);
|
|
50506
|
+
}
|
|
50507
|
+
intersects(comp, options) {
|
|
50508
|
+
if (!(comp instanceof Comparator2)) {
|
|
50509
|
+
throw new TypeError("a Comparator is required");
|
|
50510
|
+
}
|
|
50511
|
+
if (this.operator === "") {
|
|
50512
|
+
if (this.value === "") {
|
|
50513
|
+
return true;
|
|
50514
|
+
}
|
|
50515
|
+
return new Range(comp.value, options).test(this.value);
|
|
50516
|
+
} else if (comp.operator === "") {
|
|
50517
|
+
if (comp.value === "") {
|
|
50518
|
+
return true;
|
|
50519
|
+
}
|
|
50520
|
+
return new Range(this.value, options).test(comp.semver);
|
|
50521
|
+
}
|
|
50522
|
+
options = parseOptions(options);
|
|
50523
|
+
if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) {
|
|
50524
|
+
return false;
|
|
50525
|
+
}
|
|
50526
|
+
if (!options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0"))) {
|
|
50527
|
+
return false;
|
|
50528
|
+
}
|
|
50529
|
+
if (this.operator.startsWith(">") && comp.operator.startsWith(">")) {
|
|
50530
|
+
return true;
|
|
50531
|
+
}
|
|
50532
|
+
if (this.operator.startsWith("<") && comp.operator.startsWith("<")) {
|
|
50533
|
+
return true;
|
|
50534
|
+
}
|
|
50535
|
+
if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) {
|
|
50536
|
+
return true;
|
|
50537
|
+
}
|
|
50538
|
+
if (cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) {
|
|
50539
|
+
return true;
|
|
50540
|
+
}
|
|
50541
|
+
if (cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) {
|
|
50542
|
+
return true;
|
|
50543
|
+
}
|
|
50544
|
+
return false;
|
|
50545
|
+
}
|
|
50546
|
+
};
|
|
50547
|
+
module.exports = Comparator;
|
|
50548
|
+
var parseOptions = require_parse_options2();
|
|
50549
|
+
var { safeRe: re, t } = require_re2();
|
|
50550
|
+
var cmp = require_cmp2();
|
|
50551
|
+
var debug2 = require_debug3();
|
|
50552
|
+
var SemVer = require_semver3();
|
|
50553
|
+
var Range = require_range3();
|
|
50554
|
+
}
|
|
50555
|
+
});
|
|
50556
|
+
|
|
50557
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/satisfies.js
|
|
50558
|
+
var require_satisfies2 = __commonJS({
|
|
50559
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/satisfies.js"(exports, module) {
|
|
50560
|
+
init_esm_shims();
|
|
50561
|
+
var Range = require_range3();
|
|
50562
|
+
var satisfies = /* @__PURE__ */ __name((version, range2, options) => {
|
|
50563
|
+
try {
|
|
50564
|
+
range2 = new Range(range2, options);
|
|
50565
|
+
} catch (er) {
|
|
50566
|
+
return false;
|
|
50567
|
+
}
|
|
50568
|
+
return range2.test(version);
|
|
50569
|
+
}, "satisfies");
|
|
50570
|
+
module.exports = satisfies;
|
|
50571
|
+
}
|
|
50572
|
+
});
|
|
50573
|
+
|
|
50574
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/ranges/to-comparators.js
|
|
50575
|
+
var require_to_comparators2 = __commonJS({
|
|
50576
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/ranges/to-comparators.js"(exports, module) {
|
|
50577
|
+
init_esm_shims();
|
|
50578
|
+
var Range = require_range3();
|
|
50579
|
+
var toComparators = /* @__PURE__ */ __name((range2, options) => new Range(range2, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" ")), "toComparators");
|
|
50580
|
+
module.exports = toComparators;
|
|
50581
|
+
}
|
|
50582
|
+
});
|
|
50583
|
+
|
|
50584
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/ranges/max-satisfying.js
|
|
50585
|
+
var require_max_satisfying2 = __commonJS({
|
|
50586
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/ranges/max-satisfying.js"(exports, module) {
|
|
50587
|
+
init_esm_shims();
|
|
50588
|
+
var SemVer = require_semver3();
|
|
50589
|
+
var Range = require_range3();
|
|
50590
|
+
var maxSatisfying = /* @__PURE__ */ __name((versions, range2, options) => {
|
|
50591
|
+
let max2 = null;
|
|
50592
|
+
let maxSV = null;
|
|
50593
|
+
let rangeObj = null;
|
|
50594
|
+
try {
|
|
50595
|
+
rangeObj = new Range(range2, options);
|
|
50596
|
+
} catch (er) {
|
|
50597
|
+
return null;
|
|
50598
|
+
}
|
|
50599
|
+
versions.forEach((v) => {
|
|
50600
|
+
if (rangeObj.test(v)) {
|
|
50601
|
+
if (!max2 || maxSV.compare(v) === -1) {
|
|
50602
|
+
max2 = v;
|
|
50603
|
+
maxSV = new SemVer(max2, options);
|
|
50604
|
+
}
|
|
50605
|
+
}
|
|
50606
|
+
});
|
|
50607
|
+
return max2;
|
|
50608
|
+
}, "maxSatisfying");
|
|
50609
|
+
module.exports = maxSatisfying;
|
|
50610
|
+
}
|
|
50611
|
+
});
|
|
50612
|
+
|
|
50613
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/ranges/min-satisfying.js
|
|
50614
|
+
var require_min_satisfying2 = __commonJS({
|
|
50615
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/ranges/min-satisfying.js"(exports, module) {
|
|
50616
|
+
init_esm_shims();
|
|
50617
|
+
var SemVer = require_semver3();
|
|
50618
|
+
var Range = require_range3();
|
|
50619
|
+
var minSatisfying = /* @__PURE__ */ __name((versions, range2, options) => {
|
|
50620
|
+
let min2 = null;
|
|
50621
|
+
let minSV = null;
|
|
50622
|
+
let rangeObj = null;
|
|
50623
|
+
try {
|
|
50624
|
+
rangeObj = new Range(range2, options);
|
|
50625
|
+
} catch (er) {
|
|
50626
|
+
return null;
|
|
50627
|
+
}
|
|
50628
|
+
versions.forEach((v) => {
|
|
50629
|
+
if (rangeObj.test(v)) {
|
|
50630
|
+
if (!min2 || minSV.compare(v) === 1) {
|
|
50631
|
+
min2 = v;
|
|
50632
|
+
minSV = new SemVer(min2, options);
|
|
50633
|
+
}
|
|
50634
|
+
}
|
|
50635
|
+
});
|
|
50636
|
+
return min2;
|
|
50637
|
+
}, "minSatisfying");
|
|
50638
|
+
module.exports = minSatisfying;
|
|
50639
|
+
}
|
|
50640
|
+
});
|
|
50641
|
+
|
|
50642
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/ranges/min-version.js
|
|
50643
|
+
var require_min_version2 = __commonJS({
|
|
50644
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/ranges/min-version.js"(exports, module) {
|
|
50645
|
+
init_esm_shims();
|
|
50646
|
+
var SemVer = require_semver3();
|
|
50647
|
+
var Range = require_range3();
|
|
50648
|
+
var gt = require_gt2();
|
|
50649
|
+
var minVersion = /* @__PURE__ */ __name((range2, loose) => {
|
|
50650
|
+
range2 = new Range(range2, loose);
|
|
50651
|
+
let minver = new SemVer("0.0.0");
|
|
50652
|
+
if (range2.test(minver)) {
|
|
50653
|
+
return minver;
|
|
50654
|
+
}
|
|
50655
|
+
minver = new SemVer("0.0.0-0");
|
|
50656
|
+
if (range2.test(minver)) {
|
|
50657
|
+
return minver;
|
|
50658
|
+
}
|
|
50659
|
+
minver = null;
|
|
50660
|
+
for (let i = 0; i < range2.set.length; ++i) {
|
|
50661
|
+
const comparators = range2.set[i];
|
|
50662
|
+
let setMin = null;
|
|
50663
|
+
comparators.forEach((comparator) => {
|
|
50664
|
+
const compver = new SemVer(comparator.semver.version);
|
|
50665
|
+
switch (comparator.operator) {
|
|
50666
|
+
case ">":
|
|
50667
|
+
if (compver.prerelease.length === 0) {
|
|
50668
|
+
compver.patch++;
|
|
50669
|
+
} else {
|
|
50670
|
+
compver.prerelease.push(0);
|
|
50671
|
+
}
|
|
50672
|
+
compver.raw = compver.format();
|
|
50673
|
+
/* fallthrough */
|
|
50674
|
+
case "":
|
|
50675
|
+
case ">=":
|
|
50676
|
+
if (!setMin || gt(compver, setMin)) {
|
|
50677
|
+
setMin = compver;
|
|
50678
|
+
}
|
|
50679
|
+
break;
|
|
50680
|
+
case "<":
|
|
50681
|
+
case "<=":
|
|
50682
|
+
break;
|
|
50683
|
+
/* istanbul ignore next */
|
|
50684
|
+
default:
|
|
50685
|
+
throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
50686
|
+
}
|
|
50687
|
+
});
|
|
50688
|
+
if (setMin && (!minver || gt(minver, setMin))) {
|
|
50689
|
+
minver = setMin;
|
|
50690
|
+
}
|
|
50691
|
+
}
|
|
50692
|
+
if (minver && range2.test(minver)) {
|
|
50693
|
+
return minver;
|
|
50694
|
+
}
|
|
50695
|
+
return null;
|
|
50696
|
+
}, "minVersion");
|
|
50697
|
+
module.exports = minVersion;
|
|
50698
|
+
}
|
|
50699
|
+
});
|
|
50700
|
+
|
|
50701
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/ranges/valid.js
|
|
50702
|
+
var require_valid4 = __commonJS({
|
|
50703
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/ranges/valid.js"(exports, module) {
|
|
50704
|
+
init_esm_shims();
|
|
50705
|
+
var Range = require_range3();
|
|
50706
|
+
var validRange = /* @__PURE__ */ __name((range2, options) => {
|
|
50707
|
+
try {
|
|
50708
|
+
return new Range(range2, options).range || "*";
|
|
50709
|
+
} catch (er) {
|
|
50710
|
+
return null;
|
|
50711
|
+
}
|
|
50712
|
+
}, "validRange");
|
|
50713
|
+
module.exports = validRange;
|
|
50714
|
+
}
|
|
50715
|
+
});
|
|
50716
|
+
|
|
50717
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/ranges/outside.js
|
|
50718
|
+
var require_outside2 = __commonJS({
|
|
50719
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/ranges/outside.js"(exports, module) {
|
|
50720
|
+
init_esm_shims();
|
|
50721
|
+
var SemVer = require_semver3();
|
|
50722
|
+
var Comparator = require_comparator2();
|
|
50723
|
+
var { ANY } = Comparator;
|
|
50724
|
+
var Range = require_range3();
|
|
50725
|
+
var satisfies = require_satisfies2();
|
|
50726
|
+
var gt = require_gt2();
|
|
50727
|
+
var lt = require_lt2();
|
|
50728
|
+
var lte = require_lte2();
|
|
50729
|
+
var gte = require_gte2();
|
|
50730
|
+
var outside = /* @__PURE__ */ __name((version, range2, hilo, options) => {
|
|
50731
|
+
version = new SemVer(version, options);
|
|
50732
|
+
range2 = new Range(range2, options);
|
|
50733
|
+
let gtfn, ltefn, ltfn, comp, ecomp;
|
|
50734
|
+
switch (hilo) {
|
|
50735
|
+
case ">":
|
|
50736
|
+
gtfn = gt;
|
|
50737
|
+
ltefn = lte;
|
|
50738
|
+
ltfn = lt;
|
|
50739
|
+
comp = ">";
|
|
50740
|
+
ecomp = ">=";
|
|
50741
|
+
break;
|
|
50742
|
+
case "<":
|
|
50743
|
+
gtfn = lt;
|
|
50744
|
+
ltefn = gte;
|
|
50745
|
+
ltfn = gt;
|
|
50746
|
+
comp = "<";
|
|
50747
|
+
ecomp = "<=";
|
|
50748
|
+
break;
|
|
50749
|
+
default:
|
|
50750
|
+
throw new TypeError('Must provide a hilo val of "<" or ">"');
|
|
50751
|
+
}
|
|
50752
|
+
if (satisfies(version, range2, options)) {
|
|
50753
|
+
return false;
|
|
50754
|
+
}
|
|
50755
|
+
for (let i = 0; i < range2.set.length; ++i) {
|
|
50756
|
+
const comparators = range2.set[i];
|
|
50757
|
+
let high = null;
|
|
50758
|
+
let low = null;
|
|
50759
|
+
comparators.forEach((comparator) => {
|
|
50760
|
+
if (comparator.semver === ANY) {
|
|
50761
|
+
comparator = new Comparator(">=0.0.0");
|
|
50762
|
+
}
|
|
50763
|
+
high = high || comparator;
|
|
50764
|
+
low = low || comparator;
|
|
50765
|
+
if (gtfn(comparator.semver, high.semver, options)) {
|
|
50766
|
+
high = comparator;
|
|
50767
|
+
} else if (ltfn(comparator.semver, low.semver, options)) {
|
|
50768
|
+
low = comparator;
|
|
50769
|
+
}
|
|
50770
|
+
});
|
|
50771
|
+
if (high.operator === comp || high.operator === ecomp) {
|
|
50772
|
+
return false;
|
|
50773
|
+
}
|
|
50774
|
+
if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) {
|
|
50775
|
+
return false;
|
|
50776
|
+
} else if (low.operator === ecomp && ltfn(version, low.semver)) {
|
|
50777
|
+
return false;
|
|
50778
|
+
}
|
|
50779
|
+
}
|
|
50780
|
+
return true;
|
|
50781
|
+
}, "outside");
|
|
50782
|
+
module.exports = outside;
|
|
50783
|
+
}
|
|
50784
|
+
});
|
|
50785
|
+
|
|
50786
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/ranges/gtr.js
|
|
50787
|
+
var require_gtr2 = __commonJS({
|
|
50788
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/ranges/gtr.js"(exports, module) {
|
|
50789
|
+
init_esm_shims();
|
|
50790
|
+
var outside = require_outside2();
|
|
50791
|
+
var gtr = /* @__PURE__ */ __name((version, range2, options) => outside(version, range2, ">", options), "gtr");
|
|
50792
|
+
module.exports = gtr;
|
|
50793
|
+
}
|
|
50794
|
+
});
|
|
50795
|
+
|
|
50796
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/ranges/ltr.js
|
|
50797
|
+
var require_ltr2 = __commonJS({
|
|
50798
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/ranges/ltr.js"(exports, module) {
|
|
50799
|
+
init_esm_shims();
|
|
50800
|
+
var outside = require_outside2();
|
|
50801
|
+
var ltr = /* @__PURE__ */ __name((version, range2, options) => outside(version, range2, "<", options), "ltr");
|
|
50802
|
+
module.exports = ltr;
|
|
50803
|
+
}
|
|
50804
|
+
});
|
|
50805
|
+
|
|
50806
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/ranges/intersects.js
|
|
50807
|
+
var require_intersects2 = __commonJS({
|
|
50808
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/ranges/intersects.js"(exports, module) {
|
|
50809
|
+
init_esm_shims();
|
|
50810
|
+
var Range = require_range3();
|
|
50811
|
+
var intersects = /* @__PURE__ */ __name((r1, r2, options) => {
|
|
50812
|
+
r1 = new Range(r1, options);
|
|
50813
|
+
r2 = new Range(r2, options);
|
|
50814
|
+
return r1.intersects(r2, options);
|
|
50815
|
+
}, "intersects");
|
|
50816
|
+
module.exports = intersects;
|
|
50817
|
+
}
|
|
50818
|
+
});
|
|
50819
|
+
|
|
50820
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/ranges/simplify.js
|
|
50821
|
+
var require_simplify2 = __commonJS({
|
|
50822
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/ranges/simplify.js"(exports, module) {
|
|
50823
|
+
init_esm_shims();
|
|
50824
|
+
var satisfies = require_satisfies2();
|
|
50825
|
+
var compare = require_compare2();
|
|
50826
|
+
module.exports = (versions, range2, options) => {
|
|
50827
|
+
const set = [];
|
|
50828
|
+
let first2 = null;
|
|
50829
|
+
let prev = null;
|
|
50830
|
+
const v = versions.sort((a, b) => compare(a, b, options));
|
|
50831
|
+
for (const version of v) {
|
|
50832
|
+
const included = satisfies(version, range2, options);
|
|
50833
|
+
if (included) {
|
|
50834
|
+
prev = version;
|
|
50835
|
+
if (!first2) {
|
|
50836
|
+
first2 = version;
|
|
50837
|
+
}
|
|
50838
|
+
} else {
|
|
50839
|
+
if (prev) {
|
|
50840
|
+
set.push([
|
|
50841
|
+
first2,
|
|
50842
|
+
prev
|
|
50843
|
+
]);
|
|
50844
|
+
}
|
|
50845
|
+
prev = null;
|
|
50846
|
+
first2 = null;
|
|
50847
|
+
}
|
|
50848
|
+
}
|
|
50849
|
+
if (first2) {
|
|
50850
|
+
set.push([
|
|
50851
|
+
first2,
|
|
50852
|
+
null
|
|
50853
|
+
]);
|
|
50854
|
+
}
|
|
50855
|
+
const ranges = [];
|
|
50856
|
+
for (const [min2, max2] of set) {
|
|
50857
|
+
if (min2 === max2) {
|
|
50858
|
+
ranges.push(min2);
|
|
50859
|
+
} else if (!max2 && min2 === v[0]) {
|
|
50860
|
+
ranges.push("*");
|
|
50861
|
+
} else if (!max2) {
|
|
50862
|
+
ranges.push(`>=${min2}`);
|
|
50863
|
+
} else if (min2 === v[0]) {
|
|
50864
|
+
ranges.push(`<=${max2}`);
|
|
50865
|
+
} else {
|
|
50866
|
+
ranges.push(`${min2} - ${max2}`);
|
|
50867
|
+
}
|
|
50868
|
+
}
|
|
50869
|
+
const simplified = ranges.join(" || ");
|
|
50870
|
+
const original = typeof range2.raw === "string" ? range2.raw : String(range2);
|
|
50871
|
+
return simplified.length < original.length ? simplified : range2;
|
|
50872
|
+
};
|
|
50873
|
+
}
|
|
50874
|
+
});
|
|
50875
|
+
|
|
50876
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/ranges/subset.js
|
|
50877
|
+
var require_subset2 = __commonJS({
|
|
50878
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/ranges/subset.js"(exports, module) {
|
|
50879
|
+
init_esm_shims();
|
|
50880
|
+
var Range = require_range3();
|
|
50881
|
+
var Comparator = require_comparator2();
|
|
50882
|
+
var { ANY } = Comparator;
|
|
50883
|
+
var satisfies = require_satisfies2();
|
|
50884
|
+
var compare = require_compare2();
|
|
50885
|
+
var subset = /* @__PURE__ */ __name((sub, dom, options = {}) => {
|
|
50886
|
+
if (sub === dom) {
|
|
50887
|
+
return true;
|
|
50888
|
+
}
|
|
50889
|
+
sub = new Range(sub, options);
|
|
50890
|
+
dom = new Range(dom, options);
|
|
50891
|
+
let sawNonNull = false;
|
|
50892
|
+
OUTER: for (const simpleSub of sub.set) {
|
|
50893
|
+
for (const simpleDom of dom.set) {
|
|
50894
|
+
const isSub = simpleSubset(simpleSub, simpleDom, options);
|
|
50895
|
+
sawNonNull = sawNonNull || isSub !== null;
|
|
50896
|
+
if (isSub) {
|
|
50897
|
+
continue OUTER;
|
|
50898
|
+
}
|
|
50899
|
+
}
|
|
50900
|
+
if (sawNonNull) {
|
|
50901
|
+
return false;
|
|
50902
|
+
}
|
|
50903
|
+
}
|
|
50904
|
+
return true;
|
|
50905
|
+
}, "subset");
|
|
50906
|
+
var minimumVersionWithPreRelease = [
|
|
50907
|
+
new Comparator(">=0.0.0-0")
|
|
50908
|
+
];
|
|
50909
|
+
var minimumVersion = [
|
|
50910
|
+
new Comparator(">=0.0.0")
|
|
50911
|
+
];
|
|
50912
|
+
var simpleSubset = /* @__PURE__ */ __name((sub, dom, options) => {
|
|
50913
|
+
if (sub === dom) {
|
|
50914
|
+
return true;
|
|
50915
|
+
}
|
|
50916
|
+
if (sub.length === 1 && sub[0].semver === ANY) {
|
|
50917
|
+
if (dom.length === 1 && dom[0].semver === ANY) {
|
|
50918
|
+
return true;
|
|
50919
|
+
} else if (options.includePrerelease) {
|
|
50920
|
+
sub = minimumVersionWithPreRelease;
|
|
50921
|
+
} else {
|
|
50922
|
+
sub = minimumVersion;
|
|
50923
|
+
}
|
|
50924
|
+
}
|
|
50925
|
+
if (dom.length === 1 && dom[0].semver === ANY) {
|
|
50926
|
+
if (options.includePrerelease) {
|
|
50927
|
+
return true;
|
|
50928
|
+
} else {
|
|
50929
|
+
dom = minimumVersion;
|
|
50930
|
+
}
|
|
50931
|
+
}
|
|
50932
|
+
const eqSet = /* @__PURE__ */ new Set();
|
|
50933
|
+
let gt, lt;
|
|
50934
|
+
for (const c of sub) {
|
|
50935
|
+
if (c.operator === ">" || c.operator === ">=") {
|
|
50936
|
+
gt = higherGT(gt, c, options);
|
|
50937
|
+
} else if (c.operator === "<" || c.operator === "<=") {
|
|
50938
|
+
lt = lowerLT(lt, c, options);
|
|
50939
|
+
} else {
|
|
50940
|
+
eqSet.add(c.semver);
|
|
50941
|
+
}
|
|
50942
|
+
}
|
|
50943
|
+
if (eqSet.size > 1) {
|
|
50944
|
+
return null;
|
|
50945
|
+
}
|
|
50946
|
+
let gtltComp;
|
|
50947
|
+
if (gt && lt) {
|
|
50948
|
+
gtltComp = compare(gt.semver, lt.semver, options);
|
|
50949
|
+
if (gtltComp > 0) {
|
|
50950
|
+
return null;
|
|
50951
|
+
} else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) {
|
|
50952
|
+
return null;
|
|
50953
|
+
}
|
|
50954
|
+
}
|
|
50955
|
+
for (const eq2 of eqSet) {
|
|
50956
|
+
if (gt && !satisfies(eq2, String(gt), options)) {
|
|
50957
|
+
return null;
|
|
50958
|
+
}
|
|
50959
|
+
if (lt && !satisfies(eq2, String(lt), options)) {
|
|
50960
|
+
return null;
|
|
50961
|
+
}
|
|
50962
|
+
for (const c of dom) {
|
|
50963
|
+
if (!satisfies(eq2, String(c), options)) {
|
|
50964
|
+
return false;
|
|
50965
|
+
}
|
|
50966
|
+
}
|
|
50967
|
+
return true;
|
|
50968
|
+
}
|
|
50969
|
+
let higher, lower;
|
|
50970
|
+
let hasDomLT, hasDomGT;
|
|
50971
|
+
let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;
|
|
50972
|
+
let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;
|
|
50973
|
+
if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0) {
|
|
50974
|
+
needDomLTPre = false;
|
|
50975
|
+
}
|
|
50976
|
+
for (const c of dom) {
|
|
50977
|
+
hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=";
|
|
50978
|
+
hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=";
|
|
50979
|
+
if (gt) {
|
|
50980
|
+
if (needDomGTPre) {
|
|
50981
|
+
if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomGTPre.major && c.semver.minor === needDomGTPre.minor && c.semver.patch === needDomGTPre.patch) {
|
|
50982
|
+
needDomGTPre = false;
|
|
50983
|
+
}
|
|
50984
|
+
}
|
|
50985
|
+
if (c.operator === ">" || c.operator === ">=") {
|
|
50986
|
+
higher = higherGT(gt, c, options);
|
|
50987
|
+
if (higher === c && higher !== gt) {
|
|
50988
|
+
return false;
|
|
50989
|
+
}
|
|
50990
|
+
} else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options)) {
|
|
50991
|
+
return false;
|
|
50992
|
+
}
|
|
50993
|
+
}
|
|
50994
|
+
if (lt) {
|
|
50995
|
+
if (needDomLTPre) {
|
|
50996
|
+
if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomLTPre.major && c.semver.minor === needDomLTPre.minor && c.semver.patch === needDomLTPre.patch) {
|
|
50997
|
+
needDomLTPre = false;
|
|
50998
|
+
}
|
|
50999
|
+
}
|
|
51000
|
+
if (c.operator === "<" || c.operator === "<=") {
|
|
51001
|
+
lower = lowerLT(lt, c, options);
|
|
51002
|
+
if (lower === c && lower !== lt) {
|
|
51003
|
+
return false;
|
|
51004
|
+
}
|
|
51005
|
+
} else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options)) {
|
|
51006
|
+
return false;
|
|
51007
|
+
}
|
|
51008
|
+
}
|
|
51009
|
+
if (!c.operator && (lt || gt) && gtltComp !== 0) {
|
|
51010
|
+
return false;
|
|
51011
|
+
}
|
|
51012
|
+
}
|
|
51013
|
+
if (gt && hasDomLT && !lt && gtltComp !== 0) {
|
|
51014
|
+
return false;
|
|
51015
|
+
}
|
|
51016
|
+
if (lt && hasDomGT && !gt && gtltComp !== 0) {
|
|
51017
|
+
return false;
|
|
51018
|
+
}
|
|
51019
|
+
if (needDomGTPre || needDomLTPre) {
|
|
51020
|
+
return false;
|
|
51021
|
+
}
|
|
51022
|
+
return true;
|
|
51023
|
+
}, "simpleSubset");
|
|
51024
|
+
var higherGT = /* @__PURE__ */ __name((a, b, options) => {
|
|
51025
|
+
if (!a) {
|
|
51026
|
+
return b;
|
|
51027
|
+
}
|
|
51028
|
+
const comp = compare(a.semver, b.semver, options);
|
|
51029
|
+
return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
|
|
51030
|
+
}, "higherGT");
|
|
51031
|
+
var lowerLT = /* @__PURE__ */ __name((a, b, options) => {
|
|
51032
|
+
if (!a) {
|
|
51033
|
+
return b;
|
|
51034
|
+
}
|
|
51035
|
+
const comp = compare(a.semver, b.semver, options);
|
|
51036
|
+
return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
|
|
51037
|
+
}, "lowerLT");
|
|
51038
|
+
module.exports = subset;
|
|
51039
|
+
}
|
|
51040
|
+
});
|
|
51041
|
+
|
|
51042
|
+
// ../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/index.js
|
|
51043
|
+
var require_semver4 = __commonJS({
|
|
51044
|
+
"../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/index.js"(exports, module) {
|
|
51045
|
+
init_esm_shims();
|
|
51046
|
+
var internalRe = require_re2();
|
|
51047
|
+
var constants = require_constants2();
|
|
51048
|
+
var SemVer = require_semver3();
|
|
51049
|
+
var identifiers = require_identifiers2();
|
|
51050
|
+
var parse2 = require_parse3();
|
|
51051
|
+
var valid2 = require_valid3();
|
|
51052
|
+
var clean = require_clean2();
|
|
51053
|
+
var inc = require_inc2();
|
|
51054
|
+
var diff = require_diff2();
|
|
51055
|
+
var major2 = require_major2();
|
|
51056
|
+
var minor = require_minor2();
|
|
51057
|
+
var patch = require_patch2();
|
|
51058
|
+
var prerelease = require_prerelease2();
|
|
51059
|
+
var compare = require_compare2();
|
|
51060
|
+
var rcompare = require_rcompare2();
|
|
51061
|
+
var compareLoose = require_compare_loose2();
|
|
51062
|
+
var compareBuild = require_compare_build2();
|
|
51063
|
+
var sort = require_sort3();
|
|
51064
|
+
var rsort = require_rsort2();
|
|
51065
|
+
var gt = require_gt2();
|
|
51066
|
+
var lt = require_lt2();
|
|
51067
|
+
var eq2 = require_eq2();
|
|
51068
|
+
var neq = require_neq2();
|
|
51069
|
+
var gte = require_gte2();
|
|
51070
|
+
var lte = require_lte2();
|
|
51071
|
+
var cmp = require_cmp2();
|
|
51072
|
+
var coerce = require_coerce2();
|
|
51073
|
+
var Comparator = require_comparator2();
|
|
51074
|
+
var Range = require_range3();
|
|
51075
|
+
var satisfies = require_satisfies2();
|
|
51076
|
+
var toComparators = require_to_comparators2();
|
|
51077
|
+
var maxSatisfying = require_max_satisfying2();
|
|
51078
|
+
var minSatisfying = require_min_satisfying2();
|
|
51079
|
+
var minVersion = require_min_version2();
|
|
51080
|
+
var validRange = require_valid4();
|
|
51081
|
+
var outside = require_outside2();
|
|
51082
|
+
var gtr = require_gtr2();
|
|
51083
|
+
var ltr = require_ltr2();
|
|
51084
|
+
var intersects = require_intersects2();
|
|
51085
|
+
var simplifyRange = require_simplify2();
|
|
51086
|
+
var subset = require_subset2();
|
|
51087
|
+
module.exports = {
|
|
51088
|
+
parse: parse2,
|
|
51089
|
+
valid: valid2,
|
|
51090
|
+
clean,
|
|
51091
|
+
inc,
|
|
51092
|
+
diff,
|
|
51093
|
+
major: major2,
|
|
51094
|
+
minor,
|
|
51095
|
+
patch,
|
|
51096
|
+
prerelease,
|
|
51097
|
+
compare,
|
|
51098
|
+
rcompare,
|
|
51099
|
+
compareLoose,
|
|
51100
|
+
compareBuild,
|
|
51101
|
+
sort,
|
|
51102
|
+
rsort,
|
|
51103
|
+
gt,
|
|
51104
|
+
lt,
|
|
51105
|
+
eq: eq2,
|
|
51106
|
+
neq,
|
|
51107
|
+
gte,
|
|
51108
|
+
lte,
|
|
51109
|
+
cmp,
|
|
51110
|
+
coerce,
|
|
51111
|
+
Comparator,
|
|
51112
|
+
Range,
|
|
51113
|
+
satisfies,
|
|
51114
|
+
toComparators,
|
|
51115
|
+
maxSatisfying,
|
|
51116
|
+
minSatisfying,
|
|
51117
|
+
minVersion,
|
|
51118
|
+
validRange,
|
|
51119
|
+
outside,
|
|
51120
|
+
gtr,
|
|
51121
|
+
ltr,
|
|
51122
|
+
intersects,
|
|
51123
|
+
simplifyRange,
|
|
51124
|
+
subset,
|
|
51125
|
+
SemVer,
|
|
51126
|
+
re: internalRe.re,
|
|
51127
|
+
src: internalRe.src,
|
|
51128
|
+
tokens: internalRe.t,
|
|
51129
|
+
SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
|
|
51130
|
+
RELEASE_TYPES: constants.RELEASE_TYPES,
|
|
51131
|
+
compareIdentifiers: identifiers.compareIdentifiers,
|
|
51132
|
+
rcompareIdentifiers: identifiers.rcompareIdentifiers
|
|
51133
|
+
};
|
|
51134
|
+
}
|
|
51135
|
+
});
|
|
51136
|
+
|
|
49191
51137
|
// ../../node_modules/.pnpm/@nx+devkit@20.8.0_nx@20.8.0_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_bd20000ef4ff80f47109509163a3e134/node_modules/@nx/devkit/src/tasks/install-packages-task.js
|
|
49192
51138
|
var require_install_packages_task = __commonJS({
|
|
49193
51139
|
"../../node_modules/.pnpm/@nx+devkit@20.8.0_nx@20.8.0_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_bd20000ef4ff80f47109509163a3e134/node_modules/@nx/devkit/src/tasks/install-packages-task.js"(exports) {
|
|
@@ -49238,7 +51184,7 @@ var require_package_json = __commonJS({
|
|
|
49238
51184
|
exports.ensurePackage = ensurePackage;
|
|
49239
51185
|
var child_process_1 = __require("child_process");
|
|
49240
51186
|
var module_1 = __require("module");
|
|
49241
|
-
var semver_1 =
|
|
51187
|
+
var semver_1 = require_semver4();
|
|
49242
51188
|
var install_packages_task_1 = require_install_packages_task();
|
|
49243
51189
|
var tmp_1 = require_tmp2();
|
|
49244
51190
|
var path_1 = __require("path");
|
|
@@ -56196,7 +58142,7 @@ var require_race = __commonJS({
|
|
|
56196
58142
|
});
|
|
56197
58143
|
|
|
56198
58144
|
// ../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/observable/range.js
|
|
56199
|
-
var
|
|
58145
|
+
var require_range4 = __commonJS({
|
|
56200
58146
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/observable/range.js"(exports) {
|
|
56201
58147
|
"use strict";
|
|
56202
58148
|
init_esm_shims();
|
|
@@ -60919,7 +62865,7 @@ var require_cjs = __commonJS({
|
|
|
60919
62865
|
return race_1.race;
|
|
60920
62866
|
}, "get")
|
|
60921
62867
|
});
|
|
60922
|
-
var range_1 =
|
|
62868
|
+
var range_1 = require_range4();
|
|
60923
62869
|
Object.defineProperty(exports, "range", {
|
|
60924
62870
|
enumerable: true,
|
|
60925
62871
|
get: /* @__PURE__ */ __name(function() {
|
|
@@ -61745,7 +63691,7 @@ var require_convert_nx_executor = __commonJS({
|
|
|
61745
63691
|
});
|
|
61746
63692
|
exports.convertNxExecutor = convertNxExecutor;
|
|
61747
63693
|
var package_json_1 = require_package_json();
|
|
61748
|
-
var semver_1 =
|
|
63694
|
+
var semver_1 = require_semver4();
|
|
61749
63695
|
var devkit_internals_1 = __require("nx/src/devkit-internals");
|
|
61750
63696
|
function convertNxExecutor(executor) {
|
|
61751
63697
|
const builderFunction = /* @__PURE__ */ __name((options, builderContext) => {
|
|
@@ -67068,12 +69014,21 @@ __name(lint, "lint");
|
|
|
67068
69014
|
|
|
67069
69015
|
// src/commitlint/scope.ts
|
|
67070
69016
|
init_esm_shims();
|
|
67071
|
-
import { readCachedProjectGraph, readProjectsConfigurationFromProjectGraph } from "nx/src/project-graph/project-graph";
|
|
69017
|
+
import { createProjectGraphAsync, readCachedProjectGraph, readProjectsConfigurationFromProjectGraph } from "nx/src/project-graph/project-graph";
|
|
67072
69018
|
async function getNxScopes(context, selector = (params) => true) {
|
|
67073
69019
|
const ctx = context || {};
|
|
67074
69020
|
const workspaceRoot3 = process.env.NX_WORKSPACE_ROOT_PATH || process.env.STORM_WORKSPACE_ROOT || ctx.cwd || process.cwd();
|
|
67075
69021
|
process.env.NX_WORKSPACE_ROOT_PATH ??= workspaceRoot3;
|
|
67076
|
-
|
|
69022
|
+
let projectGraph;
|
|
69023
|
+
try {
|
|
69024
|
+
projectGraph = readCachedProjectGraph();
|
|
69025
|
+
} catch {
|
|
69026
|
+
await createProjectGraphAsync();
|
|
69027
|
+
projectGraph = readCachedProjectGraph();
|
|
69028
|
+
}
|
|
69029
|
+
if (!projectGraph) {
|
|
69030
|
+
throw new Error("The commit process failed because the project graph is not available. Please run the build command again.");
|
|
69031
|
+
}
|
|
67077
69032
|
const projectConfigs = readProjectsConfigurationFromProjectGraph(projectGraph);
|
|
67078
69033
|
const result2 = Object.entries(projectConfigs.projects || {}).map(([name, project]) => ({
|
|
67079
69034
|
name,
|
|
@@ -68554,7 +70509,7 @@ var askQuestion = /* @__PURE__ */ __name((index, question) => {
|
|
|
68554
70509
|
init_esm_shims();
|
|
68555
70510
|
import { existsSync as existsSync3, readFileSync as readFileSync3, readdirSync as readdirSync2, rmSync, writeFileSync as writeFileSync2 } from "node:fs";
|
|
68556
70511
|
import { join as join5 } from "node:path";
|
|
68557
|
-
import { createProjectGraphAsync, readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph2 } from "nx/src/project-graph/project-graph.js";
|
|
70512
|
+
import { createProjectGraphAsync as createProjectGraphAsync2, readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph2 } from "nx/src/project-graph/project-graph.js";
|
|
68558
70513
|
|
|
68559
70514
|
// src/utilities/file-utils.ts
|
|
68560
70515
|
init_esm_shims();
|
|
@@ -80762,7 +82717,7 @@ var createRegExp = /* @__PURE__ */ __name((sectionName) => {
|
|
|
80762
82717
|
|
|
80763
82718
|
// src/readme/run.ts
|
|
80764
82719
|
var runReadme = /* @__PURE__ */ __name(async ({ templates = "./tools/readme-templates", project, output: output2, clean = true, prettier = true }) => {
|
|
80765
|
-
const projectGraph = await
|
|
82720
|
+
const projectGraph = await createProjectGraphAsync2({
|
|
80766
82721
|
exitOnError: true
|
|
80767
82722
|
});
|
|
80768
82723
|
const projectConfigs = readProjectsConfigurationFromProjectGraph2(projectGraph);
|
|
@@ -80785,7 +82740,7 @@ var runReadme = /* @__PURE__ */ __name(async ({ templates = "./tools/readme-temp
|
|
|
80785
82740
|
}
|
|
80786
82741
|
}, "runReadme");
|
|
80787
82742
|
var runProjectReadme = /* @__PURE__ */ __name(async (projectName, { templates, output: output2, clean = true, prettier = true }) => {
|
|
80788
|
-
const projectGraph = await
|
|
82743
|
+
const projectGraph = await createProjectGraphAsync2({
|
|
80789
82744
|
exitOnError: true
|
|
80790
82745
|
});
|
|
80791
82746
|
const projectConfigs = readProjectsConfigurationFromProjectGraph2(projectGraph);
|
|
@@ -80905,7 +82860,7 @@ import { ReleaseVersion, commitChanges, createCommitMessageValues, createGitTagV
|
|
|
80905
82860
|
import { readNxJson } from "nx/src/config/nx-json";
|
|
80906
82861
|
import { FsTree } from "nx/src/generators/tree";
|
|
80907
82862
|
import { createFileMapUsingProjectGraph, createProjectFileMapUsingProjectGraph } from "nx/src/project-graph/file-map-utils";
|
|
80908
|
-
import { createProjectGraphAsync as
|
|
82863
|
+
import { createProjectGraphAsync as createProjectGraphAsync3 } from "nx/src/project-graph/project-graph";
|
|
80909
82864
|
import { interpolate } from "nx/src/tasks-runner/utils";
|
|
80910
82865
|
import { isCI } from "nx/src/utils/is-ci";
|
|
80911
82866
|
import { output } from "nx/src/utils/output";
|
|
@@ -84701,7 +86656,7 @@ var StormChangelogRenderer = class extends DefaultChangelogRenderer {
|
|
|
84701
86656
|
function createAPI(overrideReleaseConfig) {
|
|
84702
86657
|
return /* @__PURE__ */ __name(async function releaseChangelog(args) {
|
|
84703
86658
|
const workspaceConfig = await getWorkspaceConfig();
|
|
84704
|
-
const projectGraph = await
|
|
86659
|
+
const projectGraph = await createProjectGraphAsync3({
|
|
84705
86660
|
exitOnError: true
|
|
84706
86661
|
});
|
|
84707
86662
|
const nxJson = readNxJson();
|
|
@@ -85642,12 +87597,12 @@ import { commitChanges as commitChanges2, createCommitMessageValues as createCom
|
|
|
85642
87597
|
import { readNxJson as readNxJson2 } from "nx/src/config/nx-json.js";
|
|
85643
87598
|
import { flushChanges, FsTree as FsTree2 } from "nx/src/generators/tree.js";
|
|
85644
87599
|
import { createProjectFileMapUsingProjectGraph as createProjectFileMapUsingProjectGraph2 } from "nx/src/project-graph/file-map-utils.js";
|
|
85645
|
-
import { createProjectGraphAsync as
|
|
87600
|
+
import { createProjectGraphAsync as createProjectGraphAsync4, readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph3 } from "nx/src/project-graph/project-graph.js";
|
|
85646
87601
|
import { combineOptionsForGenerator } from "nx/src/utils/params.js";
|
|
85647
87602
|
async function releaseVersion(config, args) {
|
|
85648
87603
|
try {
|
|
85649
87604
|
writeInfo("Running release version command", config);
|
|
85650
|
-
const projectGraph = await
|
|
87605
|
+
const projectGraph = await createProjectGraphAsync4({
|
|
85651
87606
|
exitOnError: true
|
|
85652
87607
|
});
|
|
85653
87608
|
const { projects } = readProjectsConfigurationFromProjectGraph3(projectGraph);
|
|
@@ -86173,6 +88128,7 @@ void (async () => {
|
|
|
86173
88128
|
})();
|
|
86174
88129
|
/*! Bundled license information:
|
|
86175
88130
|
|
|
88131
|
+
tmp/lib/tmp.js:
|
|
86176
88132
|
tmp/lib/tmp.js:
|
|
86177
88133
|
(*!
|
|
86178
88134
|
* Tmp
|
|
@@ -86206,15 +88162,6 @@ repeat-string/index.js:
|
|
|
86206
88162
|
* Licensed under the MIT License.
|
|
86207
88163
|
*)
|
|
86208
88164
|
|
|
86209
|
-
tmp/lib/tmp.js:
|
|
86210
|
-
(*!
|
|
86211
|
-
* Tmp
|
|
86212
|
-
*
|
|
86213
|
-
* Copyright (c) 2011-2017 KARASZI Istvan <github@spam.raszi.hu>
|
|
86214
|
-
*
|
|
86215
|
-
* MIT Licensed
|
|
86216
|
-
*)
|
|
86217
|
-
|
|
86218
88165
|
mime-db/index.js:
|
|
86219
88166
|
(*!
|
|
86220
88167
|
* mime-db
|