@plexus-ms/cli 0.124.0 → 0.126.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/plx.js +2558 -42
- package/package.json +2 -2
package/dist/plx.js
CHANGED
|
@@ -1508,7 +1508,7 @@ var require_stringify = __commonJS({
|
|
|
1508
1508
|
props.push(doc.directives.tagString(tag));
|
|
1509
1509
|
return props.join(" ");
|
|
1510
1510
|
}
|
|
1511
|
-
function
|
|
1511
|
+
function stringify2(item, ctx, onComment, onChompKeep) {
|
|
1512
1512
|
if (identity2.isPair(item))
|
|
1513
1513
|
return item.toString(ctx, onComment, onChompKeep);
|
|
1514
1514
|
if (identity2.isAlias(item)) {
|
|
@@ -1537,7 +1537,7 @@ var require_stringify = __commonJS({
|
|
|
1537
1537
|
${ctx.indent}${str}`;
|
|
1538
1538
|
}
|
|
1539
1539
|
exports.createStringifyContext = createStringifyContext;
|
|
1540
|
-
exports.stringify =
|
|
1540
|
+
exports.stringify = stringify2;
|
|
1541
1541
|
}
|
|
1542
1542
|
});
|
|
1543
1543
|
|
|
@@ -1547,7 +1547,7 @@ var require_stringifyPair = __commonJS({
|
|
|
1547
1547
|
"use strict";
|
|
1548
1548
|
var identity2 = require_identity();
|
|
1549
1549
|
var Scalar = require_Scalar();
|
|
1550
|
-
var
|
|
1550
|
+
var stringify2 = require_stringify();
|
|
1551
1551
|
var stringifyComment = require_stringifyComment();
|
|
1552
1552
|
function stringifyPair({ key, value }, ctx, onComment, onChompKeep) {
|
|
1553
1553
|
const { allNullValues, doc, indent: indent2, indentStep, options: { commentString, indentSeq, simpleKeys } } = ctx;
|
|
@@ -1569,7 +1569,7 @@ var require_stringifyPair = __commonJS({
|
|
|
1569
1569
|
});
|
|
1570
1570
|
let keyCommentDone = false;
|
|
1571
1571
|
let chompKeep = false;
|
|
1572
|
-
let str =
|
|
1572
|
+
let str = stringify2.stringify(key, ctx, () => keyCommentDone = true, () => chompKeep = true);
|
|
1573
1573
|
if (!explicitKey && !ctx.inFlow && str.length > 1024) {
|
|
1574
1574
|
if (simpleKeys)
|
|
1575
1575
|
throw new Error("With simple keys, single line scalar must not span more than 1024 characters");
|
|
@@ -1621,7 +1621,7 @@ ${indent2}:`;
|
|
|
1621
1621
|
ctx.indent = ctx.indent.substring(2);
|
|
1622
1622
|
}
|
|
1623
1623
|
let valueCommentDone = false;
|
|
1624
|
-
const valueStr =
|
|
1624
|
+
const valueStr = stringify2.stringify(value, ctx, () => valueCommentDone = true, () => chompKeep = true);
|
|
1625
1625
|
let ws = " ";
|
|
1626
1626
|
if (keyComment || vsb || vcb) {
|
|
1627
1627
|
ws = vsb ? "\n" : "";
|
|
@@ -1718,14 +1718,14 @@ var require_merge = __commonJS({
|
|
|
1718
1718
|
const source = resolveAliasValue(ctx, value);
|
|
1719
1719
|
if (identity2.isSeq(source))
|
|
1720
1720
|
for (const it of source.items)
|
|
1721
|
-
|
|
1721
|
+
mergeValue2(ctx, map, it);
|
|
1722
1722
|
else if (Array.isArray(source))
|
|
1723
1723
|
for (const it of source)
|
|
1724
|
-
|
|
1724
|
+
mergeValue2(ctx, map, it);
|
|
1725
1725
|
else
|
|
1726
|
-
|
|
1726
|
+
mergeValue2(ctx, map, source);
|
|
1727
1727
|
}
|
|
1728
|
-
function
|
|
1728
|
+
function mergeValue2(ctx, map, value) {
|
|
1729
1729
|
const source = resolveAliasValue(ctx, value);
|
|
1730
1730
|
if (!identity2.isMap(source))
|
|
1731
1731
|
throw new Error("Merge sources must be maps or map aliases");
|
|
@@ -1762,7 +1762,7 @@ var require_addPairToJSMap = __commonJS({
|
|
|
1762
1762
|
"use strict";
|
|
1763
1763
|
var log = require_log();
|
|
1764
1764
|
var merge2 = require_merge();
|
|
1765
|
-
var
|
|
1765
|
+
var stringify2 = require_stringify();
|
|
1766
1766
|
var identity2 = require_identity();
|
|
1767
1767
|
var toJS = require_toJS();
|
|
1768
1768
|
function addPairToJSMap(ctx, map, { key, value }) {
|
|
@@ -1798,7 +1798,7 @@ var require_addPairToJSMap = __commonJS({
|
|
|
1798
1798
|
if (typeof jsKey !== "object")
|
|
1799
1799
|
return String(jsKey);
|
|
1800
1800
|
if (identity2.isNode(key) && ctx?.doc) {
|
|
1801
|
-
const strCtx =
|
|
1801
|
+
const strCtx = stringify2.createStringifyContext(ctx.doc, {});
|
|
1802
1802
|
strCtx.anchors = /* @__PURE__ */ new Set();
|
|
1803
1803
|
for (const node of ctx.anchors.keys())
|
|
1804
1804
|
strCtx.anchors.add(node.anchor);
|
|
@@ -1865,12 +1865,12 @@ var require_stringifyCollection = __commonJS({
|
|
|
1865
1865
|
"../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyCollection.js"(exports) {
|
|
1866
1866
|
"use strict";
|
|
1867
1867
|
var identity2 = require_identity();
|
|
1868
|
-
var
|
|
1868
|
+
var stringify2 = require_stringify();
|
|
1869
1869
|
var stringifyComment = require_stringifyComment();
|
|
1870
1870
|
function stringifyCollection(collection, ctx, options) {
|
|
1871
1871
|
const flow = ctx.inFlow ?? collection.flow;
|
|
1872
|
-
const
|
|
1873
|
-
return
|
|
1872
|
+
const stringify3 = flow ? stringifyFlowCollection : stringifyBlockCollection;
|
|
1873
|
+
return stringify3(collection, ctx, options);
|
|
1874
1874
|
}
|
|
1875
1875
|
function stringifyBlockCollection({ comment, items }, ctx, { blockItemPrefix, flowChars, itemIndent, onChompKeep, onComment }) {
|
|
1876
1876
|
const { indent: indent2, options: { commentString } } = ctx;
|
|
@@ -1895,7 +1895,7 @@ var require_stringifyCollection = __commonJS({
|
|
|
1895
1895
|
}
|
|
1896
1896
|
}
|
|
1897
1897
|
chompKeep = false;
|
|
1898
|
-
let str2 =
|
|
1898
|
+
let str2 = stringify2.stringify(item, itemCtx, () => comment2 = null, () => chompKeep = true);
|
|
1899
1899
|
if (comment2)
|
|
1900
1900
|
str2 += stringifyComment.lineComment(str2, itemIndent, commentString(comment2));
|
|
1901
1901
|
if (chompKeep && comment2)
|
|
@@ -1962,7 +1962,7 @@ ${indent2}${line}` : "\n";
|
|
|
1962
1962
|
}
|
|
1963
1963
|
if (comment)
|
|
1964
1964
|
reqNewline = true;
|
|
1965
|
-
let str =
|
|
1965
|
+
let str = stringify2.stringify(item, itemCtx, () => comment = null);
|
|
1966
1966
|
reqNewline || (reqNewline = lines.length > linesAtValue || str.includes("\n"));
|
|
1967
1967
|
if (i < items.length - 1) {
|
|
1968
1968
|
str += ",";
|
|
@@ -3323,7 +3323,7 @@ var require_stringifyDocument = __commonJS({
|
|
|
3323
3323
|
"../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyDocument.js"(exports) {
|
|
3324
3324
|
"use strict";
|
|
3325
3325
|
var identity2 = require_identity();
|
|
3326
|
-
var
|
|
3326
|
+
var stringify2 = require_stringify();
|
|
3327
3327
|
var stringifyComment = require_stringifyComment();
|
|
3328
3328
|
function stringifyDocument(doc, options) {
|
|
3329
3329
|
const lines = [];
|
|
@@ -3338,7 +3338,7 @@ var require_stringifyDocument = __commonJS({
|
|
|
3338
3338
|
}
|
|
3339
3339
|
if (hasDirectives)
|
|
3340
3340
|
lines.push("---");
|
|
3341
|
-
const ctx =
|
|
3341
|
+
const ctx = stringify2.createStringifyContext(doc, options);
|
|
3342
3342
|
const { commentString } = ctx.options;
|
|
3343
3343
|
if (doc.commentBefore) {
|
|
3344
3344
|
if (lines.length !== 1)
|
|
@@ -3360,7 +3360,7 @@ var require_stringifyDocument = __commonJS({
|
|
|
3360
3360
|
contentComment = doc.contents.comment;
|
|
3361
3361
|
}
|
|
3362
3362
|
const onChompKeep = contentComment ? void 0 : () => chompKeep = true;
|
|
3363
|
-
let body2 =
|
|
3363
|
+
let body2 = stringify2.stringify(doc.contents, ctx, () => contentComment = null, onChompKeep);
|
|
3364
3364
|
if (contentComment)
|
|
3365
3365
|
body2 += stringifyComment.lineComment(body2, "", commentString(contentComment));
|
|
3366
3366
|
if ((body2[0] === "|" || body2[0] === ">") && lines[lines.length - 1] === "---") {
|
|
@@ -3368,7 +3368,7 @@ var require_stringifyDocument = __commonJS({
|
|
|
3368
3368
|
} else
|
|
3369
3369
|
lines.push(body2);
|
|
3370
3370
|
} else {
|
|
3371
|
-
lines.push(
|
|
3371
|
+
lines.push(stringify2.stringify(doc.contents, ctx));
|
|
3372
3372
|
}
|
|
3373
3373
|
if (doc.directives?.docEnd) {
|
|
3374
3374
|
if (doc.comment) {
|
|
@@ -5504,7 +5504,7 @@ var require_cst_scalar = __commonJS({
|
|
|
5504
5504
|
var require_cst_stringify = __commonJS({
|
|
5505
5505
|
"../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/cst-stringify.js"(exports) {
|
|
5506
5506
|
"use strict";
|
|
5507
|
-
var
|
|
5507
|
+
var stringify2 = (cst) => "type" in cst ? stringifyToken(cst) : stringifyItem(cst);
|
|
5508
5508
|
function stringifyToken(token) {
|
|
5509
5509
|
switch (token.type) {
|
|
5510
5510
|
case "block-scalar": {
|
|
@@ -5557,7 +5557,7 @@ var require_cst_stringify = __commonJS({
|
|
|
5557
5557
|
res += stringifyToken(value);
|
|
5558
5558
|
return res;
|
|
5559
5559
|
}
|
|
5560
|
-
exports.stringify =
|
|
5560
|
+
exports.stringify = stringify2;
|
|
5561
5561
|
}
|
|
5562
5562
|
});
|
|
5563
5563
|
|
|
@@ -7268,7 +7268,7 @@ var require_public_api = __commonJS({
|
|
|
7268
7268
|
}
|
|
7269
7269
|
return doc;
|
|
7270
7270
|
}
|
|
7271
|
-
function
|
|
7271
|
+
function parse7(src, reviver, options) {
|
|
7272
7272
|
let _reviver = void 0;
|
|
7273
7273
|
if (typeof reviver === "function") {
|
|
7274
7274
|
_reviver = reviver;
|
|
@@ -7287,7 +7287,7 @@ var require_public_api = __commonJS({
|
|
|
7287
7287
|
}
|
|
7288
7288
|
return doc.toJS(Object.assign({ reviver: _reviver }, options));
|
|
7289
7289
|
}
|
|
7290
|
-
function
|
|
7290
|
+
function stringify2(value, replacer, options) {
|
|
7291
7291
|
let _replacer = null;
|
|
7292
7292
|
if (typeof replacer === "function" || Array.isArray(replacer)) {
|
|
7293
7293
|
_replacer = replacer;
|
|
@@ -7309,10 +7309,10 @@ var require_public_api = __commonJS({
|
|
|
7309
7309
|
return value.toString(options);
|
|
7310
7310
|
return new Document.Document(value, _replacer, options).toString(options);
|
|
7311
7311
|
}
|
|
7312
|
-
exports.parse =
|
|
7312
|
+
exports.parse = parse7;
|
|
7313
7313
|
exports.parseAllDocuments = parseAllDocuments;
|
|
7314
7314
|
exports.parseDocument = parseDocument;
|
|
7315
|
-
exports.stringify =
|
|
7315
|
+
exports.stringify = stringify2;
|
|
7316
7316
|
}
|
|
7317
7317
|
});
|
|
7318
7318
|
|
|
@@ -7368,6 +7368,2219 @@ var require_dist = __commonJS({
|
|
|
7368
7368
|
}
|
|
7369
7369
|
});
|
|
7370
7370
|
|
|
7371
|
+
// ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/internal/constants.js
|
|
7372
|
+
var require_constants = __commonJS({
|
|
7373
|
+
"../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/internal/constants.js"(exports, module) {
|
|
7374
|
+
"use strict";
|
|
7375
|
+
var SEMVER_SPEC_VERSION = "2.0.0";
|
|
7376
|
+
var MAX_LENGTH = 256;
|
|
7377
|
+
var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
|
|
7378
|
+
9007199254740991;
|
|
7379
|
+
var MAX_SAFE_COMPONENT_LENGTH = 16;
|
|
7380
|
+
var MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6;
|
|
7381
|
+
var WHITESPACE_CHARACTERS = [
|
|
7382
|
+
" ",
|
|
7383
|
+
"\n",
|
|
7384
|
+
"\v",
|
|
7385
|
+
"\f",
|
|
7386
|
+
"\r",
|
|
7387
|
+
" ",
|
|
7388
|
+
"\xA0",
|
|
7389
|
+
"\u1680",
|
|
7390
|
+
"\u2000",
|
|
7391
|
+
"\u2001",
|
|
7392
|
+
"\u2002",
|
|
7393
|
+
"\u2003",
|
|
7394
|
+
"\u2004",
|
|
7395
|
+
"\u2005",
|
|
7396
|
+
"\u2006",
|
|
7397
|
+
"\u2007",
|
|
7398
|
+
"\u2008",
|
|
7399
|
+
"\u2009",
|
|
7400
|
+
"\u200A",
|
|
7401
|
+
"\u2028",
|
|
7402
|
+
"\u2029",
|
|
7403
|
+
"\u202F",
|
|
7404
|
+
"\u205F",
|
|
7405
|
+
"\u3000",
|
|
7406
|
+
"\uFEFF"
|
|
7407
|
+
];
|
|
7408
|
+
var RELEASE_TYPES = [
|
|
7409
|
+
"major",
|
|
7410
|
+
"premajor",
|
|
7411
|
+
"minor",
|
|
7412
|
+
"preminor",
|
|
7413
|
+
"patch",
|
|
7414
|
+
"prepatch",
|
|
7415
|
+
"prerelease"
|
|
7416
|
+
];
|
|
7417
|
+
module.exports = {
|
|
7418
|
+
MAX_LENGTH,
|
|
7419
|
+
MAX_SAFE_COMPONENT_LENGTH,
|
|
7420
|
+
MAX_SAFE_BUILD_LENGTH,
|
|
7421
|
+
MAX_SAFE_INTEGER,
|
|
7422
|
+
WHITESPACE_CHARACTERS,
|
|
7423
|
+
RELEASE_TYPES,
|
|
7424
|
+
SEMVER_SPEC_VERSION,
|
|
7425
|
+
FLAG_INCLUDE_PRERELEASE: 1,
|
|
7426
|
+
FLAG_LOOSE: 2
|
|
7427
|
+
};
|
|
7428
|
+
}
|
|
7429
|
+
});
|
|
7430
|
+
|
|
7431
|
+
// ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/internal/debug.js
|
|
7432
|
+
var require_debug = __commonJS({
|
|
7433
|
+
"../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/internal/debug.js"(exports, module) {
|
|
7434
|
+
"use strict";
|
|
7435
|
+
var debug = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
|
|
7436
|
+
};
|
|
7437
|
+
module.exports = debug;
|
|
7438
|
+
}
|
|
7439
|
+
});
|
|
7440
|
+
|
|
7441
|
+
// ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/internal/re.js
|
|
7442
|
+
var require_re = __commonJS({
|
|
7443
|
+
"../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/internal/re.js"(exports, module) {
|
|
7444
|
+
"use strict";
|
|
7445
|
+
var {
|
|
7446
|
+
MAX_SAFE_COMPONENT_LENGTH,
|
|
7447
|
+
MAX_SAFE_BUILD_LENGTH,
|
|
7448
|
+
MAX_LENGTH
|
|
7449
|
+
} = require_constants();
|
|
7450
|
+
var debug = require_debug();
|
|
7451
|
+
exports = module.exports = {};
|
|
7452
|
+
var re = exports.re = [];
|
|
7453
|
+
var safeRe = exports.safeRe = [];
|
|
7454
|
+
var src = exports.src = [];
|
|
7455
|
+
var safeSrc = exports.safeSrc = [];
|
|
7456
|
+
var t = exports.t = {};
|
|
7457
|
+
var R = 0;
|
|
7458
|
+
var LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
7459
|
+
var safeRegexReplacements = [
|
|
7460
|
+
["\\s", 1],
|
|
7461
|
+
["\\d", MAX_LENGTH],
|
|
7462
|
+
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
|
|
7463
|
+
];
|
|
7464
|
+
var makeSafeRegex = (value) => {
|
|
7465
|
+
for (const [token, max] of safeRegexReplacements) {
|
|
7466
|
+
value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
|
|
7467
|
+
}
|
|
7468
|
+
return value;
|
|
7469
|
+
};
|
|
7470
|
+
var createToken = (name, value, isGlobal) => {
|
|
7471
|
+
const safe = makeSafeRegex(value);
|
|
7472
|
+
const index = R++;
|
|
7473
|
+
debug(name, index, value);
|
|
7474
|
+
t[name] = index;
|
|
7475
|
+
src[index] = value;
|
|
7476
|
+
safeSrc[index] = safe;
|
|
7477
|
+
re[index] = new RegExp(value, isGlobal ? "g" : void 0);
|
|
7478
|
+
safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
7479
|
+
};
|
|
7480
|
+
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
7481
|
+
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
7482
|
+
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
7483
|
+
createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
|
|
7484
|
+
createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
7485
|
+
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
|
|
7486
|
+
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
7487
|
+
createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
7488
|
+
createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
7489
|
+
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
7490
|
+
createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
|
|
7491
|
+
createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
|
|
7492
|
+
createToken("FULL", `^${src[t.FULLPLAIN]}$`);
|
|
7493
|
+
createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
|
|
7494
|
+
createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
|
|
7495
|
+
createToken("GTLT", "((?:<|>)?=?)");
|
|
7496
|
+
createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
|
7497
|
+
createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
|
|
7498
|
+
createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
|
|
7499
|
+
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
|
|
7500
|
+
createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
|
|
7501
|
+
createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
|
|
7502
|
+
createToken("COERCEPLAIN", `${"(^|[^\\d])(\\d{1,"}${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
|
7503
|
+
createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
7504
|
+
createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
|
|
7505
|
+
createToken("COERCERTL", src[t.COERCE], true);
|
|
7506
|
+
createToken("COERCERTLFULL", src[t.COERCEFULL], true);
|
|
7507
|
+
createToken("LONETILDE", "(?:~>?)");
|
|
7508
|
+
createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
|
|
7509
|
+
exports.tildeTrimReplace = "$1~";
|
|
7510
|
+
createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
|
|
7511
|
+
createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
7512
|
+
createToken("LONECARET", "(?:\\^)");
|
|
7513
|
+
createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
|
|
7514
|
+
exports.caretTrimReplace = "$1^";
|
|
7515
|
+
createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
|
|
7516
|
+
createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
7517
|
+
createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
|
|
7518
|
+
createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
|
|
7519
|
+
createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
|
|
7520
|
+
exports.comparatorTrimReplace = "$1$2$3";
|
|
7521
|
+
createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
|
|
7522
|
+
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
|
|
7523
|
+
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
7524
|
+
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
7525
|
+
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
7526
|
+
}
|
|
7527
|
+
});
|
|
7528
|
+
|
|
7529
|
+
// ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/internal/parse-options.js
|
|
7530
|
+
var require_parse_options = __commonJS({
|
|
7531
|
+
"../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/internal/parse-options.js"(exports, module) {
|
|
7532
|
+
"use strict";
|
|
7533
|
+
var looseOption = Object.freeze({ loose: true });
|
|
7534
|
+
var emptyOpts = Object.freeze({});
|
|
7535
|
+
var parseOptions = (options) => {
|
|
7536
|
+
if (!options) {
|
|
7537
|
+
return emptyOpts;
|
|
7538
|
+
}
|
|
7539
|
+
if (typeof options !== "object") {
|
|
7540
|
+
return looseOption;
|
|
7541
|
+
}
|
|
7542
|
+
return options;
|
|
7543
|
+
};
|
|
7544
|
+
module.exports = parseOptions;
|
|
7545
|
+
}
|
|
7546
|
+
});
|
|
7547
|
+
|
|
7548
|
+
// ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/internal/identifiers.js
|
|
7549
|
+
var require_identifiers = __commonJS({
|
|
7550
|
+
"../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/internal/identifiers.js"(exports, module) {
|
|
7551
|
+
"use strict";
|
|
7552
|
+
var numeric = /^[0-9]+$/;
|
|
7553
|
+
var compareIdentifiers = (a, b) => {
|
|
7554
|
+
if (typeof a === "number" && typeof b === "number") {
|
|
7555
|
+
return a === b ? 0 : a < b ? -1 : 1;
|
|
7556
|
+
}
|
|
7557
|
+
const anum = numeric.test(a);
|
|
7558
|
+
const bnum = numeric.test(b);
|
|
7559
|
+
if (anum && bnum) {
|
|
7560
|
+
a = +a;
|
|
7561
|
+
b = +b;
|
|
7562
|
+
}
|
|
7563
|
+
return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
|
|
7564
|
+
};
|
|
7565
|
+
var rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
|
|
7566
|
+
module.exports = {
|
|
7567
|
+
compareIdentifiers,
|
|
7568
|
+
rcompareIdentifiers
|
|
7569
|
+
};
|
|
7570
|
+
}
|
|
7571
|
+
});
|
|
7572
|
+
|
|
7573
|
+
// ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/classes/semver.js
|
|
7574
|
+
var require_semver = __commonJS({
|
|
7575
|
+
"../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/classes/semver.js"(exports, module) {
|
|
7576
|
+
"use strict";
|
|
7577
|
+
var debug = require_debug();
|
|
7578
|
+
var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
7579
|
+
var { safeRe: re, t } = require_re();
|
|
7580
|
+
var parseOptions = require_parse_options();
|
|
7581
|
+
var { compareIdentifiers } = require_identifiers();
|
|
7582
|
+
var isPrereleaseIdentifier = (prerelease, identifier) => {
|
|
7583
|
+
const identifiers = identifier.split(".");
|
|
7584
|
+
if (identifiers.length > prerelease.length) {
|
|
7585
|
+
return false;
|
|
7586
|
+
}
|
|
7587
|
+
for (let i = 0; i < identifiers.length; i++) {
|
|
7588
|
+
if (compareIdentifiers(prerelease[i], identifiers[i]) !== 0) {
|
|
7589
|
+
return false;
|
|
7590
|
+
}
|
|
7591
|
+
}
|
|
7592
|
+
return true;
|
|
7593
|
+
};
|
|
7594
|
+
var SemVer = class _SemVer {
|
|
7595
|
+
constructor(version2, options) {
|
|
7596
|
+
options = parseOptions(options);
|
|
7597
|
+
if (version2 instanceof _SemVer) {
|
|
7598
|
+
if (version2.loose === !!options.loose && version2.includePrerelease === !!options.includePrerelease) {
|
|
7599
|
+
return version2;
|
|
7600
|
+
} else {
|
|
7601
|
+
version2 = version2.version;
|
|
7602
|
+
}
|
|
7603
|
+
} else if (typeof version2 !== "string") {
|
|
7604
|
+
throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version2}".`);
|
|
7605
|
+
}
|
|
7606
|
+
if (version2.length > MAX_LENGTH) {
|
|
7607
|
+
throw new TypeError(
|
|
7608
|
+
`version is longer than ${MAX_LENGTH} characters`
|
|
7609
|
+
);
|
|
7610
|
+
}
|
|
7611
|
+
debug("SemVer", version2, options);
|
|
7612
|
+
this.options = options;
|
|
7613
|
+
this.loose = !!options.loose;
|
|
7614
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
7615
|
+
const m = version2.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
|
|
7616
|
+
if (!m) {
|
|
7617
|
+
throw new TypeError(`Invalid Version: ${version2}`);
|
|
7618
|
+
}
|
|
7619
|
+
this.raw = version2;
|
|
7620
|
+
this.major = +m[1];
|
|
7621
|
+
this.minor = +m[2];
|
|
7622
|
+
this.patch = +m[3];
|
|
7623
|
+
if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
|
|
7624
|
+
throw new TypeError("Invalid major version");
|
|
7625
|
+
}
|
|
7626
|
+
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
|
|
7627
|
+
throw new TypeError("Invalid minor version");
|
|
7628
|
+
}
|
|
7629
|
+
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
|
|
7630
|
+
throw new TypeError("Invalid patch version");
|
|
7631
|
+
}
|
|
7632
|
+
if (!m[4]) {
|
|
7633
|
+
this.prerelease = [];
|
|
7634
|
+
} else {
|
|
7635
|
+
this.prerelease = m[4].split(".").map((id) => {
|
|
7636
|
+
if (/^[0-9]+$/.test(id)) {
|
|
7637
|
+
const num = +id;
|
|
7638
|
+
if (num >= 0 && num < MAX_SAFE_INTEGER) {
|
|
7639
|
+
return num;
|
|
7640
|
+
}
|
|
7641
|
+
}
|
|
7642
|
+
return id;
|
|
7643
|
+
});
|
|
7644
|
+
}
|
|
7645
|
+
this.build = m[5] ? m[5].split(".") : [];
|
|
7646
|
+
this.format();
|
|
7647
|
+
}
|
|
7648
|
+
format() {
|
|
7649
|
+
this.version = `${this.major}.${this.minor}.${this.patch}`;
|
|
7650
|
+
if (this.prerelease.length) {
|
|
7651
|
+
this.version += `-${this.prerelease.join(".")}`;
|
|
7652
|
+
}
|
|
7653
|
+
return this.version;
|
|
7654
|
+
}
|
|
7655
|
+
toString() {
|
|
7656
|
+
return this.version;
|
|
7657
|
+
}
|
|
7658
|
+
compare(other) {
|
|
7659
|
+
debug("SemVer.compare", this.version, this.options, other);
|
|
7660
|
+
if (!(other instanceof _SemVer)) {
|
|
7661
|
+
if (typeof other === "string" && other === this.version) {
|
|
7662
|
+
return 0;
|
|
7663
|
+
}
|
|
7664
|
+
other = new _SemVer(other, this.options);
|
|
7665
|
+
}
|
|
7666
|
+
if (other.version === this.version) {
|
|
7667
|
+
return 0;
|
|
7668
|
+
}
|
|
7669
|
+
return this.compareMain(other) || this.comparePre(other);
|
|
7670
|
+
}
|
|
7671
|
+
compareMain(other) {
|
|
7672
|
+
if (!(other instanceof _SemVer)) {
|
|
7673
|
+
other = new _SemVer(other, this.options);
|
|
7674
|
+
}
|
|
7675
|
+
if (this.major < other.major) {
|
|
7676
|
+
return -1;
|
|
7677
|
+
}
|
|
7678
|
+
if (this.major > other.major) {
|
|
7679
|
+
return 1;
|
|
7680
|
+
}
|
|
7681
|
+
if (this.minor < other.minor) {
|
|
7682
|
+
return -1;
|
|
7683
|
+
}
|
|
7684
|
+
if (this.minor > other.minor) {
|
|
7685
|
+
return 1;
|
|
7686
|
+
}
|
|
7687
|
+
if (this.patch < other.patch) {
|
|
7688
|
+
return -1;
|
|
7689
|
+
}
|
|
7690
|
+
if (this.patch > other.patch) {
|
|
7691
|
+
return 1;
|
|
7692
|
+
}
|
|
7693
|
+
return 0;
|
|
7694
|
+
}
|
|
7695
|
+
comparePre(other) {
|
|
7696
|
+
if (!(other instanceof _SemVer)) {
|
|
7697
|
+
other = new _SemVer(other, this.options);
|
|
7698
|
+
}
|
|
7699
|
+
if (this.prerelease.length && !other.prerelease.length) {
|
|
7700
|
+
return -1;
|
|
7701
|
+
} else if (!this.prerelease.length && other.prerelease.length) {
|
|
7702
|
+
return 1;
|
|
7703
|
+
} else if (!this.prerelease.length && !other.prerelease.length) {
|
|
7704
|
+
return 0;
|
|
7705
|
+
}
|
|
7706
|
+
let i = 0;
|
|
7707
|
+
do {
|
|
7708
|
+
const a = this.prerelease[i];
|
|
7709
|
+
const b = other.prerelease[i];
|
|
7710
|
+
debug("prerelease compare", i, a, b);
|
|
7711
|
+
if (a === void 0 && b === void 0) {
|
|
7712
|
+
return 0;
|
|
7713
|
+
} else if (b === void 0) {
|
|
7714
|
+
return 1;
|
|
7715
|
+
} else if (a === void 0) {
|
|
7716
|
+
return -1;
|
|
7717
|
+
} else if (a === b) {
|
|
7718
|
+
continue;
|
|
7719
|
+
} else {
|
|
7720
|
+
return compareIdentifiers(a, b);
|
|
7721
|
+
}
|
|
7722
|
+
} while (++i);
|
|
7723
|
+
}
|
|
7724
|
+
compareBuild(other) {
|
|
7725
|
+
if (!(other instanceof _SemVer)) {
|
|
7726
|
+
other = new _SemVer(other, this.options);
|
|
7727
|
+
}
|
|
7728
|
+
let i = 0;
|
|
7729
|
+
do {
|
|
7730
|
+
const a = this.build[i];
|
|
7731
|
+
const b = other.build[i];
|
|
7732
|
+
debug("build compare", i, a, b);
|
|
7733
|
+
if (a === void 0 && b === void 0) {
|
|
7734
|
+
return 0;
|
|
7735
|
+
} else if (b === void 0) {
|
|
7736
|
+
return 1;
|
|
7737
|
+
} else if (a === void 0) {
|
|
7738
|
+
return -1;
|
|
7739
|
+
} else if (a === b) {
|
|
7740
|
+
continue;
|
|
7741
|
+
} else {
|
|
7742
|
+
return compareIdentifiers(a, b);
|
|
7743
|
+
}
|
|
7744
|
+
} while (++i);
|
|
7745
|
+
}
|
|
7746
|
+
// preminor will bump the version up to the next minor release, and immediately
|
|
7747
|
+
// down to pre-release. premajor and prepatch work the same way.
|
|
7748
|
+
inc(release, identifier, identifierBase) {
|
|
7749
|
+
if (release.startsWith("pre")) {
|
|
7750
|
+
if (!identifier && identifierBase === false) {
|
|
7751
|
+
throw new Error("invalid increment argument: identifier is empty");
|
|
7752
|
+
}
|
|
7753
|
+
if (identifier) {
|
|
7754
|
+
const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
|
|
7755
|
+
if (!match || match[1] !== identifier) {
|
|
7756
|
+
throw new Error(`invalid identifier: ${identifier}`);
|
|
7757
|
+
}
|
|
7758
|
+
}
|
|
7759
|
+
}
|
|
7760
|
+
switch (release) {
|
|
7761
|
+
case "premajor":
|
|
7762
|
+
this.prerelease.length = 0;
|
|
7763
|
+
this.patch = 0;
|
|
7764
|
+
this.minor = 0;
|
|
7765
|
+
this.major++;
|
|
7766
|
+
this.inc("pre", identifier, identifierBase);
|
|
7767
|
+
break;
|
|
7768
|
+
case "preminor":
|
|
7769
|
+
this.prerelease.length = 0;
|
|
7770
|
+
this.patch = 0;
|
|
7771
|
+
this.minor++;
|
|
7772
|
+
this.inc("pre", identifier, identifierBase);
|
|
7773
|
+
break;
|
|
7774
|
+
case "prepatch":
|
|
7775
|
+
this.prerelease.length = 0;
|
|
7776
|
+
this.inc("patch", identifier, identifierBase);
|
|
7777
|
+
this.inc("pre", identifier, identifierBase);
|
|
7778
|
+
break;
|
|
7779
|
+
// If the input is a non-prerelease version, this acts the same as
|
|
7780
|
+
// prepatch.
|
|
7781
|
+
case "prerelease":
|
|
7782
|
+
if (this.prerelease.length === 0) {
|
|
7783
|
+
this.inc("patch", identifier, identifierBase);
|
|
7784
|
+
}
|
|
7785
|
+
this.inc("pre", identifier, identifierBase);
|
|
7786
|
+
break;
|
|
7787
|
+
case "release":
|
|
7788
|
+
if (this.prerelease.length === 0) {
|
|
7789
|
+
throw new Error(`version ${this.raw} is not a prerelease`);
|
|
7790
|
+
}
|
|
7791
|
+
this.prerelease.length = 0;
|
|
7792
|
+
break;
|
|
7793
|
+
case "major":
|
|
7794
|
+
if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) {
|
|
7795
|
+
this.major++;
|
|
7796
|
+
}
|
|
7797
|
+
this.minor = 0;
|
|
7798
|
+
this.patch = 0;
|
|
7799
|
+
this.prerelease = [];
|
|
7800
|
+
break;
|
|
7801
|
+
case "minor":
|
|
7802
|
+
if (this.patch !== 0 || this.prerelease.length === 0) {
|
|
7803
|
+
this.minor++;
|
|
7804
|
+
}
|
|
7805
|
+
this.patch = 0;
|
|
7806
|
+
this.prerelease = [];
|
|
7807
|
+
break;
|
|
7808
|
+
case "patch":
|
|
7809
|
+
if (this.prerelease.length === 0) {
|
|
7810
|
+
this.patch++;
|
|
7811
|
+
}
|
|
7812
|
+
this.prerelease = [];
|
|
7813
|
+
break;
|
|
7814
|
+
// This probably shouldn't be used publicly.
|
|
7815
|
+
// 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
|
|
7816
|
+
case "pre": {
|
|
7817
|
+
const base = Number(identifierBase) ? 1 : 0;
|
|
7818
|
+
if (this.prerelease.length === 0) {
|
|
7819
|
+
this.prerelease = [base];
|
|
7820
|
+
} else {
|
|
7821
|
+
let i = this.prerelease.length;
|
|
7822
|
+
while (--i >= 0) {
|
|
7823
|
+
if (typeof this.prerelease[i] === "number") {
|
|
7824
|
+
this.prerelease[i]++;
|
|
7825
|
+
i = -2;
|
|
7826
|
+
}
|
|
7827
|
+
}
|
|
7828
|
+
if (i === -1) {
|
|
7829
|
+
if (identifier === this.prerelease.join(".") && identifierBase === false) {
|
|
7830
|
+
throw new Error("invalid increment argument: identifier already exists");
|
|
7831
|
+
}
|
|
7832
|
+
this.prerelease.push(base);
|
|
7833
|
+
}
|
|
7834
|
+
}
|
|
7835
|
+
if (identifier) {
|
|
7836
|
+
let prerelease = [identifier, base];
|
|
7837
|
+
if (identifierBase === false) {
|
|
7838
|
+
prerelease = [identifier];
|
|
7839
|
+
}
|
|
7840
|
+
if (isPrereleaseIdentifier(this.prerelease, identifier)) {
|
|
7841
|
+
const prereleaseBase = this.prerelease[identifier.split(".").length];
|
|
7842
|
+
if (isNaN(prereleaseBase)) {
|
|
7843
|
+
this.prerelease = prerelease;
|
|
7844
|
+
}
|
|
7845
|
+
} else {
|
|
7846
|
+
this.prerelease = prerelease;
|
|
7847
|
+
}
|
|
7848
|
+
}
|
|
7849
|
+
break;
|
|
7850
|
+
}
|
|
7851
|
+
default:
|
|
7852
|
+
throw new Error(`invalid increment argument: ${release}`);
|
|
7853
|
+
}
|
|
7854
|
+
this.raw = this.format();
|
|
7855
|
+
if (this.build.length) {
|
|
7856
|
+
this.raw += `+${this.build.join(".")}`;
|
|
7857
|
+
}
|
|
7858
|
+
return this;
|
|
7859
|
+
}
|
|
7860
|
+
};
|
|
7861
|
+
module.exports = SemVer;
|
|
7862
|
+
}
|
|
7863
|
+
});
|
|
7864
|
+
|
|
7865
|
+
// ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/parse.js
|
|
7866
|
+
var require_parse = __commonJS({
|
|
7867
|
+
"../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/parse.js"(exports, module) {
|
|
7868
|
+
"use strict";
|
|
7869
|
+
var SemVer = require_semver();
|
|
7870
|
+
var parse7 = (version2, options, throwErrors = false) => {
|
|
7871
|
+
if (version2 instanceof SemVer) {
|
|
7872
|
+
return version2;
|
|
7873
|
+
}
|
|
7874
|
+
try {
|
|
7875
|
+
return new SemVer(version2, options);
|
|
7876
|
+
} catch (er) {
|
|
7877
|
+
if (!throwErrors) {
|
|
7878
|
+
return null;
|
|
7879
|
+
}
|
|
7880
|
+
throw er;
|
|
7881
|
+
}
|
|
7882
|
+
};
|
|
7883
|
+
module.exports = parse7;
|
|
7884
|
+
}
|
|
7885
|
+
});
|
|
7886
|
+
|
|
7887
|
+
// ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/valid.js
|
|
7888
|
+
var require_valid = __commonJS({
|
|
7889
|
+
"../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/valid.js"(exports, module) {
|
|
7890
|
+
"use strict";
|
|
7891
|
+
var parse7 = require_parse();
|
|
7892
|
+
var valid = (version2, options) => {
|
|
7893
|
+
const v = parse7(version2, options);
|
|
7894
|
+
return v ? v.version : null;
|
|
7895
|
+
};
|
|
7896
|
+
module.exports = valid;
|
|
7897
|
+
}
|
|
7898
|
+
});
|
|
7899
|
+
|
|
7900
|
+
// ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/clean.js
|
|
7901
|
+
var require_clean = __commonJS({
|
|
7902
|
+
"../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/clean.js"(exports, module) {
|
|
7903
|
+
"use strict";
|
|
7904
|
+
var parse7 = require_parse();
|
|
7905
|
+
var clean = (version2, options) => {
|
|
7906
|
+
const s = parse7(version2.trim().replace(/^[=v]+/, ""), options);
|
|
7907
|
+
return s ? s.version : null;
|
|
7908
|
+
};
|
|
7909
|
+
module.exports = clean;
|
|
7910
|
+
}
|
|
7911
|
+
});
|
|
7912
|
+
|
|
7913
|
+
// ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/inc.js
|
|
7914
|
+
var require_inc = __commonJS({
|
|
7915
|
+
"../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/inc.js"(exports, module) {
|
|
7916
|
+
"use strict";
|
|
7917
|
+
var SemVer = require_semver();
|
|
7918
|
+
var inc = (version2, release, options, identifier, identifierBase) => {
|
|
7919
|
+
if (typeof options === "string") {
|
|
7920
|
+
identifierBase = identifier;
|
|
7921
|
+
identifier = options;
|
|
7922
|
+
options = void 0;
|
|
7923
|
+
}
|
|
7924
|
+
try {
|
|
7925
|
+
return new SemVer(
|
|
7926
|
+
version2 instanceof SemVer ? version2.version : version2,
|
|
7927
|
+
options
|
|
7928
|
+
).inc(release, identifier, identifierBase).version;
|
|
7929
|
+
} catch (er) {
|
|
7930
|
+
return null;
|
|
7931
|
+
}
|
|
7932
|
+
};
|
|
7933
|
+
module.exports = inc;
|
|
7934
|
+
}
|
|
7935
|
+
});
|
|
7936
|
+
|
|
7937
|
+
// ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/diff.js
|
|
7938
|
+
var require_diff = __commonJS({
|
|
7939
|
+
"../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/diff.js"(exports, module) {
|
|
7940
|
+
"use strict";
|
|
7941
|
+
var parse7 = require_parse();
|
|
7942
|
+
var diff = (version1, version2) => {
|
|
7943
|
+
const v1 = parse7(version1, null, true);
|
|
7944
|
+
const v2 = parse7(version2, null, true);
|
|
7945
|
+
const comparison = v1.compare(v2);
|
|
7946
|
+
if (comparison === 0) {
|
|
7947
|
+
return null;
|
|
7948
|
+
}
|
|
7949
|
+
const v1Higher = comparison > 0;
|
|
7950
|
+
const highVersion = v1Higher ? v1 : v2;
|
|
7951
|
+
const lowVersion = v1Higher ? v2 : v1;
|
|
7952
|
+
const highHasPre = !!highVersion.prerelease.length;
|
|
7953
|
+
const lowHasPre = !!lowVersion.prerelease.length;
|
|
7954
|
+
if (lowHasPre && !highHasPre) {
|
|
7955
|
+
if (!lowVersion.patch && !lowVersion.minor) {
|
|
7956
|
+
return "major";
|
|
7957
|
+
}
|
|
7958
|
+
if (lowVersion.compareMain(highVersion) === 0) {
|
|
7959
|
+
if (lowVersion.minor && !lowVersion.patch) {
|
|
7960
|
+
return "minor";
|
|
7961
|
+
}
|
|
7962
|
+
return "patch";
|
|
7963
|
+
}
|
|
7964
|
+
}
|
|
7965
|
+
const prefix = highHasPre ? "pre" : "";
|
|
7966
|
+
if (v1.major !== v2.major) {
|
|
7967
|
+
return prefix + "major";
|
|
7968
|
+
}
|
|
7969
|
+
if (v1.minor !== v2.minor) {
|
|
7970
|
+
return prefix + "minor";
|
|
7971
|
+
}
|
|
7972
|
+
if (v1.patch !== v2.patch) {
|
|
7973
|
+
return prefix + "patch";
|
|
7974
|
+
}
|
|
7975
|
+
return "prerelease";
|
|
7976
|
+
};
|
|
7977
|
+
module.exports = diff;
|
|
7978
|
+
}
|
|
7979
|
+
});
|
|
7980
|
+
|
|
7981
|
+
// ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/major.js
|
|
7982
|
+
var require_major = __commonJS({
|
|
7983
|
+
"../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/major.js"(exports, module) {
|
|
7984
|
+
"use strict";
|
|
7985
|
+
var SemVer = require_semver();
|
|
7986
|
+
var major = (a, loose) => new SemVer(a, loose).major;
|
|
7987
|
+
module.exports = major;
|
|
7988
|
+
}
|
|
7989
|
+
});
|
|
7990
|
+
|
|
7991
|
+
// ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/minor.js
|
|
7992
|
+
var require_minor = __commonJS({
|
|
7993
|
+
"../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/minor.js"(exports, module) {
|
|
7994
|
+
"use strict";
|
|
7995
|
+
var SemVer = require_semver();
|
|
7996
|
+
var minor = (a, loose) => new SemVer(a, loose).minor;
|
|
7997
|
+
module.exports = minor;
|
|
7998
|
+
}
|
|
7999
|
+
});
|
|
8000
|
+
|
|
8001
|
+
// ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/patch.js
|
|
8002
|
+
var require_patch = __commonJS({
|
|
8003
|
+
"../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/patch.js"(exports, module) {
|
|
8004
|
+
"use strict";
|
|
8005
|
+
var SemVer = require_semver();
|
|
8006
|
+
var patch = (a, loose) => new SemVer(a, loose).patch;
|
|
8007
|
+
module.exports = patch;
|
|
8008
|
+
}
|
|
8009
|
+
});
|
|
8010
|
+
|
|
8011
|
+
// ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/prerelease.js
|
|
8012
|
+
var require_prerelease = __commonJS({
|
|
8013
|
+
"../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/prerelease.js"(exports, module) {
|
|
8014
|
+
"use strict";
|
|
8015
|
+
var parse7 = require_parse();
|
|
8016
|
+
var prerelease = (version2, options) => {
|
|
8017
|
+
const parsed = parse7(version2, options);
|
|
8018
|
+
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
8019
|
+
};
|
|
8020
|
+
module.exports = prerelease;
|
|
8021
|
+
}
|
|
8022
|
+
});
|
|
8023
|
+
|
|
8024
|
+
// ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/compare.js
|
|
8025
|
+
var require_compare = __commonJS({
|
|
8026
|
+
"../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/compare.js"(exports, module) {
|
|
8027
|
+
"use strict";
|
|
8028
|
+
var SemVer = require_semver();
|
|
8029
|
+
var compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
8030
|
+
module.exports = compare;
|
|
8031
|
+
}
|
|
8032
|
+
});
|
|
8033
|
+
|
|
8034
|
+
// ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/rcompare.js
|
|
8035
|
+
var require_rcompare = __commonJS({
|
|
8036
|
+
"../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/rcompare.js"(exports, module) {
|
|
8037
|
+
"use strict";
|
|
8038
|
+
var compare = require_compare();
|
|
8039
|
+
var rcompare = (a, b, loose) => compare(b, a, loose);
|
|
8040
|
+
module.exports = rcompare;
|
|
8041
|
+
}
|
|
8042
|
+
});
|
|
8043
|
+
|
|
8044
|
+
// ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/compare-loose.js
|
|
8045
|
+
var require_compare_loose = __commonJS({
|
|
8046
|
+
"../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/compare-loose.js"(exports, module) {
|
|
8047
|
+
"use strict";
|
|
8048
|
+
var compare = require_compare();
|
|
8049
|
+
var compareLoose = (a, b) => compare(a, b, true);
|
|
8050
|
+
module.exports = compareLoose;
|
|
8051
|
+
}
|
|
8052
|
+
});
|
|
8053
|
+
|
|
8054
|
+
// ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/compare-build.js
|
|
8055
|
+
var require_compare_build = __commonJS({
|
|
8056
|
+
"../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/compare-build.js"(exports, module) {
|
|
8057
|
+
"use strict";
|
|
8058
|
+
var SemVer = require_semver();
|
|
8059
|
+
var compareBuild = (a, b, loose) => {
|
|
8060
|
+
const versionA = new SemVer(a, loose);
|
|
8061
|
+
const versionB = new SemVer(b, loose);
|
|
8062
|
+
return versionA.compare(versionB) || versionA.compareBuild(versionB);
|
|
8063
|
+
};
|
|
8064
|
+
module.exports = compareBuild;
|
|
8065
|
+
}
|
|
8066
|
+
});
|
|
8067
|
+
|
|
8068
|
+
// ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/sort.js
|
|
8069
|
+
var require_sort = __commonJS({
|
|
8070
|
+
"../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/sort.js"(exports, module) {
|
|
8071
|
+
"use strict";
|
|
8072
|
+
var compareBuild = require_compare_build();
|
|
8073
|
+
var sort = (list2, loose) => list2.sort((a, b) => compareBuild(a, b, loose));
|
|
8074
|
+
module.exports = sort;
|
|
8075
|
+
}
|
|
8076
|
+
});
|
|
8077
|
+
|
|
8078
|
+
// ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/rsort.js
|
|
8079
|
+
var require_rsort = __commonJS({
|
|
8080
|
+
"../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/rsort.js"(exports, module) {
|
|
8081
|
+
"use strict";
|
|
8082
|
+
var compareBuild = require_compare_build();
|
|
8083
|
+
var rsort = (list2, loose) => list2.sort((a, b) => compareBuild(b, a, loose));
|
|
8084
|
+
module.exports = rsort;
|
|
8085
|
+
}
|
|
8086
|
+
});
|
|
8087
|
+
|
|
8088
|
+
// ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/gt.js
|
|
8089
|
+
var require_gt = __commonJS({
|
|
8090
|
+
"../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/gt.js"(exports, module) {
|
|
8091
|
+
"use strict";
|
|
8092
|
+
var compare = require_compare();
|
|
8093
|
+
var gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
8094
|
+
module.exports = gt;
|
|
8095
|
+
}
|
|
8096
|
+
});
|
|
8097
|
+
|
|
8098
|
+
// ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/lt.js
|
|
8099
|
+
var require_lt = __commonJS({
|
|
8100
|
+
"../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/lt.js"(exports, module) {
|
|
8101
|
+
"use strict";
|
|
8102
|
+
var compare = require_compare();
|
|
8103
|
+
var lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
8104
|
+
module.exports = lt;
|
|
8105
|
+
}
|
|
8106
|
+
});
|
|
8107
|
+
|
|
8108
|
+
// ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/eq.js
|
|
8109
|
+
var require_eq = __commonJS({
|
|
8110
|
+
"../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/eq.js"(exports, module) {
|
|
8111
|
+
"use strict";
|
|
8112
|
+
var compare = require_compare();
|
|
8113
|
+
var eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
8114
|
+
module.exports = eq;
|
|
8115
|
+
}
|
|
8116
|
+
});
|
|
8117
|
+
|
|
8118
|
+
// ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/neq.js
|
|
8119
|
+
var require_neq = __commonJS({
|
|
8120
|
+
"../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/neq.js"(exports, module) {
|
|
8121
|
+
"use strict";
|
|
8122
|
+
var compare = require_compare();
|
|
8123
|
+
var neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
8124
|
+
module.exports = neq;
|
|
8125
|
+
}
|
|
8126
|
+
});
|
|
8127
|
+
|
|
8128
|
+
// ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/gte.js
|
|
8129
|
+
var require_gte = __commonJS({
|
|
8130
|
+
"../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/gte.js"(exports, module) {
|
|
8131
|
+
"use strict";
|
|
8132
|
+
var compare = require_compare();
|
|
8133
|
+
var gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
8134
|
+
module.exports = gte;
|
|
8135
|
+
}
|
|
8136
|
+
});
|
|
8137
|
+
|
|
8138
|
+
// ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/lte.js
|
|
8139
|
+
var require_lte = __commonJS({
|
|
8140
|
+
"../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/lte.js"(exports, module) {
|
|
8141
|
+
"use strict";
|
|
8142
|
+
var compare = require_compare();
|
|
8143
|
+
var lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
8144
|
+
module.exports = lte;
|
|
8145
|
+
}
|
|
8146
|
+
});
|
|
8147
|
+
|
|
8148
|
+
// ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/cmp.js
|
|
8149
|
+
var require_cmp = __commonJS({
|
|
8150
|
+
"../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/cmp.js"(exports, module) {
|
|
8151
|
+
"use strict";
|
|
8152
|
+
var eq = require_eq();
|
|
8153
|
+
var neq = require_neq();
|
|
8154
|
+
var gt = require_gt();
|
|
8155
|
+
var gte = require_gte();
|
|
8156
|
+
var lt = require_lt();
|
|
8157
|
+
var lte = require_lte();
|
|
8158
|
+
var cmp = (a, op, b, loose) => {
|
|
8159
|
+
switch (op) {
|
|
8160
|
+
case "===":
|
|
8161
|
+
if (typeof a === "object") {
|
|
8162
|
+
a = a.version;
|
|
8163
|
+
}
|
|
8164
|
+
if (typeof b === "object") {
|
|
8165
|
+
b = b.version;
|
|
8166
|
+
}
|
|
8167
|
+
return a === b;
|
|
8168
|
+
case "!==":
|
|
8169
|
+
if (typeof a === "object") {
|
|
8170
|
+
a = a.version;
|
|
8171
|
+
}
|
|
8172
|
+
if (typeof b === "object") {
|
|
8173
|
+
b = b.version;
|
|
8174
|
+
}
|
|
8175
|
+
return a !== b;
|
|
8176
|
+
case "":
|
|
8177
|
+
case "=":
|
|
8178
|
+
case "==":
|
|
8179
|
+
return eq(a, b, loose);
|
|
8180
|
+
case "!=":
|
|
8181
|
+
return neq(a, b, loose);
|
|
8182
|
+
case ">":
|
|
8183
|
+
return gt(a, b, loose);
|
|
8184
|
+
case ">=":
|
|
8185
|
+
return gte(a, b, loose);
|
|
8186
|
+
case "<":
|
|
8187
|
+
return lt(a, b, loose);
|
|
8188
|
+
case "<=":
|
|
8189
|
+
return lte(a, b, loose);
|
|
8190
|
+
default:
|
|
8191
|
+
throw new TypeError(`Invalid operator: ${op}`);
|
|
8192
|
+
}
|
|
8193
|
+
};
|
|
8194
|
+
module.exports = cmp;
|
|
8195
|
+
}
|
|
8196
|
+
});
|
|
8197
|
+
|
|
8198
|
+
// ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/coerce.js
|
|
8199
|
+
var require_coerce = __commonJS({
|
|
8200
|
+
"../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/coerce.js"(exports, module) {
|
|
8201
|
+
"use strict";
|
|
8202
|
+
var SemVer = require_semver();
|
|
8203
|
+
var parse7 = require_parse();
|
|
8204
|
+
var { safeRe: re, t } = require_re();
|
|
8205
|
+
var coerce = (version2, options) => {
|
|
8206
|
+
if (version2 instanceof SemVer) {
|
|
8207
|
+
return version2;
|
|
8208
|
+
}
|
|
8209
|
+
if (typeof version2 === "number") {
|
|
8210
|
+
version2 = String(version2);
|
|
8211
|
+
}
|
|
8212
|
+
if (typeof version2 !== "string") {
|
|
8213
|
+
return null;
|
|
8214
|
+
}
|
|
8215
|
+
options = options || {};
|
|
8216
|
+
let match = null;
|
|
8217
|
+
if (!options.rtl) {
|
|
8218
|
+
match = version2.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
|
|
8219
|
+
} else {
|
|
8220
|
+
const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL];
|
|
8221
|
+
let next;
|
|
8222
|
+
while ((next = coerceRtlRegex.exec(version2)) && (!match || match.index + match[0].length !== version2.length)) {
|
|
8223
|
+
if (!match || next.index + next[0].length !== match.index + match[0].length) {
|
|
8224
|
+
match = next;
|
|
8225
|
+
}
|
|
8226
|
+
coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
|
8227
|
+
}
|
|
8228
|
+
coerceRtlRegex.lastIndex = -1;
|
|
8229
|
+
}
|
|
8230
|
+
if (match === null) {
|
|
8231
|
+
return null;
|
|
8232
|
+
}
|
|
8233
|
+
const major = match[2];
|
|
8234
|
+
const minor = match[3] || "0";
|
|
8235
|
+
const patch = match[4] || "0";
|
|
8236
|
+
const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : "";
|
|
8237
|
+
const build = options.includePrerelease && match[6] ? `+${match[6]}` : "";
|
|
8238
|
+
return parse7(`${major}.${minor}.${patch}${prerelease}${build}`, options);
|
|
8239
|
+
};
|
|
8240
|
+
module.exports = coerce;
|
|
8241
|
+
}
|
|
8242
|
+
});
|
|
8243
|
+
|
|
8244
|
+
// ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/truncate.js
|
|
8245
|
+
var require_truncate = __commonJS({
|
|
8246
|
+
"../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/truncate.js"(exports, module) {
|
|
8247
|
+
"use strict";
|
|
8248
|
+
var parse7 = require_parse();
|
|
8249
|
+
var constants = require_constants();
|
|
8250
|
+
var SemVer = require_semver();
|
|
8251
|
+
var truncate = (version2, truncation, options) => {
|
|
8252
|
+
if (!constants.RELEASE_TYPES.includes(truncation)) {
|
|
8253
|
+
return null;
|
|
8254
|
+
}
|
|
8255
|
+
const clonedVersion = cloneInputVersion(version2, options);
|
|
8256
|
+
return clonedVersion && doTruncation(clonedVersion, truncation);
|
|
8257
|
+
};
|
|
8258
|
+
var cloneInputVersion = (version2, options) => {
|
|
8259
|
+
const versionStringToParse = version2 instanceof SemVer ? version2.version : version2;
|
|
8260
|
+
return parse7(versionStringToParse, options);
|
|
8261
|
+
};
|
|
8262
|
+
var doTruncation = (version2, truncation) => {
|
|
8263
|
+
if (isPrerelease(truncation)) {
|
|
8264
|
+
return version2.version;
|
|
8265
|
+
}
|
|
8266
|
+
version2.prerelease = [];
|
|
8267
|
+
switch (truncation) {
|
|
8268
|
+
case "major":
|
|
8269
|
+
version2.minor = 0;
|
|
8270
|
+
version2.patch = 0;
|
|
8271
|
+
break;
|
|
8272
|
+
case "minor":
|
|
8273
|
+
version2.patch = 0;
|
|
8274
|
+
break;
|
|
8275
|
+
}
|
|
8276
|
+
return version2.format();
|
|
8277
|
+
};
|
|
8278
|
+
var isPrerelease = (type) => {
|
|
8279
|
+
return type.startsWith("pre");
|
|
8280
|
+
};
|
|
8281
|
+
module.exports = truncate;
|
|
8282
|
+
}
|
|
8283
|
+
});
|
|
8284
|
+
|
|
8285
|
+
// ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/internal/lrucache.js
|
|
8286
|
+
var require_lrucache = __commonJS({
|
|
8287
|
+
"../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/internal/lrucache.js"(exports, module) {
|
|
8288
|
+
"use strict";
|
|
8289
|
+
var LRUCache = class {
|
|
8290
|
+
constructor() {
|
|
8291
|
+
this.max = 1e3;
|
|
8292
|
+
this.map = /* @__PURE__ */ new Map();
|
|
8293
|
+
}
|
|
8294
|
+
get(key) {
|
|
8295
|
+
const value = this.map.get(key);
|
|
8296
|
+
if (value === void 0) {
|
|
8297
|
+
return void 0;
|
|
8298
|
+
} else {
|
|
8299
|
+
this.map.delete(key);
|
|
8300
|
+
this.map.set(key, value);
|
|
8301
|
+
return value;
|
|
8302
|
+
}
|
|
8303
|
+
}
|
|
8304
|
+
delete(key) {
|
|
8305
|
+
return this.map.delete(key);
|
|
8306
|
+
}
|
|
8307
|
+
set(key, value) {
|
|
8308
|
+
const deleted = this.delete(key);
|
|
8309
|
+
if (!deleted && value !== void 0) {
|
|
8310
|
+
if (this.map.size >= this.max) {
|
|
8311
|
+
const firstKey = this.map.keys().next().value;
|
|
8312
|
+
this.delete(firstKey);
|
|
8313
|
+
}
|
|
8314
|
+
this.map.set(key, value);
|
|
8315
|
+
}
|
|
8316
|
+
return this;
|
|
8317
|
+
}
|
|
8318
|
+
};
|
|
8319
|
+
module.exports = LRUCache;
|
|
8320
|
+
}
|
|
8321
|
+
});
|
|
8322
|
+
|
|
8323
|
+
// ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/internal/trim-comparator-whitespace.js
|
|
8324
|
+
var require_trim_comparator_whitespace = __commonJS({
|
|
8325
|
+
"../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/internal/trim-comparator-whitespace.js"(exports, module) {
|
|
8326
|
+
"use strict";
|
|
8327
|
+
var {
|
|
8328
|
+
MAX_LENGTH,
|
|
8329
|
+
MAX_SAFE_BUILD_LENGTH,
|
|
8330
|
+
WHITESPACE_CHARACTERS
|
|
8331
|
+
} = require_constants();
|
|
8332
|
+
var whitespace = new Uint8Array(65536);
|
|
8333
|
+
for (const char of WHITESPACE_CHARACTERS) {
|
|
8334
|
+
whitespace[char.charCodeAt(0)] = 1;
|
|
8335
|
+
}
|
|
8336
|
+
var isWhitespace = (char) => char !== void 0 && whitespace[char.charCodeAt(0)] === 1;
|
|
8337
|
+
var isVersionPrefix = (char) => char === "v" || char === "=" || isWhitespace(char);
|
|
8338
|
+
var isDigit = (char) => char !== void 0 && char >= "0" && char <= "9";
|
|
8339
|
+
var isLetter = (char) => char !== void 0 && (char >= "a" && char <= "z" || char >= "A" && char <= "Z");
|
|
8340
|
+
var isIdentifierCharacter = (char) => isDigit(char) || isLetter(char) || char === "-";
|
|
8341
|
+
var isVersionStart = (char) => isDigit(char) || char === "x" || char === "X" || char === "*";
|
|
8342
|
+
var findDigitsEndIndex = (range, start, limit, digitRuns) => {
|
|
8343
|
+
if (!isDigit(range[start])) {
|
|
8344
|
+
return start;
|
|
8345
|
+
}
|
|
8346
|
+
if (start >= digitRuns.start && start < digitRuns.end) {
|
|
8347
|
+
return Math.min(start + limit, digitRuns.end);
|
|
8348
|
+
}
|
|
8349
|
+
if (start >= digitRuns.previousStart && start < digitRuns.previousEnd) {
|
|
8350
|
+
return Math.min(start + limit, digitRuns.previousEnd);
|
|
8351
|
+
}
|
|
8352
|
+
let end = start + 1;
|
|
8353
|
+
while (isDigit(range[end])) {
|
|
8354
|
+
end++;
|
|
8355
|
+
}
|
|
8356
|
+
digitRuns.previousStart = digitRuns.start;
|
|
8357
|
+
digitRuns.previousEnd = digitRuns.end;
|
|
8358
|
+
digitRuns.start = start;
|
|
8359
|
+
digitRuns.end = end;
|
|
8360
|
+
return Math.min(start + limit, end);
|
|
8361
|
+
};
|
|
8362
|
+
var findVersionNumberEndIndex = (range, start, loose, digitRuns) => {
|
|
8363
|
+
if (!loose && range[start] === "0") {
|
|
8364
|
+
return start + 1;
|
|
8365
|
+
}
|
|
8366
|
+
return findDigitsEndIndex(range, start, loose ? MAX_LENGTH : MAX_LENGTH + 1, digitRuns);
|
|
8367
|
+
};
|
|
8368
|
+
var findPrereleaseIdentifierEndIndex = (range, start, loose, digitRuns) => {
|
|
8369
|
+
const digitsEnd = findDigitsEndIndex(range, start, MAX_LENGTH, digitRuns);
|
|
8370
|
+
if (isLetter(range[digitsEnd]) || range[digitsEnd] === "-") {
|
|
8371
|
+
let end = digitsEnd + 1;
|
|
8372
|
+
const limit = end + MAX_SAFE_BUILD_LENGTH;
|
|
8373
|
+
while (end < limit && isIdentifierCharacter(range[end])) {
|
|
8374
|
+
end++;
|
|
8375
|
+
}
|
|
8376
|
+
return end;
|
|
8377
|
+
}
|
|
8378
|
+
return findVersionNumberEndIndex(range, start, loose, digitRuns);
|
|
8379
|
+
};
|
|
8380
|
+
var findPrereleaseEndIndex = (range, start, loose, digitRuns) => {
|
|
8381
|
+
const hyphen = range[start] === "-";
|
|
8382
|
+
if (!loose && !hyphen) {
|
|
8383
|
+
return start;
|
|
8384
|
+
}
|
|
8385
|
+
const identifierStart = start + (hyphen ? 1 : 0);
|
|
8386
|
+
let end = findPrereleaseIdentifierEndIndex(range, identifierStart, loose, digitRuns);
|
|
8387
|
+
if (end === identifierStart) {
|
|
8388
|
+
if (!loose || !hyphen) {
|
|
8389
|
+
return start;
|
|
8390
|
+
}
|
|
8391
|
+
end = findPrereleaseIdentifierEndIndex(range, start, loose, digitRuns);
|
|
8392
|
+
}
|
|
8393
|
+
while (range[end] === ".") {
|
|
8394
|
+
const next = findPrereleaseIdentifierEndIndex(range, end + 1, loose, digitRuns);
|
|
8395
|
+
if (next === end + 1) {
|
|
8396
|
+
break;
|
|
8397
|
+
}
|
|
8398
|
+
end = next;
|
|
8399
|
+
}
|
|
8400
|
+
return end;
|
|
8401
|
+
};
|
|
8402
|
+
var findBuildIdentifierEndIndex = (range, start) => {
|
|
8403
|
+
let end = start;
|
|
8404
|
+
while (end - start < MAX_SAFE_BUILD_LENGTH && isIdentifierCharacter(range[end])) {
|
|
8405
|
+
end++;
|
|
8406
|
+
}
|
|
8407
|
+
return end;
|
|
8408
|
+
};
|
|
8409
|
+
var findBuildEndIndex = (range, start) => {
|
|
8410
|
+
if (range[start] !== "+") {
|
|
8411
|
+
return start;
|
|
8412
|
+
}
|
|
8413
|
+
let end = findBuildIdentifierEndIndex(range, start + 1);
|
|
8414
|
+
if (end === start + 1) {
|
|
8415
|
+
return start;
|
|
8416
|
+
}
|
|
8417
|
+
while (range[end] === ".") {
|
|
8418
|
+
const next = findBuildIdentifierEndIndex(range, end + 1);
|
|
8419
|
+
if (next === end + 1) {
|
|
8420
|
+
break;
|
|
8421
|
+
}
|
|
8422
|
+
end = next;
|
|
8423
|
+
}
|
|
8424
|
+
return end;
|
|
8425
|
+
};
|
|
8426
|
+
var findLooseFullVersionEndIndex = (range, start, digitRuns) => {
|
|
8427
|
+
let end = start;
|
|
8428
|
+
for (let component = 0; component < 3; component++) {
|
|
8429
|
+
const next = findVersionNumberEndIndex(range, end, true, digitRuns);
|
|
8430
|
+
if (next === end) {
|
|
8431
|
+
return start;
|
|
8432
|
+
}
|
|
8433
|
+
end = next;
|
|
8434
|
+
if (component < 2) {
|
|
8435
|
+
if (range[end] !== ".") {
|
|
8436
|
+
return start;
|
|
8437
|
+
}
|
|
8438
|
+
end++;
|
|
8439
|
+
}
|
|
8440
|
+
}
|
|
8441
|
+
const prereleaseEnd = findPrereleaseEndIndex(range, end, true, digitRuns);
|
|
8442
|
+
return findBuildEndIndex(range, prereleaseEnd);
|
|
8443
|
+
};
|
|
8444
|
+
var findPartialVersionComponentEndIndex = (range, start, digitRuns) => {
|
|
8445
|
+
if (isDigit(range[start])) {
|
|
8446
|
+
return findVersionNumberEndIndex(range, start, false, digitRuns);
|
|
8447
|
+
}
|
|
8448
|
+
return isVersionStart(range[start]) ? start + 1 : start;
|
|
8449
|
+
};
|
|
8450
|
+
var findPartialVersionEndIndex = (range, start, digitRuns) => {
|
|
8451
|
+
let end = findPartialVersionComponentEndIndex(range, start, digitRuns);
|
|
8452
|
+
for (let component = 0; component < 2; component++) {
|
|
8453
|
+
if (range[end] !== ".") {
|
|
8454
|
+
return end;
|
|
8455
|
+
}
|
|
8456
|
+
const next = findPartialVersionComponentEndIndex(range, end + 1, digitRuns);
|
|
8457
|
+
if (next === end + 1) {
|
|
8458
|
+
return end;
|
|
8459
|
+
}
|
|
8460
|
+
end = next;
|
|
8461
|
+
}
|
|
8462
|
+
const prereleaseEnd = findPrereleaseEndIndex(range, end, false, digitRuns);
|
|
8463
|
+
return findBuildEndIndex(range, prereleaseEnd);
|
|
8464
|
+
};
|
|
8465
|
+
var findVersionEndIndex = (range, start, digitRuns) => {
|
|
8466
|
+
const fullVersionEnd = findLooseFullVersionEndIndex(range, start, digitRuns);
|
|
8467
|
+
return fullVersionEnd !== start ? fullVersionEnd : findPartialVersionEndIndex(range, start, digitRuns);
|
|
8468
|
+
};
|
|
8469
|
+
var findRemovableWhitespaceIndex = (range, matchStart) => {
|
|
8470
|
+
let position = matchStart;
|
|
8471
|
+
if (isWhitespace(range[position])) {
|
|
8472
|
+
position++;
|
|
8473
|
+
}
|
|
8474
|
+
if (range[position] === "<" || range[position] === ">") {
|
|
8475
|
+
position++;
|
|
8476
|
+
}
|
|
8477
|
+
if (range[position] === "=") {
|
|
8478
|
+
position++;
|
|
8479
|
+
}
|
|
8480
|
+
return isWhitespace(range[position]) ? position : -1;
|
|
8481
|
+
};
|
|
8482
|
+
var trimComparatorWhitespace = (range) => {
|
|
8483
|
+
let result = "";
|
|
8484
|
+
let copyFrom = 0;
|
|
8485
|
+
let cursor = 0;
|
|
8486
|
+
const digitRuns = { start: -1, end: -1, previousStart: -1, previousEnd: -1 };
|
|
8487
|
+
while (cursor < range.length) {
|
|
8488
|
+
const matchStart = cursor;
|
|
8489
|
+
if (range[cursor] === "<" || range[cursor] === ">") {
|
|
8490
|
+
cursor++;
|
|
8491
|
+
} else if (!isVersionPrefix(range[cursor]) && !isVersionStart(range[cursor])) {
|
|
8492
|
+
cursor++;
|
|
8493
|
+
continue;
|
|
8494
|
+
}
|
|
8495
|
+
while (cursor < range.length && isVersionPrefix(range[cursor])) {
|
|
8496
|
+
cursor++;
|
|
8497
|
+
}
|
|
8498
|
+
if (!isVersionStart(range[cursor])) {
|
|
8499
|
+
continue;
|
|
8500
|
+
}
|
|
8501
|
+
const whitespacePosition = findRemovableWhitespaceIndex(range, matchStart);
|
|
8502
|
+
if (whitespacePosition !== -1) {
|
|
8503
|
+
result += range.slice(copyFrom, whitespacePosition);
|
|
8504
|
+
copyFrom = whitespacePosition + 1;
|
|
8505
|
+
}
|
|
8506
|
+
cursor = findVersionEndIndex(range, cursor, digitRuns);
|
|
8507
|
+
}
|
|
8508
|
+
return result + range.slice(copyFrom);
|
|
8509
|
+
};
|
|
8510
|
+
module.exports = trimComparatorWhitespace;
|
|
8511
|
+
}
|
|
8512
|
+
});
|
|
8513
|
+
|
|
8514
|
+
// ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/classes/range.js
|
|
8515
|
+
var require_range = __commonJS({
|
|
8516
|
+
"../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/classes/range.js"(exports, module) {
|
|
8517
|
+
"use strict";
|
|
8518
|
+
var SPACE_CHARACTERS = /\s+/g;
|
|
8519
|
+
var Range = class _Range {
|
|
8520
|
+
constructor(range, options) {
|
|
8521
|
+
options = parseOptions(options);
|
|
8522
|
+
if (range instanceof _Range) {
|
|
8523
|
+
if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) {
|
|
8524
|
+
return range;
|
|
8525
|
+
} else {
|
|
8526
|
+
return new _Range(range.raw, options);
|
|
8527
|
+
}
|
|
8528
|
+
}
|
|
8529
|
+
if (range instanceof Comparator) {
|
|
8530
|
+
this.raw = range.value;
|
|
8531
|
+
this.set = [[range]];
|
|
8532
|
+
this.formatted = void 0;
|
|
8533
|
+
return this;
|
|
8534
|
+
}
|
|
8535
|
+
this.options = options;
|
|
8536
|
+
this.loose = !!options.loose;
|
|
8537
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
8538
|
+
this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
|
|
8539
|
+
this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
|
|
8540
|
+
if (!this.set.length) {
|
|
8541
|
+
throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
8542
|
+
}
|
|
8543
|
+
if (this.set.length > 1) {
|
|
8544
|
+
const first = this.set[0];
|
|
8545
|
+
this.set = this.set.filter((c) => !isNullSet(c[0]));
|
|
8546
|
+
if (this.set.length === 0) {
|
|
8547
|
+
this.set = [first];
|
|
8548
|
+
} else if (this.set.length > 1) {
|
|
8549
|
+
for (const c of this.set) {
|
|
8550
|
+
if (c.length === 1 && isAny(c[0])) {
|
|
8551
|
+
this.set = [c];
|
|
8552
|
+
break;
|
|
8553
|
+
}
|
|
8554
|
+
}
|
|
8555
|
+
}
|
|
8556
|
+
}
|
|
8557
|
+
this.formatted = void 0;
|
|
8558
|
+
}
|
|
8559
|
+
get range() {
|
|
8560
|
+
if (this.formatted === void 0) {
|
|
8561
|
+
this.formatted = "";
|
|
8562
|
+
for (let i = 0; i < this.set.length; i++) {
|
|
8563
|
+
if (i > 0) {
|
|
8564
|
+
this.formatted += "||";
|
|
8565
|
+
}
|
|
8566
|
+
const comps = this.set[i];
|
|
8567
|
+
for (let k = 0; k < comps.length; k++) {
|
|
8568
|
+
if (k > 0) {
|
|
8569
|
+
this.formatted += " ";
|
|
8570
|
+
}
|
|
8571
|
+
this.formatted += comps[k].toString().trim();
|
|
8572
|
+
}
|
|
8573
|
+
}
|
|
8574
|
+
}
|
|
8575
|
+
return this.formatted;
|
|
8576
|
+
}
|
|
8577
|
+
format() {
|
|
8578
|
+
return this.range;
|
|
8579
|
+
}
|
|
8580
|
+
toString() {
|
|
8581
|
+
return this.range;
|
|
8582
|
+
}
|
|
8583
|
+
parseRange(range) {
|
|
8584
|
+
range = range.replace(BUILDSTRIPRE, "");
|
|
8585
|
+
const memoOpts = (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE);
|
|
8586
|
+
const memoKey = memoOpts + ":" + range;
|
|
8587
|
+
const cached = cache.get(memoKey);
|
|
8588
|
+
if (cached) {
|
|
8589
|
+
return cached;
|
|
8590
|
+
}
|
|
8591
|
+
const loose = this.options.loose;
|
|
8592
|
+
const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
|
|
8593
|
+
range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
|
|
8594
|
+
debug("hyphen replace", range);
|
|
8595
|
+
range = trimComparatorWhitespace(range);
|
|
8596
|
+
debug("comparator trim", range);
|
|
8597
|
+
range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
|
|
8598
|
+
debug("tilde trim", range);
|
|
8599
|
+
range = range.replace(re[t.CARETTRIM], caretTrimReplace);
|
|
8600
|
+
debug("caret trim", range);
|
|
8601
|
+
let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
|
|
8602
|
+
if (loose) {
|
|
8603
|
+
rangeList = rangeList.filter((comp) => {
|
|
8604
|
+
debug("loose invalid filter", comp, this.options);
|
|
8605
|
+
return !!comp.match(re[t.COMPARATORLOOSE]);
|
|
8606
|
+
});
|
|
8607
|
+
}
|
|
8608
|
+
debug("range list", rangeList);
|
|
8609
|
+
const rangeMap = /* @__PURE__ */ new Map();
|
|
8610
|
+
const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
|
|
8611
|
+
for (const comp of comparators) {
|
|
8612
|
+
if (isNullSet(comp)) {
|
|
8613
|
+
return [comp];
|
|
8614
|
+
}
|
|
8615
|
+
rangeMap.set(comp.value, comp);
|
|
8616
|
+
}
|
|
8617
|
+
if (rangeMap.size > 1 && rangeMap.has("")) {
|
|
8618
|
+
rangeMap.delete("");
|
|
8619
|
+
}
|
|
8620
|
+
const result = [...rangeMap.values()];
|
|
8621
|
+
cache.set(memoKey, result);
|
|
8622
|
+
return result;
|
|
8623
|
+
}
|
|
8624
|
+
intersects(range, options) {
|
|
8625
|
+
if (!(range instanceof _Range)) {
|
|
8626
|
+
throw new TypeError("a Range is required");
|
|
8627
|
+
}
|
|
8628
|
+
return this.set.some((thisComparators) => {
|
|
8629
|
+
return isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => {
|
|
8630
|
+
return isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => {
|
|
8631
|
+
return rangeComparators.every((rangeComparator) => {
|
|
8632
|
+
return thisComparator.intersects(rangeComparator, options);
|
|
8633
|
+
});
|
|
8634
|
+
});
|
|
8635
|
+
});
|
|
8636
|
+
});
|
|
8637
|
+
}
|
|
8638
|
+
// if ANY of the sets match ALL of its comparators, then pass
|
|
8639
|
+
test(version2) {
|
|
8640
|
+
if (!version2) {
|
|
8641
|
+
return false;
|
|
8642
|
+
}
|
|
8643
|
+
if (typeof version2 === "string") {
|
|
8644
|
+
try {
|
|
8645
|
+
version2 = new SemVer(version2, this.options);
|
|
8646
|
+
} catch (er) {
|
|
8647
|
+
return false;
|
|
8648
|
+
}
|
|
8649
|
+
}
|
|
8650
|
+
for (let i = 0; i < this.set.length; i++) {
|
|
8651
|
+
if (testSet(this.set[i], version2, this.options)) {
|
|
8652
|
+
return true;
|
|
8653
|
+
}
|
|
8654
|
+
}
|
|
8655
|
+
return false;
|
|
8656
|
+
}
|
|
8657
|
+
};
|
|
8658
|
+
module.exports = Range;
|
|
8659
|
+
var LRU = require_lrucache();
|
|
8660
|
+
var cache = new LRU();
|
|
8661
|
+
var parseOptions = require_parse_options();
|
|
8662
|
+
var Comparator = require_comparator();
|
|
8663
|
+
var debug = require_debug();
|
|
8664
|
+
var SemVer = require_semver();
|
|
8665
|
+
var trimComparatorWhitespace = require_trim_comparator_whitespace();
|
|
8666
|
+
var {
|
|
8667
|
+
safeRe: re,
|
|
8668
|
+
src,
|
|
8669
|
+
t,
|
|
8670
|
+
tildeTrimReplace,
|
|
8671
|
+
caretTrimReplace
|
|
8672
|
+
} = require_re();
|
|
8673
|
+
var { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants();
|
|
8674
|
+
var BUILDSTRIPRE = new RegExp(src[t.BUILD], "g");
|
|
8675
|
+
var isNullSet = (c) => c.value === "<0.0.0-0";
|
|
8676
|
+
var isAny = (c) => c.value === "";
|
|
8677
|
+
var isSatisfiable = (comparators, options) => {
|
|
8678
|
+
let result = true;
|
|
8679
|
+
const remainingComparators = comparators.slice();
|
|
8680
|
+
let testComparator = remainingComparators.pop();
|
|
8681
|
+
while (result && remainingComparators.length) {
|
|
8682
|
+
result = remainingComparators.every((otherComparator) => {
|
|
8683
|
+
return testComparator.intersects(otherComparator, options);
|
|
8684
|
+
});
|
|
8685
|
+
testComparator = remainingComparators.pop();
|
|
8686
|
+
}
|
|
8687
|
+
return result;
|
|
8688
|
+
};
|
|
8689
|
+
var parseComparator = (comp, options) => {
|
|
8690
|
+
comp = comp.replace(re[t.BUILD], "");
|
|
8691
|
+
debug("comp", comp, options);
|
|
8692
|
+
comp = replaceCarets(comp, options);
|
|
8693
|
+
debug("caret", comp);
|
|
8694
|
+
comp = replaceTildes(comp, options);
|
|
8695
|
+
debug("tildes", comp);
|
|
8696
|
+
comp = replaceXRanges(comp, options);
|
|
8697
|
+
debug("xrange", comp);
|
|
8698
|
+
comp = replaceStars(comp, options);
|
|
8699
|
+
debug("stars", comp);
|
|
8700
|
+
return comp;
|
|
8701
|
+
};
|
|
8702
|
+
var isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
|
|
8703
|
+
var invalidXRangeOrder = (M, m, p) => isX(M) && !isX(m) || isX(m) && p && !isX(p);
|
|
8704
|
+
var replaceTildes = (comp, options) => {
|
|
8705
|
+
return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
|
|
8706
|
+
};
|
|
8707
|
+
var replaceTilde = (comp, options) => {
|
|
8708
|
+
const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
|
|
8709
|
+
const z = options.includePrerelease ? "-0" : "";
|
|
8710
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
8711
|
+
debug("tilde", comp, _, M, m, p, pr);
|
|
8712
|
+
let ret;
|
|
8713
|
+
if (isX(M)) {
|
|
8714
|
+
ret = "";
|
|
8715
|
+
} else if (isX(m)) {
|
|
8716
|
+
ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
|
|
8717
|
+
} else if (isX(p)) {
|
|
8718
|
+
ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
|
|
8719
|
+
} else if (pr) {
|
|
8720
|
+
debug("replaceTilde pr", pr);
|
|
8721
|
+
ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
8722
|
+
} else {
|
|
8723
|
+
ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
|
|
8724
|
+
}
|
|
8725
|
+
debug("tilde return", ret);
|
|
8726
|
+
return ret;
|
|
8727
|
+
});
|
|
8728
|
+
};
|
|
8729
|
+
var replaceCarets = (comp, options) => {
|
|
8730
|
+
return comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" ");
|
|
8731
|
+
};
|
|
8732
|
+
var replaceCaret = (comp, options) => {
|
|
8733
|
+
debug("caret", comp, options);
|
|
8734
|
+
const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET];
|
|
8735
|
+
const z = options.includePrerelease ? "-0" : "";
|
|
8736
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
8737
|
+
debug("caret", comp, _, M, m, p, pr);
|
|
8738
|
+
let ret;
|
|
8739
|
+
if (isX(M)) {
|
|
8740
|
+
ret = "";
|
|
8741
|
+
} else if (isX(m)) {
|
|
8742
|
+
ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
|
|
8743
|
+
} else if (isX(p)) {
|
|
8744
|
+
if (M === "0") {
|
|
8745
|
+
ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
|
|
8746
|
+
} else {
|
|
8747
|
+
ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
|
|
8748
|
+
}
|
|
8749
|
+
} else if (pr) {
|
|
8750
|
+
debug("replaceCaret pr", pr);
|
|
8751
|
+
if (M === "0") {
|
|
8752
|
+
if (m === "0") {
|
|
8753
|
+
ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;
|
|
8754
|
+
} else {
|
|
8755
|
+
ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
8756
|
+
}
|
|
8757
|
+
} else {
|
|
8758
|
+
ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
|
|
8759
|
+
}
|
|
8760
|
+
} else {
|
|
8761
|
+
debug("no pr");
|
|
8762
|
+
if (M === "0") {
|
|
8763
|
+
if (m === "0") {
|
|
8764
|
+
ret = `>=${M}.${m}.${p} <${M}.${m}.${+p + 1}-0`;
|
|
8765
|
+
} else {
|
|
8766
|
+
ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
|
|
8767
|
+
}
|
|
8768
|
+
} else {
|
|
8769
|
+
ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
|
|
8770
|
+
}
|
|
8771
|
+
}
|
|
8772
|
+
debug("caret return", ret);
|
|
8773
|
+
return ret;
|
|
8774
|
+
});
|
|
8775
|
+
};
|
|
8776
|
+
var replaceXRanges = (comp, options) => {
|
|
8777
|
+
debug("replaceXRanges", comp, options);
|
|
8778
|
+
return comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ");
|
|
8779
|
+
};
|
|
8780
|
+
var replaceXRange = (comp, options) => {
|
|
8781
|
+
comp = comp.trim();
|
|
8782
|
+
const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
|
|
8783
|
+
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
|
|
8784
|
+
debug("xRange", comp, ret, gtlt, M, m, p, pr);
|
|
8785
|
+
if (invalidXRangeOrder(M, m, p)) {
|
|
8786
|
+
return comp;
|
|
8787
|
+
}
|
|
8788
|
+
const xM = isX(M);
|
|
8789
|
+
const xm = xM || isX(m);
|
|
8790
|
+
const xp = xm || isX(p);
|
|
8791
|
+
const anyX = xp;
|
|
8792
|
+
if (gtlt === "=" && anyX) {
|
|
8793
|
+
gtlt = "";
|
|
8794
|
+
}
|
|
8795
|
+
pr = options.includePrerelease ? "-0" : "";
|
|
8796
|
+
if (xM) {
|
|
8797
|
+
if (gtlt === ">" || gtlt === "<") {
|
|
8798
|
+
ret = "<0.0.0-0";
|
|
8799
|
+
} else {
|
|
8800
|
+
ret = "*";
|
|
8801
|
+
}
|
|
8802
|
+
} else if (gtlt && anyX) {
|
|
8803
|
+
if (xm) {
|
|
8804
|
+
m = 0;
|
|
8805
|
+
}
|
|
8806
|
+
p = 0;
|
|
8807
|
+
if (gtlt === ">") {
|
|
8808
|
+
gtlt = ">=";
|
|
8809
|
+
if (xm) {
|
|
8810
|
+
M = +M + 1;
|
|
8811
|
+
m = 0;
|
|
8812
|
+
p = 0;
|
|
8813
|
+
} else {
|
|
8814
|
+
m = +m + 1;
|
|
8815
|
+
p = 0;
|
|
8816
|
+
}
|
|
8817
|
+
} else if (gtlt === "<=") {
|
|
8818
|
+
gtlt = "<";
|
|
8819
|
+
if (xm) {
|
|
8820
|
+
M = +M + 1;
|
|
8821
|
+
} else {
|
|
8822
|
+
m = +m + 1;
|
|
8823
|
+
}
|
|
8824
|
+
}
|
|
8825
|
+
if (gtlt === "<") {
|
|
8826
|
+
pr = "-0";
|
|
8827
|
+
}
|
|
8828
|
+
ret = `${gtlt + M}.${m}.${p}${pr}`;
|
|
8829
|
+
} else if (xm) {
|
|
8830
|
+
ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
|
|
8831
|
+
} else if (xp) {
|
|
8832
|
+
ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;
|
|
8833
|
+
}
|
|
8834
|
+
debug("xRange return", ret);
|
|
8835
|
+
return ret;
|
|
8836
|
+
});
|
|
8837
|
+
};
|
|
8838
|
+
var replaceStars = (comp, options) => {
|
|
8839
|
+
debug("replaceStars", comp, options);
|
|
8840
|
+
return comp.trim().replace(re[t.STAR], "");
|
|
8841
|
+
};
|
|
8842
|
+
var replaceGTE0 = (comp, options) => {
|
|
8843
|
+
debug("replaceGTE0", comp, options);
|
|
8844
|
+
return comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
|
|
8845
|
+
};
|
|
8846
|
+
var hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
|
|
8847
|
+
if (isX(fM)) {
|
|
8848
|
+
from = "";
|
|
8849
|
+
} else if (isX(fm)) {
|
|
8850
|
+
from = `>=${fM}.0.0${incPr ? "-0" : ""}`;
|
|
8851
|
+
} else if (isX(fp)) {
|
|
8852
|
+
from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}`;
|
|
8853
|
+
} else if (fpr) {
|
|
8854
|
+
from = `>=${from}`;
|
|
8855
|
+
} else {
|
|
8856
|
+
from = `>=${from}${incPr ? "-0" : ""}`;
|
|
8857
|
+
}
|
|
8858
|
+
if (isX(tM)) {
|
|
8859
|
+
to = "";
|
|
8860
|
+
} else if (isX(tm)) {
|
|
8861
|
+
to = `<${+tM + 1}.0.0-0`;
|
|
8862
|
+
} else if (isX(tp)) {
|
|
8863
|
+
to = `<${tM}.${+tm + 1}.0-0`;
|
|
8864
|
+
} else if (tpr) {
|
|
8865
|
+
to = `<=${tM}.${tm}.${tp}-${tpr}`;
|
|
8866
|
+
} else if (incPr) {
|
|
8867
|
+
to = `<${tM}.${tm}.${+tp + 1}-0`;
|
|
8868
|
+
} else {
|
|
8869
|
+
to = `<=${to}`;
|
|
8870
|
+
}
|
|
8871
|
+
return `${from} ${to}`.trim();
|
|
8872
|
+
};
|
|
8873
|
+
var testSet = (set, version2, options) => {
|
|
8874
|
+
for (let i = 0; i < set.length; i++) {
|
|
8875
|
+
if (!set[i].test(version2)) {
|
|
8876
|
+
return false;
|
|
8877
|
+
}
|
|
8878
|
+
}
|
|
8879
|
+
if (version2.prerelease.length && !options.includePrerelease) {
|
|
8880
|
+
for (let i = 0; i < set.length; i++) {
|
|
8881
|
+
debug(set[i].semver);
|
|
8882
|
+
if (set[i].semver === Comparator.ANY) {
|
|
8883
|
+
continue;
|
|
8884
|
+
}
|
|
8885
|
+
if (set[i].semver.prerelease.length > 0) {
|
|
8886
|
+
const allowed = set[i].semver;
|
|
8887
|
+
if (allowed.major === version2.major && allowed.minor === version2.minor && allowed.patch === version2.patch) {
|
|
8888
|
+
return true;
|
|
8889
|
+
}
|
|
8890
|
+
}
|
|
8891
|
+
}
|
|
8892
|
+
return false;
|
|
8893
|
+
}
|
|
8894
|
+
return true;
|
|
8895
|
+
};
|
|
8896
|
+
}
|
|
8897
|
+
});
|
|
8898
|
+
|
|
8899
|
+
// ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/classes/comparator.js
|
|
8900
|
+
var require_comparator = __commonJS({
|
|
8901
|
+
"../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/classes/comparator.js"(exports, module) {
|
|
8902
|
+
"use strict";
|
|
8903
|
+
var ANY = /* @__PURE__ */ Symbol("SemVer ANY");
|
|
8904
|
+
var Comparator = class _Comparator {
|
|
8905
|
+
static get ANY() {
|
|
8906
|
+
return ANY;
|
|
8907
|
+
}
|
|
8908
|
+
constructor(comp, options) {
|
|
8909
|
+
options = parseOptions(options);
|
|
8910
|
+
if (comp instanceof _Comparator) {
|
|
8911
|
+
if (comp.loose === !!options.loose) {
|
|
8912
|
+
return comp;
|
|
8913
|
+
} else {
|
|
8914
|
+
comp = comp.value;
|
|
8915
|
+
}
|
|
8916
|
+
}
|
|
8917
|
+
comp = comp.trim().split(/\s+/).join(" ");
|
|
8918
|
+
debug("comparator", comp, options);
|
|
8919
|
+
this.options = options;
|
|
8920
|
+
this.loose = !!options.loose;
|
|
8921
|
+
this.parse(comp);
|
|
8922
|
+
if (this.semver === ANY) {
|
|
8923
|
+
this.value = "";
|
|
8924
|
+
} else {
|
|
8925
|
+
this.value = this.operator + this.semver.version;
|
|
8926
|
+
}
|
|
8927
|
+
debug("comp", this);
|
|
8928
|
+
}
|
|
8929
|
+
parse(comp) {
|
|
8930
|
+
const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR];
|
|
8931
|
+
const m = comp.match(r);
|
|
8932
|
+
if (!m) {
|
|
8933
|
+
throw new TypeError(`Invalid comparator: ${comp}`);
|
|
8934
|
+
}
|
|
8935
|
+
this.operator = m[1] !== void 0 ? m[1] : "";
|
|
8936
|
+
if (this.operator === "=") {
|
|
8937
|
+
this.operator = "";
|
|
8938
|
+
}
|
|
8939
|
+
if (!m[2]) {
|
|
8940
|
+
this.semver = ANY;
|
|
8941
|
+
} else {
|
|
8942
|
+
this.semver = new SemVer(m[2], this.options.loose);
|
|
8943
|
+
}
|
|
8944
|
+
}
|
|
8945
|
+
toString() {
|
|
8946
|
+
return this.value;
|
|
8947
|
+
}
|
|
8948
|
+
test(version2) {
|
|
8949
|
+
debug("Comparator.test", version2, this.options.loose);
|
|
8950
|
+
if (this.semver === ANY || version2 === ANY) {
|
|
8951
|
+
return true;
|
|
8952
|
+
}
|
|
8953
|
+
if (typeof version2 === "string") {
|
|
8954
|
+
try {
|
|
8955
|
+
version2 = new SemVer(version2, this.options);
|
|
8956
|
+
} catch (er) {
|
|
8957
|
+
return false;
|
|
8958
|
+
}
|
|
8959
|
+
}
|
|
8960
|
+
return cmp(version2, this.operator, this.semver, this.options);
|
|
8961
|
+
}
|
|
8962
|
+
intersects(comp, options) {
|
|
8963
|
+
if (!(comp instanceof _Comparator)) {
|
|
8964
|
+
throw new TypeError("a Comparator is required");
|
|
8965
|
+
}
|
|
8966
|
+
if (this.operator === "") {
|
|
8967
|
+
if (this.value === "") {
|
|
8968
|
+
return true;
|
|
8969
|
+
}
|
|
8970
|
+
return new Range(comp.value, options).test(this.value);
|
|
8971
|
+
} else if (comp.operator === "") {
|
|
8972
|
+
if (comp.value === "") {
|
|
8973
|
+
return true;
|
|
8974
|
+
}
|
|
8975
|
+
return new Range(this.value, options).test(comp.semver);
|
|
8976
|
+
}
|
|
8977
|
+
options = parseOptions(options);
|
|
8978
|
+
if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) {
|
|
8979
|
+
return false;
|
|
8980
|
+
}
|
|
8981
|
+
if (!options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0"))) {
|
|
8982
|
+
return false;
|
|
8983
|
+
}
|
|
8984
|
+
if (this.operator.startsWith(">") && comp.operator.startsWith(">")) {
|
|
8985
|
+
return true;
|
|
8986
|
+
}
|
|
8987
|
+
if (this.operator.startsWith("<") && comp.operator.startsWith("<")) {
|
|
8988
|
+
return true;
|
|
8989
|
+
}
|
|
8990
|
+
if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) {
|
|
8991
|
+
return true;
|
|
8992
|
+
}
|
|
8993
|
+
if (cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) {
|
|
8994
|
+
return true;
|
|
8995
|
+
}
|
|
8996
|
+
if (cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) {
|
|
8997
|
+
return true;
|
|
8998
|
+
}
|
|
8999
|
+
return false;
|
|
9000
|
+
}
|
|
9001
|
+
};
|
|
9002
|
+
module.exports = Comparator;
|
|
9003
|
+
var parseOptions = require_parse_options();
|
|
9004
|
+
var { safeRe: re, t } = require_re();
|
|
9005
|
+
var cmp = require_cmp();
|
|
9006
|
+
var debug = require_debug();
|
|
9007
|
+
var SemVer = require_semver();
|
|
9008
|
+
var Range = require_range();
|
|
9009
|
+
}
|
|
9010
|
+
});
|
|
9011
|
+
|
|
9012
|
+
// ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/satisfies.js
|
|
9013
|
+
var require_satisfies = __commonJS({
|
|
9014
|
+
"../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/satisfies.js"(exports, module) {
|
|
9015
|
+
"use strict";
|
|
9016
|
+
var Range = require_range();
|
|
9017
|
+
var satisfies = (version2, range, options) => {
|
|
9018
|
+
try {
|
|
9019
|
+
range = new Range(range, options);
|
|
9020
|
+
} catch (er) {
|
|
9021
|
+
return false;
|
|
9022
|
+
}
|
|
9023
|
+
return range.test(version2);
|
|
9024
|
+
};
|
|
9025
|
+
module.exports = satisfies;
|
|
9026
|
+
}
|
|
9027
|
+
});
|
|
9028
|
+
|
|
9029
|
+
// ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/ranges/to-comparators.js
|
|
9030
|
+
var require_to_comparators = __commonJS({
|
|
9031
|
+
"../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/ranges/to-comparators.js"(exports, module) {
|
|
9032
|
+
"use strict";
|
|
9033
|
+
var Range = require_range();
|
|
9034
|
+
var toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
9035
|
+
module.exports = toComparators;
|
|
9036
|
+
}
|
|
9037
|
+
});
|
|
9038
|
+
|
|
9039
|
+
// ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/ranges/max-satisfying.js
|
|
9040
|
+
var require_max_satisfying = __commonJS({
|
|
9041
|
+
"../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/ranges/max-satisfying.js"(exports, module) {
|
|
9042
|
+
"use strict";
|
|
9043
|
+
var SemVer = require_semver();
|
|
9044
|
+
var Range = require_range();
|
|
9045
|
+
var maxSatisfying = (versions, range, options) => {
|
|
9046
|
+
let max = null;
|
|
9047
|
+
let maxSV = null;
|
|
9048
|
+
let rangeObj = null;
|
|
9049
|
+
try {
|
|
9050
|
+
rangeObj = new Range(range, options);
|
|
9051
|
+
} catch (er) {
|
|
9052
|
+
return null;
|
|
9053
|
+
}
|
|
9054
|
+
versions.forEach((v) => {
|
|
9055
|
+
if (rangeObj.test(v)) {
|
|
9056
|
+
if (!max || maxSV.compare(v) === -1) {
|
|
9057
|
+
max = v;
|
|
9058
|
+
maxSV = new SemVer(max, options);
|
|
9059
|
+
}
|
|
9060
|
+
}
|
|
9061
|
+
});
|
|
9062
|
+
return max;
|
|
9063
|
+
};
|
|
9064
|
+
module.exports = maxSatisfying;
|
|
9065
|
+
}
|
|
9066
|
+
});
|
|
9067
|
+
|
|
9068
|
+
// ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/ranges/min-satisfying.js
|
|
9069
|
+
var require_min_satisfying = __commonJS({
|
|
9070
|
+
"../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/ranges/min-satisfying.js"(exports, module) {
|
|
9071
|
+
"use strict";
|
|
9072
|
+
var SemVer = require_semver();
|
|
9073
|
+
var Range = require_range();
|
|
9074
|
+
var minSatisfying = (versions, range, options) => {
|
|
9075
|
+
let min = null;
|
|
9076
|
+
let minSV = null;
|
|
9077
|
+
let rangeObj = null;
|
|
9078
|
+
try {
|
|
9079
|
+
rangeObj = new Range(range, options);
|
|
9080
|
+
} catch (er) {
|
|
9081
|
+
return null;
|
|
9082
|
+
}
|
|
9083
|
+
versions.forEach((v) => {
|
|
9084
|
+
if (rangeObj.test(v)) {
|
|
9085
|
+
if (!min || minSV.compare(v) === 1) {
|
|
9086
|
+
min = v;
|
|
9087
|
+
minSV = new SemVer(min, options);
|
|
9088
|
+
}
|
|
9089
|
+
}
|
|
9090
|
+
});
|
|
9091
|
+
return min;
|
|
9092
|
+
};
|
|
9093
|
+
module.exports = minSatisfying;
|
|
9094
|
+
}
|
|
9095
|
+
});
|
|
9096
|
+
|
|
9097
|
+
// ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/ranges/min-version.js
|
|
9098
|
+
var require_min_version = __commonJS({
|
|
9099
|
+
"../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/ranges/min-version.js"(exports, module) {
|
|
9100
|
+
"use strict";
|
|
9101
|
+
var SemVer = require_semver();
|
|
9102
|
+
var Range = require_range();
|
|
9103
|
+
var gt = require_gt();
|
|
9104
|
+
var minVersion = (range, loose) => {
|
|
9105
|
+
range = new Range(range, loose);
|
|
9106
|
+
let minver = new SemVer("0.0.0");
|
|
9107
|
+
if (range.test(minver)) {
|
|
9108
|
+
return minver;
|
|
9109
|
+
}
|
|
9110
|
+
minver = new SemVer("0.0.0-0");
|
|
9111
|
+
if (range.test(minver)) {
|
|
9112
|
+
return minver;
|
|
9113
|
+
}
|
|
9114
|
+
minver = null;
|
|
9115
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
9116
|
+
const comparators = range.set[i];
|
|
9117
|
+
let setMin = null;
|
|
9118
|
+
comparators.forEach((comparator) => {
|
|
9119
|
+
const compver = new SemVer(comparator.semver.version);
|
|
9120
|
+
switch (comparator.operator) {
|
|
9121
|
+
case ">":
|
|
9122
|
+
if (compver.prerelease.length === 0) {
|
|
9123
|
+
compver.patch++;
|
|
9124
|
+
} else {
|
|
9125
|
+
compver.prerelease.push(0);
|
|
9126
|
+
}
|
|
9127
|
+
compver.raw = compver.format();
|
|
9128
|
+
/* fallthrough */
|
|
9129
|
+
case "":
|
|
9130
|
+
case ">=":
|
|
9131
|
+
if (!setMin || gt(compver, setMin)) {
|
|
9132
|
+
setMin = compver;
|
|
9133
|
+
}
|
|
9134
|
+
break;
|
|
9135
|
+
case "<":
|
|
9136
|
+
case "<=":
|
|
9137
|
+
break;
|
|
9138
|
+
/* istanbul ignore next */
|
|
9139
|
+
default:
|
|
9140
|
+
throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
9141
|
+
}
|
|
9142
|
+
});
|
|
9143
|
+
if (setMin && (!minver || gt(minver, setMin))) {
|
|
9144
|
+
minver = setMin;
|
|
9145
|
+
}
|
|
9146
|
+
}
|
|
9147
|
+
if (minver && range.test(minver)) {
|
|
9148
|
+
return minver;
|
|
9149
|
+
}
|
|
9150
|
+
return null;
|
|
9151
|
+
};
|
|
9152
|
+
module.exports = minVersion;
|
|
9153
|
+
}
|
|
9154
|
+
});
|
|
9155
|
+
|
|
9156
|
+
// ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/ranges/valid.js
|
|
9157
|
+
var require_valid2 = __commonJS({
|
|
9158
|
+
"../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/ranges/valid.js"(exports, module) {
|
|
9159
|
+
"use strict";
|
|
9160
|
+
var Range = require_range();
|
|
9161
|
+
var validRange = (range, options) => {
|
|
9162
|
+
try {
|
|
9163
|
+
return new Range(range, options).range || "*";
|
|
9164
|
+
} catch (er) {
|
|
9165
|
+
return null;
|
|
9166
|
+
}
|
|
9167
|
+
};
|
|
9168
|
+
module.exports = validRange;
|
|
9169
|
+
}
|
|
9170
|
+
});
|
|
9171
|
+
|
|
9172
|
+
// ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/ranges/outside.js
|
|
9173
|
+
var require_outside = __commonJS({
|
|
9174
|
+
"../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/ranges/outside.js"(exports, module) {
|
|
9175
|
+
"use strict";
|
|
9176
|
+
var SemVer = require_semver();
|
|
9177
|
+
var Comparator = require_comparator();
|
|
9178
|
+
var { ANY } = Comparator;
|
|
9179
|
+
var Range = require_range();
|
|
9180
|
+
var satisfies = require_satisfies();
|
|
9181
|
+
var gt = require_gt();
|
|
9182
|
+
var lt = require_lt();
|
|
9183
|
+
var lte = require_lte();
|
|
9184
|
+
var gte = require_gte();
|
|
9185
|
+
var outside = (version2, range, hilo, options) => {
|
|
9186
|
+
version2 = new SemVer(version2, options);
|
|
9187
|
+
range = new Range(range, options);
|
|
9188
|
+
let gtfn, ltefn, ltfn, comp, ecomp;
|
|
9189
|
+
switch (hilo) {
|
|
9190
|
+
case ">":
|
|
9191
|
+
gtfn = gt;
|
|
9192
|
+
ltefn = lte;
|
|
9193
|
+
ltfn = lt;
|
|
9194
|
+
comp = ">";
|
|
9195
|
+
ecomp = ">=";
|
|
9196
|
+
break;
|
|
9197
|
+
case "<":
|
|
9198
|
+
gtfn = lt;
|
|
9199
|
+
ltefn = gte;
|
|
9200
|
+
ltfn = gt;
|
|
9201
|
+
comp = "<";
|
|
9202
|
+
ecomp = "<=";
|
|
9203
|
+
break;
|
|
9204
|
+
default:
|
|
9205
|
+
throw new TypeError('Must provide a hilo val of "<" or ">"');
|
|
9206
|
+
}
|
|
9207
|
+
if (satisfies(version2, range, options)) {
|
|
9208
|
+
return false;
|
|
9209
|
+
}
|
|
9210
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
9211
|
+
const comparators = range.set[i];
|
|
9212
|
+
let high = null;
|
|
9213
|
+
let low = null;
|
|
9214
|
+
comparators.forEach((comparator) => {
|
|
9215
|
+
if (comparator.semver === ANY) {
|
|
9216
|
+
comparator = new Comparator(">=0.0.0");
|
|
9217
|
+
}
|
|
9218
|
+
high = high || comparator;
|
|
9219
|
+
low = low || comparator;
|
|
9220
|
+
if (gtfn(comparator.semver, high.semver, options)) {
|
|
9221
|
+
high = comparator;
|
|
9222
|
+
} else if (ltfn(comparator.semver, low.semver, options)) {
|
|
9223
|
+
low = comparator;
|
|
9224
|
+
}
|
|
9225
|
+
});
|
|
9226
|
+
if (high.operator === comp || high.operator === ecomp) {
|
|
9227
|
+
return false;
|
|
9228
|
+
}
|
|
9229
|
+
if ((!low.operator || low.operator === comp) && ltefn(version2, low.semver)) {
|
|
9230
|
+
return false;
|
|
9231
|
+
} else if (low.operator === ecomp && ltfn(version2, low.semver)) {
|
|
9232
|
+
return false;
|
|
9233
|
+
}
|
|
9234
|
+
}
|
|
9235
|
+
return true;
|
|
9236
|
+
};
|
|
9237
|
+
module.exports = outside;
|
|
9238
|
+
}
|
|
9239
|
+
});
|
|
9240
|
+
|
|
9241
|
+
// ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/ranges/gtr.js
|
|
9242
|
+
var require_gtr = __commonJS({
|
|
9243
|
+
"../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/ranges/gtr.js"(exports, module) {
|
|
9244
|
+
"use strict";
|
|
9245
|
+
var outside = require_outside();
|
|
9246
|
+
var gtr = (version2, range, options) => outside(version2, range, ">", options);
|
|
9247
|
+
module.exports = gtr;
|
|
9248
|
+
}
|
|
9249
|
+
});
|
|
9250
|
+
|
|
9251
|
+
// ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/ranges/ltr.js
|
|
9252
|
+
var require_ltr = __commonJS({
|
|
9253
|
+
"../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/ranges/ltr.js"(exports, module) {
|
|
9254
|
+
"use strict";
|
|
9255
|
+
var outside = require_outside();
|
|
9256
|
+
var ltr = (version2, range, options) => outside(version2, range, "<", options);
|
|
9257
|
+
module.exports = ltr;
|
|
9258
|
+
}
|
|
9259
|
+
});
|
|
9260
|
+
|
|
9261
|
+
// ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/ranges/intersects.js
|
|
9262
|
+
var require_intersects = __commonJS({
|
|
9263
|
+
"../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/ranges/intersects.js"(exports, module) {
|
|
9264
|
+
"use strict";
|
|
9265
|
+
var Range = require_range();
|
|
9266
|
+
var intersects = (r1, r2, options) => {
|
|
9267
|
+
r1 = new Range(r1, options);
|
|
9268
|
+
r2 = new Range(r2, options);
|
|
9269
|
+
return r1.intersects(r2, options);
|
|
9270
|
+
};
|
|
9271
|
+
module.exports = intersects;
|
|
9272
|
+
}
|
|
9273
|
+
});
|
|
9274
|
+
|
|
9275
|
+
// ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/ranges/simplify.js
|
|
9276
|
+
var require_simplify = __commonJS({
|
|
9277
|
+
"../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/ranges/simplify.js"(exports, module) {
|
|
9278
|
+
"use strict";
|
|
9279
|
+
var satisfies = require_satisfies();
|
|
9280
|
+
var compare = require_compare();
|
|
9281
|
+
module.exports = (versions, range, options) => {
|
|
9282
|
+
const set = [];
|
|
9283
|
+
let first = null;
|
|
9284
|
+
let prev = null;
|
|
9285
|
+
const v = versions.sort((a, b) => compare(a, b, options));
|
|
9286
|
+
for (const version2 of v) {
|
|
9287
|
+
const included = satisfies(version2, range, options);
|
|
9288
|
+
if (included) {
|
|
9289
|
+
prev = version2;
|
|
9290
|
+
if (!first) {
|
|
9291
|
+
first = version2;
|
|
9292
|
+
}
|
|
9293
|
+
} else {
|
|
9294
|
+
if (prev) {
|
|
9295
|
+
set.push([first, prev]);
|
|
9296
|
+
}
|
|
9297
|
+
prev = null;
|
|
9298
|
+
first = null;
|
|
9299
|
+
}
|
|
9300
|
+
}
|
|
9301
|
+
if (first) {
|
|
9302
|
+
set.push([first, null]);
|
|
9303
|
+
}
|
|
9304
|
+
const ranges = [];
|
|
9305
|
+
for (const [min, max] of set) {
|
|
9306
|
+
if (min === max) {
|
|
9307
|
+
ranges.push(min);
|
|
9308
|
+
} else if (!max && min === v[0]) {
|
|
9309
|
+
ranges.push("*");
|
|
9310
|
+
} else if (!max) {
|
|
9311
|
+
ranges.push(`>=${min}`);
|
|
9312
|
+
} else if (min === v[0]) {
|
|
9313
|
+
ranges.push(`<=${max}`);
|
|
9314
|
+
} else {
|
|
9315
|
+
ranges.push(`${min} - ${max}`);
|
|
9316
|
+
}
|
|
9317
|
+
}
|
|
9318
|
+
const simplified = ranges.join(" || ");
|
|
9319
|
+
const original = typeof range.raw === "string" ? range.raw : String(range);
|
|
9320
|
+
return simplified.length < original.length ? simplified : range;
|
|
9321
|
+
};
|
|
9322
|
+
}
|
|
9323
|
+
});
|
|
9324
|
+
|
|
9325
|
+
// ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/ranges/subset.js
|
|
9326
|
+
var require_subset = __commonJS({
|
|
9327
|
+
"../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/ranges/subset.js"(exports, module) {
|
|
9328
|
+
"use strict";
|
|
9329
|
+
var Range = require_range();
|
|
9330
|
+
var Comparator = require_comparator();
|
|
9331
|
+
var { ANY } = Comparator;
|
|
9332
|
+
var satisfies = require_satisfies();
|
|
9333
|
+
var compare = require_compare();
|
|
9334
|
+
var subset = (sub, dom, options = {}) => {
|
|
9335
|
+
if (sub === dom) {
|
|
9336
|
+
return true;
|
|
9337
|
+
}
|
|
9338
|
+
sub = new Range(sub, options);
|
|
9339
|
+
dom = new Range(dom, options);
|
|
9340
|
+
let sawNonNull = false;
|
|
9341
|
+
OUTER: for (const simpleSub of sub.set) {
|
|
9342
|
+
for (const simpleDom of dom.set) {
|
|
9343
|
+
const isSub = simpleSubset(simpleSub, simpleDom, options);
|
|
9344
|
+
sawNonNull = sawNonNull || isSub !== null;
|
|
9345
|
+
if (isSub) {
|
|
9346
|
+
continue OUTER;
|
|
9347
|
+
}
|
|
9348
|
+
}
|
|
9349
|
+
if (sawNonNull) {
|
|
9350
|
+
return false;
|
|
9351
|
+
}
|
|
9352
|
+
}
|
|
9353
|
+
return true;
|
|
9354
|
+
};
|
|
9355
|
+
var minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")];
|
|
9356
|
+
var minimumVersion = [new Comparator(">=0.0.0")];
|
|
9357
|
+
var simpleSubset = (sub, dom, options) => {
|
|
9358
|
+
if (sub === dom) {
|
|
9359
|
+
return true;
|
|
9360
|
+
}
|
|
9361
|
+
if (sub.length === 1 && sub[0].semver === ANY) {
|
|
9362
|
+
if (dom.length === 1 && dom[0].semver === ANY) {
|
|
9363
|
+
return true;
|
|
9364
|
+
} else if (options.includePrerelease) {
|
|
9365
|
+
sub = minimumVersionWithPreRelease;
|
|
9366
|
+
} else {
|
|
9367
|
+
sub = minimumVersion;
|
|
9368
|
+
}
|
|
9369
|
+
}
|
|
9370
|
+
if (dom.length === 1 && dom[0].semver === ANY) {
|
|
9371
|
+
if (options.includePrerelease) {
|
|
9372
|
+
return true;
|
|
9373
|
+
} else {
|
|
9374
|
+
dom = minimumVersion;
|
|
9375
|
+
}
|
|
9376
|
+
}
|
|
9377
|
+
const eqSet = /* @__PURE__ */ new Set();
|
|
9378
|
+
let gt, lt;
|
|
9379
|
+
for (const c of sub) {
|
|
9380
|
+
if (c.operator === ">" || c.operator === ">=") {
|
|
9381
|
+
gt = higherGT(gt, c, options);
|
|
9382
|
+
} else if (c.operator === "<" || c.operator === "<=") {
|
|
9383
|
+
lt = lowerLT(lt, c, options);
|
|
9384
|
+
} else {
|
|
9385
|
+
eqSet.add(c.semver);
|
|
9386
|
+
}
|
|
9387
|
+
}
|
|
9388
|
+
if (eqSet.size > 1) {
|
|
9389
|
+
return null;
|
|
9390
|
+
}
|
|
9391
|
+
let gtltComp;
|
|
9392
|
+
if (gt && lt) {
|
|
9393
|
+
gtltComp = compare(gt.semver, lt.semver, options);
|
|
9394
|
+
if (gtltComp > 0) {
|
|
9395
|
+
return null;
|
|
9396
|
+
} else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) {
|
|
9397
|
+
return null;
|
|
9398
|
+
}
|
|
9399
|
+
}
|
|
9400
|
+
for (const eq of eqSet) {
|
|
9401
|
+
if (gt && !satisfies(eq, String(gt), options)) {
|
|
9402
|
+
return null;
|
|
9403
|
+
}
|
|
9404
|
+
if (lt && !satisfies(eq, String(lt), options)) {
|
|
9405
|
+
return null;
|
|
9406
|
+
}
|
|
9407
|
+
for (const c of dom) {
|
|
9408
|
+
if (!satisfies(eq, String(c), options)) {
|
|
9409
|
+
return false;
|
|
9410
|
+
}
|
|
9411
|
+
}
|
|
9412
|
+
return true;
|
|
9413
|
+
}
|
|
9414
|
+
let higher, lower;
|
|
9415
|
+
let hasDomLT, hasDomGT;
|
|
9416
|
+
let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;
|
|
9417
|
+
let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;
|
|
9418
|
+
if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0) {
|
|
9419
|
+
needDomLTPre = false;
|
|
9420
|
+
}
|
|
9421
|
+
for (const c of dom) {
|
|
9422
|
+
hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=";
|
|
9423
|
+
hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=";
|
|
9424
|
+
if (gt) {
|
|
9425
|
+
if (needDomGTPre) {
|
|
9426
|
+
if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomGTPre.major && c.semver.minor === needDomGTPre.minor && c.semver.patch === needDomGTPre.patch) {
|
|
9427
|
+
needDomGTPre = false;
|
|
9428
|
+
}
|
|
9429
|
+
}
|
|
9430
|
+
if (c.operator === ">" || c.operator === ">=") {
|
|
9431
|
+
higher = higherGT(gt, c, options);
|
|
9432
|
+
if (higher === c && higher !== gt) {
|
|
9433
|
+
return false;
|
|
9434
|
+
}
|
|
9435
|
+
} else if (gt.operator === ">=" && !c.test(gt.semver)) {
|
|
9436
|
+
return false;
|
|
9437
|
+
}
|
|
9438
|
+
}
|
|
9439
|
+
if (lt) {
|
|
9440
|
+
if (needDomLTPre) {
|
|
9441
|
+
if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomLTPre.major && c.semver.minor === needDomLTPre.minor && c.semver.patch === needDomLTPre.patch) {
|
|
9442
|
+
needDomLTPre = false;
|
|
9443
|
+
}
|
|
9444
|
+
}
|
|
9445
|
+
if (c.operator === "<" || c.operator === "<=") {
|
|
9446
|
+
lower = lowerLT(lt, c, options);
|
|
9447
|
+
if (lower === c && lower !== lt) {
|
|
9448
|
+
return false;
|
|
9449
|
+
}
|
|
9450
|
+
} else if (lt.operator === "<=" && !c.test(lt.semver)) {
|
|
9451
|
+
return false;
|
|
9452
|
+
}
|
|
9453
|
+
}
|
|
9454
|
+
if (!c.operator && (lt || gt) && gtltComp !== 0) {
|
|
9455
|
+
return false;
|
|
9456
|
+
}
|
|
9457
|
+
}
|
|
9458
|
+
if (gt && hasDomLT && !lt && gtltComp !== 0) {
|
|
9459
|
+
return false;
|
|
9460
|
+
}
|
|
9461
|
+
if (lt && hasDomGT && !gt && gtltComp !== 0) {
|
|
9462
|
+
return false;
|
|
9463
|
+
}
|
|
9464
|
+
if (needDomGTPre || needDomLTPre) {
|
|
9465
|
+
return false;
|
|
9466
|
+
}
|
|
9467
|
+
return true;
|
|
9468
|
+
};
|
|
9469
|
+
var higherGT = (a, b, options) => {
|
|
9470
|
+
if (!a) {
|
|
9471
|
+
return b;
|
|
9472
|
+
}
|
|
9473
|
+
const comp = compare(a.semver, b.semver, options);
|
|
9474
|
+
return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
|
|
9475
|
+
};
|
|
9476
|
+
var lowerLT = (a, b, options) => {
|
|
9477
|
+
if (!a) {
|
|
9478
|
+
return b;
|
|
9479
|
+
}
|
|
9480
|
+
const comp = compare(a.semver, b.semver, options);
|
|
9481
|
+
return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
|
|
9482
|
+
};
|
|
9483
|
+
module.exports = subset;
|
|
9484
|
+
}
|
|
9485
|
+
});
|
|
9486
|
+
|
|
9487
|
+
// ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/index.js
|
|
9488
|
+
var require_semver2 = __commonJS({
|
|
9489
|
+
"../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/index.js"(exports, module) {
|
|
9490
|
+
"use strict";
|
|
9491
|
+
var internalRe = require_re();
|
|
9492
|
+
var constants = require_constants();
|
|
9493
|
+
var SemVer = require_semver();
|
|
9494
|
+
var identifiers = require_identifiers();
|
|
9495
|
+
var parse7 = require_parse();
|
|
9496
|
+
var valid = require_valid();
|
|
9497
|
+
var clean = require_clean();
|
|
9498
|
+
var inc = require_inc();
|
|
9499
|
+
var diff = require_diff();
|
|
9500
|
+
var major = require_major();
|
|
9501
|
+
var minor = require_minor();
|
|
9502
|
+
var patch = require_patch();
|
|
9503
|
+
var prerelease = require_prerelease();
|
|
9504
|
+
var compare = require_compare();
|
|
9505
|
+
var rcompare = require_rcompare();
|
|
9506
|
+
var compareLoose = require_compare_loose();
|
|
9507
|
+
var compareBuild = require_compare_build();
|
|
9508
|
+
var sort = require_sort();
|
|
9509
|
+
var rsort = require_rsort();
|
|
9510
|
+
var gt = require_gt();
|
|
9511
|
+
var lt = require_lt();
|
|
9512
|
+
var eq = require_eq();
|
|
9513
|
+
var neq = require_neq();
|
|
9514
|
+
var gte = require_gte();
|
|
9515
|
+
var lte = require_lte();
|
|
9516
|
+
var cmp = require_cmp();
|
|
9517
|
+
var coerce = require_coerce();
|
|
9518
|
+
var truncate = require_truncate();
|
|
9519
|
+
var Comparator = require_comparator();
|
|
9520
|
+
var Range = require_range();
|
|
9521
|
+
var satisfies = require_satisfies();
|
|
9522
|
+
var toComparators = require_to_comparators();
|
|
9523
|
+
var maxSatisfying = require_max_satisfying();
|
|
9524
|
+
var minSatisfying = require_min_satisfying();
|
|
9525
|
+
var minVersion = require_min_version();
|
|
9526
|
+
var validRange = require_valid2();
|
|
9527
|
+
var outside = require_outside();
|
|
9528
|
+
var gtr = require_gtr();
|
|
9529
|
+
var ltr = require_ltr();
|
|
9530
|
+
var intersects = require_intersects();
|
|
9531
|
+
var simplifyRange = require_simplify();
|
|
9532
|
+
var subset = require_subset();
|
|
9533
|
+
module.exports = {
|
|
9534
|
+
parse: parse7,
|
|
9535
|
+
valid,
|
|
9536
|
+
clean,
|
|
9537
|
+
inc,
|
|
9538
|
+
diff,
|
|
9539
|
+
major,
|
|
9540
|
+
minor,
|
|
9541
|
+
patch,
|
|
9542
|
+
prerelease,
|
|
9543
|
+
compare,
|
|
9544
|
+
rcompare,
|
|
9545
|
+
compareLoose,
|
|
9546
|
+
compareBuild,
|
|
9547
|
+
sort,
|
|
9548
|
+
rsort,
|
|
9549
|
+
gt,
|
|
9550
|
+
lt,
|
|
9551
|
+
eq,
|
|
9552
|
+
neq,
|
|
9553
|
+
gte,
|
|
9554
|
+
lte,
|
|
9555
|
+
cmp,
|
|
9556
|
+
coerce,
|
|
9557
|
+
truncate,
|
|
9558
|
+
Comparator,
|
|
9559
|
+
Range,
|
|
9560
|
+
satisfies,
|
|
9561
|
+
toComparators,
|
|
9562
|
+
maxSatisfying,
|
|
9563
|
+
minSatisfying,
|
|
9564
|
+
minVersion,
|
|
9565
|
+
validRange,
|
|
9566
|
+
outside,
|
|
9567
|
+
gtr,
|
|
9568
|
+
ltr,
|
|
9569
|
+
intersects,
|
|
9570
|
+
simplifyRange,
|
|
9571
|
+
subset,
|
|
9572
|
+
SemVer,
|
|
9573
|
+
re: internalRe.re,
|
|
9574
|
+
src: internalRe.src,
|
|
9575
|
+
tokens: internalRe.t,
|
|
9576
|
+
SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
|
|
9577
|
+
RELEASE_TYPES: constants.RELEASE_TYPES,
|
|
9578
|
+
compareIdentifiers: identifiers.compareIdentifiers,
|
|
9579
|
+
rcompareIdentifiers: identifiers.rcompareIdentifiers
|
|
9580
|
+
};
|
|
9581
|
+
}
|
|
9582
|
+
});
|
|
9583
|
+
|
|
7371
9584
|
// ../../node_modules/.pnpm/cli-width@4.1.0/node_modules/cli-width/index.js
|
|
7372
9585
|
var require_cli_width = __commonJS({
|
|
7373
9586
|
"../../node_modules/.pnpm/cli-width@4.1.0/node_modules/cli-width/index.js"(exports, module) {
|
|
@@ -7870,7 +10083,7 @@ function realIo(prompt) {
|
|
|
7870
10083
|
stdout: process.stdout,
|
|
7871
10084
|
stderr: process.stderr,
|
|
7872
10085
|
prompt: prompt && isInteractive() ? prompt : void 0,
|
|
7873
|
-
exec: (command, args, options = {}) => new Promise((
|
|
10086
|
+
exec: (command, args, options = {}) => new Promise((resolve11, reject) => {
|
|
7874
10087
|
const limit = options.timeout;
|
|
7875
10088
|
const child = spawn(command, args, {
|
|
7876
10089
|
cwd: options.cwd,
|
|
@@ -7921,7 +10134,7 @@ function realIo(prompt) {
|
|
|
7921
10134
|
if (timedOut && limit !== void 0)
|
|
7922
10135
|
reject(new TimeoutError(render(command, args), limit, stderr));
|
|
7923
10136
|
else if (code === 0)
|
|
7924
|
-
|
|
10137
|
+
resolve11(stdout);
|
|
7925
10138
|
else
|
|
7926
10139
|
reject(new ExecError(render(command, args), code, stderr));
|
|
7927
10140
|
});
|
|
@@ -8188,7 +10401,7 @@ function union(base, own) {
|
|
|
8188
10401
|
function resolveExtends(written, path3) {
|
|
8189
10402
|
const resolved = {};
|
|
8190
10403
|
const chain = [];
|
|
8191
|
-
const
|
|
10404
|
+
const resolve11 = (name) => {
|
|
8192
10405
|
const done = resolved[name];
|
|
8193
10406
|
if (done)
|
|
8194
10407
|
return done;
|
|
@@ -8200,14 +10413,14 @@ function resolveExtends(written, path3) {
|
|
|
8200
10413
|
let merged = service;
|
|
8201
10414
|
if (ref !== void 0 && written[ref]) {
|
|
8202
10415
|
chain.push(name);
|
|
8203
|
-
merged = merge(
|
|
10416
|
+
merged = merge(resolve11(ref), service);
|
|
8204
10417
|
chain.pop();
|
|
8205
10418
|
}
|
|
8206
10419
|
resolved[name] = merged;
|
|
8207
10420
|
return merged;
|
|
8208
10421
|
};
|
|
8209
10422
|
for (const name of Object.keys(written))
|
|
8210
|
-
|
|
10423
|
+
resolve11(name);
|
|
8211
10424
|
return resolved;
|
|
8212
10425
|
}
|
|
8213
10426
|
function merge(base, service) {
|
|
@@ -9128,7 +11341,7 @@ async function templateFacet(ctx, cwd) {
|
|
|
9128
11341
|
|
|
9129
11342
|
// ../lib/dist/standard-index.json
|
|
9130
11343
|
var standard_index_default = {
|
|
9131
|
-
version: "0.
|
|
11344
|
+
version: "0.126.0",
|
|
9132
11345
|
citable: [
|
|
9133
11346
|
"\xA7 1 PLX",
|
|
9134
11347
|
"\xA7 1.1 PLX",
|
|
@@ -10534,6 +12747,255 @@ function renderSummary(s, realCommand, verb = "propagate") {
|
|
|
10534
12747
|
return lines.join("\n");
|
|
10535
12748
|
}
|
|
10536
12749
|
|
|
12750
|
+
// ../lib/dist/umbrella.js
|
|
12751
|
+
var import_semver = __toESM(require_semver2(), 1);
|
|
12752
|
+
var import_yaml6 = __toESM(require_dist(), 1);
|
|
12753
|
+
import { join as join9 } from "node:path";
|
|
12754
|
+
var UMBRELLA_MARK = "Generated by `plx umbrella up`; `plx umbrella down` removes it.";
|
|
12755
|
+
var UMBRELLA_STATE = ".plx-umbrella";
|
|
12756
|
+
var UMBRELLA_ROOT_VAR = "PLX_UMBRELLA_ROOT";
|
|
12757
|
+
var WORKSPACE = "pnpm-workspace.yaml";
|
|
12758
|
+
var MISE = "mise.local.toml";
|
|
12759
|
+
var WORKSPACE_VAR = "NPM_CONFIG_WORKSPACE_DIR";
|
|
12760
|
+
var isMapping2 = (v) => v !== null && typeof v === "object" && !Array.isArray(v);
|
|
12761
|
+
function narrower(a, b) {
|
|
12762
|
+
try {
|
|
12763
|
+
if (import_semver.default.subset(a, b))
|
|
12764
|
+
return a;
|
|
12765
|
+
if (import_semver.default.subset(b, a))
|
|
12766
|
+
return b;
|
|
12767
|
+
} catch {
|
|
12768
|
+
}
|
|
12769
|
+
return void 0;
|
|
12770
|
+
}
|
|
12771
|
+
function mergeValue(key, a, b, from, into) {
|
|
12772
|
+
if (a === void 0)
|
|
12773
|
+
return b;
|
|
12774
|
+
if (isMapping2(a) && isMapping2(b)) {
|
|
12775
|
+
const merged = { ...a };
|
|
12776
|
+
for (const [k, v] of Object.entries(b))
|
|
12777
|
+
merged[k] = mergeValue(`${key}.${k}`, a[k], v, from, into);
|
|
12778
|
+
return merged;
|
|
12779
|
+
}
|
|
12780
|
+
if (Array.isArray(a) && Array.isArray(b))
|
|
12781
|
+
return [.../* @__PURE__ */ new Set([...a, ...b])];
|
|
12782
|
+
if (a === b)
|
|
12783
|
+
return a;
|
|
12784
|
+
if (key === "minimumReleaseAge" && typeof a === "number" && typeof b === "number")
|
|
12785
|
+
return Math.max(a, b);
|
|
12786
|
+
const within = typeof a === "string" && typeof b === "string" ? narrower(a, b) : void 0;
|
|
12787
|
+
if (within !== void 0)
|
|
12788
|
+
return within;
|
|
12789
|
+
throw new UsageError(`${into} and ${from} disagree on ${key} (${JSON.stringify(a)} and ${JSON.stringify(b)}); align them, or leave one out with --only`);
|
|
12790
|
+
}
|
|
12791
|
+
function mergeWorkspaces(repos2) {
|
|
12792
|
+
const packages = [];
|
|
12793
|
+
let settings = {};
|
|
12794
|
+
const seen = {};
|
|
12795
|
+
for (const repo of repos2) {
|
|
12796
|
+
const own = (0, import_yaml6.parse)(repo.workspace);
|
|
12797
|
+
const { packages: globs, ...rest } = isMapping2(own) ? own : {};
|
|
12798
|
+
packages.push(repo.name);
|
|
12799
|
+
for (const glob of Array.isArray(globs) ? globs.map(String) : [])
|
|
12800
|
+
packages.push(glob.startsWith("!") ? `!${repo.name}/${glob.slice(1)}` : `${repo.name}/${glob}`);
|
|
12801
|
+
for (const [key, value] of Object.entries(rest)) {
|
|
12802
|
+
settings = { ...settings, [key]: mergeValue(key, settings[key], value, repo.name, seen[key] ?? repo.name) };
|
|
12803
|
+
seen[key] ??= repo.name;
|
|
12804
|
+
}
|
|
12805
|
+
}
|
|
12806
|
+
return { packages, ...settings, linkWorkspacePackages: true };
|
|
12807
|
+
}
|
|
12808
|
+
function resolveRange2(name, range, settings) {
|
|
12809
|
+
if (!range.startsWith("catalog:"))
|
|
12810
|
+
return range;
|
|
12811
|
+
const catalog = range.slice("catalog:".length);
|
|
12812
|
+
const catalogs = isMapping2(settings.catalogs) ? settings.catalogs : {};
|
|
12813
|
+
const entries = catalog === "" || catalog === "default" ? settings.catalog : catalogs[catalog];
|
|
12814
|
+
const resolved = isMapping2(entries) ? entries[name] : void 0;
|
|
12815
|
+
return typeof resolved === "string" ? resolved : range;
|
|
12816
|
+
}
|
|
12817
|
+
function linksOf(repos2, settings) {
|
|
12818
|
+
const byName2 = /* @__PURE__ */ new Map();
|
|
12819
|
+
for (const pkg of repos2.flatMap((r) => r.packages))
|
|
12820
|
+
if (pkg.name && pkg.version)
|
|
12821
|
+
byName2.set(pkg.name, pkg);
|
|
12822
|
+
const links = [];
|
|
12823
|
+
for (const pkg of repos2.flatMap((r) => r.packages)) {
|
|
12824
|
+
for (const [name, written] of Object.entries(pkg.dependencies)) {
|
|
12825
|
+
const target = byName2.get(name);
|
|
12826
|
+
if (!target?.version || target.repo === pkg.repo)
|
|
12827
|
+
continue;
|
|
12828
|
+
const range = resolveRange2(name, written, settings);
|
|
12829
|
+
links.push({
|
|
12830
|
+
from: pkg.name ?? pkg.dir,
|
|
12831
|
+
fromRepo: pkg.repo,
|
|
12832
|
+
to: name,
|
|
12833
|
+
toRepo: target.repo,
|
|
12834
|
+
range,
|
|
12835
|
+
version: target.version,
|
|
12836
|
+
linked: import_semver.default.validRange(range) !== null && import_semver.default.satisfies(target.version, range)
|
|
12837
|
+
});
|
|
12838
|
+
}
|
|
12839
|
+
}
|
|
12840
|
+
return links.sort((a, b) => `${a.from} ${a.to}`.localeCompare(`${b.from} ${b.to}`));
|
|
12841
|
+
}
|
|
12842
|
+
function newestPnpm(repos2) {
|
|
12843
|
+
const version2 = (r) => r.packageManager?.startsWith("pnpm@") ? r.packageManager.slice(5) : "0";
|
|
12844
|
+
return [...repos2].sort((a, b) => compareVersions(version2(b), version2(a)))[0]?.name;
|
|
12845
|
+
}
|
|
12846
|
+
function pnpmDifference(repos2) {
|
|
12847
|
+
const pins = repos2.flatMap((r) => r.packageManager?.startsWith("pnpm@") ? [{ repo: r.name, version: r.packageManager.slice(5).split("+")[0] ?? "" }] : []);
|
|
12848
|
+
if (new Set(pins.map((p) => p.version)).size < 2)
|
|
12849
|
+
return void 0;
|
|
12850
|
+
const said = pins.map((p) => `${p.repo} ${p.version}`).join(", ");
|
|
12851
|
+
if (new Set(pins.map((p) => p.version.split(".")[0])).size > 1)
|
|
12852
|
+
throw new UsageError(`the repos pin different majors of pnpm (${said}); align them, or leave one out with --only`);
|
|
12853
|
+
return `the repos pin different pnpm versions (${said}); the umbrella installs from ${newestPnpm(repos2)}`;
|
|
12854
|
+
}
|
|
12855
|
+
var filters = (names) => names.flatMap((n) => ["--filter", n]);
|
|
12856
|
+
var stopWatcher = (dir) => run("sh", ["-c", `kill -- -"$(cat ${UMBRELLA_STATE}/watch.pid 2>/dev/null)" 2>/dev/null || true`], { cwd: dir });
|
|
12857
|
+
var quoted = (path3) => `'${path3.replaceAll("'", "'\\''")}'`;
|
|
12858
|
+
function planUp(dir, repos2) {
|
|
12859
|
+
const difference = pnpmDifference(repos2);
|
|
12860
|
+
const settings = mergeWorkspaces(repos2);
|
|
12861
|
+
const links = linksOf(repos2, settings);
|
|
12862
|
+
const packages = new Map(repos2.flatMap((r) => r.packages).map((p) => [p.name, p]));
|
|
12863
|
+
const linked = [...new Set(links.filter((l) => l.linked).map((l) => l.to))].sort();
|
|
12864
|
+
const has = (script) => (name) => packages.get(name)?.scripts.includes(script) === true;
|
|
12865
|
+
const watched = linked.filter(has("dev"));
|
|
12866
|
+
const pnpm = { cwd: join9(dir, newestPnpm(repos2) ?? ""), env: { [WORKSPACE_VAR]: dir } };
|
|
12867
|
+
const state = join9(dir, UMBRELLA_STATE);
|
|
12868
|
+
const log = join9(state, "watch.log");
|
|
12869
|
+
const start = `set -m; nohup pnpm ${[...filters(watched), "--parallel", "run", "dev"].join(" ")} > ${quoted(log)} 2>&1 & echo $! > ${quoted(join9(state, "watch.pid"))}`;
|
|
12870
|
+
const plan = [
|
|
12871
|
+
stopWatcher(dir),
|
|
12872
|
+
run("mkdir", ["-p", join9(dir, UMBRELLA_STATE)]),
|
|
12873
|
+
write(join9(dir, WORKSPACE), `# ${UMBRELLA_MARK}
|
|
12874
|
+
${(0, import_yaml6.stringify)(settings)}`),
|
|
12875
|
+
write(join9(dir, MISE), `# ${UMBRELLA_MARK}
|
|
12876
|
+
[env]
|
|
12877
|
+
${UMBRELLA_ROOT_VAR} = "{{config_root}}"
|
|
12878
|
+
${WORKSPACE_VAR} = "{{config_root}}"
|
|
12879
|
+
`),
|
|
12880
|
+
run("mise", ["trust", "--quiet", MISE], { cwd: dir }),
|
|
12881
|
+
run("pnpm", ["install", "--force"], pnpm),
|
|
12882
|
+
...linked.some(has("build")) ? [run("pnpm", [...filters(linked.filter(has("build"))), "run", "build"], pnpm)] : [],
|
|
12883
|
+
...watched.length > 0 ? [run("sh", ["-c", start], pnpm)] : []
|
|
12884
|
+
];
|
|
12885
|
+
return {
|
|
12886
|
+
dir,
|
|
12887
|
+
repos: repos2.map((r) => r.name),
|
|
12888
|
+
links,
|
|
12889
|
+
watched,
|
|
12890
|
+
unwatched: linked.filter((n) => !watched.includes(n)),
|
|
12891
|
+
notices: difference ? [difference] : [],
|
|
12892
|
+
log,
|
|
12893
|
+
plan
|
|
12894
|
+
};
|
|
12895
|
+
}
|
|
12896
|
+
function planDown(dir, repos2) {
|
|
12897
|
+
return [
|
|
12898
|
+
stopWatcher(dir),
|
|
12899
|
+
run("rm", ["-rf", UMBRELLA_STATE, "node_modules", "pnpm-lock.yaml", WORKSPACE, MISE], { cwd: dir }),
|
|
12900
|
+
// The variable names the repo itself, whatever a shell under the umbrella still carries.
|
|
12901
|
+
...repos2.map((repo) => run("pnpm", ["install", "--force"], { cwd: join9(dir, repo), env: { [WORKSPACE_VAR]: join9(dir, repo) } }))
|
|
12902
|
+
];
|
|
12903
|
+
}
|
|
12904
|
+
async function readOptional(ctx, path3) {
|
|
12905
|
+
try {
|
|
12906
|
+
return await ctx.readFile(path3);
|
|
12907
|
+
} catch (error) {
|
|
12908
|
+
if (error.code === "ENOENT")
|
|
12909
|
+
return void 0;
|
|
12910
|
+
throw error;
|
|
12911
|
+
}
|
|
12912
|
+
}
|
|
12913
|
+
async function readManifest(ctx, path3) {
|
|
12914
|
+
const text = await readOptional(ctx, path3);
|
|
12915
|
+
return text === void 0 ? void 0 : JSON.parse(text);
|
|
12916
|
+
}
|
|
12917
|
+
async function expand2(ctx, root, glob) {
|
|
12918
|
+
const star = glob.indexOf("*");
|
|
12919
|
+
if (star < 0)
|
|
12920
|
+
return [glob.replace(/\/$/, "")];
|
|
12921
|
+
const parent = glob.slice(0, star).replace(/\/$/, "");
|
|
12922
|
+
const entries = await ctx.readDir(join9(root, parent)).catch(() => []);
|
|
12923
|
+
return entries.filter((e) => e.directory && !e.name.startsWith(".")).map((e) => join9(parent, e.name));
|
|
12924
|
+
}
|
|
12925
|
+
async function readRepo2(ctx, dir, name, workspace) {
|
|
12926
|
+
const own = (0, import_yaml6.parse)(workspace);
|
|
12927
|
+
const globs = isMapping2(own) && Array.isArray(own.packages) ? own.packages.map(String) : [];
|
|
12928
|
+
const packages = [];
|
|
12929
|
+
for (const glob of globs.filter((g) => !g.startsWith("!"))) {
|
|
12930
|
+
for (const pkgDir of (await expand2(ctx, join9(dir, name), glob)).sort()) {
|
|
12931
|
+
const manifest2 = await readManifest(ctx, join9(dir, name, pkgDir, "package.json"));
|
|
12932
|
+
if (!manifest2)
|
|
12933
|
+
continue;
|
|
12934
|
+
packages.push({
|
|
12935
|
+
repo: name,
|
|
12936
|
+
dir: join9(name, pkgDir),
|
|
12937
|
+
name: manifest2.name,
|
|
12938
|
+
version: manifest2.version,
|
|
12939
|
+
scripts: Object.keys(manifest2.scripts ?? {}),
|
|
12940
|
+
dependencies: {
|
|
12941
|
+
...manifest2.optionalDependencies,
|
|
12942
|
+
...manifest2.peerDependencies,
|
|
12943
|
+
...manifest2.devDependencies,
|
|
12944
|
+
...manifest2.dependencies
|
|
12945
|
+
}
|
|
12946
|
+
});
|
|
12947
|
+
}
|
|
12948
|
+
}
|
|
12949
|
+
const root = await readManifest(ctx, join9(dir, name, "package.json"));
|
|
12950
|
+
return { name, workspace, packageManager: root?.packageManager, packages };
|
|
12951
|
+
}
|
|
12952
|
+
async function generated(ctx, dir) {
|
|
12953
|
+
const [workspace, mise] = await Promise.all([
|
|
12954
|
+
readOptional(ctx, join9(dir, WORKSPACE)),
|
|
12955
|
+
readOptional(ctx, join9(dir, MISE))
|
|
12956
|
+
]);
|
|
12957
|
+
const marked = (text) => text?.startsWith(`# ${UMBRELLA_MARK}`) === true;
|
|
12958
|
+
const foreign = [
|
|
12959
|
+
...workspace !== void 0 && !marked(workspace) ? [WORKSPACE] : [],
|
|
12960
|
+
...mise !== void 0 && !marked(mise) ? [MISE] : []
|
|
12961
|
+
];
|
|
12962
|
+
return { up: marked(workspace), foreign };
|
|
12963
|
+
}
|
|
12964
|
+
var refuse = (dir, foreign) => new UsageError(`${dir} holds ${foreign.join(", ")} that plx umbrella did not generate; it is left alone`);
|
|
12965
|
+
async function readUmbrella(ctx, dir, only) {
|
|
12966
|
+
const { foreign } = await generated(ctx, dir);
|
|
12967
|
+
if (foreign.length > 0)
|
|
12968
|
+
throw refuse(dir, foreign);
|
|
12969
|
+
const repos2 = [];
|
|
12970
|
+
for (const entry of (await ctx.readDir(dir)).sort((a, b) => a.name.localeCompare(b.name))) {
|
|
12971
|
+
if (!entry.directory || entry.name.startsWith(".") || entry.name === "node_modules")
|
|
12972
|
+
continue;
|
|
12973
|
+
if (only && !only.includes(entry.name))
|
|
12974
|
+
continue;
|
|
12975
|
+
const names = (await ctx.readDir(join9(dir, entry.name)).catch(() => [])).map((e) => e.name);
|
|
12976
|
+
if (!names.includes(".git") || !names.includes(WORKSPACE))
|
|
12977
|
+
continue;
|
|
12978
|
+
repos2.push(await readRepo2(ctx, dir, entry.name, await ctx.readFile(join9(dir, entry.name, WORKSPACE))));
|
|
12979
|
+
}
|
|
12980
|
+
const missing = (only ?? []).filter((name) => !repos2.some((r) => r.name === name));
|
|
12981
|
+
if (missing.length > 0)
|
|
12982
|
+
throw new UsageError(`no pnpm workspace in a git repo at ${missing.join(", ")} under ${dir}`);
|
|
12983
|
+
if (repos2.length < 2)
|
|
12984
|
+
throw new UsageError(`an umbrella needs at least two repos with a ${WORKSPACE} under ${dir}`);
|
|
12985
|
+
return planUp(dir, repos2);
|
|
12986
|
+
}
|
|
12987
|
+
async function readUmbrellaDown(ctx, dir) {
|
|
12988
|
+
const { up, foreign } = await generated(ctx, dir);
|
|
12989
|
+
if (foreign.length > 0)
|
|
12990
|
+
throw refuse(dir, foreign);
|
|
12991
|
+
if (!up)
|
|
12992
|
+
return { repos: [], plan: [] };
|
|
12993
|
+
const own = (0, import_yaml6.parse)(await ctx.readFile(join9(dir, WORKSPACE)));
|
|
12994
|
+
const globs = isMapping2(own) && Array.isArray(own.packages) ? own.packages.map(String) : [];
|
|
12995
|
+
const repos2 = globs.filter((g) => !g.includes("/") && !g.startsWith("!"));
|
|
12996
|
+
return { repos: repos2, plan: planDown(dir, repos2) };
|
|
12997
|
+
}
|
|
12998
|
+
|
|
10537
12999
|
// src/program.ts
|
|
10538
13000
|
import { createRequire } from "node:module";
|
|
10539
13001
|
|
|
@@ -11482,13 +13944,13 @@ import { AsyncResource as AsyncResource3 } from "node:async_hooks";
|
|
|
11482
13944
|
|
|
11483
13945
|
// ../../node_modules/.pnpm/@inquirer+type@4.3.0_@types+node@24.19.2/node_modules/@inquirer/type/dist/utils.js
|
|
11484
13946
|
function withResolver() {
|
|
11485
|
-
let
|
|
13947
|
+
let resolve11;
|
|
11486
13948
|
let reject;
|
|
11487
13949
|
const promise = new Promise((res, rej) => {
|
|
11488
|
-
|
|
13950
|
+
resolve11 = res;
|
|
11489
13951
|
reject = rej;
|
|
11490
13952
|
});
|
|
11491
|
-
return { promise, resolve:
|
|
13953
|
+
return { promise, resolve: resolve11, reject };
|
|
11492
13954
|
}
|
|
11493
13955
|
|
|
11494
13956
|
// ../../node_modules/.pnpm/@inquirer+core@12.1.0_@types+node@24.19.2/node_modules/@inquirer/core/dist/lib/create-prompt.js
|
|
@@ -11867,7 +14329,7 @@ function createPrompt(view) {
|
|
|
11867
14329
|
});
|
|
11868
14330
|
output.mute();
|
|
11869
14331
|
const screen = new ScreenManager(rl);
|
|
11870
|
-
const { promise, resolve:
|
|
14332
|
+
const { promise, resolve: resolve11, reject } = withResolver();
|
|
11871
14333
|
return withHooks(rl, (cycle) => {
|
|
11872
14334
|
const clearEffects = AsyncResource3.bind(() => effectScheduler.clearAll());
|
|
11873
14335
|
const settlePrompt = (settle) => {
|
|
@@ -11878,7 +14340,7 @@ function createPrompt(view) {
|
|
|
11878
14340
|
reject(error);
|
|
11879
14341
|
}
|
|
11880
14342
|
};
|
|
11881
|
-
const resolvePrompt = (value) => settlePrompt(() =>
|
|
14343
|
+
const resolvePrompt = (value) => settlePrompt(() => resolve11(value));
|
|
11882
14344
|
const rejectPrompt = (error) => settlePrompt(() => reject(error));
|
|
11883
14345
|
const promptPromise = Object.assign(promise.finally(() => {
|
|
11884
14346
|
cleanups2.forEach((cleanup) => cleanup());
|
|
@@ -15598,7 +18060,7 @@ function register6(program2) {
|
|
|
15598
18060
|
}
|
|
15599
18061
|
|
|
15600
18062
|
// src/commands/requirements.ts
|
|
15601
|
-
import { join as
|
|
18063
|
+
import { join as join10, resolve as resolve8 } from "node:path";
|
|
15602
18064
|
function register7(program2) {
|
|
15603
18065
|
program2.command("requirements").description(
|
|
15604
18066
|
"lint a repo: the standard's pages in the compendium, citations, dates, template headers and issue identifiers everywhere"
|
|
@@ -15607,7 +18069,7 @@ function register7(program2) {
|
|
|
15607
18069
|
const repo = resolve8(dir);
|
|
15608
18070
|
const options = { compendium: opts.compendium ? resolve8(opts.compendium) : void 0 };
|
|
15609
18071
|
if (opts.extract) {
|
|
15610
|
-
ctx.result(extractRequirements(await ctx.readFile(
|
|
18072
|
+
ctx.result(extractRequirements(await ctx.readFile(join10(repo, opts.extract))));
|
|
15611
18073
|
return;
|
|
15612
18074
|
}
|
|
15613
18075
|
if (opts.commitMsg) {
|
|
@@ -15632,9 +18094,62 @@ function renderCheck(c) {
|
|
|
15632
18094
|
return `\u2713 ${what}citations resolve against ${c.against}${known}`;
|
|
15633
18095
|
}
|
|
15634
18096
|
|
|
15635
|
-
// src/commands/
|
|
18097
|
+
// src/commands/umbrella.ts
|
|
18098
|
+
import { spawn as spawn2 } from "node:child_process";
|
|
15636
18099
|
import { resolve as resolve9 } from "node:path";
|
|
15637
18100
|
function register8(program2) {
|
|
18101
|
+
const umbrella = program2.command("umbrella").description("develop across repos: one pnpm workspace over the repos under a directory, linking their packages");
|
|
18102
|
+
umbrella.command("up").description("link the repos, build the linked packages and rebuild them on change; Ctrl+C restores").argument("[dir]", "the directory that holds the clones", ".").option("-d, --detach", "leave the watcher running in the background and return").option("--only <repos>", "the repos to link, comma-separated (default: every pnpm workspace under dir)").action(async (dir, opts, command) => {
|
|
18103
|
+
const ctx = contextOf(command);
|
|
18104
|
+
const root = resolve9(dir);
|
|
18105
|
+
const plan = await readUmbrella(ctx, root, opts.only?.split(",").filter(Boolean));
|
|
18106
|
+
await ctx.apply(plan.plan);
|
|
18107
|
+
ctx.result(plan, renderUmbrella);
|
|
18108
|
+
if (ctx.dryRun) return;
|
|
18109
|
+
if (opts.detach || plan.watched.length === 0) {
|
|
18110
|
+
ctx.done(`umbrella up over ${plan.repos.join(", ")}; \`plx umbrella down\` restores`);
|
|
18111
|
+
return;
|
|
18112
|
+
}
|
|
18113
|
+
ctx.say(`watching ${plan.watched.join(", ")}; Ctrl+C restores`);
|
|
18114
|
+
await follow(plan.log);
|
|
18115
|
+
await down(ctx, root);
|
|
18116
|
+
});
|
|
18117
|
+
umbrella.command("down").description("stop the watcher, delete what up wrote, and install every repo on its own again").argument("[dir]", "the directory that holds the clones", ".").action(async (dir, _opts, command) => {
|
|
18118
|
+
await down(contextOf(command), resolve9(dir));
|
|
18119
|
+
});
|
|
18120
|
+
}
|
|
18121
|
+
async function down(ctx, root) {
|
|
18122
|
+
const { repos: repos2, plan } = await readUmbrellaDown(ctx, root);
|
|
18123
|
+
await ctx.apply(plan);
|
|
18124
|
+
ctx.done(repos2.length > 0 ? `umbrella down; ${repos2.join(", ")} installed on their own` : "no umbrella is up");
|
|
18125
|
+
}
|
|
18126
|
+
function follow(log) {
|
|
18127
|
+
return new Promise((done) => {
|
|
18128
|
+
const tail = spawn2("tail", ["-n", "+1", "-f", log], { stdio: ["ignore", process.stderr.fd, process.stderr.fd] });
|
|
18129
|
+
const stop = () => tail.kill();
|
|
18130
|
+
process.on("SIGINT", stop);
|
|
18131
|
+
process.on("SIGTERM", stop);
|
|
18132
|
+
tail.on("close", () => {
|
|
18133
|
+
process.removeListener("SIGINT", stop);
|
|
18134
|
+
process.removeListener("SIGTERM", stop);
|
|
18135
|
+
done();
|
|
18136
|
+
});
|
|
18137
|
+
});
|
|
18138
|
+
}
|
|
18139
|
+
function renderUmbrella(u) {
|
|
18140
|
+
const lines = u.links.map(
|
|
18141
|
+
(l) => l.linked ? ` linked ${l.from} \u2192 ${l.to} (${l.toRepo} at ${l.version})` : ` not linked ${l.from} \u2192 ${l.to}: ${l.range} does not admit ${l.toRepo}'s ${l.version}`
|
|
18142
|
+
);
|
|
18143
|
+
if (lines.length === 0) lines.push(" no package of one repo depends on a package of another");
|
|
18144
|
+
for (const notice of u.notices) lines.push(` ${notice}`);
|
|
18145
|
+
for (const name of u.unwatched) lines.push(` ${name} has no dev script: it is not rebuilt on a change`);
|
|
18146
|
+
lines.push(" while up, pnpm inside a repo acts on the umbrella: its own lockfile catches up at down");
|
|
18147
|
+
return lines.join("\n");
|
|
18148
|
+
}
|
|
18149
|
+
|
|
18150
|
+
// src/commands/update.ts
|
|
18151
|
+
import { resolve as resolve10 } from "node:path";
|
|
18152
|
+
function register9(program2) {
|
|
15638
18153
|
program2.command("update").description(
|
|
15639
18154
|
"take a version as a pull request on plexus/<version> (copier update at every site, the marker, the lockfile, the workflow refs): a patch at once, a minor at the next scheduled pull (--max-age), a major only when asked"
|
|
15640
18155
|
).argument("[dir]", "a repo generated from the templates", ".").option("--to <version>", "take this version, whatever its step: asking").option("--now", "take the newest version, whatever its step: asking").option(
|
|
@@ -15643,7 +18158,7 @@ function register8(program2) {
|
|
|
15643
18158
|
(v) => parseMaxAge(v, "--max-age")
|
|
15644
18159
|
).action(async (dir, opts, command) => {
|
|
15645
18160
|
const ctx = contextOf(command);
|
|
15646
|
-
const result = await update(ctx, { repo:
|
|
18161
|
+
const result = await update(ctx, { repo: resolve10(dir), to: opts.to, now: opts.now, maxAge: opts.maxAge });
|
|
15647
18162
|
ctx.result(result, (r) => renderSummary(r, `plx -y update --to ${r.version} ${dir}`, "update"));
|
|
15648
18163
|
if (!isClean(result)) process.exitCode = 1;
|
|
15649
18164
|
});
|
|
@@ -15654,6 +18169,7 @@ var commands = [
|
|
|
15654
18169
|
register5,
|
|
15655
18170
|
register4,
|
|
15656
18171
|
register6,
|
|
18172
|
+
register9,
|
|
15657
18173
|
register8,
|
|
15658
18174
|
register7,
|
|
15659
18175
|
register,
|
|
@@ -15668,7 +18184,7 @@ function buildProgram() {
|
|
|
15668
18184
|
program2.addOption(new Option("-n, --dry-run", "print every effect this run would have, perform none").env("PLX_DRY_RUN")).addOption(
|
|
15669
18185
|
new Option("-v, --verbose", "say more: once for reads and inputs, twice for command output").argParser((_value, previous) => previous + 1).default(0)
|
|
15670
18186
|
).addOption(new Option("-q, --quiet", "say nothing but results and errors").env("PLX_QUIET")).addOption(new Option("-y, --yes", "answer every confirmation with yes (needed off a terminal)").env("PLX_YES")).addOption(new Option("--json", "print results as JSON").env("PLX_JSON"));
|
|
15671
|
-
for (const
|
|
18187
|
+
for (const register10 of commands) register10(program2);
|
|
15672
18188
|
return program2;
|
|
15673
18189
|
}
|
|
15674
18190
|
function contextOf(command) {
|