@pipelab/plugin-discord 1.0.0-beta.12 → 1.0.0-beta.14
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/index.cjs +3653 -755
- package/dist/index.mjs +3237 -342
- package/dist/index.mjs.map +1 -1
- package/dist/public/discord.webp +0 -0
- package/package.json +19 -4
package/dist/index.mjs
CHANGED
|
@@ -37,8 +37,8 @@ const finalVersion = () => {
|
|
|
37
37
|
throw new Error("Unable to go up on the final version!");
|
|
38
38
|
};
|
|
39
39
|
//#endregion
|
|
40
|
-
//#region ../../node_modules/semver/internal/constants.js
|
|
41
|
-
var require_constants$
|
|
40
|
+
//#region ../../packages/migration/node_modules/semver/internal/constants.js
|
|
41
|
+
var require_constants$10 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
42
42
|
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
43
43
|
const MAX_LENGTH = 256;
|
|
44
44
|
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
@@ -62,15 +62,15 @@ var require_constants$8 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
62
62
|
};
|
|
63
63
|
}));
|
|
64
64
|
//#endregion
|
|
65
|
-
//#region ../../node_modules/semver/internal/debug.js
|
|
66
|
-
var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
65
|
+
//#region ../../packages/migration/node_modules/semver/internal/debug.js
|
|
66
|
+
var require_debug$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
67
67
|
module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
68
68
|
}));
|
|
69
69
|
//#endregion
|
|
70
|
-
//#region ../../node_modules/semver/internal/re.js
|
|
71
|
-
var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
72
|
-
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants$
|
|
73
|
-
const debug = require_debug();
|
|
70
|
+
//#region ../../packages/migration/node_modules/semver/internal/re.js
|
|
71
|
+
var require_re$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
72
|
+
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants$10();
|
|
73
|
+
const debug = require_debug$2();
|
|
74
74
|
exports = module.exports = {};
|
|
75
75
|
const re = exports.re = [];
|
|
76
76
|
const safeRe = exports.safeRe = [];
|
|
@@ -146,8 +146,8 @@ var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
146
146
|
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
147
147
|
}));
|
|
148
148
|
//#endregion
|
|
149
|
-
//#region ../../node_modules/semver/internal/parse-options.js
|
|
150
|
-
var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
149
|
+
//#region ../../packages/migration/node_modules/semver/internal/parse-options.js
|
|
150
|
+
var require_parse_options$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
151
151
|
const looseOption = Object.freeze({ loose: true });
|
|
152
152
|
const emptyOpts = Object.freeze({});
|
|
153
153
|
const parseOptions = (options) => {
|
|
@@ -158,8 +158,8 @@ var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
158
158
|
module.exports = parseOptions;
|
|
159
159
|
}));
|
|
160
160
|
//#endregion
|
|
161
|
-
//#region ../../node_modules/semver/internal/identifiers.js
|
|
162
|
-
var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
161
|
+
//#region ../../packages/migration/node_modules/semver/internal/identifiers.js
|
|
162
|
+
var require_identifiers$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
163
163
|
const numeric = /^[0-9]+$/;
|
|
164
164
|
const compareIdentifiers = (a, b) => {
|
|
165
165
|
if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
|
|
@@ -178,13 +178,13 @@ var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
178
178
|
};
|
|
179
179
|
}));
|
|
180
180
|
//#endregion
|
|
181
|
-
//#region ../../node_modules/semver/classes/semver.js
|
|
182
|
-
var require_semver$
|
|
183
|
-
const debug = require_debug();
|
|
184
|
-
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants$
|
|
185
|
-
const { safeRe: re, t } = require_re();
|
|
186
|
-
const parseOptions = require_parse_options();
|
|
187
|
-
const { compareIdentifiers } = require_identifiers();
|
|
181
|
+
//#region ../../packages/migration/node_modules/semver/classes/semver.js
|
|
182
|
+
var require_semver$5 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
183
|
+
const debug = require_debug$2();
|
|
184
|
+
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants$10();
|
|
185
|
+
const { safeRe: re, t } = require_re$2();
|
|
186
|
+
const parseOptions = require_parse_options$2();
|
|
187
|
+
const { compareIdentifiers } = require_identifiers$2();
|
|
188
188
|
module.exports = class SemVer {
|
|
189
189
|
constructor(version, options) {
|
|
190
190
|
options = parseOptions(options);
|
|
@@ -356,9 +356,9 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
356
356
|
};
|
|
357
357
|
}));
|
|
358
358
|
//#endregion
|
|
359
|
-
//#region ../../node_modules/semver/functions/parse.js
|
|
360
|
-
var require_parse$
|
|
361
|
-
const SemVer = require_semver$
|
|
359
|
+
//#region ../../packages/migration/node_modules/semver/functions/parse.js
|
|
360
|
+
var require_parse$6 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
361
|
+
const SemVer = require_semver$5();
|
|
362
362
|
const parse = (version, options, throwErrors = false) => {
|
|
363
363
|
if (version instanceof SemVer) return version;
|
|
364
364
|
try {
|
|
@@ -371,9 +371,9 @@ var require_parse$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
371
371
|
module.exports = parse;
|
|
372
372
|
}));
|
|
373
373
|
//#endregion
|
|
374
|
-
//#region ../../node_modules/semver/functions/valid.js
|
|
375
|
-
var require_valid$
|
|
376
|
-
const parse = require_parse$
|
|
374
|
+
//#region ../../packages/migration/node_modules/semver/functions/valid.js
|
|
375
|
+
var require_valid$5 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
376
|
+
const parse = require_parse$6();
|
|
377
377
|
const valid = (version, options) => {
|
|
378
378
|
const v = parse(version, options);
|
|
379
379
|
return v ? v.version : null;
|
|
@@ -381,9 +381,9 @@ var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
381
381
|
module.exports = valid;
|
|
382
382
|
}));
|
|
383
383
|
//#endregion
|
|
384
|
-
//#region ../../node_modules/semver/functions/clean.js
|
|
385
|
-
var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
386
|
-
const parse = require_parse$
|
|
384
|
+
//#region ../../packages/migration/node_modules/semver/functions/clean.js
|
|
385
|
+
var require_clean$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
386
|
+
const parse = require_parse$6();
|
|
387
387
|
const clean = (version, options) => {
|
|
388
388
|
const s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
389
389
|
return s ? s.version : null;
|
|
@@ -391,9 +391,9 @@ var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
391
391
|
module.exports = clean;
|
|
392
392
|
}));
|
|
393
393
|
//#endregion
|
|
394
|
-
//#region ../../node_modules/semver/functions/inc.js
|
|
395
|
-
var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
396
|
-
const SemVer = require_semver$
|
|
394
|
+
//#region ../../packages/migration/node_modules/semver/functions/inc.js
|
|
395
|
+
var require_inc$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
396
|
+
const SemVer = require_semver$5();
|
|
397
397
|
const inc = (version, release, options, identifier, identifierBase) => {
|
|
398
398
|
if (typeof options === "string") {
|
|
399
399
|
identifierBase = identifier;
|
|
@@ -409,9 +409,9 @@ var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
409
409
|
module.exports = inc;
|
|
410
410
|
}));
|
|
411
411
|
//#endregion
|
|
412
|
-
//#region ../../node_modules/semver/functions/diff.js
|
|
413
|
-
var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
414
|
-
const parse = require_parse$
|
|
412
|
+
//#region ../../packages/migration/node_modules/semver/functions/diff.js
|
|
413
|
+
var require_diff$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
414
|
+
const parse = require_parse$6();
|
|
415
415
|
const diff = (version1, version2) => {
|
|
416
416
|
const v1 = parse(version1, null, true);
|
|
417
417
|
const v2 = parse(version2, null, true);
|
|
@@ -437,30 +437,30 @@ var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
437
437
|
module.exports = diff;
|
|
438
438
|
}));
|
|
439
439
|
//#endregion
|
|
440
|
-
//#region ../../node_modules/semver/functions/major.js
|
|
441
|
-
var require_major = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
442
|
-
const SemVer = require_semver$
|
|
440
|
+
//#region ../../packages/migration/node_modules/semver/functions/major.js
|
|
441
|
+
var require_major$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
442
|
+
const SemVer = require_semver$5();
|
|
443
443
|
const major = (a, loose) => new SemVer(a, loose).major;
|
|
444
444
|
module.exports = major;
|
|
445
445
|
}));
|
|
446
446
|
//#endregion
|
|
447
|
-
//#region ../../node_modules/semver/functions/minor.js
|
|
448
|
-
var require_minor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
449
|
-
const SemVer = require_semver$
|
|
447
|
+
//#region ../../packages/migration/node_modules/semver/functions/minor.js
|
|
448
|
+
var require_minor$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
449
|
+
const SemVer = require_semver$5();
|
|
450
450
|
const minor = (a, loose) => new SemVer(a, loose).minor;
|
|
451
451
|
module.exports = minor;
|
|
452
452
|
}));
|
|
453
453
|
//#endregion
|
|
454
|
-
//#region ../../node_modules/semver/functions/patch.js
|
|
455
|
-
var require_patch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
456
|
-
const SemVer = require_semver$
|
|
454
|
+
//#region ../../packages/migration/node_modules/semver/functions/patch.js
|
|
455
|
+
var require_patch$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
456
|
+
const SemVer = require_semver$5();
|
|
457
457
|
const patch = (a, loose) => new SemVer(a, loose).patch;
|
|
458
458
|
module.exports = patch;
|
|
459
459
|
}));
|
|
460
460
|
//#endregion
|
|
461
|
-
//#region ../../node_modules/semver/functions/prerelease.js
|
|
462
|
-
var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
463
|
-
const parse = require_parse$
|
|
461
|
+
//#region ../../packages/migration/node_modules/semver/functions/prerelease.js
|
|
462
|
+
var require_prerelease$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
463
|
+
const parse = require_parse$6();
|
|
464
464
|
const prerelease = (version, options) => {
|
|
465
465
|
const parsed = parse(version, options);
|
|
466
466
|
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
@@ -468,30 +468,30 @@ var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
468
468
|
module.exports = prerelease;
|
|
469
469
|
}));
|
|
470
470
|
//#endregion
|
|
471
|
-
//#region ../../node_modules/semver/functions/compare.js
|
|
472
|
-
var require_compare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
473
|
-
const SemVer = require_semver$
|
|
471
|
+
//#region ../../packages/migration/node_modules/semver/functions/compare.js
|
|
472
|
+
var require_compare$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
473
|
+
const SemVer = require_semver$5();
|
|
474
474
|
const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
475
475
|
module.exports = compare;
|
|
476
476
|
}));
|
|
477
477
|
//#endregion
|
|
478
|
-
//#region ../../node_modules/semver/functions/rcompare.js
|
|
479
|
-
var require_rcompare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
480
|
-
const compare = require_compare();
|
|
478
|
+
//#region ../../packages/migration/node_modules/semver/functions/rcompare.js
|
|
479
|
+
var require_rcompare$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
480
|
+
const compare = require_compare$2();
|
|
481
481
|
const rcompare = (a, b, loose) => compare(b, a, loose);
|
|
482
482
|
module.exports = rcompare;
|
|
483
483
|
}));
|
|
484
484
|
//#endregion
|
|
485
|
-
//#region ../../node_modules/semver/functions/compare-loose.js
|
|
486
|
-
var require_compare_loose = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
487
|
-
const compare = require_compare();
|
|
485
|
+
//#region ../../packages/migration/node_modules/semver/functions/compare-loose.js
|
|
486
|
+
var require_compare_loose$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
487
|
+
const compare = require_compare$2();
|
|
488
488
|
const compareLoose = (a, b) => compare(a, b, true);
|
|
489
489
|
module.exports = compareLoose;
|
|
490
490
|
}));
|
|
491
491
|
//#endregion
|
|
492
|
-
//#region ../../node_modules/semver/functions/compare-build.js
|
|
493
|
-
var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
494
|
-
const SemVer = require_semver$
|
|
492
|
+
//#region ../../packages/migration/node_modules/semver/functions/compare-build.js
|
|
493
|
+
var require_compare_build$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
494
|
+
const SemVer = require_semver$5();
|
|
495
495
|
const compareBuild = (a, b, loose) => {
|
|
496
496
|
const versionA = new SemVer(a, loose);
|
|
497
497
|
const versionB = new SemVer(b, loose);
|
|
@@ -500,70 +500,70 @@ var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
500
500
|
module.exports = compareBuild;
|
|
501
501
|
}));
|
|
502
502
|
//#endregion
|
|
503
|
-
//#region ../../node_modules/semver/functions/sort.js
|
|
504
|
-
var require_sort$
|
|
505
|
-
const compareBuild = require_compare_build();
|
|
503
|
+
//#region ../../packages/migration/node_modules/semver/functions/sort.js
|
|
504
|
+
var require_sort$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
505
|
+
const compareBuild = require_compare_build$2();
|
|
506
506
|
const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
507
507
|
module.exports = sort;
|
|
508
508
|
}));
|
|
509
509
|
//#endregion
|
|
510
|
-
//#region ../../node_modules/semver/functions/rsort.js
|
|
511
|
-
var require_rsort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
512
|
-
const compareBuild = require_compare_build();
|
|
510
|
+
//#region ../../packages/migration/node_modules/semver/functions/rsort.js
|
|
511
|
+
var require_rsort$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
512
|
+
const compareBuild = require_compare_build$2();
|
|
513
513
|
const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
514
514
|
module.exports = rsort;
|
|
515
515
|
}));
|
|
516
516
|
//#endregion
|
|
517
|
-
//#region ../../node_modules/semver/functions/gt.js
|
|
518
|
-
var require_gt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
519
|
-
const compare = require_compare();
|
|
517
|
+
//#region ../../packages/migration/node_modules/semver/functions/gt.js
|
|
518
|
+
var require_gt$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
519
|
+
const compare = require_compare$2();
|
|
520
520
|
const gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
521
521
|
module.exports = gt;
|
|
522
522
|
}));
|
|
523
523
|
//#endregion
|
|
524
|
-
//#region ../../node_modules/semver/functions/lt.js
|
|
525
|
-
var require_lt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
526
|
-
const compare = require_compare();
|
|
524
|
+
//#region ../../packages/migration/node_modules/semver/functions/lt.js
|
|
525
|
+
var require_lt$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
526
|
+
const compare = require_compare$2();
|
|
527
527
|
const lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
528
528
|
module.exports = lt;
|
|
529
529
|
}));
|
|
530
530
|
//#endregion
|
|
531
|
-
//#region ../../node_modules/semver/functions/eq.js
|
|
532
|
-
var require_eq$
|
|
533
|
-
const compare = require_compare();
|
|
531
|
+
//#region ../../packages/migration/node_modules/semver/functions/eq.js
|
|
532
|
+
var require_eq$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
533
|
+
const compare = require_compare$2();
|
|
534
534
|
const eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
535
535
|
module.exports = eq;
|
|
536
536
|
}));
|
|
537
537
|
//#endregion
|
|
538
|
-
//#region ../../node_modules/semver/functions/neq.js
|
|
539
|
-
var require_neq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
540
|
-
const compare = require_compare();
|
|
538
|
+
//#region ../../packages/migration/node_modules/semver/functions/neq.js
|
|
539
|
+
var require_neq$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
540
|
+
const compare = require_compare$2();
|
|
541
541
|
const neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
542
542
|
module.exports = neq;
|
|
543
543
|
}));
|
|
544
544
|
//#endregion
|
|
545
|
-
//#region ../../node_modules/semver/functions/gte.js
|
|
546
|
-
var require_gte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
547
|
-
const compare = require_compare();
|
|
545
|
+
//#region ../../packages/migration/node_modules/semver/functions/gte.js
|
|
546
|
+
var require_gte$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
547
|
+
const compare = require_compare$2();
|
|
548
548
|
const gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
549
549
|
module.exports = gte;
|
|
550
550
|
}));
|
|
551
551
|
//#endregion
|
|
552
|
-
//#region ../../node_modules/semver/functions/lte.js
|
|
553
|
-
var require_lte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
554
|
-
const compare = require_compare();
|
|
552
|
+
//#region ../../packages/migration/node_modules/semver/functions/lte.js
|
|
553
|
+
var require_lte$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
554
|
+
const compare = require_compare$2();
|
|
555
555
|
const lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
556
556
|
module.exports = lte;
|
|
557
557
|
}));
|
|
558
558
|
//#endregion
|
|
559
|
-
//#region ../../node_modules/semver/functions/cmp.js
|
|
560
|
-
var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
561
|
-
const eq = require_eq$
|
|
562
|
-
const neq = require_neq();
|
|
563
|
-
const gt = require_gt();
|
|
564
|
-
const gte = require_gte();
|
|
565
|
-
const lt = require_lt();
|
|
566
|
-
const lte = require_lte();
|
|
559
|
+
//#region ../../packages/migration/node_modules/semver/functions/cmp.js
|
|
560
|
+
var require_cmp$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
561
|
+
const eq = require_eq$3();
|
|
562
|
+
const neq = require_neq$2();
|
|
563
|
+
const gt = require_gt$2();
|
|
564
|
+
const gte = require_gte$2();
|
|
565
|
+
const lt = require_lt$2();
|
|
566
|
+
const lte = require_lte$2();
|
|
567
567
|
const cmp = (a, op, b, loose) => {
|
|
568
568
|
switch (op) {
|
|
569
569
|
case "===":
|
|
@@ -588,11 +588,11 @@ var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
588
588
|
module.exports = cmp;
|
|
589
589
|
}));
|
|
590
590
|
//#endregion
|
|
591
|
-
//#region ../../node_modules/semver/functions/coerce.js
|
|
592
|
-
var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
593
|
-
const SemVer = require_semver$
|
|
594
|
-
const parse = require_parse$
|
|
595
|
-
const { safeRe: re, t } = require_re();
|
|
591
|
+
//#region ../../packages/migration/node_modules/semver/functions/coerce.js
|
|
592
|
+
var require_coerce$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
593
|
+
const SemVer = require_semver$5();
|
|
594
|
+
const parse = require_parse$6();
|
|
595
|
+
const { safeRe: re, t } = require_re$2();
|
|
596
596
|
const coerce = (version, options) => {
|
|
597
597
|
if (version instanceof SemVer) return version;
|
|
598
598
|
if (typeof version === "number") version = String(version);
|
|
@@ -616,8 +616,8 @@ var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
616
616
|
module.exports = coerce;
|
|
617
617
|
}));
|
|
618
618
|
//#endregion
|
|
619
|
-
//#region ../../node_modules/semver/internal/lrucache.js
|
|
620
|
-
var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
619
|
+
//#region ../../packages/migration/node_modules/semver/internal/lrucache.js
|
|
620
|
+
var require_lrucache$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
621
621
|
var LRUCache = class {
|
|
622
622
|
constructor() {
|
|
623
623
|
this.max = 1e3;
|
|
@@ -649,8 +649,8 @@ var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
649
649
|
module.exports = LRUCache;
|
|
650
650
|
}));
|
|
651
651
|
//#endregion
|
|
652
|
-
//#region ../../node_modules/semver/classes/range.js
|
|
653
|
-
var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
652
|
+
//#region ../../packages/migration/node_modules/semver/classes/range.js
|
|
653
|
+
var require_range$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
654
654
|
const SPACE_CHARACTERS = /\s+/g;
|
|
655
655
|
module.exports = class Range {
|
|
656
656
|
constructor(range, options) {
|
|
@@ -756,13 +756,13 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
756
756
|
return false;
|
|
757
757
|
}
|
|
758
758
|
};
|
|
759
|
-
const cache = new (require_lrucache())();
|
|
760
|
-
const parseOptions = require_parse_options();
|
|
761
|
-
const Comparator = require_comparator();
|
|
762
|
-
const debug = require_debug();
|
|
763
|
-
const SemVer = require_semver$
|
|
764
|
-
const { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re();
|
|
765
|
-
const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants$
|
|
759
|
+
const cache = new (require_lrucache$2())();
|
|
760
|
+
const parseOptions = require_parse_options$2();
|
|
761
|
+
const Comparator = require_comparator$2();
|
|
762
|
+
const debug = require_debug$2();
|
|
763
|
+
const SemVer = require_semver$5();
|
|
764
|
+
const { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re$2();
|
|
765
|
+
const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants$10();
|
|
766
766
|
const isNullSet = (c) => c.value === "<0.0.0-0";
|
|
767
767
|
const isAny = (c) => c.value === "";
|
|
768
768
|
const isSatisfiable = (comparators, options) => {
|
|
@@ -921,8 +921,8 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
921
921
|
};
|
|
922
922
|
}));
|
|
923
923
|
//#endregion
|
|
924
|
-
//#region ../../node_modules/semver/classes/comparator.js
|
|
925
|
-
var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
924
|
+
//#region ../../packages/migration/node_modules/semver/classes/comparator.js
|
|
925
|
+
var require_comparator$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
926
926
|
const ANY = Symbol("SemVer ANY");
|
|
927
927
|
module.exports = class Comparator {
|
|
928
928
|
static get ANY() {
|
|
@@ -983,17 +983,17 @@ var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
983
983
|
return false;
|
|
984
984
|
}
|
|
985
985
|
};
|
|
986
|
-
const parseOptions = require_parse_options();
|
|
987
|
-
const { safeRe: re, t } = require_re();
|
|
988
|
-
const cmp = require_cmp();
|
|
989
|
-
const debug = require_debug();
|
|
990
|
-
const SemVer = require_semver$
|
|
991
|
-
const Range = require_range();
|
|
986
|
+
const parseOptions = require_parse_options$2();
|
|
987
|
+
const { safeRe: re, t } = require_re$2();
|
|
988
|
+
const cmp = require_cmp$2();
|
|
989
|
+
const debug = require_debug$2();
|
|
990
|
+
const SemVer = require_semver$5();
|
|
991
|
+
const Range = require_range$2();
|
|
992
992
|
}));
|
|
993
993
|
//#endregion
|
|
994
|
-
//#region ../../node_modules/semver/functions/satisfies.js
|
|
995
|
-
var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
996
|
-
const Range = require_range();
|
|
994
|
+
//#region ../../packages/migration/node_modules/semver/functions/satisfies.js
|
|
995
|
+
var require_satisfies$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
996
|
+
const Range = require_range$2();
|
|
997
997
|
const satisfies = (version, range, options) => {
|
|
998
998
|
try {
|
|
999
999
|
range = new Range(range, options);
|
|
@@ -1005,17 +1005,17 @@ var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1005
1005
|
module.exports = satisfies;
|
|
1006
1006
|
}));
|
|
1007
1007
|
//#endregion
|
|
1008
|
-
//#region ../../node_modules/semver/ranges/to-comparators.js
|
|
1009
|
-
var require_to_comparators = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1010
|
-
const Range = require_range();
|
|
1008
|
+
//#region ../../packages/migration/node_modules/semver/ranges/to-comparators.js
|
|
1009
|
+
var require_to_comparators$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1010
|
+
const Range = require_range$2();
|
|
1011
1011
|
const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
1012
1012
|
module.exports = toComparators;
|
|
1013
1013
|
}));
|
|
1014
1014
|
//#endregion
|
|
1015
|
-
//#region ../../node_modules/semver/ranges/max-satisfying.js
|
|
1016
|
-
var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1017
|
-
const SemVer = require_semver$
|
|
1018
|
-
const Range = require_range();
|
|
1015
|
+
//#region ../../packages/migration/node_modules/semver/ranges/max-satisfying.js
|
|
1016
|
+
var require_max_satisfying$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1017
|
+
const SemVer = require_semver$5();
|
|
1018
|
+
const Range = require_range$2();
|
|
1019
1019
|
const maxSatisfying = (versions, range, options) => {
|
|
1020
1020
|
let max = null;
|
|
1021
1021
|
let maxSV = null;
|
|
@@ -1038,10 +1038,10 @@ var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
1038
1038
|
module.exports = maxSatisfying;
|
|
1039
1039
|
}));
|
|
1040
1040
|
//#endregion
|
|
1041
|
-
//#region ../../node_modules/semver/ranges/min-satisfying.js
|
|
1042
|
-
var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1043
|
-
const SemVer = require_semver$
|
|
1044
|
-
const Range = require_range();
|
|
1041
|
+
//#region ../../packages/migration/node_modules/semver/ranges/min-satisfying.js
|
|
1042
|
+
var require_min_satisfying$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1043
|
+
const SemVer = require_semver$5();
|
|
1044
|
+
const Range = require_range$2();
|
|
1045
1045
|
const minSatisfying = (versions, range, options) => {
|
|
1046
1046
|
let min = null;
|
|
1047
1047
|
let minSV = null;
|
|
@@ -1064,11 +1064,11 @@ var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
1064
1064
|
module.exports = minSatisfying;
|
|
1065
1065
|
}));
|
|
1066
1066
|
//#endregion
|
|
1067
|
-
//#region ../../node_modules/semver/ranges/min-version.js
|
|
1068
|
-
var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1069
|
-
const SemVer = require_semver$
|
|
1070
|
-
const Range = require_range();
|
|
1071
|
-
const gt = require_gt();
|
|
1067
|
+
//#region ../../packages/migration/node_modules/semver/ranges/min-version.js
|
|
1068
|
+
var require_min_version$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1069
|
+
const SemVer = require_semver$5();
|
|
1070
|
+
const Range = require_range$2();
|
|
1071
|
+
const gt = require_gt$2();
|
|
1072
1072
|
const minVersion = (range, loose) => {
|
|
1073
1073
|
range = new Range(range, loose);
|
|
1074
1074
|
let minver = new SemVer("0.0.0");
|
|
@@ -1103,9 +1103,9 @@ var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1103
1103
|
module.exports = minVersion;
|
|
1104
1104
|
}));
|
|
1105
1105
|
//#endregion
|
|
1106
|
-
//#region ../../node_modules/semver/ranges/valid.js
|
|
1107
|
-
var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1108
|
-
const Range = require_range();
|
|
1106
|
+
//#region ../../packages/migration/node_modules/semver/ranges/valid.js
|
|
1107
|
+
var require_valid$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1108
|
+
const Range = require_range$2();
|
|
1109
1109
|
const validRange = (range, options) => {
|
|
1110
1110
|
try {
|
|
1111
1111
|
return new Range(range, options).range || "*";
|
|
@@ -1116,17 +1116,17 @@ var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1116
1116
|
module.exports = validRange;
|
|
1117
1117
|
}));
|
|
1118
1118
|
//#endregion
|
|
1119
|
-
//#region ../../node_modules/semver/ranges/outside.js
|
|
1120
|
-
var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1121
|
-
const SemVer = require_semver$
|
|
1122
|
-
const Comparator = require_comparator();
|
|
1119
|
+
//#region ../../packages/migration/node_modules/semver/ranges/outside.js
|
|
1120
|
+
var require_outside$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1121
|
+
const SemVer = require_semver$5();
|
|
1122
|
+
const Comparator = require_comparator$2();
|
|
1123
1123
|
const { ANY } = Comparator;
|
|
1124
|
-
const Range = require_range();
|
|
1125
|
-
const satisfies = require_satisfies();
|
|
1126
|
-
const gt = require_gt();
|
|
1127
|
-
const lt = require_lt();
|
|
1128
|
-
const lte = require_lte();
|
|
1129
|
-
const gte = require_gte();
|
|
1124
|
+
const Range = require_range$2();
|
|
1125
|
+
const satisfies = require_satisfies$2();
|
|
1126
|
+
const gt = require_gt$2();
|
|
1127
|
+
const lt = require_lt$2();
|
|
1128
|
+
const lte = require_lte$2();
|
|
1129
|
+
const gte = require_gte$2();
|
|
1130
1130
|
const outside = (version, range, hilo, options) => {
|
|
1131
1131
|
version = new SemVer(version, options);
|
|
1132
1132
|
range = new Range(range, options);
|
|
@@ -1169,23 +1169,23 @@ var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1169
1169
|
module.exports = outside;
|
|
1170
1170
|
}));
|
|
1171
1171
|
//#endregion
|
|
1172
|
-
//#region ../../node_modules/semver/ranges/gtr.js
|
|
1173
|
-
var require_gtr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1174
|
-
const outside = require_outside();
|
|
1172
|
+
//#region ../../packages/migration/node_modules/semver/ranges/gtr.js
|
|
1173
|
+
var require_gtr$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1174
|
+
const outside = require_outside$2();
|
|
1175
1175
|
const gtr = (version, range, options) => outside(version, range, ">", options);
|
|
1176
1176
|
module.exports = gtr;
|
|
1177
1177
|
}));
|
|
1178
1178
|
//#endregion
|
|
1179
|
-
//#region ../../node_modules/semver/ranges/ltr.js
|
|
1180
|
-
var require_ltr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1181
|
-
const outside = require_outside();
|
|
1179
|
+
//#region ../../packages/migration/node_modules/semver/ranges/ltr.js
|
|
1180
|
+
var require_ltr$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1181
|
+
const outside = require_outside$2();
|
|
1182
1182
|
const ltr = (version, range, options) => outside(version, range, "<", options);
|
|
1183
1183
|
module.exports = ltr;
|
|
1184
1184
|
}));
|
|
1185
1185
|
//#endregion
|
|
1186
|
-
//#region ../../node_modules/semver/ranges/intersects.js
|
|
1187
|
-
var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1188
|
-
const Range = require_range();
|
|
1186
|
+
//#region ../../packages/migration/node_modules/semver/ranges/intersects.js
|
|
1187
|
+
var require_intersects$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1188
|
+
const Range = require_range$2();
|
|
1189
1189
|
const intersects = (r1, r2, options) => {
|
|
1190
1190
|
r1 = new Range(r1, options);
|
|
1191
1191
|
r2 = new Range(r2, options);
|
|
@@ -1194,10 +1194,10 @@ var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1194
1194
|
module.exports = intersects;
|
|
1195
1195
|
}));
|
|
1196
1196
|
//#endregion
|
|
1197
|
-
//#region ../../node_modules/semver/ranges/simplify.js
|
|
1198
|
-
var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1199
|
-
const satisfies = require_satisfies();
|
|
1200
|
-
const compare = require_compare();
|
|
1197
|
+
//#region ../../packages/migration/node_modules/semver/ranges/simplify.js
|
|
1198
|
+
var require_simplify$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1199
|
+
const satisfies = require_satisfies$2();
|
|
1200
|
+
const compare = require_compare$2();
|
|
1201
1201
|
module.exports = (versions, range, options) => {
|
|
1202
1202
|
const set = [];
|
|
1203
1203
|
let first = null;
|
|
@@ -1224,13 +1224,13 @@ var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1224
1224
|
};
|
|
1225
1225
|
}));
|
|
1226
1226
|
//#endregion
|
|
1227
|
-
//#region ../../node_modules/semver/ranges/subset.js
|
|
1228
|
-
var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1229
|
-
const Range = require_range();
|
|
1230
|
-
const Comparator = require_comparator();
|
|
1227
|
+
//#region ../../packages/migration/node_modules/semver/ranges/subset.js
|
|
1228
|
+
var require_subset$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1229
|
+
const Range = require_range$2();
|
|
1230
|
+
const Comparator = require_comparator$2();
|
|
1231
1231
|
const { ANY } = Comparator;
|
|
1232
|
-
const satisfies = require_satisfies();
|
|
1233
|
-
const compare = require_compare();
|
|
1232
|
+
const satisfies = require_satisfies$2();
|
|
1233
|
+
const compare = require_compare$2();
|
|
1234
1234
|
const subset = (sub, dom, options = {}) => {
|
|
1235
1235
|
if (sub === dom) return true;
|
|
1236
1236
|
sub = new Range(sub, options);
|
|
@@ -1319,50 +1319,50 @@ var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1319
1319
|
module.exports = subset;
|
|
1320
1320
|
}));
|
|
1321
1321
|
//#endregion
|
|
1322
|
-
//#region ../../
|
|
1323
|
-
var
|
|
1324
|
-
const internalRe = require_re();
|
|
1325
|
-
const constants = require_constants$
|
|
1326
|
-
const SemVer = require_semver$
|
|
1327
|
-
const identifiers = require_identifiers();
|
|
1322
|
+
//#region ../../packages/migration/src/utils/object-keys.ts
|
|
1323
|
+
var import_semver$1 = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1324
|
+
const internalRe = require_re$2();
|
|
1325
|
+
const constants = require_constants$10();
|
|
1326
|
+
const SemVer = require_semver$5();
|
|
1327
|
+
const identifiers = require_identifiers$2();
|
|
1328
1328
|
module.exports = {
|
|
1329
|
-
parse: require_parse$
|
|
1330
|
-
valid: require_valid$
|
|
1331
|
-
clean: require_clean(),
|
|
1332
|
-
inc: require_inc(),
|
|
1333
|
-
diff: require_diff(),
|
|
1334
|
-
major: require_major(),
|
|
1335
|
-
minor: require_minor(),
|
|
1336
|
-
patch: require_patch(),
|
|
1337
|
-
prerelease: require_prerelease(),
|
|
1338
|
-
compare: require_compare(),
|
|
1339
|
-
rcompare: require_rcompare(),
|
|
1340
|
-
compareLoose: require_compare_loose(),
|
|
1341
|
-
compareBuild: require_compare_build(),
|
|
1342
|
-
sort: require_sort$
|
|
1343
|
-
rsort: require_rsort(),
|
|
1344
|
-
gt: require_gt(),
|
|
1345
|
-
lt: require_lt(),
|
|
1346
|
-
eq: require_eq$
|
|
1347
|
-
neq: require_neq(),
|
|
1348
|
-
gte: require_gte(),
|
|
1349
|
-
lte: require_lte(),
|
|
1350
|
-
cmp: require_cmp(),
|
|
1351
|
-
coerce: require_coerce(),
|
|
1352
|
-
Comparator: require_comparator(),
|
|
1353
|
-
Range: require_range(),
|
|
1354
|
-
satisfies: require_satisfies(),
|
|
1355
|
-
toComparators: require_to_comparators(),
|
|
1356
|
-
maxSatisfying: require_max_satisfying(),
|
|
1357
|
-
minSatisfying: require_min_satisfying(),
|
|
1358
|
-
minVersion: require_min_version(),
|
|
1359
|
-
validRange: require_valid(),
|
|
1360
|
-
outside: require_outside(),
|
|
1361
|
-
gtr: require_gtr(),
|
|
1362
|
-
ltr: require_ltr(),
|
|
1363
|
-
intersects: require_intersects(),
|
|
1364
|
-
simplifyRange: require_simplify(),
|
|
1365
|
-
subset: require_subset(),
|
|
1329
|
+
parse: require_parse$6(),
|
|
1330
|
+
valid: require_valid$5(),
|
|
1331
|
+
clean: require_clean$2(),
|
|
1332
|
+
inc: require_inc$2(),
|
|
1333
|
+
diff: require_diff$2(),
|
|
1334
|
+
major: require_major$2(),
|
|
1335
|
+
minor: require_minor$2(),
|
|
1336
|
+
patch: require_patch$2(),
|
|
1337
|
+
prerelease: require_prerelease$2(),
|
|
1338
|
+
compare: require_compare$2(),
|
|
1339
|
+
rcompare: require_rcompare$2(),
|
|
1340
|
+
compareLoose: require_compare_loose$2(),
|
|
1341
|
+
compareBuild: require_compare_build$2(),
|
|
1342
|
+
sort: require_sort$3(),
|
|
1343
|
+
rsort: require_rsort$2(),
|
|
1344
|
+
gt: require_gt$2(),
|
|
1345
|
+
lt: require_lt$2(),
|
|
1346
|
+
eq: require_eq$3(),
|
|
1347
|
+
neq: require_neq$2(),
|
|
1348
|
+
gte: require_gte$2(),
|
|
1349
|
+
lte: require_lte$2(),
|
|
1350
|
+
cmp: require_cmp$2(),
|
|
1351
|
+
coerce: require_coerce$2(),
|
|
1352
|
+
Comparator: require_comparator$2(),
|
|
1353
|
+
Range: require_range$2(),
|
|
1354
|
+
satisfies: require_satisfies$2(),
|
|
1355
|
+
toComparators: require_to_comparators$2(),
|
|
1356
|
+
maxSatisfying: require_max_satisfying$2(),
|
|
1357
|
+
minSatisfying: require_min_satisfying$2(),
|
|
1358
|
+
minVersion: require_min_version$2(),
|
|
1359
|
+
validRange: require_valid$4(),
|
|
1360
|
+
outside: require_outside$2(),
|
|
1361
|
+
gtr: require_gtr$2(),
|
|
1362
|
+
ltr: require_ltr$2(),
|
|
1363
|
+
intersects: require_intersects$2(),
|
|
1364
|
+
simplifyRange: require_simplify$2(),
|
|
1365
|
+
subset: require_subset$2(),
|
|
1366
1366
|
SemVer,
|
|
1367
1367
|
re: internalRe.re,
|
|
1368
1368
|
src: internalRe.src,
|
|
@@ -1372,10 +1372,7 @@ var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1372
1372
|
compareIdentifiers: identifiers.compareIdentifiers,
|
|
1373
1373
|
rcompareIdentifiers: identifiers.rcompareIdentifiers
|
|
1374
1374
|
};
|
|
1375
|
-
}));
|
|
1376
|
-
//#endregion
|
|
1377
|
-
//#region ../../packages/migration/src/utils/object-keys.ts
|
|
1378
|
-
var import_semver = /* @__PURE__ */ __toESM(require_semver(), 1);
|
|
1375
|
+
})))(), 1);
|
|
1379
1376
|
const objectKeys = Object.keys;
|
|
1380
1377
|
//#endregion
|
|
1381
1378
|
//#region ../../node_modules/klona/dist/index.mjs
|
|
@@ -1584,19 +1581,6 @@ function custom(check2, message) {
|
|
|
1584
1581
|
}
|
|
1585
1582
|
};
|
|
1586
1583
|
}
|
|
1587
|
-
function lazy(getter) {
|
|
1588
|
-
return {
|
|
1589
|
-
kind: "schema",
|
|
1590
|
-
type: "lazy",
|
|
1591
|
-
reference: lazy,
|
|
1592
|
-
expects: "unknown",
|
|
1593
|
-
async: false,
|
|
1594
|
-
getter,
|
|
1595
|
-
_run(dataset, config2) {
|
|
1596
|
-
return this.getter(dataset.value)._run(dataset, config2);
|
|
1597
|
-
}
|
|
1598
|
-
};
|
|
1599
|
-
}
|
|
1600
1584
|
function literal(literal_, message) {
|
|
1601
1585
|
return {
|
|
1602
1586
|
kind: "schema",
|
|
@@ -1940,7 +1924,7 @@ var Migrator = class {
|
|
|
1940
1924
|
}
|
|
1941
1925
|
getVersions() {
|
|
1942
1926
|
const keys = objectKeys(this.migrations);
|
|
1943
|
-
return import_semver.sort(keys);
|
|
1927
|
+
return import_semver$1.sort(keys);
|
|
1944
1928
|
}
|
|
1945
1929
|
async migrate(_state, options) {
|
|
1946
1930
|
const state = _state ?? this.defaultValue;
|
|
@@ -1972,11 +1956,11 @@ var Migrator = class {
|
|
|
1972
1956
|
return finalState;
|
|
1973
1957
|
}
|
|
1974
1958
|
tryCoerce(version) {
|
|
1975
|
-
return this.coerce ? (0, import_semver.coerce)(version)?.version ?? version : version;
|
|
1959
|
+
return this.coerce ? (0, import_semver$1.coerce)(version)?.version ?? version : version;
|
|
1976
1960
|
}
|
|
1977
1961
|
needMigration(version) {
|
|
1978
1962
|
const newVersion = this.tryCoerce(version);
|
|
1979
|
-
return import_semver.lt(newVersion, this.current);
|
|
1963
|
+
return import_semver$1.lt(newVersion, this.current);
|
|
1980
1964
|
}
|
|
1981
1965
|
};
|
|
1982
1966
|
//#endregion
|
|
@@ -1993,12 +1977,74 @@ const createMigrator = () => {
|
|
|
1993
1977
|
};
|
|
1994
1978
|
//#endregion
|
|
1995
1979
|
//#region ../../packages/shared/src/config/migrators.ts
|
|
1980
|
+
const DEFAULT_PLUGINS = [
|
|
1981
|
+
{
|
|
1982
|
+
name: "@pipelab/plugin-construct",
|
|
1983
|
+
enabled: true,
|
|
1984
|
+
description: "Construct 3 export & packaging"
|
|
1985
|
+
},
|
|
1986
|
+
{
|
|
1987
|
+
name: "@pipelab/plugin-filesystem",
|
|
1988
|
+
enabled: true,
|
|
1989
|
+
description: "Filesystem utilities"
|
|
1990
|
+
},
|
|
1991
|
+
{
|
|
1992
|
+
name: "@pipelab/plugin-system",
|
|
1993
|
+
enabled: true,
|
|
1994
|
+
description: "System & shell commands"
|
|
1995
|
+
},
|
|
1996
|
+
{
|
|
1997
|
+
name: "@pipelab/plugin-steam",
|
|
1998
|
+
enabled: true,
|
|
1999
|
+
description: "Steam publishing"
|
|
2000
|
+
},
|
|
2001
|
+
{
|
|
2002
|
+
name: "@pipelab/plugin-itch",
|
|
2003
|
+
enabled: true,
|
|
2004
|
+
description: "Itch.io publishing"
|
|
2005
|
+
},
|
|
2006
|
+
{
|
|
2007
|
+
name: "@pipelab/plugin-electron",
|
|
2008
|
+
enabled: true,
|
|
2009
|
+
description: "Electron packaging"
|
|
2010
|
+
},
|
|
2011
|
+
{
|
|
2012
|
+
name: "@pipelab/plugin-discord",
|
|
2013
|
+
enabled: true,
|
|
2014
|
+
description: "Discord Rich Presence"
|
|
2015
|
+
},
|
|
2016
|
+
{
|
|
2017
|
+
name: "@pipelab/plugin-poki",
|
|
2018
|
+
enabled: true,
|
|
2019
|
+
description: "Poki publishing"
|
|
2020
|
+
},
|
|
2021
|
+
{
|
|
2022
|
+
name: "@pipelab/plugin-nvpatch",
|
|
2023
|
+
enabled: true,
|
|
2024
|
+
description: "NW.js patching"
|
|
2025
|
+
},
|
|
2026
|
+
{
|
|
2027
|
+
name: "@pipelab/plugin-tauri",
|
|
2028
|
+
enabled: true,
|
|
2029
|
+
description: "Tauri packaging"
|
|
2030
|
+
},
|
|
2031
|
+
{
|
|
2032
|
+
name: "@pipelab/plugin-minify",
|
|
2033
|
+
enabled: true,
|
|
2034
|
+
description: "Asset minification"
|
|
2035
|
+
},
|
|
2036
|
+
{
|
|
2037
|
+
name: "@pipelab/plugin-netlify",
|
|
2038
|
+
enabled: true,
|
|
2039
|
+
description: "Netlify deployment"
|
|
2040
|
+
}
|
|
2041
|
+
];
|
|
1996
2042
|
const createMigration = (config) => createMigration$1(config);
|
|
1997
2043
|
const settingsMigratorInternal = createMigrator();
|
|
1998
2044
|
const defaultAppSettings = settingsMigratorInternal.createDefault({
|
|
1999
2045
|
locale: "en-US",
|
|
2000
2046
|
theme: "light",
|
|
2001
|
-
version: "
|
|
2047
|
+
version: "8.0.0",
|
|
2002
2048
|
autosave: true,
|
|
2003
2049
|
agents: [],
|
|
2004
2050
|
tours: {
|
|
@@ -2015,7 +2061,9 @@ const defaultAppSettings = settingsMigratorInternal.createDefault({
|
|
|
2015
2061
|
enabled: false,
|
|
2016
2062
|
maxEntries: 50,
|
|
2017
2063
|
maxAge: 30
|
|
2018
|
-
} }
|
|
2064
|
+
} },
|
|
2065
|
+
plugins: DEFAULT_PLUGINS,
|
|
2066
|
+
isInternalMigrationBannerClosed: false
|
|
2019
2067
|
});
|
|
2020
2068
|
settingsMigratorInternal.createMigrations({
|
|
2021
2069
|
defaultValue: defaultAppSettings,
|
|
@@ -2066,19 +2114,22 @@ settingsMigratorInternal.createMigrations({
|
|
|
2066
2114
|
createMigration({
|
|
2067
2115
|
version: "6.0.0",
|
|
2068
2116
|
up: (state) => {
|
|
2117
|
+
const { cacheFolder: _, clearTemporaryFoldersOnPipelineEnd: __, ...rest } = state;
|
|
2069
2118
|
return {
|
|
2070
|
-
...
|
|
2119
|
+
...rest,
|
|
2071
2120
|
agents: [],
|
|
2072
2121
|
buildHistory: { retentionPolicy: {
|
|
2073
2122
|
enabled: false,
|
|
2074
2123
|
maxEntries: 50,
|
|
2075
2124
|
maxAge: 30
|
|
2076
|
-
} }
|
|
2125
|
+
} },
|
|
2126
|
+
plugins: DEFAULT_PLUGINS,
|
|
2127
|
+
isInternalMigrationBannerClosed: false
|
|
2077
2128
|
};
|
|
2078
2129
|
}
|
|
2079
2130
|
}),
|
|
2080
2131
|
createMigration({
|
|
2081
|
-
version: "
|
|
2132
|
+
version: "8.0.0",
|
|
2082
2133
|
up: finalVersion
|
|
2083
2134
|
})
|
|
2084
2135
|
]
|
|
@@ -2129,8 +2180,7 @@ const savedFileDefaultValue = savedFileMigratorInternal.createDefault({
|
|
|
2129
2180
|
description: "",
|
|
2130
2181
|
name: "",
|
|
2131
2182
|
variables: [],
|
|
2132
|
-
|
|
2133
|
-
version: "4.0.0"
|
|
2183
|
+
version: "5.0.0"
|
|
2134
2184
|
});
|
|
2135
2185
|
savedFileMigratorInternal.createMigrations({
|
|
2136
2186
|
defaultValue: savedFileDefaultValue,
|
|
@@ -2193,10 +2243,63 @@ savedFileMigratorInternal.createMigrations({
|
|
|
2193
2243
|
}),
|
|
2194
2244
|
createMigration({
|
|
2195
2245
|
version: "4.0.0",
|
|
2246
|
+
up: (_state) => {
|
|
2247
|
+
const state = _state;
|
|
2248
|
+
if (state.type === "simple") return {
|
|
2249
|
+
name: state.name,
|
|
2250
|
+
description: state.description,
|
|
2251
|
+
canvas: {
|
|
2252
|
+
blocks: [],
|
|
2253
|
+
triggers: []
|
|
2254
|
+
},
|
|
2255
|
+
variables: []
|
|
2256
|
+
};
|
|
2257
|
+
const migrateBlock = (block, pluginsMap) => {
|
|
2258
|
+
if (!block) return;
|
|
2259
|
+
if (block.origin?.pluginId) {
|
|
2260
|
+
block.origin.pluginId = getStrictPluginId(block.origin.pluginId);
|
|
2261
|
+
block.origin.version = pluginsMap[block.origin.pluginId] ?? "latest";
|
|
2262
|
+
}
|
|
2263
|
+
};
|
|
2264
|
+
const normalizedPlugins = {};
|
|
2265
|
+
if (state.plugins) for (const [key, val] of Object.entries(state.plugins)) normalizedPlugins[getStrictPluginId(key)] = val;
|
|
2266
|
+
if (state.canvas) {
|
|
2267
|
+
for (const block of state.canvas.blocks ?? []) migrateBlock(block, normalizedPlugins);
|
|
2268
|
+
for (const trigger of state.canvas.triggers ?? []) migrateBlock(trigger, normalizedPlugins);
|
|
2269
|
+
}
|
|
2270
|
+
const { plugins: _dropped, type: _type, ...rest } = state;
|
|
2271
|
+
return rest;
|
|
2272
|
+
}
|
|
2273
|
+
}),
|
|
2274
|
+
createMigration({
|
|
2275
|
+
version: "5.0.0",
|
|
2196
2276
|
up: finalVersion
|
|
2197
2277
|
})
|
|
2198
2278
|
]
|
|
2199
2279
|
});
|
|
2280
|
+
const LEGACY_ID_MAP = {
|
|
2281
|
+
construct: "@pipelab/plugin-construct",
|
|
2282
|
+
filesystem: "@pipelab/plugin-filesystem",
|
|
2283
|
+
system: "@pipelab/plugin-system",
|
|
2284
|
+
steam: "@pipelab/plugin-steam",
|
|
2285
|
+
itch: "@pipelab/plugin-itch",
|
|
2286
|
+
electron: "@pipelab/plugin-electron",
|
|
2287
|
+
discord: "@pipelab/plugin-discord",
|
|
2288
|
+
dicord: "@pipelab/plugin-discord",
|
|
2289
|
+
"@pipelab/plugin-dicord": "@pipelab/plugin-discord",
|
|
2290
|
+
poki: "@pipelab/plugin-poki",
|
|
2291
|
+
nvpatch: "@pipelab/plugin-nvpatch",
|
|
2292
|
+
tauri: "@pipelab/plugin-tauri",
|
|
2293
|
+
minify: "@pipelab/plugin-minify",
|
|
2294
|
+
netlify: "@pipelab/plugin-netlify"
|
|
2295
|
+
};
|
|
2296
|
+
const getStrictPluginId = (pluginId) => {
|
|
2297
|
+
if (!pluginId) return pluginId;
|
|
2298
|
+
if (LEGACY_ID_MAP[pluginId]) return LEGACY_ID_MAP[pluginId];
|
|
2299
|
+
if (pluginId.startsWith("@") || pluginId.includes("/") || pluginId.startsWith("pipelab-plugin-")) return pluginId;
|
|
2300
|
+
const prefixed = `@pipelab/plugin-${pluginId}`;
|
|
2301
|
+
return LEGACY_ID_MAP[prefixed] || prefixed;
|
|
2302
|
+
};
|
|
2200
2303
|
object({
|
|
2201
2304
|
cacheFolder: string(),
|
|
2202
2305
|
theme: union([literal("light"), literal("dark")]),
|
|
@@ -2309,6 +2412,45 @@ object({
|
|
|
2309
2412
|
maxAge: number()
|
|
2310
2413
|
}) })
|
|
2311
2414
|
});
|
|
2415
|
+
object({
|
|
2416
|
+
theme: union([literal("light"), literal("dark")]),
|
|
2417
|
+
version: literal("8.0.0"),
|
|
2418
|
+
locale: union([
|
|
2419
|
+
literal("en-US"),
|
|
2420
|
+
literal("fr-FR"),
|
|
2421
|
+
literal("pt-BR"),
|
|
2422
|
+
literal("zh-CN"),
|
|
2423
|
+
literal("es-ES"),
|
|
2424
|
+
literal("de-DE")
|
|
2425
|
+
]),
|
|
2426
|
+
tours: object({
|
|
2427
|
+
dashboard: object({
|
|
2428
|
+
step: number(),
|
|
2429
|
+
completed: boolean()
|
|
2430
|
+
}),
|
|
2431
|
+
editor: object({
|
|
2432
|
+
step: number(),
|
|
2433
|
+
completed: boolean()
|
|
2434
|
+
})
|
|
2435
|
+
}),
|
|
2436
|
+
autosave: boolean(),
|
|
2437
|
+
agents: array(object({
|
|
2438
|
+
id: string(),
|
|
2439
|
+
name: string(),
|
|
2440
|
+
url: string()
|
|
2441
|
+
})),
|
|
2442
|
+
buildHistory: object({ retentionPolicy: object({
|
|
2443
|
+
enabled: boolean(),
|
|
2444
|
+
maxEntries: number(),
|
|
2445
|
+
maxAge: number()
|
|
2446
|
+
}) }),
|
|
2447
|
+
plugins: array(object({
|
|
2448
|
+
name: string(),
|
|
2449
|
+
enabled: boolean(),
|
|
2450
|
+
description: string()
|
|
2451
|
+
})),
|
|
2452
|
+
isInternalMigrationBannerClosed: optional(boolean(), false)
|
|
2453
|
+
});
|
|
2312
2454
|
//#endregion
|
|
2313
2455
|
//#region ../../node_modules/tslog/dist/esm/prettyLogStyles.js
|
|
2314
2456
|
const prettyLogStyles = {
|
|
@@ -2828,7 +2970,8 @@ const useLogger = () => {
|
|
|
2828
2970
|
//#region ../../packages/shared/src/model.ts
|
|
2829
2971
|
const OriginValidator = object({
|
|
2830
2972
|
pluginId: string(),
|
|
2831
|
-
nodeId: string()
|
|
2973
|
+
nodeId: string(),
|
|
2974
|
+
version: pipe(optional(string()), description("Pinned version of the plugin for this block. Falls back to \"latest\" when absent."))
|
|
2832
2975
|
});
|
|
2833
2976
|
const BlockActionValidatorV1 = object({
|
|
2834
2977
|
type: literal("action"),
|
|
@@ -2849,21 +2992,6 @@ const BlockActionValidatorV3 = object({
|
|
|
2849
2992
|
})),
|
|
2850
2993
|
origin: OriginValidator
|
|
2851
2994
|
});
|
|
2852
|
-
object({
|
|
2853
|
-
type: literal("condition"),
|
|
2854
|
-
uid: string(),
|
|
2855
|
-
origin: OriginValidator,
|
|
2856
|
-
params: record(string(), any()),
|
|
2857
|
-
branchTrue: lazy(() => array(BlockValidator)),
|
|
2858
|
-
branchFalse: lazy(() => array(BlockValidator))
|
|
2859
|
-
});
|
|
2860
|
-
object({
|
|
2861
|
-
type: literal("loop"),
|
|
2862
|
-
uid: string(),
|
|
2863
|
-
origin: OriginValidator,
|
|
2864
|
-
params: record(string(), any()),
|
|
2865
|
-
children: lazy(() => array(BlockValidator))
|
|
2866
|
-
});
|
|
2867
2995
|
const BlockEventValidator = object({
|
|
2868
2996
|
type: literal("event"),
|
|
2869
2997
|
uid: string(),
|
|
@@ -2879,7 +3007,6 @@ object({
|
|
|
2879
3007
|
const BlockValidatorV1 = variant("type", [BlockActionValidatorV1, BlockEventValidator]);
|
|
2880
3008
|
const BlockValidatorV2 = variant("type", [BlockActionValidatorV1]);
|
|
2881
3009
|
const BlockValidatorV3 = variant("type", [BlockActionValidatorV3]);
|
|
2882
|
-
const BlockValidator = BlockValidatorV3;
|
|
2883
3010
|
const CanvasValidatorV1 = object({ blocks: array(BlockValidatorV1) });
|
|
2884
3011
|
const CanvasValidatorV2 = object({
|
|
2885
3012
|
blocks: array(BlockValidatorV2),
|
|
@@ -2911,18 +3038,59 @@ object({
|
|
|
2911
3038
|
canvas: CanvasValidatorV3,
|
|
2912
3039
|
variables: array(VariableValidatorV1)
|
|
2913
3040
|
});
|
|
2914
|
-
|
|
3041
|
+
const SavedFileDefaultValidatorV4 = object({
|
|
2915
3042
|
version: literal("4.0.0"),
|
|
2916
3043
|
type: literal("default"),
|
|
2917
3044
|
name: string(),
|
|
2918
3045
|
description: string(),
|
|
3046
|
+
plugins: optional(record(string(), string())),
|
|
2919
3047
|
canvas: CanvasValidatorV3,
|
|
2920
3048
|
variables: array(VariableValidatorV1)
|
|
2921
|
-
})
|
|
3049
|
+
});
|
|
3050
|
+
const SavedFileSimpleValidatorV4 = object({
|
|
2922
3051
|
version: literal("4.0.0"),
|
|
2923
3052
|
type: literal("simple"),
|
|
2924
3053
|
name: string(),
|
|
2925
3054
|
description: string(),
|
|
3055
|
+
plugins: optional(record(string(), string())),
|
|
3056
|
+
source: object({
|
|
3057
|
+
type: union([
|
|
3058
|
+
literal("c3-html"),
|
|
3059
|
+
literal("c3-nwjs"),
|
|
3060
|
+
literal("godot"),
|
|
3061
|
+
literal("html")
|
|
3062
|
+
]),
|
|
3063
|
+
path: string()
|
|
3064
|
+
}),
|
|
3065
|
+
packaging: object({ enabled: boolean() }),
|
|
3066
|
+
publishing: object({
|
|
3067
|
+
steam: object({
|
|
3068
|
+
enabled: boolean(),
|
|
3069
|
+
appId: optional(string())
|
|
3070
|
+
}),
|
|
3071
|
+
itch: object({
|
|
3072
|
+
enabled: boolean(),
|
|
3073
|
+
project: optional(string())
|
|
3074
|
+
}),
|
|
3075
|
+
poki: object({
|
|
3076
|
+
enabled: boolean(),
|
|
3077
|
+
gameId: optional(string())
|
|
3078
|
+
})
|
|
3079
|
+
})
|
|
3080
|
+
});
|
|
3081
|
+
object({
|
|
3082
|
+
version: literal("5.0.0"),
|
|
3083
|
+
name: string(),
|
|
3084
|
+
description: string(),
|
|
3085
|
+
canvas: CanvasValidatorV3,
|
|
3086
|
+
variables: array(VariableValidatorV1)
|
|
3087
|
+
});
|
|
3088
|
+
object({
|
|
3089
|
+
version: literal("5.0.0"),
|
|
3090
|
+
type: literal("simple"),
|
|
3091
|
+
name: string(),
|
|
3092
|
+
description: string(),
|
|
3093
|
+
plugins: record(string(), string()),
|
|
2926
3094
|
source: object({
|
|
2927
3095
|
type: union([
|
|
2928
3096
|
literal("c3-html"),
|
|
@@ -2947,7 +3115,8 @@ union([object({
|
|
|
2947
3115
|
gameId: optional(string())
|
|
2948
3116
|
})
|
|
2949
3117
|
})
|
|
2950
|
-
})
|
|
3118
|
+
});
|
|
3119
|
+
union([SavedFileDefaultValidatorV4, SavedFileSimpleValidatorV4]);
|
|
2951
3120
|
//#endregion
|
|
2952
3121
|
//#region ../../node_modules/vue/node_modules/@vue/shared/dist/shared.cjs.prod.js
|
|
2953
3122
|
/**
|
|
@@ -45211,7 +45380,7 @@ function findProjectRoot(startDir) {
|
|
|
45211
45380
|
const projectRoot = findProjectRoot(_dirname);
|
|
45212
45381
|
//#endregion
|
|
45213
45382
|
//#region ../../packages/core-node/node_modules/ws/lib/constants.js
|
|
45214
|
-
var require_constants$
|
|
45383
|
+
var require_constants$9 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
45215
45384
|
const BINARY_TYPES = [
|
|
45216
45385
|
"nodebuffer",
|
|
45217
45386
|
"arraybuffer",
|
|
@@ -45234,7 +45403,7 @@ var require_constants$7 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
45234
45403
|
//#endregion
|
|
45235
45404
|
//#region ../../packages/core-node/node_modules/ws/lib/buffer-util.js
|
|
45236
45405
|
var require_buffer_util = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
45237
|
-
const { EMPTY_BUFFER } = require_constants$
|
|
45406
|
+
const { EMPTY_BUFFER } = require_constants$9();
|
|
45238
45407
|
const FastBuffer = Buffer[Symbol.species];
|
|
45239
45408
|
/**
|
|
45240
45409
|
* Merges an array of buffers into a new buffer.
|
|
@@ -45388,7 +45557,7 @@ var require_permessage_deflate = /* @__PURE__ */ __commonJSMin(((exports, module
|
|
|
45388
45557
|
const zlib$2 = __require("zlib");
|
|
45389
45558
|
const bufferUtil = require_buffer_util();
|
|
45390
45559
|
const Limiter = require_limiter();
|
|
45391
|
-
const { kStatusCode } = require_constants$
|
|
45560
|
+
const { kStatusCode } = require_constants$9();
|
|
45392
45561
|
const FastBuffer = Buffer[Symbol.species];
|
|
45393
45562
|
const TRAILER = Buffer.from([
|
|
45394
45563
|
0,
|
|
@@ -45719,7 +45888,7 @@ var require_permessage_deflate = /* @__PURE__ */ __commonJSMin(((exports, module
|
|
|
45719
45888
|
//#region ../../packages/core-node/node_modules/ws/lib/validation.js
|
|
45720
45889
|
var require_validation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
45721
45890
|
const { isUtf8 } = __require("buffer");
|
|
45722
|
-
const { hasBlob } = require_constants$
|
|
45891
|
+
const { hasBlob } = require_constants$9();
|
|
45723
45892
|
const tokenChars = [
|
|
45724
45893
|
0,
|
|
45725
45894
|
0,
|
|
@@ -45916,7 +46085,7 @@ var require_validation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
45916
46085
|
var require_receiver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
45917
46086
|
const { Writable: Writable$2 } = __require("stream");
|
|
45918
46087
|
const PerMessageDeflate = require_permessage_deflate();
|
|
45919
|
-
const { BINARY_TYPES, EMPTY_BUFFER, kStatusCode, kWebSocket } = require_constants$
|
|
46088
|
+
const { BINARY_TYPES, EMPTY_BUFFER, kStatusCode, kWebSocket } = require_constants$9();
|
|
45920
46089
|
const { concat, toArrayBuffer, unmask } = require_buffer_util();
|
|
45921
46090
|
const { isValidStatusCode, isValidUTF8 } = require_validation();
|
|
45922
46091
|
const FastBuffer = Buffer[Symbol.species];
|
|
@@ -46364,7 +46533,7 @@ var require_sender = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
46364
46533
|
const { Duplex: Duplex$4 } = __require("stream");
|
|
46365
46534
|
const { randomFillSync } = __require("crypto");
|
|
46366
46535
|
const PerMessageDeflate = require_permessage_deflate();
|
|
46367
|
-
const { EMPTY_BUFFER, kWebSocket, NOOP } = require_constants$
|
|
46536
|
+
const { EMPTY_BUFFER, kWebSocket, NOOP } = require_constants$9();
|
|
46368
46537
|
const { isBlob, isValidStatusCode } = require_validation();
|
|
46369
46538
|
const { mask: applyMask, toBuffer } = require_buffer_util();
|
|
46370
46539
|
const kByteLength = Symbol("kByteLength");
|
|
@@ -46852,7 +47021,7 @@ var require_sender = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
46852
47021
|
//#endregion
|
|
46853
47022
|
//#region ../../packages/core-node/node_modules/ws/lib/event-target.js
|
|
46854
47023
|
var require_event_target = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
46855
|
-
const { kForOnEventAttribute, kListener } = require_constants$
|
|
47024
|
+
const { kForOnEventAttribute, kListener } = require_constants$9();
|
|
46856
47025
|
const kCode = Symbol("kCode");
|
|
46857
47026
|
const kData = Symbol("kData");
|
|
46858
47027
|
const kError = Symbol("kError");
|
|
@@ -47219,7 +47388,7 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
47219
47388
|
const Receiver = require_receiver();
|
|
47220
47389
|
const Sender = require_sender();
|
|
47221
47390
|
const { isBlob } = require_validation();
|
|
47222
|
-
const { BINARY_TYPES, EMPTY_BUFFER, GUID, kForOnEventAttribute, kListener, kStatusCode, kWebSocket, NOOP } = require_constants$
|
|
47391
|
+
const { BINARY_TYPES, EMPTY_BUFFER, GUID, kForOnEventAttribute, kListener, kStatusCode, kWebSocket, NOOP } = require_constants$9();
|
|
47223
47392
|
const { EventTarget: { addEventListener, removeEventListener } } = require_event_target();
|
|
47224
47393
|
const { format, parse } = require_extension();
|
|
47225
47394
|
const { toBuffer } = require_buffer_util();
|
|
@@ -48335,7 +48504,7 @@ var require_websocket_server = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
48335
48504
|
const PerMessageDeflate = require_permessage_deflate();
|
|
48336
48505
|
const subprotocol = require_subprotocol();
|
|
48337
48506
|
const WebSocket = require_websocket();
|
|
48338
|
-
const { GUID, kWebSocket } = require_constants$
|
|
48507
|
+
const { GUID, kWebSocket } = require_constants$9();
|
|
48339
48508
|
const keyRegex = /^[+/0-9A-Za-z]{22}==$/;
|
|
48340
48509
|
const RUNNING = 0;
|
|
48341
48510
|
const CLOSING = 1;
|
|
@@ -50000,7 +50169,7 @@ var require_readShebang = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
50000
50169
|
}));
|
|
50001
50170
|
//#endregion
|
|
50002
50171
|
//#region ../../node_modules/cross-spawn/lib/parse.js
|
|
50003
|
-
var require_parse$
|
|
50172
|
+
var require_parse$5 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
50004
50173
|
const path$32 = __require("path");
|
|
50005
50174
|
const resolveCommand = require_resolveCommand();
|
|
50006
50175
|
const escape = require_escape$4();
|
|
@@ -50102,7 +50271,7 @@ var require_enoent = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
50102
50271
|
//#region ../../node_modules/npm-run-path/node_modules/path-key/index.js
|
|
50103
50272
|
var import_cross_spawn = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
50104
50273
|
const cp$2 = __require("child_process");
|
|
50105
|
-
const parse = require_parse$
|
|
50274
|
+
const parse = require_parse$5();
|
|
50106
50275
|
const enoent = require_enoent();
|
|
50107
50276
|
function spawn(command, args, options) {
|
|
50108
50277
|
const parsed = parse(command, args, options);
|
|
@@ -55639,7 +55808,7 @@ while (this[FLUSHCHUNK](this[BUFFERSHIFT]()) && this[BUFFER].length);
|
|
|
55639
55808
|
}));
|
|
55640
55809
|
//#endregion
|
|
55641
55810
|
//#region ../../node_modules/tar/node_modules/minizlib/constants.js
|
|
55642
|
-
var require_constants$
|
|
55811
|
+
var require_constants$8 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
55643
55812
|
const realZlibConstants$1 = __require("zlib").constants || (
|
|
55644
55813
|
/* istanbul ignore next */ { ZLIB_VERNUM: 4736 });
|
|
55645
55814
|
module.exports = Object.freeze(Object.assign(Object.create(null), {
|
|
@@ -56187,7 +56356,7 @@ var require_minizlib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
56187
56356
|
const assert$2 = __require("assert");
|
|
56188
56357
|
const Buffer$8 = __require("buffer").Buffer;
|
|
56189
56358
|
const realZlib$1 = __require("zlib");
|
|
56190
|
-
const constants = exports.constants = require_constants$
|
|
56359
|
+
const constants = exports.constants = require_constants$8();
|
|
56191
56360
|
const Minipass = require_minipass$3();
|
|
56192
56361
|
const OriginalBufferConcat = Buffer$8.concat;
|
|
56193
56362
|
const _superWrite = Symbol("_superWrite");
|
|
@@ -58644,7 +58813,7 @@ var require_fs_minipass = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
58644
58813
|
}));
|
|
58645
58814
|
//#endregion
|
|
58646
58815
|
//#region ../../node_modules/tar/lib/parse.js
|
|
58647
|
-
var require_parse$
|
|
58816
|
+
var require_parse$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
58648
58817
|
const warner = require_warn_mixin();
|
|
58649
58818
|
const Header = require_header();
|
|
58650
58819
|
const EE$10 = __require("events");
|
|
@@ -58992,7 +59161,7 @@ while (this[PROCESSENTRY](this[QUEUE].shift()));
|
|
|
58992
59161
|
//#region ../../node_modules/tar/lib/list.js
|
|
58993
59162
|
var require_list = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
58994
59163
|
const hlo = require_high_level_opt();
|
|
58995
|
-
const Parser = require_parse$
|
|
59164
|
+
const Parser = require_parse$4();
|
|
58996
59165
|
const fs$30 = __require("fs");
|
|
58997
59166
|
const fsm = require_fs_minipass();
|
|
58998
59167
|
const path$28 = __require("path");
|
|
@@ -59877,7 +60046,7 @@ var require_get_write_flag = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
59877
60046
|
//#region ../../node_modules/tar/lib/unpack.js
|
|
59878
60047
|
var require_unpack = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
59879
60048
|
const assert = __require("assert");
|
|
59880
|
-
const Parser = require_parse$
|
|
60049
|
+
const Parser = require_parse$4();
|
|
59881
60050
|
const fs$24 = __require("fs");
|
|
59882
60051
|
const fsm = require_fs_minipass();
|
|
59883
60052
|
const path$23 = __require("path");
|
|
@@ -60535,7 +60704,7 @@ var require_tar$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
60535
60704
|
exports.x = exports.extract = require_extract$1();
|
|
60536
60705
|
exports.Pack = require_pack$1();
|
|
60537
60706
|
exports.Unpack = require_unpack();
|
|
60538
|
-
exports.Parse = require_parse$
|
|
60707
|
+
exports.Parse = require_parse$4();
|
|
60539
60708
|
exports.ReadEntry = require_read_entry();
|
|
60540
60709
|
exports.WriteEntry = require_write_entry();
|
|
60541
60710
|
exports.Header = require_header();
|
|
@@ -71130,7 +71299,7 @@ var require__baseRest = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
71130
71299
|
}));
|
|
71131
71300
|
//#endregion
|
|
71132
71301
|
//#region ../../node_modules/lodash/eq.js
|
|
71133
|
-
var require_eq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
71302
|
+
var require_eq$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
71134
71303
|
/**
|
|
71135
71304
|
* Performs a
|
|
71136
71305
|
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
@@ -71263,7 +71432,7 @@ var require__isIndex = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
71263
71432
|
//#endregion
|
|
71264
71433
|
//#region ../../node_modules/lodash/_isIterateeCall.js
|
|
71265
71434
|
var require__isIterateeCall = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
71266
|
-
var eq = require_eq(), isArrayLike = require_isArrayLike(), isIndex = require__isIndex(), isObject = require_isObject();
|
|
71435
|
+
var eq = require_eq$2(), isArrayLike = require_isArrayLike(), isIndex = require__isIndex(), isObject = require_isObject();
|
|
71267
71436
|
/**
|
|
71268
71437
|
* Checks if the given arguments are from an iteratee call.
|
|
71269
71438
|
*
|
|
@@ -71584,7 +71753,7 @@ var require_keysIn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
71584
71753
|
//#endregion
|
|
71585
71754
|
//#region ../../node_modules/lodash/defaults.js
|
|
71586
71755
|
var require_defaults = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
71587
|
-
var baseRest = require__baseRest(), eq = require_eq(), isIterateeCall = require__isIterateeCall(), keysIn = require_keysIn();
|
|
71756
|
+
var baseRest = require__baseRest(), eq = require_eq$2(), isIterateeCall = require__isIterateeCall(), keysIn = require_keysIn();
|
|
71588
71757
|
/** Used for built-in method references. */
|
|
71589
71758
|
var objectProto = Object.prototype;
|
|
71590
71759
|
/** Used to check objects for own properties. */
|
|
@@ -77206,7 +77375,7 @@ var require__listCacheClear = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
77206
77375
|
//#endregion
|
|
77207
77376
|
//#region ../../node_modules/lodash/_assocIndexOf.js
|
|
77208
77377
|
var require__assocIndexOf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
77209
|
-
var eq = require_eq();
|
|
77378
|
+
var eq = require_eq$2();
|
|
77210
77379
|
/**
|
|
77211
77380
|
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
77212
77381
|
*
|
|
@@ -85138,7 +85307,7 @@ var require_unix_stat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
85138
85307
|
}));
|
|
85139
85308
|
//#endregion
|
|
85140
85309
|
//#region ../../node_modules/compress-commons/lib/archivers/zip/constants.js
|
|
85141
|
-
var require_constants$
|
|
85310
|
+
var require_constants$7 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
85142
85311
|
/**
|
|
85143
85312
|
* node-compress-commons
|
|
85144
85313
|
*
|
|
@@ -85213,7 +85382,7 @@ var require_zip_archive_entry = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
85213
85382
|
var ArchiveEntry = require_archive_entry();
|
|
85214
85383
|
var GeneralPurposeBit = require_general_purpose_bit();
|
|
85215
85384
|
var UnixStat = require_unix_stat();
|
|
85216
|
-
var constants = require_constants$
|
|
85385
|
+
var constants = require_constants$7();
|
|
85217
85386
|
var zipUtil = require_util$3();
|
|
85218
85387
|
var ZipArchiveEntry = module.exports = function(name) {
|
|
85219
85388
|
if (!(this instanceof ZipArchiveEntry)) return new ZipArchiveEntry(name);
|
|
@@ -85847,7 +86016,7 @@ var require_zip_archive_output_stream = /* @__PURE__ */ __commonJSMin(((exports,
|
|
|
85847
86016
|
var ArchiveOutputStream = require_archive_output_stream();
|
|
85848
86017
|
require_zip_archive_entry();
|
|
85849
86018
|
require_general_purpose_bit();
|
|
85850
|
-
var constants = require_constants$
|
|
86019
|
+
var constants = require_constants$7();
|
|
85851
86020
|
require_util$2();
|
|
85852
86021
|
var zipUtil = require_util$3();
|
|
85853
86022
|
var ZipArchiveOutputStream = module.exports = function(options) {
|
|
@@ -88344,7 +88513,7 @@ var require_extract = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
88344
88513
|
}));
|
|
88345
88514
|
//#endregion
|
|
88346
88515
|
//#region ../../node_modules/tar-stream/constants.js
|
|
88347
|
-
var require_constants$
|
|
88516
|
+
var require_constants$6 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
88348
88517
|
const constants = {
|
|
88349
88518
|
S_IFMT: 61440,
|
|
88350
88519
|
S_IFDIR: 16384,
|
|
@@ -88364,7 +88533,7 @@ var require_constants$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
88364
88533
|
var require_pack = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
88365
88534
|
const { Readable, Writable, getStreamError } = require_streamx();
|
|
88366
88535
|
const b4a = require_b4a();
|
|
88367
|
-
const constants = require_constants$
|
|
88536
|
+
const constants = require_constants$6();
|
|
88368
88537
|
const headers = require_headers$1();
|
|
88369
88538
|
const DMODE = 493;
|
|
88370
88539
|
const FMODE = 420;
|
|
@@ -89398,6 +89567,360 @@ var require_update_workspaces = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
89398
89567
|
module.exports = updateWorkspaces;
|
|
89399
89568
|
}));
|
|
89400
89569
|
//#endregion
|
|
89570
|
+
//#region ../../node_modules/semver/internal/debug.js
|
|
89571
|
+
var require_debug$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89572
|
+
module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
89573
|
+
}));
|
|
89574
|
+
//#endregion
|
|
89575
|
+
//#region ../../node_modules/semver/internal/constants.js
|
|
89576
|
+
var require_constants$5 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89577
|
+
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
89578
|
+
const MAX_LENGTH = 256;
|
|
89579
|
+
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
89580
|
+
module.exports = {
|
|
89581
|
+
MAX_LENGTH,
|
|
89582
|
+
MAX_SAFE_COMPONENT_LENGTH: 16,
|
|
89583
|
+
MAX_SAFE_BUILD_LENGTH: MAX_LENGTH - 6,
|
|
89584
|
+
MAX_SAFE_INTEGER,
|
|
89585
|
+
RELEASE_TYPES: [
|
|
89586
|
+
"major",
|
|
89587
|
+
"premajor",
|
|
89588
|
+
"minor",
|
|
89589
|
+
"preminor",
|
|
89590
|
+
"patch",
|
|
89591
|
+
"prepatch",
|
|
89592
|
+
"prerelease"
|
|
89593
|
+
],
|
|
89594
|
+
SEMVER_SPEC_VERSION,
|
|
89595
|
+
FLAG_INCLUDE_PRERELEASE: 1,
|
|
89596
|
+
FLAG_LOOSE: 2
|
|
89597
|
+
};
|
|
89598
|
+
}));
|
|
89599
|
+
//#endregion
|
|
89600
|
+
//#region ../../node_modules/semver/internal/re.js
|
|
89601
|
+
var require_re$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89602
|
+
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants$5();
|
|
89603
|
+
const debug = require_debug$1();
|
|
89604
|
+
exports = module.exports = {};
|
|
89605
|
+
const re = exports.re = [];
|
|
89606
|
+
const safeRe = exports.safeRe = [];
|
|
89607
|
+
const src = exports.src = [];
|
|
89608
|
+
const safeSrc = exports.safeSrc = [];
|
|
89609
|
+
const t = exports.t = {};
|
|
89610
|
+
let R = 0;
|
|
89611
|
+
const LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
89612
|
+
const safeRegexReplacements = [
|
|
89613
|
+
["\\s", 1],
|
|
89614
|
+
["\\d", MAX_LENGTH],
|
|
89615
|
+
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
|
|
89616
|
+
];
|
|
89617
|
+
const makeSafeRegex = (value) => {
|
|
89618
|
+
for (const [token, max] of safeRegexReplacements) value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
|
|
89619
|
+
return value;
|
|
89620
|
+
};
|
|
89621
|
+
const createToken = (name, value, isGlobal) => {
|
|
89622
|
+
const safe = makeSafeRegex(value);
|
|
89623
|
+
const index = R++;
|
|
89624
|
+
debug(name, index, value);
|
|
89625
|
+
t[name] = index;
|
|
89626
|
+
src[index] = value;
|
|
89627
|
+
safeSrc[index] = safe;
|
|
89628
|
+
re[index] = new RegExp(value, isGlobal ? "g" : void 0);
|
|
89629
|
+
safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
89630
|
+
};
|
|
89631
|
+
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
89632
|
+
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
89633
|
+
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
89634
|
+
createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
|
|
89635
|
+
createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
89636
|
+
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
|
|
89637
|
+
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
89638
|
+
createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
89639
|
+
createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
89640
|
+
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
89641
|
+
createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
|
|
89642
|
+
createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
|
|
89643
|
+
createToken("FULL", `^${src[t.FULLPLAIN]}$`);
|
|
89644
|
+
createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
|
|
89645
|
+
createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
|
|
89646
|
+
createToken("GTLT", "((?:<|>)?=?)");
|
|
89647
|
+
createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
|
89648
|
+
createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
|
|
89649
|
+
createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
|
|
89650
|
+
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
|
|
89651
|
+
createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
|
|
89652
|
+
createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
|
|
89653
|
+
createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
|
89654
|
+
createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
89655
|
+
createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
|
|
89656
|
+
createToken("COERCERTL", src[t.COERCE], true);
|
|
89657
|
+
createToken("COERCERTLFULL", src[t.COERCEFULL], true);
|
|
89658
|
+
createToken("LONETILDE", "(?:~>?)");
|
|
89659
|
+
createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
|
|
89660
|
+
exports.tildeTrimReplace = "$1~";
|
|
89661
|
+
createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
|
|
89662
|
+
createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
89663
|
+
createToken("LONECARET", "(?:\\^)");
|
|
89664
|
+
createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
|
|
89665
|
+
exports.caretTrimReplace = "$1^";
|
|
89666
|
+
createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
|
|
89667
|
+
createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
89668
|
+
createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
|
|
89669
|
+
createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
|
|
89670
|
+
createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
|
|
89671
|
+
exports.comparatorTrimReplace = "$1$2$3";
|
|
89672
|
+
createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
|
|
89673
|
+
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
|
|
89674
|
+
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
89675
|
+
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
89676
|
+
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
89677
|
+
}));
|
|
89678
|
+
//#endregion
|
|
89679
|
+
//#region ../../node_modules/semver/internal/parse-options.js
|
|
89680
|
+
var require_parse_options$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89681
|
+
const looseOption = Object.freeze({ loose: true });
|
|
89682
|
+
const emptyOpts = Object.freeze({});
|
|
89683
|
+
const parseOptions = (options) => {
|
|
89684
|
+
if (!options) return emptyOpts;
|
|
89685
|
+
if (typeof options !== "object") return looseOption;
|
|
89686
|
+
return options;
|
|
89687
|
+
};
|
|
89688
|
+
module.exports = parseOptions;
|
|
89689
|
+
}));
|
|
89690
|
+
//#endregion
|
|
89691
|
+
//#region ../../node_modules/semver/internal/identifiers.js
|
|
89692
|
+
var require_identifiers$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89693
|
+
const numeric = /^[0-9]+$/;
|
|
89694
|
+
const compareIdentifiers = (a, b) => {
|
|
89695
|
+
if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
|
|
89696
|
+
const anum = numeric.test(a);
|
|
89697
|
+
const bnum = numeric.test(b);
|
|
89698
|
+
if (anum && bnum) {
|
|
89699
|
+
a = +a;
|
|
89700
|
+
b = +b;
|
|
89701
|
+
}
|
|
89702
|
+
return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
|
|
89703
|
+
};
|
|
89704
|
+
const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
|
|
89705
|
+
module.exports = {
|
|
89706
|
+
compareIdentifiers,
|
|
89707
|
+
rcompareIdentifiers
|
|
89708
|
+
};
|
|
89709
|
+
}));
|
|
89710
|
+
//#endregion
|
|
89711
|
+
//#region ../../node_modules/semver/classes/semver.js
|
|
89712
|
+
var require_semver$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89713
|
+
const debug = require_debug$1();
|
|
89714
|
+
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants$5();
|
|
89715
|
+
const { safeRe: re, t } = require_re$1();
|
|
89716
|
+
const parseOptions = require_parse_options$1();
|
|
89717
|
+
const { compareIdentifiers } = require_identifiers$1();
|
|
89718
|
+
module.exports = class SemVer {
|
|
89719
|
+
constructor(version, options) {
|
|
89720
|
+
options = parseOptions(options);
|
|
89721
|
+
if (version instanceof SemVer) if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) return version;
|
|
89722
|
+
else version = version.version;
|
|
89723
|
+
else if (typeof version !== "string") throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
89724
|
+
if (version.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
|
|
89725
|
+
debug("SemVer", version, options);
|
|
89726
|
+
this.options = options;
|
|
89727
|
+
this.loose = !!options.loose;
|
|
89728
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
89729
|
+
const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
|
|
89730
|
+
if (!m) throw new TypeError(`Invalid Version: ${version}`);
|
|
89731
|
+
this.raw = version;
|
|
89732
|
+
this.major = +m[1];
|
|
89733
|
+
this.minor = +m[2];
|
|
89734
|
+
this.patch = +m[3];
|
|
89735
|
+
if (this.major > MAX_SAFE_INTEGER || this.major < 0) throw new TypeError("Invalid major version");
|
|
89736
|
+
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError("Invalid minor version");
|
|
89737
|
+
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError("Invalid patch version");
|
|
89738
|
+
if (!m[4]) this.prerelease = [];
|
|
89739
|
+
else this.prerelease = m[4].split(".").map((id) => {
|
|
89740
|
+
if (/^[0-9]+$/.test(id)) {
|
|
89741
|
+
const num = +id;
|
|
89742
|
+
if (num >= 0 && num < MAX_SAFE_INTEGER) return num;
|
|
89743
|
+
}
|
|
89744
|
+
return id;
|
|
89745
|
+
});
|
|
89746
|
+
this.build = m[5] ? m[5].split(".") : [];
|
|
89747
|
+
this.format();
|
|
89748
|
+
}
|
|
89749
|
+
format() {
|
|
89750
|
+
this.version = `${this.major}.${this.minor}.${this.patch}`;
|
|
89751
|
+
if (this.prerelease.length) this.version += `-${this.prerelease.join(".")}`;
|
|
89752
|
+
return this.version;
|
|
89753
|
+
}
|
|
89754
|
+
toString() {
|
|
89755
|
+
return this.version;
|
|
89756
|
+
}
|
|
89757
|
+
compare(other) {
|
|
89758
|
+
debug("SemVer.compare", this.version, this.options, other);
|
|
89759
|
+
if (!(other instanceof SemVer)) {
|
|
89760
|
+
if (typeof other === "string" && other === this.version) return 0;
|
|
89761
|
+
other = new SemVer(other, this.options);
|
|
89762
|
+
}
|
|
89763
|
+
if (other.version === this.version) return 0;
|
|
89764
|
+
return this.compareMain(other) || this.comparePre(other);
|
|
89765
|
+
}
|
|
89766
|
+
compareMain(other) {
|
|
89767
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
89768
|
+
if (this.major < other.major) return -1;
|
|
89769
|
+
if (this.major > other.major) return 1;
|
|
89770
|
+
if (this.minor < other.minor) return -1;
|
|
89771
|
+
if (this.minor > other.minor) return 1;
|
|
89772
|
+
if (this.patch < other.patch) return -1;
|
|
89773
|
+
if (this.patch > other.patch) return 1;
|
|
89774
|
+
return 0;
|
|
89775
|
+
}
|
|
89776
|
+
comparePre(other) {
|
|
89777
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
89778
|
+
if (this.prerelease.length && !other.prerelease.length) return -1;
|
|
89779
|
+
else if (!this.prerelease.length && other.prerelease.length) return 1;
|
|
89780
|
+
else if (!this.prerelease.length && !other.prerelease.length) return 0;
|
|
89781
|
+
let i = 0;
|
|
89782
|
+
do {
|
|
89783
|
+
const a = this.prerelease[i];
|
|
89784
|
+
const b = other.prerelease[i];
|
|
89785
|
+
debug("prerelease compare", i, a, b);
|
|
89786
|
+
if (a === void 0 && b === void 0) return 0;
|
|
89787
|
+
else if (b === void 0) return 1;
|
|
89788
|
+
else if (a === void 0) return -1;
|
|
89789
|
+
else if (a === b) continue;
|
|
89790
|
+
else return compareIdentifiers(a, b);
|
|
89791
|
+
} while (++i);
|
|
89792
|
+
}
|
|
89793
|
+
compareBuild(other) {
|
|
89794
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
89795
|
+
let i = 0;
|
|
89796
|
+
do {
|
|
89797
|
+
const a = this.build[i];
|
|
89798
|
+
const b = other.build[i];
|
|
89799
|
+
debug("build compare", i, a, b);
|
|
89800
|
+
if (a === void 0 && b === void 0) return 0;
|
|
89801
|
+
else if (b === void 0) return 1;
|
|
89802
|
+
else if (a === void 0) return -1;
|
|
89803
|
+
else if (a === b) continue;
|
|
89804
|
+
else return compareIdentifiers(a, b);
|
|
89805
|
+
} while (++i);
|
|
89806
|
+
}
|
|
89807
|
+
inc(release, identifier, identifierBase) {
|
|
89808
|
+
if (release.startsWith("pre")) {
|
|
89809
|
+
if (!identifier && identifierBase === false) throw new Error("invalid increment argument: identifier is empty");
|
|
89810
|
+
if (identifier) {
|
|
89811
|
+
const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
|
|
89812
|
+
if (!match || match[1] !== identifier) throw new Error(`invalid identifier: ${identifier}`);
|
|
89813
|
+
}
|
|
89814
|
+
}
|
|
89815
|
+
switch (release) {
|
|
89816
|
+
case "premajor":
|
|
89817
|
+
this.prerelease.length = 0;
|
|
89818
|
+
this.patch = 0;
|
|
89819
|
+
this.minor = 0;
|
|
89820
|
+
this.major++;
|
|
89821
|
+
this.inc("pre", identifier, identifierBase);
|
|
89822
|
+
break;
|
|
89823
|
+
case "preminor":
|
|
89824
|
+
this.prerelease.length = 0;
|
|
89825
|
+
this.patch = 0;
|
|
89826
|
+
this.minor++;
|
|
89827
|
+
this.inc("pre", identifier, identifierBase);
|
|
89828
|
+
break;
|
|
89829
|
+
case "prepatch":
|
|
89830
|
+
this.prerelease.length = 0;
|
|
89831
|
+
this.inc("patch", identifier, identifierBase);
|
|
89832
|
+
this.inc("pre", identifier, identifierBase);
|
|
89833
|
+
break;
|
|
89834
|
+
case "prerelease":
|
|
89835
|
+
if (this.prerelease.length === 0) this.inc("patch", identifier, identifierBase);
|
|
89836
|
+
this.inc("pre", identifier, identifierBase);
|
|
89837
|
+
break;
|
|
89838
|
+
case "release":
|
|
89839
|
+
if (this.prerelease.length === 0) throw new Error(`version ${this.raw} is not a prerelease`);
|
|
89840
|
+
this.prerelease.length = 0;
|
|
89841
|
+
break;
|
|
89842
|
+
case "major":
|
|
89843
|
+
if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) this.major++;
|
|
89844
|
+
this.minor = 0;
|
|
89845
|
+
this.patch = 0;
|
|
89846
|
+
this.prerelease = [];
|
|
89847
|
+
break;
|
|
89848
|
+
case "minor":
|
|
89849
|
+
if (this.patch !== 0 || this.prerelease.length === 0) this.minor++;
|
|
89850
|
+
this.patch = 0;
|
|
89851
|
+
this.prerelease = [];
|
|
89852
|
+
break;
|
|
89853
|
+
case "patch":
|
|
89854
|
+
if (this.prerelease.length === 0) this.patch++;
|
|
89855
|
+
this.prerelease = [];
|
|
89856
|
+
break;
|
|
89857
|
+
case "pre": {
|
|
89858
|
+
const base = Number(identifierBase) ? 1 : 0;
|
|
89859
|
+
if (this.prerelease.length === 0) this.prerelease = [base];
|
|
89860
|
+
else {
|
|
89861
|
+
let i = this.prerelease.length;
|
|
89862
|
+
while (--i >= 0) if (typeof this.prerelease[i] === "number") {
|
|
89863
|
+
this.prerelease[i]++;
|
|
89864
|
+
i = -2;
|
|
89865
|
+
}
|
|
89866
|
+
if (i === -1) {
|
|
89867
|
+
if (identifier === this.prerelease.join(".") && identifierBase === false) throw new Error("invalid increment argument: identifier already exists");
|
|
89868
|
+
this.prerelease.push(base);
|
|
89869
|
+
}
|
|
89870
|
+
}
|
|
89871
|
+
if (identifier) {
|
|
89872
|
+
let prerelease = [identifier, base];
|
|
89873
|
+
if (identifierBase === false) prerelease = [identifier];
|
|
89874
|
+
if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
|
|
89875
|
+
if (isNaN(this.prerelease[1])) this.prerelease = prerelease;
|
|
89876
|
+
} else this.prerelease = prerelease;
|
|
89877
|
+
}
|
|
89878
|
+
break;
|
|
89879
|
+
}
|
|
89880
|
+
default: throw new Error(`invalid increment argument: ${release}`);
|
|
89881
|
+
}
|
|
89882
|
+
this.raw = this.format();
|
|
89883
|
+
if (this.build.length) this.raw += `+${this.build.join(".")}`;
|
|
89884
|
+
return this;
|
|
89885
|
+
}
|
|
89886
|
+
};
|
|
89887
|
+
}));
|
|
89888
|
+
//#endregion
|
|
89889
|
+
//#region ../../node_modules/semver/functions/parse.js
|
|
89890
|
+
var require_parse$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89891
|
+
const SemVer = require_semver$3();
|
|
89892
|
+
const parse = (version, options, throwErrors = false) => {
|
|
89893
|
+
if (version instanceof SemVer) return version;
|
|
89894
|
+
try {
|
|
89895
|
+
return new SemVer(version, options);
|
|
89896
|
+
} catch (er) {
|
|
89897
|
+
if (!throwErrors) return null;
|
|
89898
|
+
throw er;
|
|
89899
|
+
}
|
|
89900
|
+
};
|
|
89901
|
+
module.exports = parse;
|
|
89902
|
+
}));
|
|
89903
|
+
//#endregion
|
|
89904
|
+
//#region ../../node_modules/semver/functions/valid.js
|
|
89905
|
+
var require_valid$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89906
|
+
const parse = require_parse$3();
|
|
89907
|
+
const valid = (version, options) => {
|
|
89908
|
+
const v = parse(version, options);
|
|
89909
|
+
return v ? v.version : null;
|
|
89910
|
+
};
|
|
89911
|
+
module.exports = valid;
|
|
89912
|
+
}));
|
|
89913
|
+
//#endregion
|
|
89914
|
+
//#region ../../node_modules/semver/functions/clean.js
|
|
89915
|
+
var require_clean$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89916
|
+
const parse = require_parse$3();
|
|
89917
|
+
const clean = (version, options) => {
|
|
89918
|
+
const s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
89919
|
+
return s ? s.version : null;
|
|
89920
|
+
};
|
|
89921
|
+
module.exports = clean;
|
|
89922
|
+
}));
|
|
89923
|
+
//#endregion
|
|
89401
89924
|
//#region ../../node_modules/proc-log/lib/index.js
|
|
89402
89925
|
var require_lib$29 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89403
89926
|
module.exports = {
|
|
@@ -94896,7 +95419,7 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
94896
95419
|
}));
|
|
94897
95420
|
//#endregion
|
|
94898
95421
|
//#region ../../node_modules/@npmcli/package-json/node_modules/spdx-expression-parse/parse.js
|
|
94899
|
-
var require_parse$
|
|
95422
|
+
var require_parse$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
94900
95423
|
module.exports = function(tokens) {
|
|
94901
95424
|
var index = 0;
|
|
94902
95425
|
function hasMore() {
|
|
@@ -94987,7 +95510,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
94987
95510
|
//#region ../../node_modules/@npmcli/package-json/node_modules/spdx-expression-parse/index.js
|
|
94988
95511
|
var require_spdx_expression_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
94989
95512
|
var scan = require_scan();
|
|
94990
|
-
var parse = require_parse$
|
|
95513
|
+
var parse = require_parse$2();
|
|
94991
95514
|
module.exports = function(source) {
|
|
94992
95515
|
return parse(scan(source));
|
|
94993
95516
|
};
|
|
@@ -96195,9 +96718,1026 @@ var require_spawn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
96195
96718
|
};
|
|
96196
96719
|
}));
|
|
96197
96720
|
//#endregion
|
|
96721
|
+
//#region ../../node_modules/semver/functions/inc.js
|
|
96722
|
+
var require_inc$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96723
|
+
const SemVer = require_semver$3();
|
|
96724
|
+
const inc = (version, release, options, identifier, identifierBase) => {
|
|
96725
|
+
if (typeof options === "string") {
|
|
96726
|
+
identifierBase = identifier;
|
|
96727
|
+
identifier = options;
|
|
96728
|
+
options = void 0;
|
|
96729
|
+
}
|
|
96730
|
+
try {
|
|
96731
|
+
return new SemVer(version instanceof SemVer ? version.version : version, options).inc(release, identifier, identifierBase).version;
|
|
96732
|
+
} catch (er) {
|
|
96733
|
+
return null;
|
|
96734
|
+
}
|
|
96735
|
+
};
|
|
96736
|
+
module.exports = inc;
|
|
96737
|
+
}));
|
|
96738
|
+
//#endregion
|
|
96739
|
+
//#region ../../node_modules/semver/functions/diff.js
|
|
96740
|
+
var require_diff$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96741
|
+
const parse = require_parse$3();
|
|
96742
|
+
const diff = (version1, version2) => {
|
|
96743
|
+
const v1 = parse(version1, null, true);
|
|
96744
|
+
const v2 = parse(version2, null, true);
|
|
96745
|
+
const comparison = v1.compare(v2);
|
|
96746
|
+
if (comparison === 0) return null;
|
|
96747
|
+
const v1Higher = comparison > 0;
|
|
96748
|
+
const highVersion = v1Higher ? v1 : v2;
|
|
96749
|
+
const lowVersion = v1Higher ? v2 : v1;
|
|
96750
|
+
const highHasPre = !!highVersion.prerelease.length;
|
|
96751
|
+
if (!!lowVersion.prerelease.length && !highHasPre) {
|
|
96752
|
+
if (!lowVersion.patch && !lowVersion.minor) return "major";
|
|
96753
|
+
if (lowVersion.compareMain(highVersion) === 0) {
|
|
96754
|
+
if (lowVersion.minor && !lowVersion.patch) return "minor";
|
|
96755
|
+
return "patch";
|
|
96756
|
+
}
|
|
96757
|
+
}
|
|
96758
|
+
const prefix = highHasPre ? "pre" : "";
|
|
96759
|
+
if (v1.major !== v2.major) return prefix + "major";
|
|
96760
|
+
if (v1.minor !== v2.minor) return prefix + "minor";
|
|
96761
|
+
if (v1.patch !== v2.patch) return prefix + "patch";
|
|
96762
|
+
return "prerelease";
|
|
96763
|
+
};
|
|
96764
|
+
module.exports = diff;
|
|
96765
|
+
}));
|
|
96766
|
+
//#endregion
|
|
96767
|
+
//#region ../../node_modules/semver/functions/major.js
|
|
96768
|
+
var require_major$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96769
|
+
const SemVer = require_semver$3();
|
|
96770
|
+
const major = (a, loose) => new SemVer(a, loose).major;
|
|
96771
|
+
module.exports = major;
|
|
96772
|
+
}));
|
|
96773
|
+
//#endregion
|
|
96774
|
+
//#region ../../node_modules/semver/functions/minor.js
|
|
96775
|
+
var require_minor$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96776
|
+
const SemVer = require_semver$3();
|
|
96777
|
+
const minor = (a, loose) => new SemVer(a, loose).minor;
|
|
96778
|
+
module.exports = minor;
|
|
96779
|
+
}));
|
|
96780
|
+
//#endregion
|
|
96781
|
+
//#region ../../node_modules/semver/functions/patch.js
|
|
96782
|
+
var require_patch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96783
|
+
const SemVer = require_semver$3();
|
|
96784
|
+
const patch = (a, loose) => new SemVer(a, loose).patch;
|
|
96785
|
+
module.exports = patch;
|
|
96786
|
+
}));
|
|
96787
|
+
//#endregion
|
|
96788
|
+
//#region ../../node_modules/semver/functions/prerelease.js
|
|
96789
|
+
var require_prerelease$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96790
|
+
const parse = require_parse$3();
|
|
96791
|
+
const prerelease = (version, options) => {
|
|
96792
|
+
const parsed = parse(version, options);
|
|
96793
|
+
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
96794
|
+
};
|
|
96795
|
+
module.exports = prerelease;
|
|
96796
|
+
}));
|
|
96797
|
+
//#endregion
|
|
96798
|
+
//#region ../../node_modules/semver/functions/compare.js
|
|
96799
|
+
var require_compare$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96800
|
+
const SemVer = require_semver$3();
|
|
96801
|
+
const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
96802
|
+
module.exports = compare;
|
|
96803
|
+
}));
|
|
96804
|
+
//#endregion
|
|
96805
|
+
//#region ../../node_modules/semver/functions/rcompare.js
|
|
96806
|
+
var require_rcompare$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96807
|
+
const compare = require_compare$1();
|
|
96808
|
+
const rcompare = (a, b, loose) => compare(b, a, loose);
|
|
96809
|
+
module.exports = rcompare;
|
|
96810
|
+
}));
|
|
96811
|
+
//#endregion
|
|
96812
|
+
//#region ../../node_modules/semver/functions/compare-loose.js
|
|
96813
|
+
var require_compare_loose$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96814
|
+
const compare = require_compare$1();
|
|
96815
|
+
const compareLoose = (a, b) => compare(a, b, true);
|
|
96816
|
+
module.exports = compareLoose;
|
|
96817
|
+
}));
|
|
96818
|
+
//#endregion
|
|
96819
|
+
//#region ../../node_modules/semver/functions/compare-build.js
|
|
96820
|
+
var require_compare_build$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96821
|
+
const SemVer = require_semver$3();
|
|
96822
|
+
const compareBuild = (a, b, loose) => {
|
|
96823
|
+
const versionA = new SemVer(a, loose);
|
|
96824
|
+
const versionB = new SemVer(b, loose);
|
|
96825
|
+
return versionA.compare(versionB) || versionA.compareBuild(versionB);
|
|
96826
|
+
};
|
|
96827
|
+
module.exports = compareBuild;
|
|
96828
|
+
}));
|
|
96829
|
+
//#endregion
|
|
96830
|
+
//#region ../../node_modules/semver/functions/sort.js
|
|
96831
|
+
var require_sort$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96832
|
+
const compareBuild = require_compare_build$1();
|
|
96833
|
+
const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
96834
|
+
module.exports = sort;
|
|
96835
|
+
}));
|
|
96836
|
+
//#endregion
|
|
96837
|
+
//#region ../../node_modules/semver/functions/rsort.js
|
|
96838
|
+
var require_rsort$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96839
|
+
const compareBuild = require_compare_build$1();
|
|
96840
|
+
const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
96841
|
+
module.exports = rsort;
|
|
96842
|
+
}));
|
|
96843
|
+
//#endregion
|
|
96844
|
+
//#region ../../node_modules/semver/functions/gt.js
|
|
96845
|
+
var require_gt$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96846
|
+
const compare = require_compare$1();
|
|
96847
|
+
const gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
96848
|
+
module.exports = gt;
|
|
96849
|
+
}));
|
|
96850
|
+
//#endregion
|
|
96851
|
+
//#region ../../node_modules/semver/functions/lt.js
|
|
96852
|
+
var require_lt$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96853
|
+
const compare = require_compare$1();
|
|
96854
|
+
const lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
96855
|
+
module.exports = lt;
|
|
96856
|
+
}));
|
|
96857
|
+
//#endregion
|
|
96858
|
+
//#region ../../node_modules/semver/functions/eq.js
|
|
96859
|
+
var require_eq$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96860
|
+
const compare = require_compare$1();
|
|
96861
|
+
const eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
96862
|
+
module.exports = eq;
|
|
96863
|
+
}));
|
|
96864
|
+
//#endregion
|
|
96865
|
+
//#region ../../node_modules/semver/functions/neq.js
|
|
96866
|
+
var require_neq$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96867
|
+
const compare = require_compare$1();
|
|
96868
|
+
const neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
96869
|
+
module.exports = neq;
|
|
96870
|
+
}));
|
|
96871
|
+
//#endregion
|
|
96872
|
+
//#region ../../node_modules/semver/functions/gte.js
|
|
96873
|
+
var require_gte$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96874
|
+
const compare = require_compare$1();
|
|
96875
|
+
const gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
96876
|
+
module.exports = gte;
|
|
96877
|
+
}));
|
|
96878
|
+
//#endregion
|
|
96879
|
+
//#region ../../node_modules/semver/functions/lte.js
|
|
96880
|
+
var require_lte$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96881
|
+
const compare = require_compare$1();
|
|
96882
|
+
const lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
96883
|
+
module.exports = lte;
|
|
96884
|
+
}));
|
|
96885
|
+
//#endregion
|
|
96886
|
+
//#region ../../node_modules/semver/functions/cmp.js
|
|
96887
|
+
var require_cmp$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96888
|
+
const eq = require_eq$1();
|
|
96889
|
+
const neq = require_neq$1();
|
|
96890
|
+
const gt = require_gt$1();
|
|
96891
|
+
const gte = require_gte$1();
|
|
96892
|
+
const lt = require_lt$1();
|
|
96893
|
+
const lte = require_lte$1();
|
|
96894
|
+
const cmp = (a, op, b, loose) => {
|
|
96895
|
+
switch (op) {
|
|
96896
|
+
case "===":
|
|
96897
|
+
if (typeof a === "object") a = a.version;
|
|
96898
|
+
if (typeof b === "object") b = b.version;
|
|
96899
|
+
return a === b;
|
|
96900
|
+
case "!==":
|
|
96901
|
+
if (typeof a === "object") a = a.version;
|
|
96902
|
+
if (typeof b === "object") b = b.version;
|
|
96903
|
+
return a !== b;
|
|
96904
|
+
case "":
|
|
96905
|
+
case "=":
|
|
96906
|
+
case "==": return eq(a, b, loose);
|
|
96907
|
+
case "!=": return neq(a, b, loose);
|
|
96908
|
+
case ">": return gt(a, b, loose);
|
|
96909
|
+
case ">=": return gte(a, b, loose);
|
|
96910
|
+
case "<": return lt(a, b, loose);
|
|
96911
|
+
case "<=": return lte(a, b, loose);
|
|
96912
|
+
default: throw new TypeError(`Invalid operator: ${op}`);
|
|
96913
|
+
}
|
|
96914
|
+
};
|
|
96915
|
+
module.exports = cmp;
|
|
96916
|
+
}));
|
|
96917
|
+
//#endregion
|
|
96918
|
+
//#region ../../node_modules/semver/functions/coerce.js
|
|
96919
|
+
var require_coerce$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96920
|
+
const SemVer = require_semver$3();
|
|
96921
|
+
const parse = require_parse$3();
|
|
96922
|
+
const { safeRe: re, t } = require_re$1();
|
|
96923
|
+
const coerce = (version, options) => {
|
|
96924
|
+
if (version instanceof SemVer) return version;
|
|
96925
|
+
if (typeof version === "number") version = String(version);
|
|
96926
|
+
if (typeof version !== "string") return null;
|
|
96927
|
+
options = options || {};
|
|
96928
|
+
let match = null;
|
|
96929
|
+
if (!options.rtl) match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
|
|
96930
|
+
else {
|
|
96931
|
+
const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL];
|
|
96932
|
+
let next;
|
|
96933
|
+
while ((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)) {
|
|
96934
|
+
if (!match || next.index + next[0].length !== match.index + match[0].length) match = next;
|
|
96935
|
+
coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
|
96936
|
+
}
|
|
96937
|
+
coerceRtlRegex.lastIndex = -1;
|
|
96938
|
+
}
|
|
96939
|
+
if (match === null) return null;
|
|
96940
|
+
const major = match[2];
|
|
96941
|
+
return parse(`${major}.${match[3] || "0"}.${match[4] || "0"}${options.includePrerelease && match[5] ? `-${match[5]}` : ""}${options.includePrerelease && match[6] ? `+${match[6]}` : ""}`, options);
|
|
96942
|
+
};
|
|
96943
|
+
module.exports = coerce;
|
|
96944
|
+
}));
|
|
96945
|
+
//#endregion
|
|
96946
|
+
//#region ../../node_modules/semver/functions/truncate.js
|
|
96947
|
+
var require_truncate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96948
|
+
const parse = require_parse$3();
|
|
96949
|
+
const constants = require_constants$5();
|
|
96950
|
+
const SemVer = require_semver$3();
|
|
96951
|
+
const truncate = (version, truncation, options) => {
|
|
96952
|
+
if (!constants.RELEASE_TYPES.includes(truncation)) return null;
|
|
96953
|
+
const clonedVersion = cloneInputVersion(version, options);
|
|
96954
|
+
return clonedVersion && doTruncation(clonedVersion, truncation);
|
|
96955
|
+
};
|
|
96956
|
+
const cloneInputVersion = (version, options) => {
|
|
96957
|
+
return parse(version instanceof SemVer ? version.version : version, options);
|
|
96958
|
+
};
|
|
96959
|
+
const doTruncation = (version, truncation) => {
|
|
96960
|
+
if (isPrerelease(truncation)) return version.version;
|
|
96961
|
+
version.prerelease = [];
|
|
96962
|
+
switch (truncation) {
|
|
96963
|
+
case "major":
|
|
96964
|
+
version.minor = 0;
|
|
96965
|
+
version.patch = 0;
|
|
96966
|
+
break;
|
|
96967
|
+
case "minor":
|
|
96968
|
+
version.patch = 0;
|
|
96969
|
+
break;
|
|
96970
|
+
}
|
|
96971
|
+
return version.format();
|
|
96972
|
+
};
|
|
96973
|
+
const isPrerelease = (type) => {
|
|
96974
|
+
return type.startsWith("pre");
|
|
96975
|
+
};
|
|
96976
|
+
module.exports = truncate;
|
|
96977
|
+
}));
|
|
96978
|
+
//#endregion
|
|
96979
|
+
//#region ../../node_modules/semver/internal/lrucache.js
|
|
96980
|
+
var require_lrucache$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96981
|
+
var LRUCache = class {
|
|
96982
|
+
constructor() {
|
|
96983
|
+
this.max = 1e3;
|
|
96984
|
+
this.map = /* @__PURE__ */ new Map();
|
|
96985
|
+
}
|
|
96986
|
+
get(key) {
|
|
96987
|
+
const value = this.map.get(key);
|
|
96988
|
+
if (value === void 0) return;
|
|
96989
|
+
else {
|
|
96990
|
+
this.map.delete(key);
|
|
96991
|
+
this.map.set(key, value);
|
|
96992
|
+
return value;
|
|
96993
|
+
}
|
|
96994
|
+
}
|
|
96995
|
+
delete(key) {
|
|
96996
|
+
return this.map.delete(key);
|
|
96997
|
+
}
|
|
96998
|
+
set(key, value) {
|
|
96999
|
+
if (!this.delete(key) && value !== void 0) {
|
|
97000
|
+
if (this.map.size >= this.max) {
|
|
97001
|
+
const firstKey = this.map.keys().next().value;
|
|
97002
|
+
this.delete(firstKey);
|
|
97003
|
+
}
|
|
97004
|
+
this.map.set(key, value);
|
|
97005
|
+
}
|
|
97006
|
+
return this;
|
|
97007
|
+
}
|
|
97008
|
+
};
|
|
97009
|
+
module.exports = LRUCache;
|
|
97010
|
+
}));
|
|
97011
|
+
//#endregion
|
|
97012
|
+
//#region ../../node_modules/semver/classes/range.js
|
|
97013
|
+
var require_range$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97014
|
+
const SPACE_CHARACTERS = /\s+/g;
|
|
97015
|
+
module.exports = class Range {
|
|
97016
|
+
constructor(range, options) {
|
|
97017
|
+
options = parseOptions(options);
|
|
97018
|
+
if (range instanceof Range) if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) return range;
|
|
97019
|
+
else return new Range(range.raw, options);
|
|
97020
|
+
if (range instanceof Comparator) {
|
|
97021
|
+
this.raw = range.value;
|
|
97022
|
+
this.set = [[range]];
|
|
97023
|
+
this.formatted = void 0;
|
|
97024
|
+
return this;
|
|
97025
|
+
}
|
|
97026
|
+
this.options = options;
|
|
97027
|
+
this.loose = !!options.loose;
|
|
97028
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
97029
|
+
this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
|
|
97030
|
+
this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
|
|
97031
|
+
if (!this.set.length) throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
97032
|
+
if (this.set.length > 1) {
|
|
97033
|
+
const first = this.set[0];
|
|
97034
|
+
this.set = this.set.filter((c) => !isNullSet(c[0]));
|
|
97035
|
+
if (this.set.length === 0) this.set = [first];
|
|
97036
|
+
else if (this.set.length > 1) {
|
|
97037
|
+
for (const c of this.set) if (c.length === 1 && isAny(c[0])) {
|
|
97038
|
+
this.set = [c];
|
|
97039
|
+
break;
|
|
97040
|
+
}
|
|
97041
|
+
}
|
|
97042
|
+
}
|
|
97043
|
+
this.formatted = void 0;
|
|
97044
|
+
}
|
|
97045
|
+
get range() {
|
|
97046
|
+
if (this.formatted === void 0) {
|
|
97047
|
+
this.formatted = "";
|
|
97048
|
+
for (let i = 0; i < this.set.length; i++) {
|
|
97049
|
+
if (i > 0) this.formatted += "||";
|
|
97050
|
+
const comps = this.set[i];
|
|
97051
|
+
for (let k = 0; k < comps.length; k++) {
|
|
97052
|
+
if (k > 0) this.formatted += " ";
|
|
97053
|
+
this.formatted += comps[k].toString().trim();
|
|
97054
|
+
}
|
|
97055
|
+
}
|
|
97056
|
+
}
|
|
97057
|
+
return this.formatted;
|
|
97058
|
+
}
|
|
97059
|
+
format() {
|
|
97060
|
+
return this.range;
|
|
97061
|
+
}
|
|
97062
|
+
toString() {
|
|
97063
|
+
return this.range;
|
|
97064
|
+
}
|
|
97065
|
+
parseRange(range) {
|
|
97066
|
+
const memoKey = ((this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE)) + ":" + range;
|
|
97067
|
+
const cached = cache.get(memoKey);
|
|
97068
|
+
if (cached) return cached;
|
|
97069
|
+
const loose = this.options.loose;
|
|
97070
|
+
const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
|
|
97071
|
+
range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
|
|
97072
|
+
debug("hyphen replace", range);
|
|
97073
|
+
range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace);
|
|
97074
|
+
debug("comparator trim", range);
|
|
97075
|
+
range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
|
|
97076
|
+
debug("tilde trim", range);
|
|
97077
|
+
range = range.replace(re[t.CARETTRIM], caretTrimReplace);
|
|
97078
|
+
debug("caret trim", range);
|
|
97079
|
+
let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
|
|
97080
|
+
if (loose) rangeList = rangeList.filter((comp) => {
|
|
97081
|
+
debug("loose invalid filter", comp, this.options);
|
|
97082
|
+
return !!comp.match(re[t.COMPARATORLOOSE]);
|
|
97083
|
+
});
|
|
97084
|
+
debug("range list", rangeList);
|
|
97085
|
+
const rangeMap = /* @__PURE__ */ new Map();
|
|
97086
|
+
const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
|
|
97087
|
+
for (const comp of comparators) {
|
|
97088
|
+
if (isNullSet(comp)) return [comp];
|
|
97089
|
+
rangeMap.set(comp.value, comp);
|
|
97090
|
+
}
|
|
97091
|
+
if (rangeMap.size > 1 && rangeMap.has("")) rangeMap.delete("");
|
|
97092
|
+
const result = [...rangeMap.values()];
|
|
97093
|
+
cache.set(memoKey, result);
|
|
97094
|
+
return result;
|
|
97095
|
+
}
|
|
97096
|
+
intersects(range, options) {
|
|
97097
|
+
if (!(range instanceof Range)) throw new TypeError("a Range is required");
|
|
97098
|
+
return this.set.some((thisComparators) => {
|
|
97099
|
+
return isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => {
|
|
97100
|
+
return isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => {
|
|
97101
|
+
return rangeComparators.every((rangeComparator) => {
|
|
97102
|
+
return thisComparator.intersects(rangeComparator, options);
|
|
97103
|
+
});
|
|
97104
|
+
});
|
|
97105
|
+
});
|
|
97106
|
+
});
|
|
97107
|
+
}
|
|
97108
|
+
test(version) {
|
|
97109
|
+
if (!version) return false;
|
|
97110
|
+
if (typeof version === "string") try {
|
|
97111
|
+
version = new SemVer(version, this.options);
|
|
97112
|
+
} catch (er) {
|
|
97113
|
+
return false;
|
|
97114
|
+
}
|
|
97115
|
+
for (let i = 0; i < this.set.length; i++) if (testSet(this.set[i], version, this.options)) return true;
|
|
97116
|
+
return false;
|
|
97117
|
+
}
|
|
97118
|
+
};
|
|
97119
|
+
const cache = new (require_lrucache$1())();
|
|
97120
|
+
const parseOptions = require_parse_options$1();
|
|
97121
|
+
const Comparator = require_comparator$1();
|
|
97122
|
+
const debug = require_debug$1();
|
|
97123
|
+
const SemVer = require_semver$3();
|
|
97124
|
+
const { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re$1();
|
|
97125
|
+
const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants$5();
|
|
97126
|
+
const isNullSet = (c) => c.value === "<0.0.0-0";
|
|
97127
|
+
const isAny = (c) => c.value === "";
|
|
97128
|
+
const isSatisfiable = (comparators, options) => {
|
|
97129
|
+
let result = true;
|
|
97130
|
+
const remainingComparators = comparators.slice();
|
|
97131
|
+
let testComparator = remainingComparators.pop();
|
|
97132
|
+
while (result && remainingComparators.length) {
|
|
97133
|
+
result = remainingComparators.every((otherComparator) => {
|
|
97134
|
+
return testComparator.intersects(otherComparator, options);
|
|
97135
|
+
});
|
|
97136
|
+
testComparator = remainingComparators.pop();
|
|
97137
|
+
}
|
|
97138
|
+
return result;
|
|
97139
|
+
};
|
|
97140
|
+
const parseComparator = (comp, options) => {
|
|
97141
|
+
comp = comp.replace(re[t.BUILD], "");
|
|
97142
|
+
debug("comp", comp, options);
|
|
97143
|
+
comp = replaceCarets(comp, options);
|
|
97144
|
+
debug("caret", comp);
|
|
97145
|
+
comp = replaceTildes(comp, options);
|
|
97146
|
+
debug("tildes", comp);
|
|
97147
|
+
comp = replaceXRanges(comp, options);
|
|
97148
|
+
debug("xrange", comp);
|
|
97149
|
+
comp = replaceStars(comp, options);
|
|
97150
|
+
debug("stars", comp);
|
|
97151
|
+
return comp;
|
|
97152
|
+
};
|
|
97153
|
+
const isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
|
|
97154
|
+
const replaceTildes = (comp, options) => {
|
|
97155
|
+
return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
|
|
97156
|
+
};
|
|
97157
|
+
const replaceTilde = (comp, options) => {
|
|
97158
|
+
const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
|
|
97159
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
97160
|
+
debug("tilde", comp, _, M, m, p, pr);
|
|
97161
|
+
let ret;
|
|
97162
|
+
if (isX(M)) ret = "";
|
|
97163
|
+
else if (isX(m)) ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
|
|
97164
|
+
else if (isX(p)) ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
|
|
97165
|
+
else if (pr) {
|
|
97166
|
+
debug("replaceTilde pr", pr);
|
|
97167
|
+
ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
97168
|
+
} else ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
|
|
97169
|
+
debug("tilde return", ret);
|
|
97170
|
+
return ret;
|
|
97171
|
+
});
|
|
97172
|
+
};
|
|
97173
|
+
const replaceCarets = (comp, options) => {
|
|
97174
|
+
return comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" ");
|
|
97175
|
+
};
|
|
97176
|
+
const replaceCaret = (comp, options) => {
|
|
97177
|
+
debug("caret", comp, options);
|
|
97178
|
+
const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET];
|
|
97179
|
+
const z = options.includePrerelease ? "-0" : "";
|
|
97180
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
97181
|
+
debug("caret", comp, _, M, m, p, pr);
|
|
97182
|
+
let ret;
|
|
97183
|
+
if (isX(M)) ret = "";
|
|
97184
|
+
else if (isX(m)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
|
|
97185
|
+
else if (isX(p)) if (M === "0") ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
|
|
97186
|
+
else ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
|
|
97187
|
+
else if (pr) {
|
|
97188
|
+
debug("replaceCaret pr", pr);
|
|
97189
|
+
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;
|
|
97190
|
+
else ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
97191
|
+
else ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
|
|
97192
|
+
} else {
|
|
97193
|
+
debug("no pr");
|
|
97194
|
+
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0`;
|
|
97195
|
+
else ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0`;
|
|
97196
|
+
else ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
|
|
97197
|
+
}
|
|
97198
|
+
debug("caret return", ret);
|
|
97199
|
+
return ret;
|
|
97200
|
+
});
|
|
97201
|
+
};
|
|
97202
|
+
const replaceXRanges = (comp, options) => {
|
|
97203
|
+
debug("replaceXRanges", comp, options);
|
|
97204
|
+
return comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ");
|
|
97205
|
+
};
|
|
97206
|
+
const replaceXRange = (comp, options) => {
|
|
97207
|
+
comp = comp.trim();
|
|
97208
|
+
const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
|
|
97209
|
+
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
|
|
97210
|
+
debug("xRange", comp, ret, gtlt, M, m, p, pr);
|
|
97211
|
+
const xM = isX(M);
|
|
97212
|
+
const xm = xM || isX(m);
|
|
97213
|
+
const xp = xm || isX(p);
|
|
97214
|
+
const anyX = xp;
|
|
97215
|
+
if (gtlt === "=" && anyX) gtlt = "";
|
|
97216
|
+
pr = options.includePrerelease ? "-0" : "";
|
|
97217
|
+
if (xM) if (gtlt === ">" || gtlt === "<") ret = "<0.0.0-0";
|
|
97218
|
+
else ret = "*";
|
|
97219
|
+
else if (gtlt && anyX) {
|
|
97220
|
+
if (xm) m = 0;
|
|
97221
|
+
p = 0;
|
|
97222
|
+
if (gtlt === ">") {
|
|
97223
|
+
gtlt = ">=";
|
|
97224
|
+
if (xm) {
|
|
97225
|
+
M = +M + 1;
|
|
97226
|
+
m = 0;
|
|
97227
|
+
p = 0;
|
|
97228
|
+
} else {
|
|
97229
|
+
m = +m + 1;
|
|
97230
|
+
p = 0;
|
|
97231
|
+
}
|
|
97232
|
+
} else if (gtlt === "<=") {
|
|
97233
|
+
gtlt = "<";
|
|
97234
|
+
if (xm) M = +M + 1;
|
|
97235
|
+
else m = +m + 1;
|
|
97236
|
+
}
|
|
97237
|
+
if (gtlt === "<") pr = "-0";
|
|
97238
|
+
ret = `${gtlt + M}.${m}.${p}${pr}`;
|
|
97239
|
+
} else if (xm) ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
|
|
97240
|
+
else if (xp) ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;
|
|
97241
|
+
debug("xRange return", ret);
|
|
97242
|
+
return ret;
|
|
97243
|
+
});
|
|
97244
|
+
};
|
|
97245
|
+
const replaceStars = (comp, options) => {
|
|
97246
|
+
debug("replaceStars", comp, options);
|
|
97247
|
+
return comp.trim().replace(re[t.STAR], "");
|
|
97248
|
+
};
|
|
97249
|
+
const replaceGTE0 = (comp, options) => {
|
|
97250
|
+
debug("replaceGTE0", comp, options);
|
|
97251
|
+
return comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
|
|
97252
|
+
};
|
|
97253
|
+
const hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
|
|
97254
|
+
if (isX(fM)) from = "";
|
|
97255
|
+
else if (isX(fm)) from = `>=${fM}.0.0${incPr ? "-0" : ""}`;
|
|
97256
|
+
else if (isX(fp)) from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}`;
|
|
97257
|
+
else if (fpr) from = `>=${from}`;
|
|
97258
|
+
else from = `>=${from}${incPr ? "-0" : ""}`;
|
|
97259
|
+
if (isX(tM)) to = "";
|
|
97260
|
+
else if (isX(tm)) to = `<${+tM + 1}.0.0-0`;
|
|
97261
|
+
else if (isX(tp)) to = `<${tM}.${+tm + 1}.0-0`;
|
|
97262
|
+
else if (tpr) to = `<=${tM}.${tm}.${tp}-${tpr}`;
|
|
97263
|
+
else if (incPr) to = `<${tM}.${tm}.${+tp + 1}-0`;
|
|
97264
|
+
else to = `<=${to}`;
|
|
97265
|
+
return `${from} ${to}`.trim();
|
|
97266
|
+
};
|
|
97267
|
+
const testSet = (set, version, options) => {
|
|
97268
|
+
for (let i = 0; i < set.length; i++) if (!set[i].test(version)) return false;
|
|
97269
|
+
if (version.prerelease.length && !options.includePrerelease) {
|
|
97270
|
+
for (let i = 0; i < set.length; i++) {
|
|
97271
|
+
debug(set[i].semver);
|
|
97272
|
+
if (set[i].semver === Comparator.ANY) continue;
|
|
97273
|
+
if (set[i].semver.prerelease.length > 0) {
|
|
97274
|
+
const allowed = set[i].semver;
|
|
97275
|
+
if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) return true;
|
|
97276
|
+
}
|
|
97277
|
+
}
|
|
97278
|
+
return false;
|
|
97279
|
+
}
|
|
97280
|
+
return true;
|
|
97281
|
+
};
|
|
97282
|
+
}));
|
|
97283
|
+
//#endregion
|
|
97284
|
+
//#region ../../node_modules/semver/classes/comparator.js
|
|
97285
|
+
var require_comparator$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97286
|
+
const ANY = Symbol("SemVer ANY");
|
|
97287
|
+
module.exports = class Comparator {
|
|
97288
|
+
static get ANY() {
|
|
97289
|
+
return ANY;
|
|
97290
|
+
}
|
|
97291
|
+
constructor(comp, options) {
|
|
97292
|
+
options = parseOptions(options);
|
|
97293
|
+
if (comp instanceof Comparator) if (comp.loose === !!options.loose) return comp;
|
|
97294
|
+
else comp = comp.value;
|
|
97295
|
+
comp = comp.trim().split(/\s+/).join(" ");
|
|
97296
|
+
debug("comparator", comp, options);
|
|
97297
|
+
this.options = options;
|
|
97298
|
+
this.loose = !!options.loose;
|
|
97299
|
+
this.parse(comp);
|
|
97300
|
+
if (this.semver === ANY) this.value = "";
|
|
97301
|
+
else this.value = this.operator + this.semver.version;
|
|
97302
|
+
debug("comp", this);
|
|
97303
|
+
}
|
|
97304
|
+
parse(comp) {
|
|
97305
|
+
const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR];
|
|
97306
|
+
const m = comp.match(r);
|
|
97307
|
+
if (!m) throw new TypeError(`Invalid comparator: ${comp}`);
|
|
97308
|
+
this.operator = m[1] !== void 0 ? m[1] : "";
|
|
97309
|
+
if (this.operator === "=") this.operator = "";
|
|
97310
|
+
if (!m[2]) this.semver = ANY;
|
|
97311
|
+
else this.semver = new SemVer(m[2], this.options.loose);
|
|
97312
|
+
}
|
|
97313
|
+
toString() {
|
|
97314
|
+
return this.value;
|
|
97315
|
+
}
|
|
97316
|
+
test(version) {
|
|
97317
|
+
debug("Comparator.test", version, this.options.loose);
|
|
97318
|
+
if (this.semver === ANY || version === ANY) return true;
|
|
97319
|
+
if (typeof version === "string") try {
|
|
97320
|
+
version = new SemVer(version, this.options);
|
|
97321
|
+
} catch (er) {
|
|
97322
|
+
return false;
|
|
97323
|
+
}
|
|
97324
|
+
return cmp(version, this.operator, this.semver, this.options);
|
|
97325
|
+
}
|
|
97326
|
+
intersects(comp, options) {
|
|
97327
|
+
if (!(comp instanceof Comparator)) throw new TypeError("a Comparator is required");
|
|
97328
|
+
if (this.operator === "") {
|
|
97329
|
+
if (this.value === "") return true;
|
|
97330
|
+
return new Range(comp.value, options).test(this.value);
|
|
97331
|
+
} else if (comp.operator === "") {
|
|
97332
|
+
if (comp.value === "") return true;
|
|
97333
|
+
return new Range(this.value, options).test(comp.semver);
|
|
97334
|
+
}
|
|
97335
|
+
options = parseOptions(options);
|
|
97336
|
+
if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) return false;
|
|
97337
|
+
if (!options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0"))) return false;
|
|
97338
|
+
if (this.operator.startsWith(">") && comp.operator.startsWith(">")) return true;
|
|
97339
|
+
if (this.operator.startsWith("<") && comp.operator.startsWith("<")) return true;
|
|
97340
|
+
if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) return true;
|
|
97341
|
+
if (cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) return true;
|
|
97342
|
+
if (cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) return true;
|
|
97343
|
+
return false;
|
|
97344
|
+
}
|
|
97345
|
+
};
|
|
97346
|
+
const parseOptions = require_parse_options$1();
|
|
97347
|
+
const { safeRe: re, t } = require_re$1();
|
|
97348
|
+
const cmp = require_cmp$1();
|
|
97349
|
+
const debug = require_debug$1();
|
|
97350
|
+
const SemVer = require_semver$3();
|
|
97351
|
+
const Range = require_range$1();
|
|
97352
|
+
}));
|
|
97353
|
+
//#endregion
|
|
97354
|
+
//#region ../../node_modules/semver/functions/satisfies.js
|
|
97355
|
+
var require_satisfies$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97356
|
+
const Range = require_range$1();
|
|
97357
|
+
const satisfies = (version, range, options) => {
|
|
97358
|
+
try {
|
|
97359
|
+
range = new Range(range, options);
|
|
97360
|
+
} catch (er) {
|
|
97361
|
+
return false;
|
|
97362
|
+
}
|
|
97363
|
+
return range.test(version);
|
|
97364
|
+
};
|
|
97365
|
+
module.exports = satisfies;
|
|
97366
|
+
}));
|
|
97367
|
+
//#endregion
|
|
97368
|
+
//#region ../../node_modules/semver/ranges/to-comparators.js
|
|
97369
|
+
var require_to_comparators$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97370
|
+
const Range = require_range$1();
|
|
97371
|
+
const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
97372
|
+
module.exports = toComparators;
|
|
97373
|
+
}));
|
|
97374
|
+
//#endregion
|
|
97375
|
+
//#region ../../node_modules/semver/ranges/max-satisfying.js
|
|
97376
|
+
var require_max_satisfying$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97377
|
+
const SemVer = require_semver$3();
|
|
97378
|
+
const Range = require_range$1();
|
|
97379
|
+
const maxSatisfying = (versions, range, options) => {
|
|
97380
|
+
let max = null;
|
|
97381
|
+
let maxSV = null;
|
|
97382
|
+
let rangeObj = null;
|
|
97383
|
+
try {
|
|
97384
|
+
rangeObj = new Range(range, options);
|
|
97385
|
+
} catch (er) {
|
|
97386
|
+
return null;
|
|
97387
|
+
}
|
|
97388
|
+
versions.forEach((v) => {
|
|
97389
|
+
if (rangeObj.test(v)) {
|
|
97390
|
+
if (!max || maxSV.compare(v) === -1) {
|
|
97391
|
+
max = v;
|
|
97392
|
+
maxSV = new SemVer(max, options);
|
|
97393
|
+
}
|
|
97394
|
+
}
|
|
97395
|
+
});
|
|
97396
|
+
return max;
|
|
97397
|
+
};
|
|
97398
|
+
module.exports = maxSatisfying;
|
|
97399
|
+
}));
|
|
97400
|
+
//#endregion
|
|
97401
|
+
//#region ../../node_modules/semver/ranges/min-satisfying.js
|
|
97402
|
+
var require_min_satisfying$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97403
|
+
const SemVer = require_semver$3();
|
|
97404
|
+
const Range = require_range$1();
|
|
97405
|
+
const minSatisfying = (versions, range, options) => {
|
|
97406
|
+
let min = null;
|
|
97407
|
+
let minSV = null;
|
|
97408
|
+
let rangeObj = null;
|
|
97409
|
+
try {
|
|
97410
|
+
rangeObj = new Range(range, options);
|
|
97411
|
+
} catch (er) {
|
|
97412
|
+
return null;
|
|
97413
|
+
}
|
|
97414
|
+
versions.forEach((v) => {
|
|
97415
|
+
if (rangeObj.test(v)) {
|
|
97416
|
+
if (!min || minSV.compare(v) === 1) {
|
|
97417
|
+
min = v;
|
|
97418
|
+
minSV = new SemVer(min, options);
|
|
97419
|
+
}
|
|
97420
|
+
}
|
|
97421
|
+
});
|
|
97422
|
+
return min;
|
|
97423
|
+
};
|
|
97424
|
+
module.exports = minSatisfying;
|
|
97425
|
+
}));
|
|
97426
|
+
//#endregion
|
|
97427
|
+
//#region ../../node_modules/semver/ranges/min-version.js
|
|
97428
|
+
var require_min_version$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97429
|
+
const SemVer = require_semver$3();
|
|
97430
|
+
const Range = require_range$1();
|
|
97431
|
+
const gt = require_gt$1();
|
|
97432
|
+
const minVersion = (range, loose) => {
|
|
97433
|
+
range = new Range(range, loose);
|
|
97434
|
+
let minver = new SemVer("0.0.0");
|
|
97435
|
+
if (range.test(minver)) return minver;
|
|
97436
|
+
minver = new SemVer("0.0.0-0");
|
|
97437
|
+
if (range.test(minver)) return minver;
|
|
97438
|
+
minver = null;
|
|
97439
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
97440
|
+
const comparators = range.set[i];
|
|
97441
|
+
let setMin = null;
|
|
97442
|
+
comparators.forEach((comparator) => {
|
|
97443
|
+
const compver = new SemVer(comparator.semver.version);
|
|
97444
|
+
switch (comparator.operator) {
|
|
97445
|
+
case ">":
|
|
97446
|
+
if (compver.prerelease.length === 0) compver.patch++;
|
|
97447
|
+
else compver.prerelease.push(0);
|
|
97448
|
+
compver.raw = compver.format();
|
|
97449
|
+
case "":
|
|
97450
|
+
case ">=":
|
|
97451
|
+
if (!setMin || gt(compver, setMin)) setMin = compver;
|
|
97452
|
+
break;
|
|
97453
|
+
case "<":
|
|
97454
|
+
case "<=": break;
|
|
97455
|
+
default: throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
97456
|
+
}
|
|
97457
|
+
});
|
|
97458
|
+
if (setMin && (!minver || gt(minver, setMin))) minver = setMin;
|
|
97459
|
+
}
|
|
97460
|
+
if (minver && range.test(minver)) return minver;
|
|
97461
|
+
return null;
|
|
97462
|
+
};
|
|
97463
|
+
module.exports = minVersion;
|
|
97464
|
+
}));
|
|
97465
|
+
//#endregion
|
|
97466
|
+
//#region ../../node_modules/semver/ranges/valid.js
|
|
97467
|
+
var require_valid$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97468
|
+
const Range = require_range$1();
|
|
97469
|
+
const validRange = (range, options) => {
|
|
97470
|
+
try {
|
|
97471
|
+
return new Range(range, options).range || "*";
|
|
97472
|
+
} catch (er) {
|
|
97473
|
+
return null;
|
|
97474
|
+
}
|
|
97475
|
+
};
|
|
97476
|
+
module.exports = validRange;
|
|
97477
|
+
}));
|
|
97478
|
+
//#endregion
|
|
97479
|
+
//#region ../../node_modules/semver/ranges/outside.js
|
|
97480
|
+
var require_outside$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97481
|
+
const SemVer = require_semver$3();
|
|
97482
|
+
const Comparator = require_comparator$1();
|
|
97483
|
+
const { ANY } = Comparator;
|
|
97484
|
+
const Range = require_range$1();
|
|
97485
|
+
const satisfies = require_satisfies$1();
|
|
97486
|
+
const gt = require_gt$1();
|
|
97487
|
+
const lt = require_lt$1();
|
|
97488
|
+
const lte = require_lte$1();
|
|
97489
|
+
const gte = require_gte$1();
|
|
97490
|
+
const outside = (version, range, hilo, options) => {
|
|
97491
|
+
version = new SemVer(version, options);
|
|
97492
|
+
range = new Range(range, options);
|
|
97493
|
+
let gtfn, ltefn, ltfn, comp, ecomp;
|
|
97494
|
+
switch (hilo) {
|
|
97495
|
+
case ">":
|
|
97496
|
+
gtfn = gt;
|
|
97497
|
+
ltefn = lte;
|
|
97498
|
+
ltfn = lt;
|
|
97499
|
+
comp = ">";
|
|
97500
|
+
ecomp = ">=";
|
|
97501
|
+
break;
|
|
97502
|
+
case "<":
|
|
97503
|
+
gtfn = lt;
|
|
97504
|
+
ltefn = gte;
|
|
97505
|
+
ltfn = gt;
|
|
97506
|
+
comp = "<";
|
|
97507
|
+
ecomp = "<=";
|
|
97508
|
+
break;
|
|
97509
|
+
default: throw new TypeError("Must provide a hilo val of \"<\" or \">\"");
|
|
97510
|
+
}
|
|
97511
|
+
if (satisfies(version, range, options)) return false;
|
|
97512
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
97513
|
+
const comparators = range.set[i];
|
|
97514
|
+
let high = null;
|
|
97515
|
+
let low = null;
|
|
97516
|
+
comparators.forEach((comparator) => {
|
|
97517
|
+
if (comparator.semver === ANY) comparator = new Comparator(">=0.0.0");
|
|
97518
|
+
high = high || comparator;
|
|
97519
|
+
low = low || comparator;
|
|
97520
|
+
if (gtfn(comparator.semver, high.semver, options)) high = comparator;
|
|
97521
|
+
else if (ltfn(comparator.semver, low.semver, options)) low = comparator;
|
|
97522
|
+
});
|
|
97523
|
+
if (high.operator === comp || high.operator === ecomp) return false;
|
|
97524
|
+
if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) return false;
|
|
97525
|
+
else if (low.operator === ecomp && ltfn(version, low.semver)) return false;
|
|
97526
|
+
}
|
|
97527
|
+
return true;
|
|
97528
|
+
};
|
|
97529
|
+
module.exports = outside;
|
|
97530
|
+
}));
|
|
97531
|
+
//#endregion
|
|
97532
|
+
//#region ../../node_modules/semver/ranges/gtr.js
|
|
97533
|
+
var require_gtr$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97534
|
+
const outside = require_outside$1();
|
|
97535
|
+
const gtr = (version, range, options) => outside(version, range, ">", options);
|
|
97536
|
+
module.exports = gtr;
|
|
97537
|
+
}));
|
|
97538
|
+
//#endregion
|
|
97539
|
+
//#region ../../node_modules/semver/ranges/ltr.js
|
|
97540
|
+
var require_ltr$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97541
|
+
const outside = require_outside$1();
|
|
97542
|
+
const ltr = (version, range, options) => outside(version, range, "<", options);
|
|
97543
|
+
module.exports = ltr;
|
|
97544
|
+
}));
|
|
97545
|
+
//#endregion
|
|
97546
|
+
//#region ../../node_modules/semver/ranges/intersects.js
|
|
97547
|
+
var require_intersects$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97548
|
+
const Range = require_range$1();
|
|
97549
|
+
const intersects = (r1, r2, options) => {
|
|
97550
|
+
r1 = new Range(r1, options);
|
|
97551
|
+
r2 = new Range(r2, options);
|
|
97552
|
+
return r1.intersects(r2, options);
|
|
97553
|
+
};
|
|
97554
|
+
module.exports = intersects;
|
|
97555
|
+
}));
|
|
97556
|
+
//#endregion
|
|
97557
|
+
//#region ../../node_modules/semver/ranges/simplify.js
|
|
97558
|
+
var require_simplify$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97559
|
+
const satisfies = require_satisfies$1();
|
|
97560
|
+
const compare = require_compare$1();
|
|
97561
|
+
module.exports = (versions, range, options) => {
|
|
97562
|
+
const set = [];
|
|
97563
|
+
let first = null;
|
|
97564
|
+
let prev = null;
|
|
97565
|
+
const v = versions.sort((a, b) => compare(a, b, options));
|
|
97566
|
+
for (const version of v) if (satisfies(version, range, options)) {
|
|
97567
|
+
prev = version;
|
|
97568
|
+
if (!first) first = version;
|
|
97569
|
+
} else {
|
|
97570
|
+
if (prev) set.push([first, prev]);
|
|
97571
|
+
prev = null;
|
|
97572
|
+
first = null;
|
|
97573
|
+
}
|
|
97574
|
+
if (first) set.push([first, null]);
|
|
97575
|
+
const ranges = [];
|
|
97576
|
+
for (const [min, max] of set) if (min === max) ranges.push(min);
|
|
97577
|
+
else if (!max && min === v[0]) ranges.push("*");
|
|
97578
|
+
else if (!max) ranges.push(`>=${min}`);
|
|
97579
|
+
else if (min === v[0]) ranges.push(`<=${max}`);
|
|
97580
|
+
else ranges.push(`${min} - ${max}`);
|
|
97581
|
+
const simplified = ranges.join(" || ");
|
|
97582
|
+
const original = typeof range.raw === "string" ? range.raw : String(range);
|
|
97583
|
+
return simplified.length < original.length ? simplified : range;
|
|
97584
|
+
};
|
|
97585
|
+
}));
|
|
97586
|
+
//#endregion
|
|
97587
|
+
//#region ../../node_modules/semver/ranges/subset.js
|
|
97588
|
+
var require_subset$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97589
|
+
const Range = require_range$1();
|
|
97590
|
+
const Comparator = require_comparator$1();
|
|
97591
|
+
const { ANY } = Comparator;
|
|
97592
|
+
const satisfies = require_satisfies$1();
|
|
97593
|
+
const compare = require_compare$1();
|
|
97594
|
+
const subset = (sub, dom, options = {}) => {
|
|
97595
|
+
if (sub === dom) return true;
|
|
97596
|
+
sub = new Range(sub, options);
|
|
97597
|
+
dom = new Range(dom, options);
|
|
97598
|
+
let sawNonNull = false;
|
|
97599
|
+
OUTER: for (const simpleSub of sub.set) {
|
|
97600
|
+
for (const simpleDom of dom.set) {
|
|
97601
|
+
const isSub = simpleSubset(simpleSub, simpleDom, options);
|
|
97602
|
+
sawNonNull = sawNonNull || isSub !== null;
|
|
97603
|
+
if (isSub) continue OUTER;
|
|
97604
|
+
}
|
|
97605
|
+
if (sawNonNull) return false;
|
|
97606
|
+
}
|
|
97607
|
+
return true;
|
|
97608
|
+
};
|
|
97609
|
+
const minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")];
|
|
97610
|
+
const minimumVersion = [new Comparator(">=0.0.0")];
|
|
97611
|
+
const simpleSubset = (sub, dom, options) => {
|
|
97612
|
+
if (sub === dom) return true;
|
|
97613
|
+
if (sub.length === 1 && sub[0].semver === ANY) if (dom.length === 1 && dom[0].semver === ANY) return true;
|
|
97614
|
+
else if (options.includePrerelease) sub = minimumVersionWithPreRelease;
|
|
97615
|
+
else sub = minimumVersion;
|
|
97616
|
+
if (dom.length === 1 && dom[0].semver === ANY) if (options.includePrerelease) return true;
|
|
97617
|
+
else dom = minimumVersion;
|
|
97618
|
+
const eqSet = /* @__PURE__ */ new Set();
|
|
97619
|
+
let gt, lt;
|
|
97620
|
+
for (const c of sub) if (c.operator === ">" || c.operator === ">=") gt = higherGT(gt, c, options);
|
|
97621
|
+
else if (c.operator === "<" || c.operator === "<=") lt = lowerLT(lt, c, options);
|
|
97622
|
+
else eqSet.add(c.semver);
|
|
97623
|
+
if (eqSet.size > 1) return null;
|
|
97624
|
+
let gtltComp;
|
|
97625
|
+
if (gt && lt) {
|
|
97626
|
+
gtltComp = compare(gt.semver, lt.semver, options);
|
|
97627
|
+
if (gtltComp > 0) return null;
|
|
97628
|
+
else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) return null;
|
|
97629
|
+
}
|
|
97630
|
+
for (const eq of eqSet) {
|
|
97631
|
+
if (gt && !satisfies(eq, String(gt), options)) return null;
|
|
97632
|
+
if (lt && !satisfies(eq, String(lt), options)) return null;
|
|
97633
|
+
for (const c of dom) if (!satisfies(eq, String(c), options)) return false;
|
|
97634
|
+
return true;
|
|
97635
|
+
}
|
|
97636
|
+
let higher, lower;
|
|
97637
|
+
let hasDomLT, hasDomGT;
|
|
97638
|
+
let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;
|
|
97639
|
+
let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;
|
|
97640
|
+
if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0) needDomLTPre = false;
|
|
97641
|
+
for (const c of dom) {
|
|
97642
|
+
hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=";
|
|
97643
|
+
hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=";
|
|
97644
|
+
if (gt) {
|
|
97645
|
+
if (needDomGTPre) {
|
|
97646
|
+
if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomGTPre.major && c.semver.minor === needDomGTPre.minor && c.semver.patch === needDomGTPre.patch) needDomGTPre = false;
|
|
97647
|
+
}
|
|
97648
|
+
if (c.operator === ">" || c.operator === ">=") {
|
|
97649
|
+
higher = higherGT(gt, c, options);
|
|
97650
|
+
if (higher === c && higher !== gt) return false;
|
|
97651
|
+
} else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options)) return false;
|
|
97652
|
+
}
|
|
97653
|
+
if (lt) {
|
|
97654
|
+
if (needDomLTPre) {
|
|
97655
|
+
if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomLTPre.major && c.semver.minor === needDomLTPre.minor && c.semver.patch === needDomLTPre.patch) needDomLTPre = false;
|
|
97656
|
+
}
|
|
97657
|
+
if (c.operator === "<" || c.operator === "<=") {
|
|
97658
|
+
lower = lowerLT(lt, c, options);
|
|
97659
|
+
if (lower === c && lower !== lt) return false;
|
|
97660
|
+
} else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options)) return false;
|
|
97661
|
+
}
|
|
97662
|
+
if (!c.operator && (lt || gt) && gtltComp !== 0) return false;
|
|
97663
|
+
}
|
|
97664
|
+
if (gt && hasDomLT && !lt && gtltComp !== 0) return false;
|
|
97665
|
+
if (lt && hasDomGT && !gt && gtltComp !== 0) return false;
|
|
97666
|
+
if (needDomGTPre || needDomLTPre) return false;
|
|
97667
|
+
return true;
|
|
97668
|
+
};
|
|
97669
|
+
const higherGT = (a, b, options) => {
|
|
97670
|
+
if (!a) return b;
|
|
97671
|
+
const comp = compare(a.semver, b.semver, options);
|
|
97672
|
+
return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
|
|
97673
|
+
};
|
|
97674
|
+
const lowerLT = (a, b, options) => {
|
|
97675
|
+
if (!a) return b;
|
|
97676
|
+
const comp = compare(a.semver, b.semver, options);
|
|
97677
|
+
return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
|
|
97678
|
+
};
|
|
97679
|
+
module.exports = subset;
|
|
97680
|
+
}));
|
|
97681
|
+
//#endregion
|
|
97682
|
+
//#region ../../node_modules/semver/index.js
|
|
97683
|
+
var require_semver$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97684
|
+
const internalRe = require_re$1();
|
|
97685
|
+
const constants = require_constants$5();
|
|
97686
|
+
const SemVer = require_semver$3();
|
|
97687
|
+
const identifiers = require_identifiers$1();
|
|
97688
|
+
module.exports = {
|
|
97689
|
+
parse: require_parse$3(),
|
|
97690
|
+
valid: require_valid$3(),
|
|
97691
|
+
clean: require_clean$1(),
|
|
97692
|
+
inc: require_inc$1(),
|
|
97693
|
+
diff: require_diff$1(),
|
|
97694
|
+
major: require_major$1(),
|
|
97695
|
+
minor: require_minor$1(),
|
|
97696
|
+
patch: require_patch$1(),
|
|
97697
|
+
prerelease: require_prerelease$1(),
|
|
97698
|
+
compare: require_compare$1(),
|
|
97699
|
+
rcompare: require_rcompare$1(),
|
|
97700
|
+
compareLoose: require_compare_loose$1(),
|
|
97701
|
+
compareBuild: require_compare_build$1(),
|
|
97702
|
+
sort: require_sort$2(),
|
|
97703
|
+
rsort: require_rsort$1(),
|
|
97704
|
+
gt: require_gt$1(),
|
|
97705
|
+
lt: require_lt$1(),
|
|
97706
|
+
eq: require_eq$1(),
|
|
97707
|
+
neq: require_neq$1(),
|
|
97708
|
+
gte: require_gte$1(),
|
|
97709
|
+
lte: require_lte$1(),
|
|
97710
|
+
cmp: require_cmp$1(),
|
|
97711
|
+
coerce: require_coerce$1(),
|
|
97712
|
+
truncate: require_truncate(),
|
|
97713
|
+
Comparator: require_comparator$1(),
|
|
97714
|
+
Range: require_range$1(),
|
|
97715
|
+
satisfies: require_satisfies$1(),
|
|
97716
|
+
toComparators: require_to_comparators$1(),
|
|
97717
|
+
maxSatisfying: require_max_satisfying$1(),
|
|
97718
|
+
minSatisfying: require_min_satisfying$1(),
|
|
97719
|
+
minVersion: require_min_version$1(),
|
|
97720
|
+
validRange: require_valid$2(),
|
|
97721
|
+
outside: require_outside$1(),
|
|
97722
|
+
gtr: require_gtr$1(),
|
|
97723
|
+
ltr: require_ltr$1(),
|
|
97724
|
+
intersects: require_intersects$1(),
|
|
97725
|
+
simplifyRange: require_simplify$1(),
|
|
97726
|
+
subset: require_subset$1(),
|
|
97727
|
+
SemVer,
|
|
97728
|
+
re: internalRe.re,
|
|
97729
|
+
src: internalRe.src,
|
|
97730
|
+
tokens: internalRe.t,
|
|
97731
|
+
SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
|
|
97732
|
+
RELEASE_TYPES: constants.RELEASE_TYPES,
|
|
97733
|
+
compareIdentifiers: identifiers.compareIdentifiers,
|
|
97734
|
+
rcompareIdentifiers: identifiers.rcompareIdentifiers
|
|
97735
|
+
};
|
|
97736
|
+
}));
|
|
97737
|
+
//#endregion
|
|
96198
97738
|
//#region ../../node_modules/@npmcli/git/lib/lines-to-revs.js
|
|
96199
97739
|
var require_lines_to_revs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96200
|
-
const semver = require_semver();
|
|
97740
|
+
const semver = require_semver$2();
|
|
96201
97741
|
module.exports = (lines) => finish(lines.reduce(linesToRevsReducer, {
|
|
96202
97742
|
versions: {},
|
|
96203
97743
|
"dist-tags": {},
|
|
@@ -96464,7 +98004,7 @@ var require_npa = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
96464
98004
|
const path$17 = isWindows ? __require("node:path/win32") : __require("node:path");
|
|
96465
98005
|
const { homedir: homedir$1 } = __require("node:os");
|
|
96466
98006
|
const HostedGit = require_lib$28();
|
|
96467
|
-
const semver = require_semver();
|
|
98007
|
+
const semver = require_semver$2();
|
|
96468
98008
|
const validatePackageName = require_lib$23();
|
|
96469
98009
|
const { log } = require_lib$29();
|
|
96470
98010
|
const hasSlashes = isWindows ? /\\|[/]/ : /[/]/;
|
|
@@ -96837,8 +98377,8 @@ var require_current_env = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
96837
98377
|
//#endregion
|
|
96838
98378
|
//#region ../../node_modules/npm-install-checks/lib/dev-engines.js
|
|
96839
98379
|
var require_dev_engines = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96840
|
-
const satisfies = require_satisfies();
|
|
96841
|
-
const validRange = require_valid();
|
|
98380
|
+
const satisfies = require_satisfies$1();
|
|
98381
|
+
const validRange = require_valid$2();
|
|
96842
98382
|
const recognizedOnFail = [
|
|
96843
98383
|
"ignore",
|
|
96844
98384
|
"warn",
|
|
@@ -96918,7 +98458,7 @@ var require_dev_engines = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
96918
98458
|
//#endregion
|
|
96919
98459
|
//#region ../../node_modules/npm-install-checks/lib/index.js
|
|
96920
98460
|
var require_lib$22 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96921
|
-
const semver = require_semver();
|
|
98461
|
+
const semver = require_semver$2();
|
|
96922
98462
|
const currentEnv = require_current_env();
|
|
96923
98463
|
const { checkDevEngines } = require_dev_engines();
|
|
96924
98464
|
const checkEngine = (target, npmVer, nodeVer, force = false) => {
|
|
@@ -97027,7 +98567,7 @@ var require_lib$21 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
97027
98567
|
//#region ../../node_modules/npm-pick-manifest/lib/index.js
|
|
97028
98568
|
var require_lib$20 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97029
98569
|
const npa = require_npa();
|
|
97030
|
-
const semver = require_semver();
|
|
98570
|
+
const semver = require_semver$2();
|
|
97031
98571
|
const { checkEngine } = require_lib$22();
|
|
97032
98572
|
const normalizeBin = require_lib$21();
|
|
97033
98573
|
const engineOk = (manifest, npmVersion, nodeVersion) => {
|
|
@@ -97321,8 +98861,8 @@ var require_lib$19 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
97321
98861
|
//#endregion
|
|
97322
98862
|
//#region ../../node_modules/@npmcli/package-json/lib/normalize.js
|
|
97323
98863
|
var require_normalize = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97324
|
-
const valid = require_valid$
|
|
97325
|
-
const clean = require_clean();
|
|
98864
|
+
const valid = require_valid$3();
|
|
98865
|
+
const clean = require_clean$1();
|
|
97326
98866
|
const fs$14 = __require("node:fs/promises");
|
|
97327
98867
|
const path$15 = __require("node:path");
|
|
97328
98868
|
const { log } = require_lib$29();
|
|
@@ -97753,7 +99293,7 @@ var require_read_package = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
97753
99293
|
}));
|
|
97754
99294
|
//#endregion
|
|
97755
99295
|
//#region ../../node_modules/@npmcli/package-json/lib/sort.js
|
|
97756
|
-
var require_sort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
99296
|
+
var require_sort$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97757
99297
|
/**
|
|
97758
99298
|
* arbitrary sort order for package.json largely pulled from:
|
|
97759
99299
|
* https://github.com/keithamus/sort-package-json/blob/main/defaultRules.md
|
|
@@ -97821,7 +99361,7 @@ var require_lib$18 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
97821
99361
|
const updateWorkspaces = require_update_workspaces();
|
|
97822
99362
|
const { normalize, syncNormalize } = require_normalize();
|
|
97823
99363
|
const { read, parse } = require_read_package();
|
|
97824
|
-
const { packageSort } = require_sort();
|
|
99364
|
+
const { packageSort } = require_sort$1();
|
|
97825
99365
|
const knownSteps = new Set([
|
|
97826
99366
|
updateDeps,
|
|
97827
99367
|
updateScripts,
|
|
@@ -98967,7 +100507,7 @@ var require_get_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
98967
100507
|
//#endregion
|
|
98968
100508
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/common/node.js
|
|
98969
100509
|
var require_node$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
98970
|
-
const semver = require_semver();
|
|
100510
|
+
const semver = require_semver$2();
|
|
98971
100511
|
const satisfies = (range) => {
|
|
98972
100512
|
return semver.satisfies(process.version, range, { includePrerelease: true });
|
|
98973
100513
|
};
|
|
@@ -111501,7 +113041,7 @@ var require_errors$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
111501
113041
|
}));
|
|
111502
113042
|
//#endregion
|
|
111503
113043
|
//#region ../../node_modules/minizlib/dist/commonjs/constants.js
|
|
111504
|
-
var require_constants$
|
|
113044
|
+
var require_constants$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
111505
113045
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
111506
113046
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
111507
113047
|
};
|
|
@@ -111672,8 +113212,8 @@ var require_commonjs$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
111672
113212
|
const buffer_1$1 = __require("buffer");
|
|
111673
113213
|
const minipass_1 = require_commonjs$10();
|
|
111674
113214
|
const realZlib = __importStar(__require("zlib"));
|
|
111675
|
-
const constants_js_1 = require_constants$
|
|
111676
|
-
var constants_js_2 = require_constants$
|
|
113215
|
+
const constants_js_1 = require_constants$4();
|
|
113216
|
+
var constants_js_2 = require_constants$4();
|
|
111677
113217
|
Object.defineProperty(exports, "constants", {
|
|
111678
113218
|
enumerable: true,
|
|
111679
113219
|
get: function() {
|
|
@@ -126315,7 +127855,7 @@ var require_smartbuffer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
126315
127855
|
}));
|
|
126316
127856
|
//#endregion
|
|
126317
127857
|
//#region ../../node_modules/socks/build/common/constants.js
|
|
126318
|
-
var require_constants$
|
|
127858
|
+
var require_constants$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
126319
127859
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
126320
127860
|
exports.SOCKS5_NO_ACCEPTABLE_AUTH = exports.SOCKS5_CUSTOM_AUTH_END = exports.SOCKS5_CUSTOM_AUTH_START = exports.SOCKS_INCOMING_PACKET_SIZES = exports.SocksClientState = exports.Socks5Response = exports.Socks5HostType = exports.Socks5Auth = exports.Socks4Response = exports.SocksCommand = exports.ERRORS = exports.DEFAULT_TIMEOUT = void 0;
|
|
126321
127861
|
exports.DEFAULT_TIMEOUT = 3e4;
|
|
@@ -126481,7 +128021,7 @@ var require_common = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
126481
128021
|
}));
|
|
126482
128022
|
//#endregion
|
|
126483
128023
|
//#region ../../node_modules/ip-address/dist/v4/constants.js
|
|
126484
|
-
var require_constants$
|
|
128024
|
+
var require_constants$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
126485
128025
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
126486
128026
|
exports.RE_SUBNET_STRING = exports.RE_ADDRESS = exports.GROUPS = exports.BITS = void 0;
|
|
126487
128027
|
exports.BITS = 32;
|
|
@@ -126540,7 +128080,7 @@ var require_ipv4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
126540
128080
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
126541
128081
|
exports.Address4 = void 0;
|
|
126542
128082
|
const common = __importStar(require_common());
|
|
126543
|
-
const constants = __importStar(require_constants$
|
|
128083
|
+
const constants = __importStar(require_constants$2());
|
|
126544
128084
|
const address_error_1 = require_address_error();
|
|
126545
128085
|
exports.Address4 = class Address4 {
|
|
126546
128086
|
constructor(address) {
|
|
@@ -126834,7 +128374,7 @@ var require_ipv4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
126834
128374
|
}));
|
|
126835
128375
|
//#endregion
|
|
126836
128376
|
//#region ../../node_modules/ip-address/dist/v6/constants.js
|
|
126837
|
-
var require_constants = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
128377
|
+
var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
126838
128378
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
126839
128379
|
exports.RE_URL_WITH_PORT = exports.RE_URL = exports.RE_ZONE_STRING = exports.RE_SUBNET_STRING = exports.RE_BAD_ADDRESS = exports.RE_BAD_CHARACTERS = exports.TYPES = exports.SCOPES = exports.GROUPS = exports.BITS = void 0;
|
|
126840
128380
|
exports.BITS = 128;
|
|
@@ -126990,7 +128530,7 @@ var require_regular_expressions = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
126990
128530
|
exports.padGroup = padGroup;
|
|
126991
128531
|
exports.simpleRegularExpression = simpleRegularExpression;
|
|
126992
128532
|
exports.possibleElisions = possibleElisions;
|
|
126993
|
-
const v6 = __importStar(require_constants());
|
|
128533
|
+
const v6 = __importStar(require_constants$1());
|
|
126994
128534
|
function groupPossibilities(possibilities) {
|
|
126995
128535
|
return `(${possibilities.join("|")})`;
|
|
126996
128536
|
}
|
|
@@ -127065,8 +128605,8 @@ var require_ipv6 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
127065
128605
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
127066
128606
|
exports.Address6 = void 0;
|
|
127067
128607
|
const common = __importStar(require_common());
|
|
127068
|
-
const constants4 = __importStar(require_constants$
|
|
127069
|
-
const constants6 = __importStar(require_constants());
|
|
128608
|
+
const constants4 = __importStar(require_constants$2());
|
|
128609
|
+
const constants6 = __importStar(require_constants$1());
|
|
127070
128610
|
const helpers = __importStar(require_helpers$1());
|
|
127071
128611
|
const ipv4_1 = require_ipv4();
|
|
127072
128612
|
const regular_expressions_1 = require_regular_expressions();
|
|
@@ -127886,7 +129426,7 @@ var require_helpers = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
127886
129426
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
127887
129427
|
exports.ipToBuffer = exports.int32ToIpv4 = exports.ipv4ToInt32 = exports.validateSocksClientChainOptions = exports.validateSocksClientOptions = void 0;
|
|
127888
129428
|
const util_1 = require_util$1();
|
|
127889
|
-
const constants_1 = require_constants$
|
|
129429
|
+
const constants_1 = require_constants$3();
|
|
127890
129430
|
const stream = __require("stream");
|
|
127891
129431
|
const ip_address_1 = require_ip_address();
|
|
127892
129432
|
const net$3 = __require("net");
|
|
@@ -128051,7 +129591,7 @@ var require_socksclient = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
128051
129591
|
const events_1 = __require("events");
|
|
128052
129592
|
const net$2 = __require("net");
|
|
128053
129593
|
const smart_buffer_1 = require_smartbuffer();
|
|
128054
|
-
const constants_1 = require_constants$
|
|
129594
|
+
const constants_1 = require_constants$3();
|
|
128055
129595
|
const helpers_1 = require_helpers();
|
|
128056
129596
|
const receivebuffer_1 = require_receivebuffer();
|
|
128057
129597
|
const util_1 = require_util$1();
|
|
@@ -132300,7 +133840,7 @@ var require_length = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
132300
133840
|
}));
|
|
132301
133841
|
//#endregion
|
|
132302
133842
|
//#region ../../node_modules/@sigstore/core/dist/asn1/parse.js
|
|
132303
|
-
var require_parse = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
133843
|
+
var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
132304
133844
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
132305
133845
|
exports.parseInteger = parseInteger;
|
|
132306
133846
|
exports.parseStringASCII = parseStringASCII;
|
|
@@ -132446,7 +133986,7 @@ var require_obj = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
132446
133986
|
const stream_1 = require_stream();
|
|
132447
133987
|
const error_1 = require_error$8();
|
|
132448
133988
|
const length_1 = require_length();
|
|
132449
|
-
const parse_1 = require_parse();
|
|
133989
|
+
const parse_1 = require_parse$1();
|
|
132450
133990
|
const tag_1 = require_tag();
|
|
132451
133991
|
var ASN1Obj = class {
|
|
132452
133992
|
tag;
|
|
@@ -140762,6 +142302,1343 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
140762
142302
|
};
|
|
140763
142303
|
}));
|
|
140764
142304
|
//#endregion
|
|
142305
|
+
//#region ../../packages/core-node/node_modules/semver/internal/constants.js
|
|
142306
|
+
var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142307
|
+
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
142308
|
+
const MAX_LENGTH = 256;
|
|
142309
|
+
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
142310
|
+
module.exports = {
|
|
142311
|
+
MAX_LENGTH,
|
|
142312
|
+
MAX_SAFE_COMPONENT_LENGTH: 16,
|
|
142313
|
+
MAX_SAFE_BUILD_LENGTH: MAX_LENGTH - 6,
|
|
142314
|
+
MAX_SAFE_INTEGER,
|
|
142315
|
+
RELEASE_TYPES: [
|
|
142316
|
+
"major",
|
|
142317
|
+
"premajor",
|
|
142318
|
+
"minor",
|
|
142319
|
+
"preminor",
|
|
142320
|
+
"patch",
|
|
142321
|
+
"prepatch",
|
|
142322
|
+
"prerelease"
|
|
142323
|
+
],
|
|
142324
|
+
SEMVER_SPEC_VERSION,
|
|
142325
|
+
FLAG_INCLUDE_PRERELEASE: 1,
|
|
142326
|
+
FLAG_LOOSE: 2
|
|
142327
|
+
};
|
|
142328
|
+
}));
|
|
142329
|
+
//#endregion
|
|
142330
|
+
//#region ../../packages/core-node/node_modules/semver/internal/debug.js
|
|
142331
|
+
var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142332
|
+
module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
142333
|
+
}));
|
|
142334
|
+
//#endregion
|
|
142335
|
+
//#region ../../packages/core-node/node_modules/semver/internal/re.js
|
|
142336
|
+
var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142337
|
+
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
|
|
142338
|
+
const debug = require_debug();
|
|
142339
|
+
exports = module.exports = {};
|
|
142340
|
+
const re = exports.re = [];
|
|
142341
|
+
const safeRe = exports.safeRe = [];
|
|
142342
|
+
const src = exports.src = [];
|
|
142343
|
+
const safeSrc = exports.safeSrc = [];
|
|
142344
|
+
const t = exports.t = {};
|
|
142345
|
+
let R = 0;
|
|
142346
|
+
const LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
142347
|
+
const safeRegexReplacements = [
|
|
142348
|
+
["\\s", 1],
|
|
142349
|
+
["\\d", MAX_LENGTH],
|
|
142350
|
+
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
|
|
142351
|
+
];
|
|
142352
|
+
const makeSafeRegex = (value) => {
|
|
142353
|
+
for (const [token, max] of safeRegexReplacements) value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
|
|
142354
|
+
return value;
|
|
142355
|
+
};
|
|
142356
|
+
const createToken = (name, value, isGlobal) => {
|
|
142357
|
+
const safe = makeSafeRegex(value);
|
|
142358
|
+
const index = R++;
|
|
142359
|
+
debug(name, index, value);
|
|
142360
|
+
t[name] = index;
|
|
142361
|
+
src[index] = value;
|
|
142362
|
+
safeSrc[index] = safe;
|
|
142363
|
+
re[index] = new RegExp(value, isGlobal ? "g" : void 0);
|
|
142364
|
+
safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
142365
|
+
};
|
|
142366
|
+
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
142367
|
+
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
142368
|
+
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
142369
|
+
createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
|
|
142370
|
+
createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
142371
|
+
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
|
|
142372
|
+
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
142373
|
+
createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
142374
|
+
createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
142375
|
+
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
142376
|
+
createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
|
|
142377
|
+
createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
|
|
142378
|
+
createToken("FULL", `^${src[t.FULLPLAIN]}$`);
|
|
142379
|
+
createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
|
|
142380
|
+
createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
|
|
142381
|
+
createToken("GTLT", "((?:<|>)?=?)");
|
|
142382
|
+
createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
|
142383
|
+
createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
|
|
142384
|
+
createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
|
|
142385
|
+
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
|
|
142386
|
+
createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
|
|
142387
|
+
createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
|
|
142388
|
+
createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
|
142389
|
+
createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
142390
|
+
createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
|
|
142391
|
+
createToken("COERCERTL", src[t.COERCE], true);
|
|
142392
|
+
createToken("COERCERTLFULL", src[t.COERCEFULL], true);
|
|
142393
|
+
createToken("LONETILDE", "(?:~>?)");
|
|
142394
|
+
createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
|
|
142395
|
+
exports.tildeTrimReplace = "$1~";
|
|
142396
|
+
createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
|
|
142397
|
+
createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
142398
|
+
createToken("LONECARET", "(?:\\^)");
|
|
142399
|
+
createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
|
|
142400
|
+
exports.caretTrimReplace = "$1^";
|
|
142401
|
+
createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
|
|
142402
|
+
createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
142403
|
+
createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
|
|
142404
|
+
createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
|
|
142405
|
+
createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
|
|
142406
|
+
exports.comparatorTrimReplace = "$1$2$3";
|
|
142407
|
+
createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
|
|
142408
|
+
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
|
|
142409
|
+
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
142410
|
+
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
142411
|
+
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
142412
|
+
}));
|
|
142413
|
+
//#endregion
|
|
142414
|
+
//#region ../../packages/core-node/node_modules/semver/internal/parse-options.js
|
|
142415
|
+
var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142416
|
+
const looseOption = Object.freeze({ loose: true });
|
|
142417
|
+
const emptyOpts = Object.freeze({});
|
|
142418
|
+
const parseOptions = (options) => {
|
|
142419
|
+
if (!options) return emptyOpts;
|
|
142420
|
+
if (typeof options !== "object") return looseOption;
|
|
142421
|
+
return options;
|
|
142422
|
+
};
|
|
142423
|
+
module.exports = parseOptions;
|
|
142424
|
+
}));
|
|
142425
|
+
//#endregion
|
|
142426
|
+
//#region ../../packages/core-node/node_modules/semver/internal/identifiers.js
|
|
142427
|
+
var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142428
|
+
const numeric = /^[0-9]+$/;
|
|
142429
|
+
const compareIdentifiers = (a, b) => {
|
|
142430
|
+
if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
|
|
142431
|
+
const anum = numeric.test(a);
|
|
142432
|
+
const bnum = numeric.test(b);
|
|
142433
|
+
if (anum && bnum) {
|
|
142434
|
+
a = +a;
|
|
142435
|
+
b = +b;
|
|
142436
|
+
}
|
|
142437
|
+
return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
|
|
142438
|
+
};
|
|
142439
|
+
const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
|
|
142440
|
+
module.exports = {
|
|
142441
|
+
compareIdentifiers,
|
|
142442
|
+
rcompareIdentifiers
|
|
142443
|
+
};
|
|
142444
|
+
}));
|
|
142445
|
+
//#endregion
|
|
142446
|
+
//#region ../../packages/core-node/node_modules/semver/classes/semver.js
|
|
142447
|
+
var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142448
|
+
const debug = require_debug();
|
|
142449
|
+
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
142450
|
+
const { safeRe: re, t } = require_re();
|
|
142451
|
+
const parseOptions = require_parse_options();
|
|
142452
|
+
const { compareIdentifiers } = require_identifiers();
|
|
142453
|
+
module.exports = class SemVer {
|
|
142454
|
+
constructor(version, options) {
|
|
142455
|
+
options = parseOptions(options);
|
|
142456
|
+
if (version instanceof SemVer) if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) return version;
|
|
142457
|
+
else version = version.version;
|
|
142458
|
+
else if (typeof version !== "string") throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
142459
|
+
if (version.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
|
|
142460
|
+
debug("SemVer", version, options);
|
|
142461
|
+
this.options = options;
|
|
142462
|
+
this.loose = !!options.loose;
|
|
142463
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
142464
|
+
const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
|
|
142465
|
+
if (!m) throw new TypeError(`Invalid Version: ${version}`);
|
|
142466
|
+
this.raw = version;
|
|
142467
|
+
this.major = +m[1];
|
|
142468
|
+
this.minor = +m[2];
|
|
142469
|
+
this.patch = +m[3];
|
|
142470
|
+
if (this.major > MAX_SAFE_INTEGER || this.major < 0) throw new TypeError("Invalid major version");
|
|
142471
|
+
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError("Invalid minor version");
|
|
142472
|
+
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError("Invalid patch version");
|
|
142473
|
+
if (!m[4]) this.prerelease = [];
|
|
142474
|
+
else this.prerelease = m[4].split(".").map((id) => {
|
|
142475
|
+
if (/^[0-9]+$/.test(id)) {
|
|
142476
|
+
const num = +id;
|
|
142477
|
+
if (num >= 0 && num < MAX_SAFE_INTEGER) return num;
|
|
142478
|
+
}
|
|
142479
|
+
return id;
|
|
142480
|
+
});
|
|
142481
|
+
this.build = m[5] ? m[5].split(".") : [];
|
|
142482
|
+
this.format();
|
|
142483
|
+
}
|
|
142484
|
+
format() {
|
|
142485
|
+
this.version = `${this.major}.${this.minor}.${this.patch}`;
|
|
142486
|
+
if (this.prerelease.length) this.version += `-${this.prerelease.join(".")}`;
|
|
142487
|
+
return this.version;
|
|
142488
|
+
}
|
|
142489
|
+
toString() {
|
|
142490
|
+
return this.version;
|
|
142491
|
+
}
|
|
142492
|
+
compare(other) {
|
|
142493
|
+
debug("SemVer.compare", this.version, this.options, other);
|
|
142494
|
+
if (!(other instanceof SemVer)) {
|
|
142495
|
+
if (typeof other === "string" && other === this.version) return 0;
|
|
142496
|
+
other = new SemVer(other, this.options);
|
|
142497
|
+
}
|
|
142498
|
+
if (other.version === this.version) return 0;
|
|
142499
|
+
return this.compareMain(other) || this.comparePre(other);
|
|
142500
|
+
}
|
|
142501
|
+
compareMain(other) {
|
|
142502
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
142503
|
+
if (this.major < other.major) return -1;
|
|
142504
|
+
if (this.major > other.major) return 1;
|
|
142505
|
+
if (this.minor < other.minor) return -1;
|
|
142506
|
+
if (this.minor > other.minor) return 1;
|
|
142507
|
+
if (this.patch < other.patch) return -1;
|
|
142508
|
+
if (this.patch > other.patch) return 1;
|
|
142509
|
+
return 0;
|
|
142510
|
+
}
|
|
142511
|
+
comparePre(other) {
|
|
142512
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
142513
|
+
if (this.prerelease.length && !other.prerelease.length) return -1;
|
|
142514
|
+
else if (!this.prerelease.length && other.prerelease.length) return 1;
|
|
142515
|
+
else if (!this.prerelease.length && !other.prerelease.length) return 0;
|
|
142516
|
+
let i = 0;
|
|
142517
|
+
do {
|
|
142518
|
+
const a = this.prerelease[i];
|
|
142519
|
+
const b = other.prerelease[i];
|
|
142520
|
+
debug("prerelease compare", i, a, b);
|
|
142521
|
+
if (a === void 0 && b === void 0) return 0;
|
|
142522
|
+
else if (b === void 0) return 1;
|
|
142523
|
+
else if (a === void 0) return -1;
|
|
142524
|
+
else if (a === b) continue;
|
|
142525
|
+
else return compareIdentifiers(a, b);
|
|
142526
|
+
} while (++i);
|
|
142527
|
+
}
|
|
142528
|
+
compareBuild(other) {
|
|
142529
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
142530
|
+
let i = 0;
|
|
142531
|
+
do {
|
|
142532
|
+
const a = this.build[i];
|
|
142533
|
+
const b = other.build[i];
|
|
142534
|
+
debug("build compare", i, a, b);
|
|
142535
|
+
if (a === void 0 && b === void 0) return 0;
|
|
142536
|
+
else if (b === void 0) return 1;
|
|
142537
|
+
else if (a === void 0) return -1;
|
|
142538
|
+
else if (a === b) continue;
|
|
142539
|
+
else return compareIdentifiers(a, b);
|
|
142540
|
+
} while (++i);
|
|
142541
|
+
}
|
|
142542
|
+
inc(release, identifier, identifierBase) {
|
|
142543
|
+
if (release.startsWith("pre")) {
|
|
142544
|
+
if (!identifier && identifierBase === false) throw new Error("invalid increment argument: identifier is empty");
|
|
142545
|
+
if (identifier) {
|
|
142546
|
+
const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
|
|
142547
|
+
if (!match || match[1] !== identifier) throw new Error(`invalid identifier: ${identifier}`);
|
|
142548
|
+
}
|
|
142549
|
+
}
|
|
142550
|
+
switch (release) {
|
|
142551
|
+
case "premajor":
|
|
142552
|
+
this.prerelease.length = 0;
|
|
142553
|
+
this.patch = 0;
|
|
142554
|
+
this.minor = 0;
|
|
142555
|
+
this.major++;
|
|
142556
|
+
this.inc("pre", identifier, identifierBase);
|
|
142557
|
+
break;
|
|
142558
|
+
case "preminor":
|
|
142559
|
+
this.prerelease.length = 0;
|
|
142560
|
+
this.patch = 0;
|
|
142561
|
+
this.minor++;
|
|
142562
|
+
this.inc("pre", identifier, identifierBase);
|
|
142563
|
+
break;
|
|
142564
|
+
case "prepatch":
|
|
142565
|
+
this.prerelease.length = 0;
|
|
142566
|
+
this.inc("patch", identifier, identifierBase);
|
|
142567
|
+
this.inc("pre", identifier, identifierBase);
|
|
142568
|
+
break;
|
|
142569
|
+
case "prerelease":
|
|
142570
|
+
if (this.prerelease.length === 0) this.inc("patch", identifier, identifierBase);
|
|
142571
|
+
this.inc("pre", identifier, identifierBase);
|
|
142572
|
+
break;
|
|
142573
|
+
case "release":
|
|
142574
|
+
if (this.prerelease.length === 0) throw new Error(`version ${this.raw} is not a prerelease`);
|
|
142575
|
+
this.prerelease.length = 0;
|
|
142576
|
+
break;
|
|
142577
|
+
case "major":
|
|
142578
|
+
if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) this.major++;
|
|
142579
|
+
this.minor = 0;
|
|
142580
|
+
this.patch = 0;
|
|
142581
|
+
this.prerelease = [];
|
|
142582
|
+
break;
|
|
142583
|
+
case "minor":
|
|
142584
|
+
if (this.patch !== 0 || this.prerelease.length === 0) this.minor++;
|
|
142585
|
+
this.patch = 0;
|
|
142586
|
+
this.prerelease = [];
|
|
142587
|
+
break;
|
|
142588
|
+
case "patch":
|
|
142589
|
+
if (this.prerelease.length === 0) this.patch++;
|
|
142590
|
+
this.prerelease = [];
|
|
142591
|
+
break;
|
|
142592
|
+
case "pre": {
|
|
142593
|
+
const base = Number(identifierBase) ? 1 : 0;
|
|
142594
|
+
if (this.prerelease.length === 0) this.prerelease = [base];
|
|
142595
|
+
else {
|
|
142596
|
+
let i = this.prerelease.length;
|
|
142597
|
+
while (--i >= 0) if (typeof this.prerelease[i] === "number") {
|
|
142598
|
+
this.prerelease[i]++;
|
|
142599
|
+
i = -2;
|
|
142600
|
+
}
|
|
142601
|
+
if (i === -1) {
|
|
142602
|
+
if (identifier === this.prerelease.join(".") && identifierBase === false) throw new Error("invalid increment argument: identifier already exists");
|
|
142603
|
+
this.prerelease.push(base);
|
|
142604
|
+
}
|
|
142605
|
+
}
|
|
142606
|
+
if (identifier) {
|
|
142607
|
+
let prerelease = [identifier, base];
|
|
142608
|
+
if (identifierBase === false) prerelease = [identifier];
|
|
142609
|
+
if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
|
|
142610
|
+
if (isNaN(this.prerelease[1])) this.prerelease = prerelease;
|
|
142611
|
+
} else this.prerelease = prerelease;
|
|
142612
|
+
}
|
|
142613
|
+
break;
|
|
142614
|
+
}
|
|
142615
|
+
default: throw new Error(`invalid increment argument: ${release}`);
|
|
142616
|
+
}
|
|
142617
|
+
this.raw = this.format();
|
|
142618
|
+
if (this.build.length) this.raw += `+${this.build.join(".")}`;
|
|
142619
|
+
return this;
|
|
142620
|
+
}
|
|
142621
|
+
};
|
|
142622
|
+
}));
|
|
142623
|
+
//#endregion
|
|
142624
|
+
//#region ../../packages/core-node/node_modules/semver/functions/parse.js
|
|
142625
|
+
var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142626
|
+
const SemVer = require_semver$1();
|
|
142627
|
+
const parse = (version, options, throwErrors = false) => {
|
|
142628
|
+
if (version instanceof SemVer) return version;
|
|
142629
|
+
try {
|
|
142630
|
+
return new SemVer(version, options);
|
|
142631
|
+
} catch (er) {
|
|
142632
|
+
if (!throwErrors) return null;
|
|
142633
|
+
throw er;
|
|
142634
|
+
}
|
|
142635
|
+
};
|
|
142636
|
+
module.exports = parse;
|
|
142637
|
+
}));
|
|
142638
|
+
//#endregion
|
|
142639
|
+
//#region ../../packages/core-node/node_modules/semver/functions/valid.js
|
|
142640
|
+
var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142641
|
+
const parse = require_parse();
|
|
142642
|
+
const valid = (version, options) => {
|
|
142643
|
+
const v = parse(version, options);
|
|
142644
|
+
return v ? v.version : null;
|
|
142645
|
+
};
|
|
142646
|
+
module.exports = valid;
|
|
142647
|
+
}));
|
|
142648
|
+
//#endregion
|
|
142649
|
+
//#region ../../packages/core-node/node_modules/semver/functions/clean.js
|
|
142650
|
+
var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142651
|
+
const parse = require_parse();
|
|
142652
|
+
const clean = (version, options) => {
|
|
142653
|
+
const s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
142654
|
+
return s ? s.version : null;
|
|
142655
|
+
};
|
|
142656
|
+
module.exports = clean;
|
|
142657
|
+
}));
|
|
142658
|
+
//#endregion
|
|
142659
|
+
//#region ../../packages/core-node/node_modules/semver/functions/inc.js
|
|
142660
|
+
var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142661
|
+
const SemVer = require_semver$1();
|
|
142662
|
+
const inc = (version, release, options, identifier, identifierBase) => {
|
|
142663
|
+
if (typeof options === "string") {
|
|
142664
|
+
identifierBase = identifier;
|
|
142665
|
+
identifier = options;
|
|
142666
|
+
options = void 0;
|
|
142667
|
+
}
|
|
142668
|
+
try {
|
|
142669
|
+
return new SemVer(version instanceof SemVer ? version.version : version, options).inc(release, identifier, identifierBase).version;
|
|
142670
|
+
} catch (er) {
|
|
142671
|
+
return null;
|
|
142672
|
+
}
|
|
142673
|
+
};
|
|
142674
|
+
module.exports = inc;
|
|
142675
|
+
}));
|
|
142676
|
+
//#endregion
|
|
142677
|
+
//#region ../../packages/core-node/node_modules/semver/functions/diff.js
|
|
142678
|
+
var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142679
|
+
const parse = require_parse();
|
|
142680
|
+
const diff = (version1, version2) => {
|
|
142681
|
+
const v1 = parse(version1, null, true);
|
|
142682
|
+
const v2 = parse(version2, null, true);
|
|
142683
|
+
const comparison = v1.compare(v2);
|
|
142684
|
+
if (comparison === 0) return null;
|
|
142685
|
+
const v1Higher = comparison > 0;
|
|
142686
|
+
const highVersion = v1Higher ? v1 : v2;
|
|
142687
|
+
const lowVersion = v1Higher ? v2 : v1;
|
|
142688
|
+
const highHasPre = !!highVersion.prerelease.length;
|
|
142689
|
+
if (!!lowVersion.prerelease.length && !highHasPre) {
|
|
142690
|
+
if (!lowVersion.patch && !lowVersion.minor) return "major";
|
|
142691
|
+
if (lowVersion.compareMain(highVersion) === 0) {
|
|
142692
|
+
if (lowVersion.minor && !lowVersion.patch) return "minor";
|
|
142693
|
+
return "patch";
|
|
142694
|
+
}
|
|
142695
|
+
}
|
|
142696
|
+
const prefix = highHasPre ? "pre" : "";
|
|
142697
|
+
if (v1.major !== v2.major) return prefix + "major";
|
|
142698
|
+
if (v1.minor !== v2.minor) return prefix + "minor";
|
|
142699
|
+
if (v1.patch !== v2.patch) return prefix + "patch";
|
|
142700
|
+
return "prerelease";
|
|
142701
|
+
};
|
|
142702
|
+
module.exports = diff;
|
|
142703
|
+
}));
|
|
142704
|
+
//#endregion
|
|
142705
|
+
//#region ../../packages/core-node/node_modules/semver/functions/major.js
|
|
142706
|
+
var require_major = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142707
|
+
const SemVer = require_semver$1();
|
|
142708
|
+
const major = (a, loose) => new SemVer(a, loose).major;
|
|
142709
|
+
module.exports = major;
|
|
142710
|
+
}));
|
|
142711
|
+
//#endregion
|
|
142712
|
+
//#region ../../packages/core-node/node_modules/semver/functions/minor.js
|
|
142713
|
+
var require_minor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142714
|
+
const SemVer = require_semver$1();
|
|
142715
|
+
const minor = (a, loose) => new SemVer(a, loose).minor;
|
|
142716
|
+
module.exports = minor;
|
|
142717
|
+
}));
|
|
142718
|
+
//#endregion
|
|
142719
|
+
//#region ../../packages/core-node/node_modules/semver/functions/patch.js
|
|
142720
|
+
var require_patch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142721
|
+
const SemVer = require_semver$1();
|
|
142722
|
+
const patch = (a, loose) => new SemVer(a, loose).patch;
|
|
142723
|
+
module.exports = patch;
|
|
142724
|
+
}));
|
|
142725
|
+
//#endregion
|
|
142726
|
+
//#region ../../packages/core-node/node_modules/semver/functions/prerelease.js
|
|
142727
|
+
var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142728
|
+
const parse = require_parse();
|
|
142729
|
+
const prerelease = (version, options) => {
|
|
142730
|
+
const parsed = parse(version, options);
|
|
142731
|
+
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
142732
|
+
};
|
|
142733
|
+
module.exports = prerelease;
|
|
142734
|
+
}));
|
|
142735
|
+
//#endregion
|
|
142736
|
+
//#region ../../packages/core-node/node_modules/semver/functions/compare.js
|
|
142737
|
+
var require_compare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142738
|
+
const SemVer = require_semver$1();
|
|
142739
|
+
const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
142740
|
+
module.exports = compare;
|
|
142741
|
+
}));
|
|
142742
|
+
//#endregion
|
|
142743
|
+
//#region ../../packages/core-node/node_modules/semver/functions/rcompare.js
|
|
142744
|
+
var require_rcompare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142745
|
+
const compare = require_compare();
|
|
142746
|
+
const rcompare = (a, b, loose) => compare(b, a, loose);
|
|
142747
|
+
module.exports = rcompare;
|
|
142748
|
+
}));
|
|
142749
|
+
//#endregion
|
|
142750
|
+
//#region ../../packages/core-node/node_modules/semver/functions/compare-loose.js
|
|
142751
|
+
var require_compare_loose = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142752
|
+
const compare = require_compare();
|
|
142753
|
+
const compareLoose = (a, b) => compare(a, b, true);
|
|
142754
|
+
module.exports = compareLoose;
|
|
142755
|
+
}));
|
|
142756
|
+
//#endregion
|
|
142757
|
+
//#region ../../packages/core-node/node_modules/semver/functions/compare-build.js
|
|
142758
|
+
var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142759
|
+
const SemVer = require_semver$1();
|
|
142760
|
+
const compareBuild = (a, b, loose) => {
|
|
142761
|
+
const versionA = new SemVer(a, loose);
|
|
142762
|
+
const versionB = new SemVer(b, loose);
|
|
142763
|
+
return versionA.compare(versionB) || versionA.compareBuild(versionB);
|
|
142764
|
+
};
|
|
142765
|
+
module.exports = compareBuild;
|
|
142766
|
+
}));
|
|
142767
|
+
//#endregion
|
|
142768
|
+
//#region ../../packages/core-node/node_modules/semver/functions/sort.js
|
|
142769
|
+
var require_sort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142770
|
+
const compareBuild = require_compare_build();
|
|
142771
|
+
const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
142772
|
+
module.exports = sort;
|
|
142773
|
+
}));
|
|
142774
|
+
//#endregion
|
|
142775
|
+
//#region ../../packages/core-node/node_modules/semver/functions/rsort.js
|
|
142776
|
+
var require_rsort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142777
|
+
const compareBuild = require_compare_build();
|
|
142778
|
+
const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
142779
|
+
module.exports = rsort;
|
|
142780
|
+
}));
|
|
142781
|
+
//#endregion
|
|
142782
|
+
//#region ../../packages/core-node/node_modules/semver/functions/gt.js
|
|
142783
|
+
var require_gt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142784
|
+
const compare = require_compare();
|
|
142785
|
+
const gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
142786
|
+
module.exports = gt;
|
|
142787
|
+
}));
|
|
142788
|
+
//#endregion
|
|
142789
|
+
//#region ../../packages/core-node/node_modules/semver/functions/lt.js
|
|
142790
|
+
var require_lt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142791
|
+
const compare = require_compare();
|
|
142792
|
+
const lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
142793
|
+
module.exports = lt;
|
|
142794
|
+
}));
|
|
142795
|
+
//#endregion
|
|
142796
|
+
//#region ../../packages/core-node/node_modules/semver/functions/eq.js
|
|
142797
|
+
var require_eq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142798
|
+
const compare = require_compare();
|
|
142799
|
+
const eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
142800
|
+
module.exports = eq;
|
|
142801
|
+
}));
|
|
142802
|
+
//#endregion
|
|
142803
|
+
//#region ../../packages/core-node/node_modules/semver/functions/neq.js
|
|
142804
|
+
var require_neq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142805
|
+
const compare = require_compare();
|
|
142806
|
+
const neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
142807
|
+
module.exports = neq;
|
|
142808
|
+
}));
|
|
142809
|
+
//#endregion
|
|
142810
|
+
//#region ../../packages/core-node/node_modules/semver/functions/gte.js
|
|
142811
|
+
var require_gte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142812
|
+
const compare = require_compare();
|
|
142813
|
+
const gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
142814
|
+
module.exports = gte;
|
|
142815
|
+
}));
|
|
142816
|
+
//#endregion
|
|
142817
|
+
//#region ../../packages/core-node/node_modules/semver/functions/lte.js
|
|
142818
|
+
var require_lte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142819
|
+
const compare = require_compare();
|
|
142820
|
+
const lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
142821
|
+
module.exports = lte;
|
|
142822
|
+
}));
|
|
142823
|
+
//#endregion
|
|
142824
|
+
//#region ../../packages/core-node/node_modules/semver/functions/cmp.js
|
|
142825
|
+
var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142826
|
+
const eq = require_eq();
|
|
142827
|
+
const neq = require_neq();
|
|
142828
|
+
const gt = require_gt();
|
|
142829
|
+
const gte = require_gte();
|
|
142830
|
+
const lt = require_lt();
|
|
142831
|
+
const lte = require_lte();
|
|
142832
|
+
const cmp = (a, op, b, loose) => {
|
|
142833
|
+
switch (op) {
|
|
142834
|
+
case "===":
|
|
142835
|
+
if (typeof a === "object") a = a.version;
|
|
142836
|
+
if (typeof b === "object") b = b.version;
|
|
142837
|
+
return a === b;
|
|
142838
|
+
case "!==":
|
|
142839
|
+
if (typeof a === "object") a = a.version;
|
|
142840
|
+
if (typeof b === "object") b = b.version;
|
|
142841
|
+
return a !== b;
|
|
142842
|
+
case "":
|
|
142843
|
+
case "=":
|
|
142844
|
+
case "==": return eq(a, b, loose);
|
|
142845
|
+
case "!=": return neq(a, b, loose);
|
|
142846
|
+
case ">": return gt(a, b, loose);
|
|
142847
|
+
case ">=": return gte(a, b, loose);
|
|
142848
|
+
case "<": return lt(a, b, loose);
|
|
142849
|
+
case "<=": return lte(a, b, loose);
|
|
142850
|
+
default: throw new TypeError(`Invalid operator: ${op}`);
|
|
142851
|
+
}
|
|
142852
|
+
};
|
|
142853
|
+
module.exports = cmp;
|
|
142854
|
+
}));
|
|
142855
|
+
//#endregion
|
|
142856
|
+
//#region ../../packages/core-node/node_modules/semver/functions/coerce.js
|
|
142857
|
+
var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142858
|
+
const SemVer = require_semver$1();
|
|
142859
|
+
const parse = require_parse();
|
|
142860
|
+
const { safeRe: re, t } = require_re();
|
|
142861
|
+
const coerce = (version, options) => {
|
|
142862
|
+
if (version instanceof SemVer) return version;
|
|
142863
|
+
if (typeof version === "number") version = String(version);
|
|
142864
|
+
if (typeof version !== "string") return null;
|
|
142865
|
+
options = options || {};
|
|
142866
|
+
let match = null;
|
|
142867
|
+
if (!options.rtl) match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
|
|
142868
|
+
else {
|
|
142869
|
+
const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL];
|
|
142870
|
+
let next;
|
|
142871
|
+
while ((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)) {
|
|
142872
|
+
if (!match || next.index + next[0].length !== match.index + match[0].length) match = next;
|
|
142873
|
+
coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
|
142874
|
+
}
|
|
142875
|
+
coerceRtlRegex.lastIndex = -1;
|
|
142876
|
+
}
|
|
142877
|
+
if (match === null) return null;
|
|
142878
|
+
const major = match[2];
|
|
142879
|
+
return parse(`${major}.${match[3] || "0"}.${match[4] || "0"}${options.includePrerelease && match[5] ? `-${match[5]}` : ""}${options.includePrerelease && match[6] ? `+${match[6]}` : ""}`, options);
|
|
142880
|
+
};
|
|
142881
|
+
module.exports = coerce;
|
|
142882
|
+
}));
|
|
142883
|
+
//#endregion
|
|
142884
|
+
//#region ../../packages/core-node/node_modules/semver/internal/lrucache.js
|
|
142885
|
+
var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142886
|
+
var LRUCache = class {
|
|
142887
|
+
constructor() {
|
|
142888
|
+
this.max = 1e3;
|
|
142889
|
+
this.map = /* @__PURE__ */ new Map();
|
|
142890
|
+
}
|
|
142891
|
+
get(key) {
|
|
142892
|
+
const value = this.map.get(key);
|
|
142893
|
+
if (value === void 0) return;
|
|
142894
|
+
else {
|
|
142895
|
+
this.map.delete(key);
|
|
142896
|
+
this.map.set(key, value);
|
|
142897
|
+
return value;
|
|
142898
|
+
}
|
|
142899
|
+
}
|
|
142900
|
+
delete(key) {
|
|
142901
|
+
return this.map.delete(key);
|
|
142902
|
+
}
|
|
142903
|
+
set(key, value) {
|
|
142904
|
+
if (!this.delete(key) && value !== void 0) {
|
|
142905
|
+
if (this.map.size >= this.max) {
|
|
142906
|
+
const firstKey = this.map.keys().next().value;
|
|
142907
|
+
this.delete(firstKey);
|
|
142908
|
+
}
|
|
142909
|
+
this.map.set(key, value);
|
|
142910
|
+
}
|
|
142911
|
+
return this;
|
|
142912
|
+
}
|
|
142913
|
+
};
|
|
142914
|
+
module.exports = LRUCache;
|
|
142915
|
+
}));
|
|
142916
|
+
//#endregion
|
|
142917
|
+
//#region ../../packages/core-node/node_modules/semver/classes/range.js
|
|
142918
|
+
var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142919
|
+
const SPACE_CHARACTERS = /\s+/g;
|
|
142920
|
+
module.exports = class Range {
|
|
142921
|
+
constructor(range, options) {
|
|
142922
|
+
options = parseOptions(options);
|
|
142923
|
+
if (range instanceof Range) if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) return range;
|
|
142924
|
+
else return new Range(range.raw, options);
|
|
142925
|
+
if (range instanceof Comparator) {
|
|
142926
|
+
this.raw = range.value;
|
|
142927
|
+
this.set = [[range]];
|
|
142928
|
+
this.formatted = void 0;
|
|
142929
|
+
return this;
|
|
142930
|
+
}
|
|
142931
|
+
this.options = options;
|
|
142932
|
+
this.loose = !!options.loose;
|
|
142933
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
142934
|
+
this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
|
|
142935
|
+
this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
|
|
142936
|
+
if (!this.set.length) throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
142937
|
+
if (this.set.length > 1) {
|
|
142938
|
+
const first = this.set[0];
|
|
142939
|
+
this.set = this.set.filter((c) => !isNullSet(c[0]));
|
|
142940
|
+
if (this.set.length === 0) this.set = [first];
|
|
142941
|
+
else if (this.set.length > 1) {
|
|
142942
|
+
for (const c of this.set) if (c.length === 1 && isAny(c[0])) {
|
|
142943
|
+
this.set = [c];
|
|
142944
|
+
break;
|
|
142945
|
+
}
|
|
142946
|
+
}
|
|
142947
|
+
}
|
|
142948
|
+
this.formatted = void 0;
|
|
142949
|
+
}
|
|
142950
|
+
get range() {
|
|
142951
|
+
if (this.formatted === void 0) {
|
|
142952
|
+
this.formatted = "";
|
|
142953
|
+
for (let i = 0; i < this.set.length; i++) {
|
|
142954
|
+
if (i > 0) this.formatted += "||";
|
|
142955
|
+
const comps = this.set[i];
|
|
142956
|
+
for (let k = 0; k < comps.length; k++) {
|
|
142957
|
+
if (k > 0) this.formatted += " ";
|
|
142958
|
+
this.formatted += comps[k].toString().trim();
|
|
142959
|
+
}
|
|
142960
|
+
}
|
|
142961
|
+
}
|
|
142962
|
+
return this.formatted;
|
|
142963
|
+
}
|
|
142964
|
+
format() {
|
|
142965
|
+
return this.range;
|
|
142966
|
+
}
|
|
142967
|
+
toString() {
|
|
142968
|
+
return this.range;
|
|
142969
|
+
}
|
|
142970
|
+
parseRange(range) {
|
|
142971
|
+
const memoKey = ((this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE)) + ":" + range;
|
|
142972
|
+
const cached = cache.get(memoKey);
|
|
142973
|
+
if (cached) return cached;
|
|
142974
|
+
const loose = this.options.loose;
|
|
142975
|
+
const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
|
|
142976
|
+
range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
|
|
142977
|
+
debug("hyphen replace", range);
|
|
142978
|
+
range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace);
|
|
142979
|
+
debug("comparator trim", range);
|
|
142980
|
+
range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
|
|
142981
|
+
debug("tilde trim", range);
|
|
142982
|
+
range = range.replace(re[t.CARETTRIM], caretTrimReplace);
|
|
142983
|
+
debug("caret trim", range);
|
|
142984
|
+
let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
|
|
142985
|
+
if (loose) rangeList = rangeList.filter((comp) => {
|
|
142986
|
+
debug("loose invalid filter", comp, this.options);
|
|
142987
|
+
return !!comp.match(re[t.COMPARATORLOOSE]);
|
|
142988
|
+
});
|
|
142989
|
+
debug("range list", rangeList);
|
|
142990
|
+
const rangeMap = /* @__PURE__ */ new Map();
|
|
142991
|
+
const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
|
|
142992
|
+
for (const comp of comparators) {
|
|
142993
|
+
if (isNullSet(comp)) return [comp];
|
|
142994
|
+
rangeMap.set(comp.value, comp);
|
|
142995
|
+
}
|
|
142996
|
+
if (rangeMap.size > 1 && rangeMap.has("")) rangeMap.delete("");
|
|
142997
|
+
const result = [...rangeMap.values()];
|
|
142998
|
+
cache.set(memoKey, result);
|
|
142999
|
+
return result;
|
|
143000
|
+
}
|
|
143001
|
+
intersects(range, options) {
|
|
143002
|
+
if (!(range instanceof Range)) throw new TypeError("a Range is required");
|
|
143003
|
+
return this.set.some((thisComparators) => {
|
|
143004
|
+
return isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => {
|
|
143005
|
+
return isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => {
|
|
143006
|
+
return rangeComparators.every((rangeComparator) => {
|
|
143007
|
+
return thisComparator.intersects(rangeComparator, options);
|
|
143008
|
+
});
|
|
143009
|
+
});
|
|
143010
|
+
});
|
|
143011
|
+
});
|
|
143012
|
+
}
|
|
143013
|
+
test(version) {
|
|
143014
|
+
if (!version) return false;
|
|
143015
|
+
if (typeof version === "string") try {
|
|
143016
|
+
version = new SemVer(version, this.options);
|
|
143017
|
+
} catch (er) {
|
|
143018
|
+
return false;
|
|
143019
|
+
}
|
|
143020
|
+
for (let i = 0; i < this.set.length; i++) if (testSet(this.set[i], version, this.options)) return true;
|
|
143021
|
+
return false;
|
|
143022
|
+
}
|
|
143023
|
+
};
|
|
143024
|
+
const cache = new (require_lrucache())();
|
|
143025
|
+
const parseOptions = require_parse_options();
|
|
143026
|
+
const Comparator = require_comparator();
|
|
143027
|
+
const debug = require_debug();
|
|
143028
|
+
const SemVer = require_semver$1();
|
|
143029
|
+
const { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re();
|
|
143030
|
+
const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants();
|
|
143031
|
+
const isNullSet = (c) => c.value === "<0.0.0-0";
|
|
143032
|
+
const isAny = (c) => c.value === "";
|
|
143033
|
+
const isSatisfiable = (comparators, options) => {
|
|
143034
|
+
let result = true;
|
|
143035
|
+
const remainingComparators = comparators.slice();
|
|
143036
|
+
let testComparator = remainingComparators.pop();
|
|
143037
|
+
while (result && remainingComparators.length) {
|
|
143038
|
+
result = remainingComparators.every((otherComparator) => {
|
|
143039
|
+
return testComparator.intersects(otherComparator, options);
|
|
143040
|
+
});
|
|
143041
|
+
testComparator = remainingComparators.pop();
|
|
143042
|
+
}
|
|
143043
|
+
return result;
|
|
143044
|
+
};
|
|
143045
|
+
const parseComparator = (comp, options) => {
|
|
143046
|
+
comp = comp.replace(re[t.BUILD], "");
|
|
143047
|
+
debug("comp", comp, options);
|
|
143048
|
+
comp = replaceCarets(comp, options);
|
|
143049
|
+
debug("caret", comp);
|
|
143050
|
+
comp = replaceTildes(comp, options);
|
|
143051
|
+
debug("tildes", comp);
|
|
143052
|
+
comp = replaceXRanges(comp, options);
|
|
143053
|
+
debug("xrange", comp);
|
|
143054
|
+
comp = replaceStars(comp, options);
|
|
143055
|
+
debug("stars", comp);
|
|
143056
|
+
return comp;
|
|
143057
|
+
};
|
|
143058
|
+
const isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
|
|
143059
|
+
const replaceTildes = (comp, options) => {
|
|
143060
|
+
return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
|
|
143061
|
+
};
|
|
143062
|
+
const replaceTilde = (comp, options) => {
|
|
143063
|
+
const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
|
|
143064
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
143065
|
+
debug("tilde", comp, _, M, m, p, pr);
|
|
143066
|
+
let ret;
|
|
143067
|
+
if (isX(M)) ret = "";
|
|
143068
|
+
else if (isX(m)) ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
|
|
143069
|
+
else if (isX(p)) ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
|
|
143070
|
+
else if (pr) {
|
|
143071
|
+
debug("replaceTilde pr", pr);
|
|
143072
|
+
ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
143073
|
+
} else ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
|
|
143074
|
+
debug("tilde return", ret);
|
|
143075
|
+
return ret;
|
|
143076
|
+
});
|
|
143077
|
+
};
|
|
143078
|
+
const replaceCarets = (comp, options) => {
|
|
143079
|
+
return comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" ");
|
|
143080
|
+
};
|
|
143081
|
+
const replaceCaret = (comp, options) => {
|
|
143082
|
+
debug("caret", comp, options);
|
|
143083
|
+
const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET];
|
|
143084
|
+
const z = options.includePrerelease ? "-0" : "";
|
|
143085
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
143086
|
+
debug("caret", comp, _, M, m, p, pr);
|
|
143087
|
+
let ret;
|
|
143088
|
+
if (isX(M)) ret = "";
|
|
143089
|
+
else if (isX(m)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
|
|
143090
|
+
else if (isX(p)) if (M === "0") ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
|
|
143091
|
+
else ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
|
|
143092
|
+
else if (pr) {
|
|
143093
|
+
debug("replaceCaret pr", pr);
|
|
143094
|
+
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;
|
|
143095
|
+
else ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
143096
|
+
else ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
|
|
143097
|
+
} else {
|
|
143098
|
+
debug("no pr");
|
|
143099
|
+
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0`;
|
|
143100
|
+
else ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0`;
|
|
143101
|
+
else ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
|
|
143102
|
+
}
|
|
143103
|
+
debug("caret return", ret);
|
|
143104
|
+
return ret;
|
|
143105
|
+
});
|
|
143106
|
+
};
|
|
143107
|
+
const replaceXRanges = (comp, options) => {
|
|
143108
|
+
debug("replaceXRanges", comp, options);
|
|
143109
|
+
return comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ");
|
|
143110
|
+
};
|
|
143111
|
+
const replaceXRange = (comp, options) => {
|
|
143112
|
+
comp = comp.trim();
|
|
143113
|
+
const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
|
|
143114
|
+
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
|
|
143115
|
+
debug("xRange", comp, ret, gtlt, M, m, p, pr);
|
|
143116
|
+
const xM = isX(M);
|
|
143117
|
+
const xm = xM || isX(m);
|
|
143118
|
+
const xp = xm || isX(p);
|
|
143119
|
+
const anyX = xp;
|
|
143120
|
+
if (gtlt === "=" && anyX) gtlt = "";
|
|
143121
|
+
pr = options.includePrerelease ? "-0" : "";
|
|
143122
|
+
if (xM) if (gtlt === ">" || gtlt === "<") ret = "<0.0.0-0";
|
|
143123
|
+
else ret = "*";
|
|
143124
|
+
else if (gtlt && anyX) {
|
|
143125
|
+
if (xm) m = 0;
|
|
143126
|
+
p = 0;
|
|
143127
|
+
if (gtlt === ">") {
|
|
143128
|
+
gtlt = ">=";
|
|
143129
|
+
if (xm) {
|
|
143130
|
+
M = +M + 1;
|
|
143131
|
+
m = 0;
|
|
143132
|
+
p = 0;
|
|
143133
|
+
} else {
|
|
143134
|
+
m = +m + 1;
|
|
143135
|
+
p = 0;
|
|
143136
|
+
}
|
|
143137
|
+
} else if (gtlt === "<=") {
|
|
143138
|
+
gtlt = "<";
|
|
143139
|
+
if (xm) M = +M + 1;
|
|
143140
|
+
else m = +m + 1;
|
|
143141
|
+
}
|
|
143142
|
+
if (gtlt === "<") pr = "-0";
|
|
143143
|
+
ret = `${gtlt + M}.${m}.${p}${pr}`;
|
|
143144
|
+
} else if (xm) ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
|
|
143145
|
+
else if (xp) ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;
|
|
143146
|
+
debug("xRange return", ret);
|
|
143147
|
+
return ret;
|
|
143148
|
+
});
|
|
143149
|
+
};
|
|
143150
|
+
const replaceStars = (comp, options) => {
|
|
143151
|
+
debug("replaceStars", comp, options);
|
|
143152
|
+
return comp.trim().replace(re[t.STAR], "");
|
|
143153
|
+
};
|
|
143154
|
+
const replaceGTE0 = (comp, options) => {
|
|
143155
|
+
debug("replaceGTE0", comp, options);
|
|
143156
|
+
return comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
|
|
143157
|
+
};
|
|
143158
|
+
const hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
|
|
143159
|
+
if (isX(fM)) from = "";
|
|
143160
|
+
else if (isX(fm)) from = `>=${fM}.0.0${incPr ? "-0" : ""}`;
|
|
143161
|
+
else if (isX(fp)) from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}`;
|
|
143162
|
+
else if (fpr) from = `>=${from}`;
|
|
143163
|
+
else from = `>=${from}${incPr ? "-0" : ""}`;
|
|
143164
|
+
if (isX(tM)) to = "";
|
|
143165
|
+
else if (isX(tm)) to = `<${+tM + 1}.0.0-0`;
|
|
143166
|
+
else if (isX(tp)) to = `<${tM}.${+tm + 1}.0-0`;
|
|
143167
|
+
else if (tpr) to = `<=${tM}.${tm}.${tp}-${tpr}`;
|
|
143168
|
+
else if (incPr) to = `<${tM}.${tm}.${+tp + 1}-0`;
|
|
143169
|
+
else to = `<=${to}`;
|
|
143170
|
+
return `${from} ${to}`.trim();
|
|
143171
|
+
};
|
|
143172
|
+
const testSet = (set, version, options) => {
|
|
143173
|
+
for (let i = 0; i < set.length; i++) if (!set[i].test(version)) return false;
|
|
143174
|
+
if (version.prerelease.length && !options.includePrerelease) {
|
|
143175
|
+
for (let i = 0; i < set.length; i++) {
|
|
143176
|
+
debug(set[i].semver);
|
|
143177
|
+
if (set[i].semver === Comparator.ANY) continue;
|
|
143178
|
+
if (set[i].semver.prerelease.length > 0) {
|
|
143179
|
+
const allowed = set[i].semver;
|
|
143180
|
+
if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) return true;
|
|
143181
|
+
}
|
|
143182
|
+
}
|
|
143183
|
+
return false;
|
|
143184
|
+
}
|
|
143185
|
+
return true;
|
|
143186
|
+
};
|
|
143187
|
+
}));
|
|
143188
|
+
//#endregion
|
|
143189
|
+
//#region ../../packages/core-node/node_modules/semver/classes/comparator.js
|
|
143190
|
+
var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143191
|
+
const ANY = Symbol("SemVer ANY");
|
|
143192
|
+
module.exports = class Comparator {
|
|
143193
|
+
static get ANY() {
|
|
143194
|
+
return ANY;
|
|
143195
|
+
}
|
|
143196
|
+
constructor(comp, options) {
|
|
143197
|
+
options = parseOptions(options);
|
|
143198
|
+
if (comp instanceof Comparator) if (comp.loose === !!options.loose) return comp;
|
|
143199
|
+
else comp = comp.value;
|
|
143200
|
+
comp = comp.trim().split(/\s+/).join(" ");
|
|
143201
|
+
debug("comparator", comp, options);
|
|
143202
|
+
this.options = options;
|
|
143203
|
+
this.loose = !!options.loose;
|
|
143204
|
+
this.parse(comp);
|
|
143205
|
+
if (this.semver === ANY) this.value = "";
|
|
143206
|
+
else this.value = this.operator + this.semver.version;
|
|
143207
|
+
debug("comp", this);
|
|
143208
|
+
}
|
|
143209
|
+
parse(comp) {
|
|
143210
|
+
const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR];
|
|
143211
|
+
const m = comp.match(r);
|
|
143212
|
+
if (!m) throw new TypeError(`Invalid comparator: ${comp}`);
|
|
143213
|
+
this.operator = m[1] !== void 0 ? m[1] : "";
|
|
143214
|
+
if (this.operator === "=") this.operator = "";
|
|
143215
|
+
if (!m[2]) this.semver = ANY;
|
|
143216
|
+
else this.semver = new SemVer(m[2], this.options.loose);
|
|
143217
|
+
}
|
|
143218
|
+
toString() {
|
|
143219
|
+
return this.value;
|
|
143220
|
+
}
|
|
143221
|
+
test(version) {
|
|
143222
|
+
debug("Comparator.test", version, this.options.loose);
|
|
143223
|
+
if (this.semver === ANY || version === ANY) return true;
|
|
143224
|
+
if (typeof version === "string") try {
|
|
143225
|
+
version = new SemVer(version, this.options);
|
|
143226
|
+
} catch (er) {
|
|
143227
|
+
return false;
|
|
143228
|
+
}
|
|
143229
|
+
return cmp(version, this.operator, this.semver, this.options);
|
|
143230
|
+
}
|
|
143231
|
+
intersects(comp, options) {
|
|
143232
|
+
if (!(comp instanceof Comparator)) throw new TypeError("a Comparator is required");
|
|
143233
|
+
if (this.operator === "") {
|
|
143234
|
+
if (this.value === "") return true;
|
|
143235
|
+
return new Range(comp.value, options).test(this.value);
|
|
143236
|
+
} else if (comp.operator === "") {
|
|
143237
|
+
if (comp.value === "") return true;
|
|
143238
|
+
return new Range(this.value, options).test(comp.semver);
|
|
143239
|
+
}
|
|
143240
|
+
options = parseOptions(options);
|
|
143241
|
+
if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) return false;
|
|
143242
|
+
if (!options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0"))) return false;
|
|
143243
|
+
if (this.operator.startsWith(">") && comp.operator.startsWith(">")) return true;
|
|
143244
|
+
if (this.operator.startsWith("<") && comp.operator.startsWith("<")) return true;
|
|
143245
|
+
if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) return true;
|
|
143246
|
+
if (cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) return true;
|
|
143247
|
+
if (cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) return true;
|
|
143248
|
+
return false;
|
|
143249
|
+
}
|
|
143250
|
+
};
|
|
143251
|
+
const parseOptions = require_parse_options();
|
|
143252
|
+
const { safeRe: re, t } = require_re();
|
|
143253
|
+
const cmp = require_cmp();
|
|
143254
|
+
const debug = require_debug();
|
|
143255
|
+
const SemVer = require_semver$1();
|
|
143256
|
+
const Range = require_range();
|
|
143257
|
+
}));
|
|
143258
|
+
//#endregion
|
|
143259
|
+
//#region ../../packages/core-node/node_modules/semver/functions/satisfies.js
|
|
143260
|
+
var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143261
|
+
const Range = require_range();
|
|
143262
|
+
const satisfies = (version, range, options) => {
|
|
143263
|
+
try {
|
|
143264
|
+
range = new Range(range, options);
|
|
143265
|
+
} catch (er) {
|
|
143266
|
+
return false;
|
|
143267
|
+
}
|
|
143268
|
+
return range.test(version);
|
|
143269
|
+
};
|
|
143270
|
+
module.exports = satisfies;
|
|
143271
|
+
}));
|
|
143272
|
+
//#endregion
|
|
143273
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/to-comparators.js
|
|
143274
|
+
var require_to_comparators = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143275
|
+
const Range = require_range();
|
|
143276
|
+
const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
143277
|
+
module.exports = toComparators;
|
|
143278
|
+
}));
|
|
143279
|
+
//#endregion
|
|
143280
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/max-satisfying.js
|
|
143281
|
+
var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143282
|
+
const SemVer = require_semver$1();
|
|
143283
|
+
const Range = require_range();
|
|
143284
|
+
const maxSatisfying = (versions, range, options) => {
|
|
143285
|
+
let max = null;
|
|
143286
|
+
let maxSV = null;
|
|
143287
|
+
let rangeObj = null;
|
|
143288
|
+
try {
|
|
143289
|
+
rangeObj = new Range(range, options);
|
|
143290
|
+
} catch (er) {
|
|
143291
|
+
return null;
|
|
143292
|
+
}
|
|
143293
|
+
versions.forEach((v) => {
|
|
143294
|
+
if (rangeObj.test(v)) {
|
|
143295
|
+
if (!max || maxSV.compare(v) === -1) {
|
|
143296
|
+
max = v;
|
|
143297
|
+
maxSV = new SemVer(max, options);
|
|
143298
|
+
}
|
|
143299
|
+
}
|
|
143300
|
+
});
|
|
143301
|
+
return max;
|
|
143302
|
+
};
|
|
143303
|
+
module.exports = maxSatisfying;
|
|
143304
|
+
}));
|
|
143305
|
+
//#endregion
|
|
143306
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/min-satisfying.js
|
|
143307
|
+
var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143308
|
+
const SemVer = require_semver$1();
|
|
143309
|
+
const Range = require_range();
|
|
143310
|
+
const minSatisfying = (versions, range, options) => {
|
|
143311
|
+
let min = null;
|
|
143312
|
+
let minSV = null;
|
|
143313
|
+
let rangeObj = null;
|
|
143314
|
+
try {
|
|
143315
|
+
rangeObj = new Range(range, options);
|
|
143316
|
+
} catch (er) {
|
|
143317
|
+
return null;
|
|
143318
|
+
}
|
|
143319
|
+
versions.forEach((v) => {
|
|
143320
|
+
if (rangeObj.test(v)) {
|
|
143321
|
+
if (!min || minSV.compare(v) === 1) {
|
|
143322
|
+
min = v;
|
|
143323
|
+
minSV = new SemVer(min, options);
|
|
143324
|
+
}
|
|
143325
|
+
}
|
|
143326
|
+
});
|
|
143327
|
+
return min;
|
|
143328
|
+
};
|
|
143329
|
+
module.exports = minSatisfying;
|
|
143330
|
+
}));
|
|
143331
|
+
//#endregion
|
|
143332
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/min-version.js
|
|
143333
|
+
var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143334
|
+
const SemVer = require_semver$1();
|
|
143335
|
+
const Range = require_range();
|
|
143336
|
+
const gt = require_gt();
|
|
143337
|
+
const minVersion = (range, loose) => {
|
|
143338
|
+
range = new Range(range, loose);
|
|
143339
|
+
let minver = new SemVer("0.0.0");
|
|
143340
|
+
if (range.test(minver)) return minver;
|
|
143341
|
+
minver = new SemVer("0.0.0-0");
|
|
143342
|
+
if (range.test(minver)) return minver;
|
|
143343
|
+
minver = null;
|
|
143344
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
143345
|
+
const comparators = range.set[i];
|
|
143346
|
+
let setMin = null;
|
|
143347
|
+
comparators.forEach((comparator) => {
|
|
143348
|
+
const compver = new SemVer(comparator.semver.version);
|
|
143349
|
+
switch (comparator.operator) {
|
|
143350
|
+
case ">":
|
|
143351
|
+
if (compver.prerelease.length === 0) compver.patch++;
|
|
143352
|
+
else compver.prerelease.push(0);
|
|
143353
|
+
compver.raw = compver.format();
|
|
143354
|
+
case "":
|
|
143355
|
+
case ">=":
|
|
143356
|
+
if (!setMin || gt(compver, setMin)) setMin = compver;
|
|
143357
|
+
break;
|
|
143358
|
+
case "<":
|
|
143359
|
+
case "<=": break;
|
|
143360
|
+
default: throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
143361
|
+
}
|
|
143362
|
+
});
|
|
143363
|
+
if (setMin && (!minver || gt(minver, setMin))) minver = setMin;
|
|
143364
|
+
}
|
|
143365
|
+
if (minver && range.test(minver)) return minver;
|
|
143366
|
+
return null;
|
|
143367
|
+
};
|
|
143368
|
+
module.exports = minVersion;
|
|
143369
|
+
}));
|
|
143370
|
+
//#endregion
|
|
143371
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/valid.js
|
|
143372
|
+
var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143373
|
+
const Range = require_range();
|
|
143374
|
+
const validRange = (range, options) => {
|
|
143375
|
+
try {
|
|
143376
|
+
return new Range(range, options).range || "*";
|
|
143377
|
+
} catch (er) {
|
|
143378
|
+
return null;
|
|
143379
|
+
}
|
|
143380
|
+
};
|
|
143381
|
+
module.exports = validRange;
|
|
143382
|
+
}));
|
|
143383
|
+
//#endregion
|
|
143384
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/outside.js
|
|
143385
|
+
var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143386
|
+
const SemVer = require_semver$1();
|
|
143387
|
+
const Comparator = require_comparator();
|
|
143388
|
+
const { ANY } = Comparator;
|
|
143389
|
+
const Range = require_range();
|
|
143390
|
+
const satisfies = require_satisfies();
|
|
143391
|
+
const gt = require_gt();
|
|
143392
|
+
const lt = require_lt();
|
|
143393
|
+
const lte = require_lte();
|
|
143394
|
+
const gte = require_gte();
|
|
143395
|
+
const outside = (version, range, hilo, options) => {
|
|
143396
|
+
version = new SemVer(version, options);
|
|
143397
|
+
range = new Range(range, options);
|
|
143398
|
+
let gtfn, ltefn, ltfn, comp, ecomp;
|
|
143399
|
+
switch (hilo) {
|
|
143400
|
+
case ">":
|
|
143401
|
+
gtfn = gt;
|
|
143402
|
+
ltefn = lte;
|
|
143403
|
+
ltfn = lt;
|
|
143404
|
+
comp = ">";
|
|
143405
|
+
ecomp = ">=";
|
|
143406
|
+
break;
|
|
143407
|
+
case "<":
|
|
143408
|
+
gtfn = lt;
|
|
143409
|
+
ltefn = gte;
|
|
143410
|
+
ltfn = gt;
|
|
143411
|
+
comp = "<";
|
|
143412
|
+
ecomp = "<=";
|
|
143413
|
+
break;
|
|
143414
|
+
default: throw new TypeError("Must provide a hilo val of \"<\" or \">\"");
|
|
143415
|
+
}
|
|
143416
|
+
if (satisfies(version, range, options)) return false;
|
|
143417
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
143418
|
+
const comparators = range.set[i];
|
|
143419
|
+
let high = null;
|
|
143420
|
+
let low = null;
|
|
143421
|
+
comparators.forEach((comparator) => {
|
|
143422
|
+
if (comparator.semver === ANY) comparator = new Comparator(">=0.0.0");
|
|
143423
|
+
high = high || comparator;
|
|
143424
|
+
low = low || comparator;
|
|
143425
|
+
if (gtfn(comparator.semver, high.semver, options)) high = comparator;
|
|
143426
|
+
else if (ltfn(comparator.semver, low.semver, options)) low = comparator;
|
|
143427
|
+
});
|
|
143428
|
+
if (high.operator === comp || high.operator === ecomp) return false;
|
|
143429
|
+
if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) return false;
|
|
143430
|
+
else if (low.operator === ecomp && ltfn(version, low.semver)) return false;
|
|
143431
|
+
}
|
|
143432
|
+
return true;
|
|
143433
|
+
};
|
|
143434
|
+
module.exports = outside;
|
|
143435
|
+
}));
|
|
143436
|
+
//#endregion
|
|
143437
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/gtr.js
|
|
143438
|
+
var require_gtr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143439
|
+
const outside = require_outside();
|
|
143440
|
+
const gtr = (version, range, options) => outside(version, range, ">", options);
|
|
143441
|
+
module.exports = gtr;
|
|
143442
|
+
}));
|
|
143443
|
+
//#endregion
|
|
143444
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/ltr.js
|
|
143445
|
+
var require_ltr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143446
|
+
const outside = require_outside();
|
|
143447
|
+
const ltr = (version, range, options) => outside(version, range, "<", options);
|
|
143448
|
+
module.exports = ltr;
|
|
143449
|
+
}));
|
|
143450
|
+
//#endregion
|
|
143451
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/intersects.js
|
|
143452
|
+
var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143453
|
+
const Range = require_range();
|
|
143454
|
+
const intersects = (r1, r2, options) => {
|
|
143455
|
+
r1 = new Range(r1, options);
|
|
143456
|
+
r2 = new Range(r2, options);
|
|
143457
|
+
return r1.intersects(r2, options);
|
|
143458
|
+
};
|
|
143459
|
+
module.exports = intersects;
|
|
143460
|
+
}));
|
|
143461
|
+
//#endregion
|
|
143462
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/simplify.js
|
|
143463
|
+
var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143464
|
+
const satisfies = require_satisfies();
|
|
143465
|
+
const compare = require_compare();
|
|
143466
|
+
module.exports = (versions, range, options) => {
|
|
143467
|
+
const set = [];
|
|
143468
|
+
let first = null;
|
|
143469
|
+
let prev = null;
|
|
143470
|
+
const v = versions.sort((a, b) => compare(a, b, options));
|
|
143471
|
+
for (const version of v) if (satisfies(version, range, options)) {
|
|
143472
|
+
prev = version;
|
|
143473
|
+
if (!first) first = version;
|
|
143474
|
+
} else {
|
|
143475
|
+
if (prev) set.push([first, prev]);
|
|
143476
|
+
prev = null;
|
|
143477
|
+
first = null;
|
|
143478
|
+
}
|
|
143479
|
+
if (first) set.push([first, null]);
|
|
143480
|
+
const ranges = [];
|
|
143481
|
+
for (const [min, max] of set) if (min === max) ranges.push(min);
|
|
143482
|
+
else if (!max && min === v[0]) ranges.push("*");
|
|
143483
|
+
else if (!max) ranges.push(`>=${min}`);
|
|
143484
|
+
else if (min === v[0]) ranges.push(`<=${max}`);
|
|
143485
|
+
else ranges.push(`${min} - ${max}`);
|
|
143486
|
+
const simplified = ranges.join(" || ");
|
|
143487
|
+
const original = typeof range.raw === "string" ? range.raw : String(range);
|
|
143488
|
+
return simplified.length < original.length ? simplified : range;
|
|
143489
|
+
};
|
|
143490
|
+
}));
|
|
143491
|
+
//#endregion
|
|
143492
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/subset.js
|
|
143493
|
+
var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143494
|
+
const Range = require_range();
|
|
143495
|
+
const Comparator = require_comparator();
|
|
143496
|
+
const { ANY } = Comparator;
|
|
143497
|
+
const satisfies = require_satisfies();
|
|
143498
|
+
const compare = require_compare();
|
|
143499
|
+
const subset = (sub, dom, options = {}) => {
|
|
143500
|
+
if (sub === dom) return true;
|
|
143501
|
+
sub = new Range(sub, options);
|
|
143502
|
+
dom = new Range(dom, options);
|
|
143503
|
+
let sawNonNull = false;
|
|
143504
|
+
OUTER: for (const simpleSub of sub.set) {
|
|
143505
|
+
for (const simpleDom of dom.set) {
|
|
143506
|
+
const isSub = simpleSubset(simpleSub, simpleDom, options);
|
|
143507
|
+
sawNonNull = sawNonNull || isSub !== null;
|
|
143508
|
+
if (isSub) continue OUTER;
|
|
143509
|
+
}
|
|
143510
|
+
if (sawNonNull) return false;
|
|
143511
|
+
}
|
|
143512
|
+
return true;
|
|
143513
|
+
};
|
|
143514
|
+
const minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")];
|
|
143515
|
+
const minimumVersion = [new Comparator(">=0.0.0")];
|
|
143516
|
+
const simpleSubset = (sub, dom, options) => {
|
|
143517
|
+
if (sub === dom) return true;
|
|
143518
|
+
if (sub.length === 1 && sub[0].semver === ANY) if (dom.length === 1 && dom[0].semver === ANY) return true;
|
|
143519
|
+
else if (options.includePrerelease) sub = minimumVersionWithPreRelease;
|
|
143520
|
+
else sub = minimumVersion;
|
|
143521
|
+
if (dom.length === 1 && dom[0].semver === ANY) if (options.includePrerelease) return true;
|
|
143522
|
+
else dom = minimumVersion;
|
|
143523
|
+
const eqSet = /* @__PURE__ */ new Set();
|
|
143524
|
+
let gt, lt;
|
|
143525
|
+
for (const c of sub) if (c.operator === ">" || c.operator === ">=") gt = higherGT(gt, c, options);
|
|
143526
|
+
else if (c.operator === "<" || c.operator === "<=") lt = lowerLT(lt, c, options);
|
|
143527
|
+
else eqSet.add(c.semver);
|
|
143528
|
+
if (eqSet.size > 1) return null;
|
|
143529
|
+
let gtltComp;
|
|
143530
|
+
if (gt && lt) {
|
|
143531
|
+
gtltComp = compare(gt.semver, lt.semver, options);
|
|
143532
|
+
if (gtltComp > 0) return null;
|
|
143533
|
+
else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) return null;
|
|
143534
|
+
}
|
|
143535
|
+
for (const eq of eqSet) {
|
|
143536
|
+
if (gt && !satisfies(eq, String(gt), options)) return null;
|
|
143537
|
+
if (lt && !satisfies(eq, String(lt), options)) return null;
|
|
143538
|
+
for (const c of dom) if (!satisfies(eq, String(c), options)) return false;
|
|
143539
|
+
return true;
|
|
143540
|
+
}
|
|
143541
|
+
let higher, lower;
|
|
143542
|
+
let hasDomLT, hasDomGT;
|
|
143543
|
+
let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;
|
|
143544
|
+
let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;
|
|
143545
|
+
if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0) needDomLTPre = false;
|
|
143546
|
+
for (const c of dom) {
|
|
143547
|
+
hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=";
|
|
143548
|
+
hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=";
|
|
143549
|
+
if (gt) {
|
|
143550
|
+
if (needDomGTPre) {
|
|
143551
|
+
if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomGTPre.major && c.semver.minor === needDomGTPre.minor && c.semver.patch === needDomGTPre.patch) needDomGTPre = false;
|
|
143552
|
+
}
|
|
143553
|
+
if (c.operator === ">" || c.operator === ">=") {
|
|
143554
|
+
higher = higherGT(gt, c, options);
|
|
143555
|
+
if (higher === c && higher !== gt) return false;
|
|
143556
|
+
} else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options)) return false;
|
|
143557
|
+
}
|
|
143558
|
+
if (lt) {
|
|
143559
|
+
if (needDomLTPre) {
|
|
143560
|
+
if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomLTPre.major && c.semver.minor === needDomLTPre.minor && c.semver.patch === needDomLTPre.patch) needDomLTPre = false;
|
|
143561
|
+
}
|
|
143562
|
+
if (c.operator === "<" || c.operator === "<=") {
|
|
143563
|
+
lower = lowerLT(lt, c, options);
|
|
143564
|
+
if (lower === c && lower !== lt) return false;
|
|
143565
|
+
} else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options)) return false;
|
|
143566
|
+
}
|
|
143567
|
+
if (!c.operator && (lt || gt) && gtltComp !== 0) return false;
|
|
143568
|
+
}
|
|
143569
|
+
if (gt && hasDomLT && !lt && gtltComp !== 0) return false;
|
|
143570
|
+
if (lt && hasDomGT && !gt && gtltComp !== 0) return false;
|
|
143571
|
+
if (needDomGTPre || needDomLTPre) return false;
|
|
143572
|
+
return true;
|
|
143573
|
+
};
|
|
143574
|
+
const higherGT = (a, b, options) => {
|
|
143575
|
+
if (!a) return b;
|
|
143576
|
+
const comp = compare(a.semver, b.semver, options);
|
|
143577
|
+
return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
|
|
143578
|
+
};
|
|
143579
|
+
const lowerLT = (a, b, options) => {
|
|
143580
|
+
if (!a) return b;
|
|
143581
|
+
const comp = compare(a.semver, b.semver, options);
|
|
143582
|
+
return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
|
|
143583
|
+
};
|
|
143584
|
+
module.exports = subset;
|
|
143585
|
+
}));
|
|
143586
|
+
//#endregion
|
|
143587
|
+
//#region ../../packages/core-node/node_modules/semver/index.js
|
|
143588
|
+
var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143589
|
+
const internalRe = require_re();
|
|
143590
|
+
const constants = require_constants();
|
|
143591
|
+
const SemVer = require_semver$1();
|
|
143592
|
+
const identifiers = require_identifiers();
|
|
143593
|
+
module.exports = {
|
|
143594
|
+
parse: require_parse(),
|
|
143595
|
+
valid: require_valid$1(),
|
|
143596
|
+
clean: require_clean(),
|
|
143597
|
+
inc: require_inc(),
|
|
143598
|
+
diff: require_diff(),
|
|
143599
|
+
major: require_major(),
|
|
143600
|
+
minor: require_minor(),
|
|
143601
|
+
patch: require_patch(),
|
|
143602
|
+
prerelease: require_prerelease(),
|
|
143603
|
+
compare: require_compare(),
|
|
143604
|
+
rcompare: require_rcompare(),
|
|
143605
|
+
compareLoose: require_compare_loose(),
|
|
143606
|
+
compareBuild: require_compare_build(),
|
|
143607
|
+
sort: require_sort(),
|
|
143608
|
+
rsort: require_rsort(),
|
|
143609
|
+
gt: require_gt(),
|
|
143610
|
+
lt: require_lt(),
|
|
143611
|
+
eq: require_eq(),
|
|
143612
|
+
neq: require_neq(),
|
|
143613
|
+
gte: require_gte(),
|
|
143614
|
+
lte: require_lte(),
|
|
143615
|
+
cmp: require_cmp(),
|
|
143616
|
+
coerce: require_coerce(),
|
|
143617
|
+
Comparator: require_comparator(),
|
|
143618
|
+
Range: require_range(),
|
|
143619
|
+
satisfies: require_satisfies(),
|
|
143620
|
+
toComparators: require_to_comparators(),
|
|
143621
|
+
maxSatisfying: require_max_satisfying(),
|
|
143622
|
+
minSatisfying: require_min_satisfying(),
|
|
143623
|
+
minVersion: require_min_version(),
|
|
143624
|
+
validRange: require_valid(),
|
|
143625
|
+
outside: require_outside(),
|
|
143626
|
+
gtr: require_gtr(),
|
|
143627
|
+
ltr: require_ltr(),
|
|
143628
|
+
intersects: require_intersects(),
|
|
143629
|
+
simplifyRange: require_simplify(),
|
|
143630
|
+
subset: require_subset(),
|
|
143631
|
+
SemVer,
|
|
143632
|
+
re: internalRe.re,
|
|
143633
|
+
src: internalRe.src,
|
|
143634
|
+
tokens: internalRe.t,
|
|
143635
|
+
SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
|
|
143636
|
+
RELEASE_TYPES: constants.RELEASE_TYPES,
|
|
143637
|
+
compareIdentifiers: identifiers.compareIdentifiers,
|
|
143638
|
+
rcompareIdentifiers: identifiers.rcompareIdentifiers
|
|
143639
|
+
};
|
|
143640
|
+
}));
|
|
143641
|
+
//#endregion
|
|
140765
143642
|
//#region ../../node_modules/serve-handler/src/glob-slash.js
|
|
140766
143643
|
var require_glob_slash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
140767
143644
|
const path$4 = __require("path");
|
|
@@ -148151,6 +151028,7 @@ var require_error = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
148151
151028
|
stream.pipe(response);
|
|
148152
151029
|
};
|
|
148153
151030
|
})))();
|
|
151031
|
+
var import_semver = /* @__PURE__ */ __toESM(require_semver(), 1);
|
|
148154
151032
|
var import_lib = /* @__PURE__ */ __toESM(require_lib(), 1);
|
|
148155
151033
|
//#endregion
|
|
148156
151034
|
//#region ../../packages/core-node/src/server.ts
|
|
@@ -148227,7 +151105,9 @@ async function fetchPackage(packageName, versionOrRange, options) {
|
|
|
148227
151105
|
const ctx = options.context;
|
|
148228
151106
|
const baseDir = ctx.getPackagesPath(packageName);
|
|
148229
151107
|
let resolvedVersion;
|
|
148230
|
-
|
|
151108
|
+
let resolvedVersionOrRange = versionOrRange;
|
|
151109
|
+
if (resolvedVersionOrRange === "local") resolvedVersionOrRange = "latest";
|
|
151110
|
+
console.log(`[Fetcher] Resolving ${packageName}@${resolvedVersionOrRange || "latest"}...`);
|
|
148231
151111
|
const resolveStart = Date.now();
|
|
148232
151112
|
try {
|
|
148233
151113
|
const cachePath = join$1(ctx.userDataPath, "cache", "pacote");
|
|
@@ -148238,7 +151118,7 @@ async function fetchPackage(packageName, versionOrRange, options) {
|
|
|
148238
151118
|
}
|
|
148239
151119
|
const packument = await packumentPromise;
|
|
148240
151120
|
const versions = Object.keys(packument.versions);
|
|
148241
|
-
const range =
|
|
151121
|
+
const range = resolvedVersionOrRange || "latest";
|
|
148242
151122
|
const foundVersion = packument["dist-tags"]?.[range] || import_semver.default.maxSatisfying(versions, range);
|
|
148243
151123
|
if (!foundVersion) throw new Error(`Package ${packageName}@${range} not found on npm (available tags: ${Object.keys(packument["dist-tags"] || {}).join(", ")})`);
|
|
148244
151124
|
resolvedVersion = foundVersion;
|
|
@@ -148246,7 +151126,7 @@ async function fetchPackage(packageName, versionOrRange, options) {
|
|
|
148246
151126
|
} catch (error) {
|
|
148247
151127
|
console.warn(`[Fetcher] ${packageName}: remote resolution failed (${Date.now() - resolveStart}ms), trying local fallback...`);
|
|
148248
151128
|
const fallbackStart = Date.now();
|
|
148249
|
-
const fallbackVersion = await tryLocalFallback(
|
|
151129
|
+
const fallbackVersion = await tryLocalFallback(resolvedVersionOrRange, error, baseDir, packageName);
|
|
148250
151130
|
if (fallbackVersion) {
|
|
148251
151131
|
resolvedVersion = fallbackVersion;
|
|
148252
151132
|
console.log(`[Fetcher] ${packageName}: Resolved to local fallback ${resolvedVersion} (${Date.now() - fallbackStart}ms)`);
|
|
@@ -148520,22 +151400,27 @@ async function crawlMonorepoPackages() {
|
|
|
148520
151400
|
}
|
|
148521
151401
|
return cache;
|
|
148522
151402
|
}
|
|
148523
|
-
async function
|
|
151403
|
+
async function tryLocalFallback(versionOrRange, _error, baseDir, logPrefix) {
|
|
148524
151404
|
if (!existsSync(baseDir)) return null;
|
|
148525
151405
|
try {
|
|
148526
|
-
|
|
148527
|
-
|
|
148528
|
-
|
|
148529
|
-
|
|
148530
|
-
|
|
148531
|
-
|
|
148532
|
-
|
|
148533
|
-
|
|
148534
|
-
|
|
148535
|
-
|
|
148536
|
-
|
|
148537
|
-
|
|
148538
|
-
|
|
151406
|
+
const localVersions = (await readdir(baseDir, { withFileTypes: true })).filter((e) => e.isDirectory() || e.isSymbolicLink()).map((e) => e.name).filter((name) => !!import_semver.default.valid(name));
|
|
151407
|
+
if (localVersions.length === 0) return null;
|
|
151408
|
+
const range = versionOrRange || "latest";
|
|
151409
|
+
if (range === "latest") {
|
|
151410
|
+
const latestLocal = localVersions.sort((a, b) => import_semver.default.rcompare(a, b))[0] || null;
|
|
151411
|
+
if (latestLocal) {
|
|
151412
|
+
console.info(`[Fetcher] ${logPrefix}: Using locally cached latest version: ${latestLocal}`);
|
|
151413
|
+
return latestLocal;
|
|
151414
|
+
}
|
|
151415
|
+
} else {
|
|
151416
|
+
const matched = import_semver.default.maxSatisfying(localVersions, range);
|
|
151417
|
+
if (matched) {
|
|
151418
|
+
console.info(`[Fetcher] ${logPrefix}: Using locally cached matching version: ${matched} for range ${range}`);
|
|
151419
|
+
return matched;
|
|
151420
|
+
}
|
|
151421
|
+
}
|
|
151422
|
+
} catch (e) {
|
|
151423
|
+
console.warn(`[Fetcher] ${logPrefix}: Error during local fallback resolution:`, e);
|
|
148539
151424
|
}
|
|
148540
151425
|
return null;
|
|
148541
151426
|
}
|
|
@@ -148561,6 +151446,26 @@ async function resolveEntryPoint(packageDir, packageName) {
|
|
|
148561
151446
|
//#region ../../packages/core-node/src/handler-func.ts
|
|
148562
151447
|
const { join: join$2 } = path$1;
|
|
148563
151448
|
//#endregion
|
|
151449
|
+
//#region ../../packages/core-node/src/handlers/plugins.ts
|
|
151450
|
+
const localPluginsMap = /* @__PURE__ */ new Map();
|
|
151451
|
+
if (isDev && projectRoot) {
|
|
151452
|
+
const pluginsDir = join$1(projectRoot, "plugins");
|
|
151453
|
+
if (existsSync(pluginsDir)) try {
|
|
151454
|
+
const entries = readdirSync(pluginsDir, { withFileTypes: true });
|
|
151455
|
+
for (const entry of entries) if (entry.isDirectory()) {
|
|
151456
|
+
const pkgPath = join$1(pluginsDir, entry.name, "package.json");
|
|
151457
|
+
if (existsSync(pkgPath)) try {
|
|
151458
|
+
const pkg = JSON.parse(readFileSync(pkgPath, "utf-8"));
|
|
151459
|
+
if (pkg.name) localPluginsMap.set(pkg.name, join$1(pluginsDir, entry.name));
|
|
151460
|
+
} catch (e) {
|
|
151461
|
+
console.error(`[Plugins] Failed to parse package.json for ${entry.name}:`, e);
|
|
151462
|
+
}
|
|
151463
|
+
}
|
|
151464
|
+
} catch (e) {
|
|
151465
|
+
console.error(`[Plugins] Failed to scan local workspace plugins directory:`, e);
|
|
151466
|
+
}
|
|
151467
|
+
}
|
|
151468
|
+
//#endregion
|
|
148564
151469
|
//#region ../plugin-core/src/pipelab.ts
|
|
148565
151470
|
const createActionRunner = (runner) => runner;
|
|
148566
151471
|
//#endregion
|
|
@@ -149838,23 +152743,13 @@ const packageV2Runner = createActionRunner(async ({ inputs, cwd, paths, log, set
|
|
|
149838
152743
|
});
|
|
149839
152744
|
//#endregion
|
|
149840
152745
|
//#region src/index.ts
|
|
149841
|
-
|
|
149842
|
-
|
|
149843
|
-
|
|
149844
|
-
|
|
149845
|
-
|
|
149846
|
-
|
|
149847
|
-
|
|
149848
|
-
image: icon
|
|
149849
|
-
},
|
|
149850
|
-
nodes: [{
|
|
149851
|
-
node: createPackageProps(IDPackage, "Package as Discord Activity", "Package your app as a Discord Activity", "", "`Package app from ${fmt.param(params['input-folder'], 'primary', 'Input folder not set')}`", false, false, void 0, false, false),
|
|
149852
|
-
runner: packageV2Runner
|
|
149853
|
-
}, {
|
|
149854
|
-
node: createPreviewProps(IDPreview, "Preview Discord Acitivity app", "Package and preview your app as a Discord Activity", "", "`Preview app from ${fmt.param(params['input-folder'], 'primary', 'Input folder not set')}`"),
|
|
149855
|
-
runner: previewRunner
|
|
149856
|
-
}]
|
|
149857
|
-
});
|
|
152746
|
+
var src_default = createNodeDefinition({ nodes: [{
|
|
152747
|
+
node: createPackageProps(IDPackage, "Package as Discord Activity", "Package your app as a Discord Activity", "", "`Package app from ${fmt.param(params['input-folder'], 'primary', 'Input folder not set')}`", false, false, void 0, false, false),
|
|
152748
|
+
runner: packageV2Runner
|
|
152749
|
+
}, {
|
|
152750
|
+
node: createPreviewProps(IDPreview, "Preview Discord Acitivity app", "Package and preview your app as a Discord Activity", "", "`Preview app from ${fmt.param(params['input-folder'], 'primary', 'Input folder not set')}`"),
|
|
152751
|
+
runner: previewRunner
|
|
152752
|
+
}] });
|
|
149858
152753
|
//#endregion
|
|
149859
152754
|
export { src_default as default };
|
|
149860
152755
|
|