@pipelab/plugin-construct 1.0.0-beta.12 → 1.0.0-beta.13
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/assets/construct.webp +0 -0
- package/dist/assets/script.ts +288 -0
- package/dist/index.cjs +3646 -746
- package/dist/index.mjs +3230 -333
- package/dist/index.mjs.map +1 -1
- package/package.json +22 -4
package/dist/index.mjs
CHANGED
|
@@ -36,8 +36,8 @@ const finalVersion = () => {
|
|
|
36
36
|
throw new Error("Unable to go up on the final version!");
|
|
37
37
|
};
|
|
38
38
|
//#endregion
|
|
39
|
-
//#region ../../node_modules/semver/internal/constants.js
|
|
40
|
-
var require_constants$
|
|
39
|
+
//#region ../../packages/migration/node_modules/semver/internal/constants.js
|
|
40
|
+
var require_constants$10 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
41
41
|
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
42
42
|
const MAX_LENGTH = 256;
|
|
43
43
|
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
@@ -61,15 +61,15 @@ var require_constants$8 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
61
61
|
};
|
|
62
62
|
}));
|
|
63
63
|
//#endregion
|
|
64
|
-
//#region ../../node_modules/semver/internal/debug.js
|
|
65
|
-
var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
64
|
+
//#region ../../packages/migration/node_modules/semver/internal/debug.js
|
|
65
|
+
var require_debug$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
66
66
|
module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
67
67
|
}));
|
|
68
68
|
//#endregion
|
|
69
|
-
//#region ../../node_modules/semver/internal/re.js
|
|
70
|
-
var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
71
|
-
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants$
|
|
72
|
-
const debug = require_debug();
|
|
69
|
+
//#region ../../packages/migration/node_modules/semver/internal/re.js
|
|
70
|
+
var require_re$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
71
|
+
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants$10();
|
|
72
|
+
const debug = require_debug$2();
|
|
73
73
|
exports = module.exports = {};
|
|
74
74
|
const re = exports.re = [];
|
|
75
75
|
const safeRe = exports.safeRe = [];
|
|
@@ -145,8 +145,8 @@ var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
145
145
|
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
146
146
|
}));
|
|
147
147
|
//#endregion
|
|
148
|
-
//#region ../../node_modules/semver/internal/parse-options.js
|
|
149
|
-
var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
148
|
+
//#region ../../packages/migration/node_modules/semver/internal/parse-options.js
|
|
149
|
+
var require_parse_options$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
150
150
|
const looseOption = Object.freeze({ loose: true });
|
|
151
151
|
const emptyOpts = Object.freeze({});
|
|
152
152
|
const parseOptions = (options) => {
|
|
@@ -157,8 +157,8 @@ var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
157
157
|
module.exports = parseOptions;
|
|
158
158
|
}));
|
|
159
159
|
//#endregion
|
|
160
|
-
//#region ../../node_modules/semver/internal/identifiers.js
|
|
161
|
-
var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
160
|
+
//#region ../../packages/migration/node_modules/semver/internal/identifiers.js
|
|
161
|
+
var require_identifiers$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
162
162
|
const numeric = /^[0-9]+$/;
|
|
163
163
|
const compareIdentifiers = (a, b) => {
|
|
164
164
|
if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
|
|
@@ -177,13 +177,13 @@ var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
177
177
|
};
|
|
178
178
|
}));
|
|
179
179
|
//#endregion
|
|
180
|
-
//#region ../../node_modules/semver/classes/semver.js
|
|
181
|
-
var require_semver$
|
|
182
|
-
const debug = require_debug();
|
|
183
|
-
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants$
|
|
184
|
-
const { safeRe: re, t } = require_re();
|
|
185
|
-
const parseOptions = require_parse_options();
|
|
186
|
-
const { compareIdentifiers } = require_identifiers();
|
|
180
|
+
//#region ../../packages/migration/node_modules/semver/classes/semver.js
|
|
181
|
+
var require_semver$5 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
182
|
+
const debug = require_debug$2();
|
|
183
|
+
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants$10();
|
|
184
|
+
const { safeRe: re, t } = require_re$2();
|
|
185
|
+
const parseOptions = require_parse_options$2();
|
|
186
|
+
const { compareIdentifiers } = require_identifiers$2();
|
|
187
187
|
module.exports = class SemVer {
|
|
188
188
|
constructor(version, options) {
|
|
189
189
|
options = parseOptions(options);
|
|
@@ -355,9 +355,9 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
355
355
|
};
|
|
356
356
|
}));
|
|
357
357
|
//#endregion
|
|
358
|
-
//#region ../../node_modules/semver/functions/parse.js
|
|
359
|
-
var require_parse$
|
|
360
|
-
const SemVer = require_semver$
|
|
358
|
+
//#region ../../packages/migration/node_modules/semver/functions/parse.js
|
|
359
|
+
var require_parse$6 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
360
|
+
const SemVer = require_semver$5();
|
|
361
361
|
const parse = (version, options, throwErrors = false) => {
|
|
362
362
|
if (version instanceof SemVer) return version;
|
|
363
363
|
try {
|
|
@@ -370,9 +370,9 @@ var require_parse$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
370
370
|
module.exports = parse;
|
|
371
371
|
}));
|
|
372
372
|
//#endregion
|
|
373
|
-
//#region ../../node_modules/semver/functions/valid.js
|
|
374
|
-
var require_valid$
|
|
375
|
-
const parse = require_parse$
|
|
373
|
+
//#region ../../packages/migration/node_modules/semver/functions/valid.js
|
|
374
|
+
var require_valid$5 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
375
|
+
const parse = require_parse$6();
|
|
376
376
|
const valid = (version, options) => {
|
|
377
377
|
const v = parse(version, options);
|
|
378
378
|
return v ? v.version : null;
|
|
@@ -380,9 +380,9 @@ var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
380
380
|
module.exports = valid;
|
|
381
381
|
}));
|
|
382
382
|
//#endregion
|
|
383
|
-
//#region ../../node_modules/semver/functions/clean.js
|
|
384
|
-
var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
385
|
-
const parse = require_parse$
|
|
383
|
+
//#region ../../packages/migration/node_modules/semver/functions/clean.js
|
|
384
|
+
var require_clean$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
385
|
+
const parse = require_parse$6();
|
|
386
386
|
const clean = (version, options) => {
|
|
387
387
|
const s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
388
388
|
return s ? s.version : null;
|
|
@@ -390,9 +390,9 @@ var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
390
390
|
module.exports = clean;
|
|
391
391
|
}));
|
|
392
392
|
//#endregion
|
|
393
|
-
//#region ../../node_modules/semver/functions/inc.js
|
|
394
|
-
var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
395
|
-
const SemVer = require_semver$
|
|
393
|
+
//#region ../../packages/migration/node_modules/semver/functions/inc.js
|
|
394
|
+
var require_inc$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
395
|
+
const SemVer = require_semver$5();
|
|
396
396
|
const inc = (version, release, options, identifier, identifierBase) => {
|
|
397
397
|
if (typeof options === "string") {
|
|
398
398
|
identifierBase = identifier;
|
|
@@ -408,9 +408,9 @@ var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
408
408
|
module.exports = inc;
|
|
409
409
|
}));
|
|
410
410
|
//#endregion
|
|
411
|
-
//#region ../../node_modules/semver/functions/diff.js
|
|
412
|
-
var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
413
|
-
const parse = require_parse$
|
|
411
|
+
//#region ../../packages/migration/node_modules/semver/functions/diff.js
|
|
412
|
+
var require_diff$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
413
|
+
const parse = require_parse$6();
|
|
414
414
|
const diff = (version1, version2) => {
|
|
415
415
|
const v1 = parse(version1, null, true);
|
|
416
416
|
const v2 = parse(version2, null, true);
|
|
@@ -436,30 +436,30 @@ var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
436
436
|
module.exports = diff;
|
|
437
437
|
}));
|
|
438
438
|
//#endregion
|
|
439
|
-
//#region ../../node_modules/semver/functions/major.js
|
|
440
|
-
var require_major = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
441
|
-
const SemVer = require_semver$
|
|
439
|
+
//#region ../../packages/migration/node_modules/semver/functions/major.js
|
|
440
|
+
var require_major$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
441
|
+
const SemVer = require_semver$5();
|
|
442
442
|
const major = (a, loose) => new SemVer(a, loose).major;
|
|
443
443
|
module.exports = major;
|
|
444
444
|
}));
|
|
445
445
|
//#endregion
|
|
446
|
-
//#region ../../node_modules/semver/functions/minor.js
|
|
447
|
-
var require_minor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
448
|
-
const SemVer = require_semver$
|
|
446
|
+
//#region ../../packages/migration/node_modules/semver/functions/minor.js
|
|
447
|
+
var require_minor$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
448
|
+
const SemVer = require_semver$5();
|
|
449
449
|
const minor = (a, loose) => new SemVer(a, loose).minor;
|
|
450
450
|
module.exports = minor;
|
|
451
451
|
}));
|
|
452
452
|
//#endregion
|
|
453
|
-
//#region ../../node_modules/semver/functions/patch.js
|
|
454
|
-
var require_patch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
455
|
-
const SemVer = require_semver$
|
|
453
|
+
//#region ../../packages/migration/node_modules/semver/functions/patch.js
|
|
454
|
+
var require_patch$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
455
|
+
const SemVer = require_semver$5();
|
|
456
456
|
const patch = (a, loose) => new SemVer(a, loose).patch;
|
|
457
457
|
module.exports = patch;
|
|
458
458
|
}));
|
|
459
459
|
//#endregion
|
|
460
|
-
//#region ../../node_modules/semver/functions/prerelease.js
|
|
461
|
-
var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
462
|
-
const parse = require_parse$
|
|
460
|
+
//#region ../../packages/migration/node_modules/semver/functions/prerelease.js
|
|
461
|
+
var require_prerelease$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
462
|
+
const parse = require_parse$6();
|
|
463
463
|
const prerelease = (version, options) => {
|
|
464
464
|
const parsed = parse(version, options);
|
|
465
465
|
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
@@ -467,30 +467,30 @@ var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
467
467
|
module.exports = prerelease;
|
|
468
468
|
}));
|
|
469
469
|
//#endregion
|
|
470
|
-
//#region ../../node_modules/semver/functions/compare.js
|
|
471
|
-
var require_compare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
472
|
-
const SemVer = require_semver$
|
|
470
|
+
//#region ../../packages/migration/node_modules/semver/functions/compare.js
|
|
471
|
+
var require_compare$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
472
|
+
const SemVer = require_semver$5();
|
|
473
473
|
const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
474
474
|
module.exports = compare;
|
|
475
475
|
}));
|
|
476
476
|
//#endregion
|
|
477
|
-
//#region ../../node_modules/semver/functions/rcompare.js
|
|
478
|
-
var require_rcompare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
479
|
-
const compare = require_compare();
|
|
477
|
+
//#region ../../packages/migration/node_modules/semver/functions/rcompare.js
|
|
478
|
+
var require_rcompare$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
479
|
+
const compare = require_compare$2();
|
|
480
480
|
const rcompare = (a, b, loose) => compare(b, a, loose);
|
|
481
481
|
module.exports = rcompare;
|
|
482
482
|
}));
|
|
483
483
|
//#endregion
|
|
484
|
-
//#region ../../node_modules/semver/functions/compare-loose.js
|
|
485
|
-
var require_compare_loose = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
486
|
-
const compare = require_compare();
|
|
484
|
+
//#region ../../packages/migration/node_modules/semver/functions/compare-loose.js
|
|
485
|
+
var require_compare_loose$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
486
|
+
const compare = require_compare$2();
|
|
487
487
|
const compareLoose = (a, b) => compare(a, b, true);
|
|
488
488
|
module.exports = compareLoose;
|
|
489
489
|
}));
|
|
490
490
|
//#endregion
|
|
491
|
-
//#region ../../node_modules/semver/functions/compare-build.js
|
|
492
|
-
var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
493
|
-
const SemVer = require_semver$
|
|
491
|
+
//#region ../../packages/migration/node_modules/semver/functions/compare-build.js
|
|
492
|
+
var require_compare_build$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
493
|
+
const SemVer = require_semver$5();
|
|
494
494
|
const compareBuild = (a, b, loose) => {
|
|
495
495
|
const versionA = new SemVer(a, loose);
|
|
496
496
|
const versionB = new SemVer(b, loose);
|
|
@@ -499,70 +499,70 @@ var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
499
499
|
module.exports = compareBuild;
|
|
500
500
|
}));
|
|
501
501
|
//#endregion
|
|
502
|
-
//#region ../../node_modules/semver/functions/sort.js
|
|
503
|
-
var require_sort$
|
|
504
|
-
const compareBuild = require_compare_build();
|
|
502
|
+
//#region ../../packages/migration/node_modules/semver/functions/sort.js
|
|
503
|
+
var require_sort$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
504
|
+
const compareBuild = require_compare_build$2();
|
|
505
505
|
const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
506
506
|
module.exports = sort;
|
|
507
507
|
}));
|
|
508
508
|
//#endregion
|
|
509
|
-
//#region ../../node_modules/semver/functions/rsort.js
|
|
510
|
-
var require_rsort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
511
|
-
const compareBuild = require_compare_build();
|
|
509
|
+
//#region ../../packages/migration/node_modules/semver/functions/rsort.js
|
|
510
|
+
var require_rsort$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
511
|
+
const compareBuild = require_compare_build$2();
|
|
512
512
|
const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
513
513
|
module.exports = rsort;
|
|
514
514
|
}));
|
|
515
515
|
//#endregion
|
|
516
|
-
//#region ../../node_modules/semver/functions/gt.js
|
|
517
|
-
var require_gt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
518
|
-
const compare = require_compare();
|
|
516
|
+
//#region ../../packages/migration/node_modules/semver/functions/gt.js
|
|
517
|
+
var require_gt$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
518
|
+
const compare = require_compare$2();
|
|
519
519
|
const gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
520
520
|
module.exports = gt;
|
|
521
521
|
}));
|
|
522
522
|
//#endregion
|
|
523
|
-
//#region ../../node_modules/semver/functions/lt.js
|
|
524
|
-
var require_lt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
525
|
-
const compare = require_compare();
|
|
523
|
+
//#region ../../packages/migration/node_modules/semver/functions/lt.js
|
|
524
|
+
var require_lt$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
525
|
+
const compare = require_compare$2();
|
|
526
526
|
const lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
527
527
|
module.exports = lt;
|
|
528
528
|
}));
|
|
529
529
|
//#endregion
|
|
530
|
-
//#region ../../node_modules/semver/functions/eq.js
|
|
531
|
-
var require_eq$
|
|
532
|
-
const compare = require_compare();
|
|
530
|
+
//#region ../../packages/migration/node_modules/semver/functions/eq.js
|
|
531
|
+
var require_eq$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
532
|
+
const compare = require_compare$2();
|
|
533
533
|
const eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
534
534
|
module.exports = eq;
|
|
535
535
|
}));
|
|
536
536
|
//#endregion
|
|
537
|
-
//#region ../../node_modules/semver/functions/neq.js
|
|
538
|
-
var require_neq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
539
|
-
const compare = require_compare();
|
|
537
|
+
//#region ../../packages/migration/node_modules/semver/functions/neq.js
|
|
538
|
+
var require_neq$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
539
|
+
const compare = require_compare$2();
|
|
540
540
|
const neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
541
541
|
module.exports = neq;
|
|
542
542
|
}));
|
|
543
543
|
//#endregion
|
|
544
|
-
//#region ../../node_modules/semver/functions/gte.js
|
|
545
|
-
var require_gte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
546
|
-
const compare = require_compare();
|
|
544
|
+
//#region ../../packages/migration/node_modules/semver/functions/gte.js
|
|
545
|
+
var require_gte$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
546
|
+
const compare = require_compare$2();
|
|
547
547
|
const gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
548
548
|
module.exports = gte;
|
|
549
549
|
}));
|
|
550
550
|
//#endregion
|
|
551
|
-
//#region ../../node_modules/semver/functions/lte.js
|
|
552
|
-
var require_lte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
553
|
-
const compare = require_compare();
|
|
551
|
+
//#region ../../packages/migration/node_modules/semver/functions/lte.js
|
|
552
|
+
var require_lte$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
553
|
+
const compare = require_compare$2();
|
|
554
554
|
const lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
555
555
|
module.exports = lte;
|
|
556
556
|
}));
|
|
557
557
|
//#endregion
|
|
558
|
-
//#region ../../node_modules/semver/functions/cmp.js
|
|
559
|
-
var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
560
|
-
const eq = require_eq$
|
|
561
|
-
const neq = require_neq();
|
|
562
|
-
const gt = require_gt();
|
|
563
|
-
const gte = require_gte();
|
|
564
|
-
const lt = require_lt();
|
|
565
|
-
const lte = require_lte();
|
|
558
|
+
//#region ../../packages/migration/node_modules/semver/functions/cmp.js
|
|
559
|
+
var require_cmp$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
560
|
+
const eq = require_eq$3();
|
|
561
|
+
const neq = require_neq$2();
|
|
562
|
+
const gt = require_gt$2();
|
|
563
|
+
const gte = require_gte$2();
|
|
564
|
+
const lt = require_lt$2();
|
|
565
|
+
const lte = require_lte$2();
|
|
566
566
|
const cmp = (a, op, b, loose) => {
|
|
567
567
|
switch (op) {
|
|
568
568
|
case "===":
|
|
@@ -587,11 +587,11 @@ var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
587
587
|
module.exports = cmp;
|
|
588
588
|
}));
|
|
589
589
|
//#endregion
|
|
590
|
-
//#region ../../node_modules/semver/functions/coerce.js
|
|
591
|
-
var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
592
|
-
const SemVer = require_semver$
|
|
593
|
-
const parse = require_parse$
|
|
594
|
-
const { safeRe: re, t } = require_re();
|
|
590
|
+
//#region ../../packages/migration/node_modules/semver/functions/coerce.js
|
|
591
|
+
var require_coerce$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
592
|
+
const SemVer = require_semver$5();
|
|
593
|
+
const parse = require_parse$6();
|
|
594
|
+
const { safeRe: re, t } = require_re$2();
|
|
595
595
|
const coerce = (version, options) => {
|
|
596
596
|
if (version instanceof SemVer) return version;
|
|
597
597
|
if (typeof version === "number") version = String(version);
|
|
@@ -615,8 +615,8 @@ var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
615
615
|
module.exports = coerce;
|
|
616
616
|
}));
|
|
617
617
|
//#endregion
|
|
618
|
-
//#region ../../node_modules/semver/internal/lrucache.js
|
|
619
|
-
var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
618
|
+
//#region ../../packages/migration/node_modules/semver/internal/lrucache.js
|
|
619
|
+
var require_lrucache$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
620
620
|
var LRUCache = class {
|
|
621
621
|
constructor() {
|
|
622
622
|
this.max = 1e3;
|
|
@@ -648,8 +648,8 @@ var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
648
648
|
module.exports = LRUCache;
|
|
649
649
|
}));
|
|
650
650
|
//#endregion
|
|
651
|
-
//#region ../../node_modules/semver/classes/range.js
|
|
652
|
-
var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
651
|
+
//#region ../../packages/migration/node_modules/semver/classes/range.js
|
|
652
|
+
var require_range$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
653
653
|
const SPACE_CHARACTERS = /\s+/g;
|
|
654
654
|
module.exports = class Range {
|
|
655
655
|
constructor(range, options) {
|
|
@@ -755,13 +755,13 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
755
755
|
return false;
|
|
756
756
|
}
|
|
757
757
|
};
|
|
758
|
-
const cache = new (require_lrucache())();
|
|
759
|
-
const parseOptions = require_parse_options();
|
|
760
|
-
const Comparator = require_comparator();
|
|
761
|
-
const debug = require_debug();
|
|
762
|
-
const SemVer = require_semver$
|
|
763
|
-
const { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re();
|
|
764
|
-
const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants$
|
|
758
|
+
const cache = new (require_lrucache$2())();
|
|
759
|
+
const parseOptions = require_parse_options$2();
|
|
760
|
+
const Comparator = require_comparator$2();
|
|
761
|
+
const debug = require_debug$2();
|
|
762
|
+
const SemVer = require_semver$5();
|
|
763
|
+
const { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re$2();
|
|
764
|
+
const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants$10();
|
|
765
765
|
const isNullSet = (c) => c.value === "<0.0.0-0";
|
|
766
766
|
const isAny = (c) => c.value === "";
|
|
767
767
|
const isSatisfiable = (comparators, options) => {
|
|
@@ -920,8 +920,8 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
920
920
|
};
|
|
921
921
|
}));
|
|
922
922
|
//#endregion
|
|
923
|
-
//#region ../../node_modules/semver/classes/comparator.js
|
|
924
|
-
var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
923
|
+
//#region ../../packages/migration/node_modules/semver/classes/comparator.js
|
|
924
|
+
var require_comparator$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
925
925
|
const ANY = Symbol("SemVer ANY");
|
|
926
926
|
module.exports = class Comparator {
|
|
927
927
|
static get ANY() {
|
|
@@ -982,17 +982,17 @@ var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
982
982
|
return false;
|
|
983
983
|
}
|
|
984
984
|
};
|
|
985
|
-
const parseOptions = require_parse_options();
|
|
986
|
-
const { safeRe: re, t } = require_re();
|
|
987
|
-
const cmp = require_cmp();
|
|
988
|
-
const debug = require_debug();
|
|
989
|
-
const SemVer = require_semver$
|
|
990
|
-
const Range = require_range();
|
|
985
|
+
const parseOptions = require_parse_options$2();
|
|
986
|
+
const { safeRe: re, t } = require_re$2();
|
|
987
|
+
const cmp = require_cmp$2();
|
|
988
|
+
const debug = require_debug$2();
|
|
989
|
+
const SemVer = require_semver$5();
|
|
990
|
+
const Range = require_range$2();
|
|
991
991
|
}));
|
|
992
992
|
//#endregion
|
|
993
|
-
//#region ../../node_modules/semver/functions/satisfies.js
|
|
994
|
-
var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
995
|
-
const Range = require_range();
|
|
993
|
+
//#region ../../packages/migration/node_modules/semver/functions/satisfies.js
|
|
994
|
+
var require_satisfies$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
995
|
+
const Range = require_range$2();
|
|
996
996
|
const satisfies = (version, range, options) => {
|
|
997
997
|
try {
|
|
998
998
|
range = new Range(range, options);
|
|
@@ -1004,17 +1004,17 @@ var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1004
1004
|
module.exports = satisfies;
|
|
1005
1005
|
}));
|
|
1006
1006
|
//#endregion
|
|
1007
|
-
//#region ../../node_modules/semver/ranges/to-comparators.js
|
|
1008
|
-
var require_to_comparators = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1009
|
-
const Range = require_range();
|
|
1007
|
+
//#region ../../packages/migration/node_modules/semver/ranges/to-comparators.js
|
|
1008
|
+
var require_to_comparators$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1009
|
+
const Range = require_range$2();
|
|
1010
1010
|
const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
1011
1011
|
module.exports = toComparators;
|
|
1012
1012
|
}));
|
|
1013
1013
|
//#endregion
|
|
1014
|
-
//#region ../../node_modules/semver/ranges/max-satisfying.js
|
|
1015
|
-
var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1016
|
-
const SemVer = require_semver$
|
|
1017
|
-
const Range = require_range();
|
|
1014
|
+
//#region ../../packages/migration/node_modules/semver/ranges/max-satisfying.js
|
|
1015
|
+
var require_max_satisfying$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1016
|
+
const SemVer = require_semver$5();
|
|
1017
|
+
const Range = require_range$2();
|
|
1018
1018
|
const maxSatisfying = (versions, range, options) => {
|
|
1019
1019
|
let max = null;
|
|
1020
1020
|
let maxSV = null;
|
|
@@ -1037,10 +1037,10 @@ var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
1037
1037
|
module.exports = maxSatisfying;
|
|
1038
1038
|
}));
|
|
1039
1039
|
//#endregion
|
|
1040
|
-
//#region ../../node_modules/semver/ranges/min-satisfying.js
|
|
1041
|
-
var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1042
|
-
const SemVer = require_semver$
|
|
1043
|
-
const Range = require_range();
|
|
1040
|
+
//#region ../../packages/migration/node_modules/semver/ranges/min-satisfying.js
|
|
1041
|
+
var require_min_satisfying$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1042
|
+
const SemVer = require_semver$5();
|
|
1043
|
+
const Range = require_range$2();
|
|
1044
1044
|
const minSatisfying = (versions, range, options) => {
|
|
1045
1045
|
let min = null;
|
|
1046
1046
|
let minSV = null;
|
|
@@ -1063,11 +1063,11 @@ var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
1063
1063
|
module.exports = minSatisfying;
|
|
1064
1064
|
}));
|
|
1065
1065
|
//#endregion
|
|
1066
|
-
//#region ../../node_modules/semver/ranges/min-version.js
|
|
1067
|
-
var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1068
|
-
const SemVer = require_semver$
|
|
1069
|
-
const Range = require_range();
|
|
1070
|
-
const gt = require_gt();
|
|
1066
|
+
//#region ../../packages/migration/node_modules/semver/ranges/min-version.js
|
|
1067
|
+
var require_min_version$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1068
|
+
const SemVer = require_semver$5();
|
|
1069
|
+
const Range = require_range$2();
|
|
1070
|
+
const gt = require_gt$2();
|
|
1071
1071
|
const minVersion = (range, loose) => {
|
|
1072
1072
|
range = new Range(range, loose);
|
|
1073
1073
|
let minver = new SemVer("0.0.0");
|
|
@@ -1102,9 +1102,9 @@ var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1102
1102
|
module.exports = minVersion;
|
|
1103
1103
|
}));
|
|
1104
1104
|
//#endregion
|
|
1105
|
-
//#region ../../node_modules/semver/ranges/valid.js
|
|
1106
|
-
var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1107
|
-
const Range = require_range();
|
|
1105
|
+
//#region ../../packages/migration/node_modules/semver/ranges/valid.js
|
|
1106
|
+
var require_valid$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1107
|
+
const Range = require_range$2();
|
|
1108
1108
|
const validRange = (range, options) => {
|
|
1109
1109
|
try {
|
|
1110
1110
|
return new Range(range, options).range || "*";
|
|
@@ -1115,17 +1115,17 @@ var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1115
1115
|
module.exports = validRange;
|
|
1116
1116
|
}));
|
|
1117
1117
|
//#endregion
|
|
1118
|
-
//#region ../../node_modules/semver/ranges/outside.js
|
|
1119
|
-
var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1120
|
-
const SemVer = require_semver$
|
|
1121
|
-
const Comparator = require_comparator();
|
|
1118
|
+
//#region ../../packages/migration/node_modules/semver/ranges/outside.js
|
|
1119
|
+
var require_outside$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1120
|
+
const SemVer = require_semver$5();
|
|
1121
|
+
const Comparator = require_comparator$2();
|
|
1122
1122
|
const { ANY } = Comparator;
|
|
1123
|
-
const Range = require_range();
|
|
1124
|
-
const satisfies = require_satisfies();
|
|
1125
|
-
const gt = require_gt();
|
|
1126
|
-
const lt = require_lt();
|
|
1127
|
-
const lte = require_lte();
|
|
1128
|
-
const gte = require_gte();
|
|
1123
|
+
const Range = require_range$2();
|
|
1124
|
+
const satisfies = require_satisfies$2();
|
|
1125
|
+
const gt = require_gt$2();
|
|
1126
|
+
const lt = require_lt$2();
|
|
1127
|
+
const lte = require_lte$2();
|
|
1128
|
+
const gte = require_gte$2();
|
|
1129
1129
|
const outside = (version, range, hilo, options) => {
|
|
1130
1130
|
version = new SemVer(version, options);
|
|
1131
1131
|
range = new Range(range, options);
|
|
@@ -1168,23 +1168,23 @@ var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1168
1168
|
module.exports = outside;
|
|
1169
1169
|
}));
|
|
1170
1170
|
//#endregion
|
|
1171
|
-
//#region ../../node_modules/semver/ranges/gtr.js
|
|
1172
|
-
var require_gtr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1173
|
-
const outside = require_outside();
|
|
1171
|
+
//#region ../../packages/migration/node_modules/semver/ranges/gtr.js
|
|
1172
|
+
var require_gtr$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1173
|
+
const outside = require_outside$2();
|
|
1174
1174
|
const gtr = (version, range, options) => outside(version, range, ">", options);
|
|
1175
1175
|
module.exports = gtr;
|
|
1176
1176
|
}));
|
|
1177
1177
|
//#endregion
|
|
1178
|
-
//#region ../../node_modules/semver/ranges/ltr.js
|
|
1179
|
-
var require_ltr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1180
|
-
const outside = require_outside();
|
|
1178
|
+
//#region ../../packages/migration/node_modules/semver/ranges/ltr.js
|
|
1179
|
+
var require_ltr$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1180
|
+
const outside = require_outside$2();
|
|
1181
1181
|
const ltr = (version, range, options) => outside(version, range, "<", options);
|
|
1182
1182
|
module.exports = ltr;
|
|
1183
1183
|
}));
|
|
1184
1184
|
//#endregion
|
|
1185
|
-
//#region ../../node_modules/semver/ranges/intersects.js
|
|
1186
|
-
var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1187
|
-
const Range = require_range();
|
|
1185
|
+
//#region ../../packages/migration/node_modules/semver/ranges/intersects.js
|
|
1186
|
+
var require_intersects$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1187
|
+
const Range = require_range$2();
|
|
1188
1188
|
const intersects = (r1, r2, options) => {
|
|
1189
1189
|
r1 = new Range(r1, options);
|
|
1190
1190
|
r2 = new Range(r2, options);
|
|
@@ -1193,10 +1193,10 @@ var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1193
1193
|
module.exports = intersects;
|
|
1194
1194
|
}));
|
|
1195
1195
|
//#endregion
|
|
1196
|
-
//#region ../../node_modules/semver/ranges/simplify.js
|
|
1197
|
-
var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1198
|
-
const satisfies = require_satisfies();
|
|
1199
|
-
const compare = require_compare();
|
|
1196
|
+
//#region ../../packages/migration/node_modules/semver/ranges/simplify.js
|
|
1197
|
+
var require_simplify$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1198
|
+
const satisfies = require_satisfies$2();
|
|
1199
|
+
const compare = require_compare$2();
|
|
1200
1200
|
module.exports = (versions, range, options) => {
|
|
1201
1201
|
const set = [];
|
|
1202
1202
|
let first = null;
|
|
@@ -1223,13 +1223,13 @@ var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1223
1223
|
};
|
|
1224
1224
|
}));
|
|
1225
1225
|
//#endregion
|
|
1226
|
-
//#region ../../node_modules/semver/ranges/subset.js
|
|
1227
|
-
var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1228
|
-
const Range = require_range();
|
|
1229
|
-
const Comparator = require_comparator();
|
|
1226
|
+
//#region ../../packages/migration/node_modules/semver/ranges/subset.js
|
|
1227
|
+
var require_subset$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1228
|
+
const Range = require_range$2();
|
|
1229
|
+
const Comparator = require_comparator$2();
|
|
1230
1230
|
const { ANY } = Comparator;
|
|
1231
|
-
const satisfies = require_satisfies();
|
|
1232
|
-
const compare = require_compare();
|
|
1231
|
+
const satisfies = require_satisfies$2();
|
|
1232
|
+
const compare = require_compare$2();
|
|
1233
1233
|
const subset = (sub, dom, options = {}) => {
|
|
1234
1234
|
if (sub === dom) return true;
|
|
1235
1235
|
sub = new Range(sub, options);
|
|
@@ -1318,50 +1318,50 @@ var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1318
1318
|
module.exports = subset;
|
|
1319
1319
|
}));
|
|
1320
1320
|
//#endregion
|
|
1321
|
-
//#region ../../
|
|
1322
|
-
var
|
|
1323
|
-
const internalRe = require_re();
|
|
1324
|
-
const constants = require_constants$
|
|
1325
|
-
const SemVer = require_semver$
|
|
1326
|
-
const identifiers = require_identifiers();
|
|
1321
|
+
//#region ../../packages/migration/src/utils/object-keys.ts
|
|
1322
|
+
var import_semver$1 = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1323
|
+
const internalRe = require_re$2();
|
|
1324
|
+
const constants = require_constants$10();
|
|
1325
|
+
const SemVer = require_semver$5();
|
|
1326
|
+
const identifiers = require_identifiers$2();
|
|
1327
1327
|
module.exports = {
|
|
1328
|
-
parse: require_parse$
|
|
1329
|
-
valid: require_valid$
|
|
1330
|
-
clean: require_clean(),
|
|
1331
|
-
inc: require_inc(),
|
|
1332
|
-
diff: require_diff(),
|
|
1333
|
-
major: require_major(),
|
|
1334
|
-
minor: require_minor(),
|
|
1335
|
-
patch: require_patch(),
|
|
1336
|
-
prerelease: require_prerelease(),
|
|
1337
|
-
compare: require_compare(),
|
|
1338
|
-
rcompare: require_rcompare(),
|
|
1339
|
-
compareLoose: require_compare_loose(),
|
|
1340
|
-
compareBuild: require_compare_build(),
|
|
1341
|
-
sort: require_sort$
|
|
1342
|
-
rsort: require_rsort(),
|
|
1343
|
-
gt: require_gt(),
|
|
1344
|
-
lt: require_lt(),
|
|
1345
|
-
eq: require_eq$
|
|
1346
|
-
neq: require_neq(),
|
|
1347
|
-
gte: require_gte(),
|
|
1348
|
-
lte: require_lte(),
|
|
1349
|
-
cmp: require_cmp(),
|
|
1350
|
-
coerce: require_coerce(),
|
|
1351
|
-
Comparator: require_comparator(),
|
|
1352
|
-
Range: require_range(),
|
|
1353
|
-
satisfies: require_satisfies(),
|
|
1354
|
-
toComparators: require_to_comparators(),
|
|
1355
|
-
maxSatisfying: require_max_satisfying(),
|
|
1356
|
-
minSatisfying: require_min_satisfying(),
|
|
1357
|
-
minVersion: require_min_version(),
|
|
1358
|
-
validRange: require_valid(),
|
|
1359
|
-
outside: require_outside(),
|
|
1360
|
-
gtr: require_gtr(),
|
|
1361
|
-
ltr: require_ltr(),
|
|
1362
|
-
intersects: require_intersects(),
|
|
1363
|
-
simplifyRange: require_simplify(),
|
|
1364
|
-
subset: require_subset(),
|
|
1328
|
+
parse: require_parse$6(),
|
|
1329
|
+
valid: require_valid$5(),
|
|
1330
|
+
clean: require_clean$2(),
|
|
1331
|
+
inc: require_inc$2(),
|
|
1332
|
+
diff: require_diff$2(),
|
|
1333
|
+
major: require_major$2(),
|
|
1334
|
+
minor: require_minor$2(),
|
|
1335
|
+
patch: require_patch$2(),
|
|
1336
|
+
prerelease: require_prerelease$2(),
|
|
1337
|
+
compare: require_compare$2(),
|
|
1338
|
+
rcompare: require_rcompare$2(),
|
|
1339
|
+
compareLoose: require_compare_loose$2(),
|
|
1340
|
+
compareBuild: require_compare_build$2(),
|
|
1341
|
+
sort: require_sort$3(),
|
|
1342
|
+
rsort: require_rsort$2(),
|
|
1343
|
+
gt: require_gt$2(),
|
|
1344
|
+
lt: require_lt$2(),
|
|
1345
|
+
eq: require_eq$3(),
|
|
1346
|
+
neq: require_neq$2(),
|
|
1347
|
+
gte: require_gte$2(),
|
|
1348
|
+
lte: require_lte$2(),
|
|
1349
|
+
cmp: require_cmp$2(),
|
|
1350
|
+
coerce: require_coerce$2(),
|
|
1351
|
+
Comparator: require_comparator$2(),
|
|
1352
|
+
Range: require_range$2(),
|
|
1353
|
+
satisfies: require_satisfies$2(),
|
|
1354
|
+
toComparators: require_to_comparators$2(),
|
|
1355
|
+
maxSatisfying: require_max_satisfying$2(),
|
|
1356
|
+
minSatisfying: require_min_satisfying$2(),
|
|
1357
|
+
minVersion: require_min_version$2(),
|
|
1358
|
+
validRange: require_valid$4(),
|
|
1359
|
+
outside: require_outside$2(),
|
|
1360
|
+
gtr: require_gtr$2(),
|
|
1361
|
+
ltr: require_ltr$2(),
|
|
1362
|
+
intersects: require_intersects$2(),
|
|
1363
|
+
simplifyRange: require_simplify$2(),
|
|
1364
|
+
subset: require_subset$2(),
|
|
1365
1365
|
SemVer,
|
|
1366
1366
|
re: internalRe.re,
|
|
1367
1367
|
src: internalRe.src,
|
|
@@ -1371,10 +1371,7 @@ var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1371
1371
|
compareIdentifiers: identifiers.compareIdentifiers,
|
|
1372
1372
|
rcompareIdentifiers: identifiers.rcompareIdentifiers
|
|
1373
1373
|
};
|
|
1374
|
-
}));
|
|
1375
|
-
//#endregion
|
|
1376
|
-
//#region ../../packages/migration/src/utils/object-keys.ts
|
|
1377
|
-
var import_semver = /* @__PURE__ */ __toESM(require_semver(), 1);
|
|
1374
|
+
})))(), 1);
|
|
1378
1375
|
const objectKeys = Object.keys;
|
|
1379
1376
|
//#endregion
|
|
1380
1377
|
//#region ../../node_modules/klona/dist/index.mjs
|
|
@@ -1583,19 +1580,6 @@ function custom(check2, message) {
|
|
|
1583
1580
|
}
|
|
1584
1581
|
};
|
|
1585
1582
|
}
|
|
1586
|
-
function lazy(getter) {
|
|
1587
|
-
return {
|
|
1588
|
-
kind: "schema",
|
|
1589
|
-
type: "lazy",
|
|
1590
|
-
reference: lazy,
|
|
1591
|
-
expects: "unknown",
|
|
1592
|
-
async: false,
|
|
1593
|
-
getter,
|
|
1594
|
-
_run(dataset, config2) {
|
|
1595
|
-
return this.getter(dataset.value)._run(dataset, config2);
|
|
1596
|
-
}
|
|
1597
|
-
};
|
|
1598
|
-
}
|
|
1599
1583
|
function literal(literal_, message) {
|
|
1600
1584
|
return {
|
|
1601
1585
|
kind: "schema",
|
|
@@ -1939,7 +1923,7 @@ var Migrator = class {
|
|
|
1939
1923
|
}
|
|
1940
1924
|
getVersions() {
|
|
1941
1925
|
const keys = objectKeys(this.migrations);
|
|
1942
|
-
return import_semver.sort(keys);
|
|
1926
|
+
return import_semver$1.sort(keys);
|
|
1943
1927
|
}
|
|
1944
1928
|
async migrate(_state, options) {
|
|
1945
1929
|
const state = _state ?? this.defaultValue;
|
|
@@ -1971,11 +1955,11 @@ var Migrator = class {
|
|
|
1971
1955
|
return finalState;
|
|
1972
1956
|
}
|
|
1973
1957
|
tryCoerce(version) {
|
|
1974
|
-
return this.coerce ? (0, import_semver.coerce)(version)?.version ?? version : version;
|
|
1958
|
+
return this.coerce ? (0, import_semver$1.coerce)(version)?.version ?? version : version;
|
|
1975
1959
|
}
|
|
1976
1960
|
needMigration(version) {
|
|
1977
1961
|
const newVersion = this.tryCoerce(version);
|
|
1978
|
-
return import_semver.lt(newVersion, this.current);
|
|
1962
|
+
return import_semver$1.lt(newVersion, this.current);
|
|
1979
1963
|
}
|
|
1980
1964
|
};
|
|
1981
1965
|
//#endregion
|
|
@@ -1992,12 +1976,74 @@ const createMigrator = () => {
|
|
|
1992
1976
|
};
|
|
1993
1977
|
//#endregion
|
|
1994
1978
|
//#region ../../packages/shared/src/config/migrators.ts
|
|
1979
|
+
const DEFAULT_PLUGINS = [
|
|
1980
|
+
{
|
|
1981
|
+
name: "@pipelab/plugin-construct",
|
|
1982
|
+
enabled: true,
|
|
1983
|
+
description: "Construct 3 export & packaging"
|
|
1984
|
+
},
|
|
1985
|
+
{
|
|
1986
|
+
name: "@pipelab/plugin-filesystem",
|
|
1987
|
+
enabled: true,
|
|
1988
|
+
description: "Filesystem utilities"
|
|
1989
|
+
},
|
|
1990
|
+
{
|
|
1991
|
+
name: "@pipelab/plugin-system",
|
|
1992
|
+
enabled: true,
|
|
1993
|
+
description: "System & shell commands"
|
|
1994
|
+
},
|
|
1995
|
+
{
|
|
1996
|
+
name: "@pipelab/plugin-steam",
|
|
1997
|
+
enabled: true,
|
|
1998
|
+
description: "Steam publishing"
|
|
1999
|
+
},
|
|
2000
|
+
{
|
|
2001
|
+
name: "@pipelab/plugin-itch",
|
|
2002
|
+
enabled: true,
|
|
2003
|
+
description: "Itch.io publishing"
|
|
2004
|
+
},
|
|
2005
|
+
{
|
|
2006
|
+
name: "@pipelab/plugin-electron",
|
|
2007
|
+
enabled: true,
|
|
2008
|
+
description: "Electron packaging"
|
|
2009
|
+
},
|
|
2010
|
+
{
|
|
2011
|
+
name: "@pipelab/plugin-discord",
|
|
2012
|
+
enabled: true,
|
|
2013
|
+
description: "Discord Rich Presence"
|
|
2014
|
+
},
|
|
2015
|
+
{
|
|
2016
|
+
name: "@pipelab/plugin-poki",
|
|
2017
|
+
enabled: true,
|
|
2018
|
+
description: "Poki publishing"
|
|
2019
|
+
},
|
|
2020
|
+
{
|
|
2021
|
+
name: "@pipelab/plugin-nvpatch",
|
|
2022
|
+
enabled: true,
|
|
2023
|
+
description: "NW.js patching"
|
|
2024
|
+
},
|
|
2025
|
+
{
|
|
2026
|
+
name: "@pipelab/plugin-tauri",
|
|
2027
|
+
enabled: true,
|
|
2028
|
+
description: "Tauri packaging"
|
|
2029
|
+
},
|
|
2030
|
+
{
|
|
2031
|
+
name: "@pipelab/plugin-minify",
|
|
2032
|
+
enabled: true,
|
|
2033
|
+
description: "Asset minification"
|
|
2034
|
+
},
|
|
2035
|
+
{
|
|
2036
|
+
name: "@pipelab/plugin-netlify",
|
|
2037
|
+
enabled: true,
|
|
2038
|
+
description: "Netlify deployment"
|
|
2039
|
+
}
|
|
2040
|
+
];
|
|
1995
2041
|
const createMigration = (config) => createMigration$1(config);
|
|
1996
2042
|
const settingsMigratorInternal = createMigrator();
|
|
1997
2043
|
const defaultAppSettings = settingsMigratorInternal.createDefault({
|
|
1998
2044
|
locale: "en-US",
|
|
1999
2045
|
theme: "light",
|
|
2000
|
-
version: "
|
|
2046
|
+
version: "8.0.0",
|
|
2001
2047
|
autosave: true,
|
|
2002
2048
|
agents: [],
|
|
2003
2049
|
tours: {
|
|
@@ -2014,7 +2060,9 @@ const defaultAppSettings = settingsMigratorInternal.createDefault({
|
|
|
2014
2060
|
enabled: false,
|
|
2015
2061
|
maxEntries: 50,
|
|
2016
2062
|
maxAge: 30
|
|
2017
|
-
} }
|
|
2063
|
+
} },
|
|
2064
|
+
plugins: DEFAULT_PLUGINS,
|
|
2065
|
+
isInternalMigrationBannerClosed: false
|
|
2018
2066
|
});
|
|
2019
2067
|
settingsMigratorInternal.createMigrations({
|
|
2020
2068
|
defaultValue: defaultAppSettings,
|
|
@@ -2065,19 +2113,22 @@ settingsMigratorInternal.createMigrations({
|
|
|
2065
2113
|
createMigration({
|
|
2066
2114
|
version: "6.0.0",
|
|
2067
2115
|
up: (state) => {
|
|
2116
|
+
const { cacheFolder: _, clearTemporaryFoldersOnPipelineEnd: __, ...rest } = state;
|
|
2068
2117
|
return {
|
|
2069
|
-
...
|
|
2118
|
+
...rest,
|
|
2070
2119
|
agents: [],
|
|
2071
2120
|
buildHistory: { retentionPolicy: {
|
|
2072
2121
|
enabled: false,
|
|
2073
2122
|
maxEntries: 50,
|
|
2074
2123
|
maxAge: 30
|
|
2075
|
-
} }
|
|
2124
|
+
} },
|
|
2125
|
+
plugins: DEFAULT_PLUGINS,
|
|
2126
|
+
isInternalMigrationBannerClosed: false
|
|
2076
2127
|
};
|
|
2077
2128
|
}
|
|
2078
2129
|
}),
|
|
2079
2130
|
createMigration({
|
|
2080
|
-
version: "
|
|
2131
|
+
version: "8.0.0",
|
|
2081
2132
|
up: finalVersion
|
|
2082
2133
|
})
|
|
2083
2134
|
]
|
|
@@ -2128,8 +2179,7 @@ const savedFileDefaultValue = savedFileMigratorInternal.createDefault({
|
|
|
2128
2179
|
description: "",
|
|
2129
2180
|
name: "",
|
|
2130
2181
|
variables: [],
|
|
2131
|
-
|
|
2132
|
-
version: "4.0.0"
|
|
2182
|
+
version: "5.0.0"
|
|
2133
2183
|
});
|
|
2134
2184
|
savedFileMigratorInternal.createMigrations({
|
|
2135
2185
|
defaultValue: savedFileDefaultValue,
|
|
@@ -2192,10 +2242,63 @@ savedFileMigratorInternal.createMigrations({
|
|
|
2192
2242
|
}),
|
|
2193
2243
|
createMigration({
|
|
2194
2244
|
version: "4.0.0",
|
|
2245
|
+
up: (_state) => {
|
|
2246
|
+
const state = _state;
|
|
2247
|
+
if (state.type === "simple") return {
|
|
2248
|
+
name: state.name,
|
|
2249
|
+
description: state.description,
|
|
2250
|
+
canvas: {
|
|
2251
|
+
blocks: [],
|
|
2252
|
+
triggers: []
|
|
2253
|
+
},
|
|
2254
|
+
variables: []
|
|
2255
|
+
};
|
|
2256
|
+
const migrateBlock = (block, pluginsMap) => {
|
|
2257
|
+
if (!block) return;
|
|
2258
|
+
if (block.origin?.pluginId) {
|
|
2259
|
+
block.origin.pluginId = getStrictPluginId(block.origin.pluginId);
|
|
2260
|
+
block.origin.version = pluginsMap[block.origin.pluginId] ?? "latest";
|
|
2261
|
+
}
|
|
2262
|
+
};
|
|
2263
|
+
const normalizedPlugins = {};
|
|
2264
|
+
if (state.plugins) for (const [key, val] of Object.entries(state.plugins)) normalizedPlugins[getStrictPluginId(key)] = val;
|
|
2265
|
+
if (state.canvas) {
|
|
2266
|
+
for (const block of state.canvas.blocks ?? []) migrateBlock(block, normalizedPlugins);
|
|
2267
|
+
for (const trigger of state.canvas.triggers ?? []) migrateBlock(trigger, normalizedPlugins);
|
|
2268
|
+
}
|
|
2269
|
+
const { plugins: _dropped, type: _type, ...rest } = state;
|
|
2270
|
+
return rest;
|
|
2271
|
+
}
|
|
2272
|
+
}),
|
|
2273
|
+
createMigration({
|
|
2274
|
+
version: "5.0.0",
|
|
2195
2275
|
up: finalVersion
|
|
2196
2276
|
})
|
|
2197
2277
|
]
|
|
2198
2278
|
});
|
|
2279
|
+
const LEGACY_ID_MAP = {
|
|
2280
|
+
construct: "@pipelab/plugin-construct",
|
|
2281
|
+
filesystem: "@pipelab/plugin-filesystem",
|
|
2282
|
+
system: "@pipelab/plugin-system",
|
|
2283
|
+
steam: "@pipelab/plugin-steam",
|
|
2284
|
+
itch: "@pipelab/plugin-itch",
|
|
2285
|
+
electron: "@pipelab/plugin-electron",
|
|
2286
|
+
discord: "@pipelab/plugin-discord",
|
|
2287
|
+
dicord: "@pipelab/plugin-discord",
|
|
2288
|
+
"@pipelab/plugin-dicord": "@pipelab/plugin-discord",
|
|
2289
|
+
poki: "@pipelab/plugin-poki",
|
|
2290
|
+
nvpatch: "@pipelab/plugin-nvpatch",
|
|
2291
|
+
tauri: "@pipelab/plugin-tauri",
|
|
2292
|
+
minify: "@pipelab/plugin-minify",
|
|
2293
|
+
netlify: "@pipelab/plugin-netlify"
|
|
2294
|
+
};
|
|
2295
|
+
const getStrictPluginId = (pluginId) => {
|
|
2296
|
+
if (!pluginId) return pluginId;
|
|
2297
|
+
if (LEGACY_ID_MAP[pluginId]) return LEGACY_ID_MAP[pluginId];
|
|
2298
|
+
if (pluginId.startsWith("@") || pluginId.includes("/") || pluginId.startsWith("pipelab-plugin-")) return pluginId;
|
|
2299
|
+
const prefixed = `@pipelab/plugin-${pluginId}`;
|
|
2300
|
+
return LEGACY_ID_MAP[prefixed] || prefixed;
|
|
2301
|
+
};
|
|
2199
2302
|
object({
|
|
2200
2303
|
cacheFolder: string(),
|
|
2201
2304
|
theme: union([literal("light"), literal("dark")]),
|
|
@@ -2308,6 +2411,45 @@ object({
|
|
|
2308
2411
|
maxAge: number()
|
|
2309
2412
|
}) })
|
|
2310
2413
|
});
|
|
2414
|
+
object({
|
|
2415
|
+
theme: union([literal("light"), literal("dark")]),
|
|
2416
|
+
version: literal("8.0.0"),
|
|
2417
|
+
locale: union([
|
|
2418
|
+
literal("en-US"),
|
|
2419
|
+
literal("fr-FR"),
|
|
2420
|
+
literal("pt-BR"),
|
|
2421
|
+
literal("zh-CN"),
|
|
2422
|
+
literal("es-ES"),
|
|
2423
|
+
literal("de-DE")
|
|
2424
|
+
]),
|
|
2425
|
+
tours: object({
|
|
2426
|
+
dashboard: object({
|
|
2427
|
+
step: number(),
|
|
2428
|
+
completed: boolean()
|
|
2429
|
+
}),
|
|
2430
|
+
editor: object({
|
|
2431
|
+
step: number(),
|
|
2432
|
+
completed: boolean()
|
|
2433
|
+
})
|
|
2434
|
+
}),
|
|
2435
|
+
autosave: boolean(),
|
|
2436
|
+
agents: array(object({
|
|
2437
|
+
id: string(),
|
|
2438
|
+
name: string(),
|
|
2439
|
+
url: string()
|
|
2440
|
+
})),
|
|
2441
|
+
buildHistory: object({ retentionPolicy: object({
|
|
2442
|
+
enabled: boolean(),
|
|
2443
|
+
maxEntries: number(),
|
|
2444
|
+
maxAge: number()
|
|
2445
|
+
}) }),
|
|
2446
|
+
plugins: array(object({
|
|
2447
|
+
name: string(),
|
|
2448
|
+
enabled: boolean(),
|
|
2449
|
+
description: string()
|
|
2450
|
+
})),
|
|
2451
|
+
isInternalMigrationBannerClosed: optional(boolean(), false)
|
|
2452
|
+
});
|
|
2311
2453
|
//#endregion
|
|
2312
2454
|
//#region ../../node_modules/tslog/dist/esm/prettyLogStyles.js
|
|
2313
2455
|
const prettyLogStyles = {
|
|
@@ -2827,7 +2969,8 @@ const useLogger = () => {
|
|
|
2827
2969
|
//#region ../../packages/shared/src/model.ts
|
|
2828
2970
|
const OriginValidator = object({
|
|
2829
2971
|
pluginId: string(),
|
|
2830
|
-
nodeId: string()
|
|
2972
|
+
nodeId: string(),
|
|
2973
|
+
version: pipe(optional(string()), description("Pinned version of the plugin for this block. Falls back to \"latest\" when absent."))
|
|
2831
2974
|
});
|
|
2832
2975
|
const BlockActionValidatorV1 = object({
|
|
2833
2976
|
type: literal("action"),
|
|
@@ -2848,21 +2991,6 @@ const BlockActionValidatorV3 = object({
|
|
|
2848
2991
|
})),
|
|
2849
2992
|
origin: OriginValidator
|
|
2850
2993
|
});
|
|
2851
|
-
object({
|
|
2852
|
-
type: literal("condition"),
|
|
2853
|
-
uid: string(),
|
|
2854
|
-
origin: OriginValidator,
|
|
2855
|
-
params: record(string(), any()),
|
|
2856
|
-
branchTrue: lazy(() => array(BlockValidator)),
|
|
2857
|
-
branchFalse: lazy(() => array(BlockValidator))
|
|
2858
|
-
});
|
|
2859
|
-
object({
|
|
2860
|
-
type: literal("loop"),
|
|
2861
|
-
uid: string(),
|
|
2862
|
-
origin: OriginValidator,
|
|
2863
|
-
params: record(string(), any()),
|
|
2864
|
-
children: lazy(() => array(BlockValidator))
|
|
2865
|
-
});
|
|
2866
2994
|
const BlockEventValidator = object({
|
|
2867
2995
|
type: literal("event"),
|
|
2868
2996
|
uid: string(),
|
|
@@ -2878,7 +3006,6 @@ object({
|
|
|
2878
3006
|
const BlockValidatorV1 = variant("type", [BlockActionValidatorV1, BlockEventValidator]);
|
|
2879
3007
|
const BlockValidatorV2 = variant("type", [BlockActionValidatorV1]);
|
|
2880
3008
|
const BlockValidatorV3 = variant("type", [BlockActionValidatorV3]);
|
|
2881
|
-
const BlockValidator = BlockValidatorV3;
|
|
2882
3009
|
const CanvasValidatorV1 = object({ blocks: array(BlockValidatorV1) });
|
|
2883
3010
|
const CanvasValidatorV2 = object({
|
|
2884
3011
|
blocks: array(BlockValidatorV2),
|
|
@@ -2910,18 +3037,59 @@ object({
|
|
|
2910
3037
|
canvas: CanvasValidatorV3,
|
|
2911
3038
|
variables: array(VariableValidatorV1)
|
|
2912
3039
|
});
|
|
2913
|
-
|
|
3040
|
+
const SavedFileDefaultValidatorV4 = object({
|
|
2914
3041
|
version: literal("4.0.0"),
|
|
2915
3042
|
type: literal("default"),
|
|
2916
3043
|
name: string(),
|
|
2917
3044
|
description: string(),
|
|
3045
|
+
plugins: optional(record(string(), string())),
|
|
2918
3046
|
canvas: CanvasValidatorV3,
|
|
2919
3047
|
variables: array(VariableValidatorV1)
|
|
2920
|
-
})
|
|
3048
|
+
});
|
|
3049
|
+
const SavedFileSimpleValidatorV4 = object({
|
|
2921
3050
|
version: literal("4.0.0"),
|
|
2922
3051
|
type: literal("simple"),
|
|
2923
3052
|
name: string(),
|
|
2924
3053
|
description: string(),
|
|
3054
|
+
plugins: optional(record(string(), string())),
|
|
3055
|
+
source: object({
|
|
3056
|
+
type: union([
|
|
3057
|
+
literal("c3-html"),
|
|
3058
|
+
literal("c3-nwjs"),
|
|
3059
|
+
literal("godot"),
|
|
3060
|
+
literal("html")
|
|
3061
|
+
]),
|
|
3062
|
+
path: string()
|
|
3063
|
+
}),
|
|
3064
|
+
packaging: object({ enabled: boolean() }),
|
|
3065
|
+
publishing: object({
|
|
3066
|
+
steam: object({
|
|
3067
|
+
enabled: boolean(),
|
|
3068
|
+
appId: optional(string())
|
|
3069
|
+
}),
|
|
3070
|
+
itch: object({
|
|
3071
|
+
enabled: boolean(),
|
|
3072
|
+
project: optional(string())
|
|
3073
|
+
}),
|
|
3074
|
+
poki: object({
|
|
3075
|
+
enabled: boolean(),
|
|
3076
|
+
gameId: optional(string())
|
|
3077
|
+
})
|
|
3078
|
+
})
|
|
3079
|
+
});
|
|
3080
|
+
object({
|
|
3081
|
+
version: literal("5.0.0"),
|
|
3082
|
+
name: string(),
|
|
3083
|
+
description: string(),
|
|
3084
|
+
canvas: CanvasValidatorV3,
|
|
3085
|
+
variables: array(VariableValidatorV1)
|
|
3086
|
+
});
|
|
3087
|
+
object({
|
|
3088
|
+
version: literal("5.0.0"),
|
|
3089
|
+
type: literal("simple"),
|
|
3090
|
+
name: string(),
|
|
3091
|
+
description: string(),
|
|
3092
|
+
plugins: record(string(), string()),
|
|
2925
3093
|
source: object({
|
|
2926
3094
|
type: union([
|
|
2927
3095
|
literal("c3-html"),
|
|
@@ -2946,7 +3114,8 @@ union([object({
|
|
|
2946
3114
|
gameId: optional(string())
|
|
2947
3115
|
})
|
|
2948
3116
|
})
|
|
2949
|
-
})
|
|
3117
|
+
});
|
|
3118
|
+
union([SavedFileDefaultValidatorV4, SavedFileSimpleValidatorV4]);
|
|
2950
3119
|
//#endregion
|
|
2951
3120
|
//#region ../../node_modules/vue/node_modules/@vue/shared/dist/shared.cjs.prod.js
|
|
2952
3121
|
/**
|
|
@@ -45233,7 +45402,7 @@ function findProjectRoot(startDir) {
|
|
|
45233
45402
|
const projectRoot = findProjectRoot(_dirname);
|
|
45234
45403
|
//#endregion
|
|
45235
45404
|
//#region ../../packages/core-node/node_modules/ws/lib/constants.js
|
|
45236
|
-
var require_constants$
|
|
45405
|
+
var require_constants$9 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
45237
45406
|
const BINARY_TYPES = [
|
|
45238
45407
|
"nodebuffer",
|
|
45239
45408
|
"arraybuffer",
|
|
@@ -45256,7 +45425,7 @@ var require_constants$7 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
45256
45425
|
//#endregion
|
|
45257
45426
|
//#region ../../packages/core-node/node_modules/ws/lib/buffer-util.js
|
|
45258
45427
|
var require_buffer_util = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
45259
|
-
const { EMPTY_BUFFER } = require_constants$
|
|
45428
|
+
const { EMPTY_BUFFER } = require_constants$9();
|
|
45260
45429
|
const FastBuffer = Buffer[Symbol.species];
|
|
45261
45430
|
/**
|
|
45262
45431
|
* Merges an array of buffers into a new buffer.
|
|
@@ -45410,7 +45579,7 @@ var require_permessage_deflate = /* @__PURE__ */ __commonJSMin(((exports, module
|
|
|
45410
45579
|
const zlib$2 = __require("zlib");
|
|
45411
45580
|
const bufferUtil = require_buffer_util();
|
|
45412
45581
|
const Limiter = require_limiter();
|
|
45413
|
-
const { kStatusCode } = require_constants$
|
|
45582
|
+
const { kStatusCode } = require_constants$9();
|
|
45414
45583
|
const FastBuffer = Buffer[Symbol.species];
|
|
45415
45584
|
const TRAILER = Buffer.from([
|
|
45416
45585
|
0,
|
|
@@ -45741,7 +45910,7 @@ var require_permessage_deflate = /* @__PURE__ */ __commonJSMin(((exports, module
|
|
|
45741
45910
|
//#region ../../packages/core-node/node_modules/ws/lib/validation.js
|
|
45742
45911
|
var require_validation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
45743
45912
|
const { isUtf8 } = __require("buffer");
|
|
45744
|
-
const { hasBlob } = require_constants$
|
|
45913
|
+
const { hasBlob } = require_constants$9();
|
|
45745
45914
|
const tokenChars = [
|
|
45746
45915
|
0,
|
|
45747
45916
|
0,
|
|
@@ -45938,7 +46107,7 @@ var require_validation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
45938
46107
|
var require_receiver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
45939
46108
|
const { Writable: Writable$2 } = __require("stream");
|
|
45940
46109
|
const PerMessageDeflate = require_permessage_deflate();
|
|
45941
|
-
const { BINARY_TYPES, EMPTY_BUFFER, kStatusCode, kWebSocket } = require_constants$
|
|
46110
|
+
const { BINARY_TYPES, EMPTY_BUFFER, kStatusCode, kWebSocket } = require_constants$9();
|
|
45942
46111
|
const { concat, toArrayBuffer, unmask } = require_buffer_util();
|
|
45943
46112
|
const { isValidStatusCode, isValidUTF8 } = require_validation();
|
|
45944
46113
|
const FastBuffer = Buffer[Symbol.species];
|
|
@@ -46386,7 +46555,7 @@ var require_sender = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
46386
46555
|
const { Duplex: Duplex$4 } = __require("stream");
|
|
46387
46556
|
const { randomFillSync } = __require("crypto");
|
|
46388
46557
|
const PerMessageDeflate = require_permessage_deflate();
|
|
46389
|
-
const { EMPTY_BUFFER, kWebSocket, NOOP } = require_constants$
|
|
46558
|
+
const { EMPTY_BUFFER, kWebSocket, NOOP } = require_constants$9();
|
|
46390
46559
|
const { isBlob, isValidStatusCode } = require_validation();
|
|
46391
46560
|
const { mask: applyMask, toBuffer } = require_buffer_util();
|
|
46392
46561
|
const kByteLength = Symbol("kByteLength");
|
|
@@ -46874,7 +47043,7 @@ var require_sender = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
46874
47043
|
//#endregion
|
|
46875
47044
|
//#region ../../packages/core-node/node_modules/ws/lib/event-target.js
|
|
46876
47045
|
var require_event_target = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
46877
|
-
const { kForOnEventAttribute, kListener } = require_constants$
|
|
47046
|
+
const { kForOnEventAttribute, kListener } = require_constants$9();
|
|
46878
47047
|
const kCode = Symbol("kCode");
|
|
46879
47048
|
const kData = Symbol("kData");
|
|
46880
47049
|
const kError = Symbol("kError");
|
|
@@ -47241,7 +47410,7 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
47241
47410
|
const Receiver = require_receiver();
|
|
47242
47411
|
const Sender = require_sender();
|
|
47243
47412
|
const { isBlob } = require_validation();
|
|
47244
|
-
const { BINARY_TYPES, EMPTY_BUFFER, GUID, kForOnEventAttribute, kListener, kStatusCode, kWebSocket, NOOP } = require_constants$
|
|
47413
|
+
const { BINARY_TYPES, EMPTY_BUFFER, GUID, kForOnEventAttribute, kListener, kStatusCode, kWebSocket, NOOP } = require_constants$9();
|
|
47245
47414
|
const { EventTarget: { addEventListener, removeEventListener } } = require_event_target();
|
|
47246
47415
|
const { format, parse } = require_extension();
|
|
47247
47416
|
const { toBuffer } = require_buffer_util();
|
|
@@ -48357,7 +48526,7 @@ var require_websocket_server = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
48357
48526
|
const PerMessageDeflate = require_permessage_deflate();
|
|
48358
48527
|
const subprotocol = require_subprotocol();
|
|
48359
48528
|
const WebSocket = require_websocket();
|
|
48360
|
-
const { GUID, kWebSocket } = require_constants$
|
|
48529
|
+
const { GUID, kWebSocket } = require_constants$9();
|
|
48361
48530
|
const keyRegex = /^[+/0-9A-Za-z]{22}==$/;
|
|
48362
48531
|
const RUNNING = 0;
|
|
48363
48532
|
const CLOSING = 1;
|
|
@@ -50022,7 +50191,7 @@ var require_readShebang = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
50022
50191
|
}));
|
|
50023
50192
|
//#endregion
|
|
50024
50193
|
//#region ../../node_modules/cross-spawn/lib/parse.js
|
|
50025
|
-
var require_parse$
|
|
50194
|
+
var require_parse$5 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
50026
50195
|
const path$32 = __require("path");
|
|
50027
50196
|
const resolveCommand = require_resolveCommand();
|
|
50028
50197
|
const escape = require_escape$4();
|
|
@@ -50124,7 +50293,7 @@ var require_enoent = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
50124
50293
|
//#region ../../node_modules/npm-run-path/node_modules/path-key/index.js
|
|
50125
50294
|
var import_cross_spawn = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
50126
50295
|
const cp$1 = __require("child_process");
|
|
50127
|
-
const parse = require_parse$
|
|
50296
|
+
const parse = require_parse$5();
|
|
50128
50297
|
const enoent = require_enoent();
|
|
50129
50298
|
function spawn(command, args, options) {
|
|
50130
50299
|
const parsed = parse(command, args, options);
|
|
@@ -55661,7 +55830,7 @@ while (this[FLUSHCHUNK](this[BUFFERSHIFT]()) && this[BUFFER].length);
|
|
|
55661
55830
|
}));
|
|
55662
55831
|
//#endregion
|
|
55663
55832
|
//#region ../../node_modules/tar/node_modules/minizlib/constants.js
|
|
55664
|
-
var require_constants$
|
|
55833
|
+
var require_constants$8 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
55665
55834
|
const realZlibConstants$1 = __require("zlib").constants || (
|
|
55666
55835
|
/* istanbul ignore next */ { ZLIB_VERNUM: 4736 });
|
|
55667
55836
|
module.exports = Object.freeze(Object.assign(Object.create(null), {
|
|
@@ -56209,7 +56378,7 @@ var require_minizlib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
56209
56378
|
const assert$2 = __require("assert");
|
|
56210
56379
|
const Buffer$8 = __require("buffer").Buffer;
|
|
56211
56380
|
const realZlib$1 = __require("zlib");
|
|
56212
|
-
const constants = exports.constants = require_constants$
|
|
56381
|
+
const constants = exports.constants = require_constants$8();
|
|
56213
56382
|
const Minipass = require_minipass$3();
|
|
56214
56383
|
const OriginalBufferConcat = Buffer$8.concat;
|
|
56215
56384
|
const _superWrite = Symbol("_superWrite");
|
|
@@ -58666,7 +58835,7 @@ var require_fs_minipass = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
58666
58835
|
}));
|
|
58667
58836
|
//#endregion
|
|
58668
58837
|
//#region ../../node_modules/tar/lib/parse.js
|
|
58669
|
-
var require_parse$
|
|
58838
|
+
var require_parse$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
58670
58839
|
const warner = require_warn_mixin();
|
|
58671
58840
|
const Header = require_header();
|
|
58672
58841
|
const EE$10 = __require("events");
|
|
@@ -59014,7 +59183,7 @@ while (this[PROCESSENTRY](this[QUEUE].shift()));
|
|
|
59014
59183
|
//#region ../../node_modules/tar/lib/list.js
|
|
59015
59184
|
var require_list = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
59016
59185
|
const hlo = require_high_level_opt();
|
|
59017
|
-
const Parser = require_parse$
|
|
59186
|
+
const Parser = require_parse$4();
|
|
59018
59187
|
const fs$29 = __require("fs");
|
|
59019
59188
|
const fsm = require_fs_minipass();
|
|
59020
59189
|
const path$28 = __require("path");
|
|
@@ -59899,7 +60068,7 @@ var require_get_write_flag = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
59899
60068
|
//#region ../../node_modules/tar/lib/unpack.js
|
|
59900
60069
|
var require_unpack = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
59901
60070
|
const assert = __require("assert");
|
|
59902
|
-
const Parser = require_parse$
|
|
60071
|
+
const Parser = require_parse$4();
|
|
59903
60072
|
const fs$23 = __require("fs");
|
|
59904
60073
|
const fsm = require_fs_minipass();
|
|
59905
60074
|
const path$23 = __require("path");
|
|
@@ -60557,7 +60726,7 @@ var require_tar$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
60557
60726
|
exports.x = exports.extract = require_extract$1();
|
|
60558
60727
|
exports.Pack = require_pack$1();
|
|
60559
60728
|
exports.Unpack = require_unpack();
|
|
60560
|
-
exports.Parse = require_parse$
|
|
60729
|
+
exports.Parse = require_parse$4();
|
|
60561
60730
|
exports.ReadEntry = require_read_entry();
|
|
60562
60731
|
exports.WriteEntry = require_write_entry();
|
|
60563
60732
|
exports.Header = require_header();
|
|
@@ -71152,7 +71321,7 @@ var require__baseRest = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
71152
71321
|
}));
|
|
71153
71322
|
//#endregion
|
|
71154
71323
|
//#region ../../node_modules/lodash/eq.js
|
|
71155
|
-
var require_eq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
71324
|
+
var require_eq$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
71156
71325
|
/**
|
|
71157
71326
|
* Performs a
|
|
71158
71327
|
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
@@ -71285,7 +71454,7 @@ var require__isIndex = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
71285
71454
|
//#endregion
|
|
71286
71455
|
//#region ../../node_modules/lodash/_isIterateeCall.js
|
|
71287
71456
|
var require__isIterateeCall = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
71288
|
-
var eq = require_eq(), isArrayLike = require_isArrayLike(), isIndex = require__isIndex(), isObject = require_isObject();
|
|
71457
|
+
var eq = require_eq$2(), isArrayLike = require_isArrayLike(), isIndex = require__isIndex(), isObject = require_isObject();
|
|
71289
71458
|
/**
|
|
71290
71459
|
* Checks if the given arguments are from an iteratee call.
|
|
71291
71460
|
*
|
|
@@ -71606,7 +71775,7 @@ var require_keysIn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
71606
71775
|
//#endregion
|
|
71607
71776
|
//#region ../../node_modules/lodash/defaults.js
|
|
71608
71777
|
var require_defaults = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
71609
|
-
var baseRest = require__baseRest(), eq = require_eq(), isIterateeCall = require__isIterateeCall(), keysIn = require_keysIn();
|
|
71778
|
+
var baseRest = require__baseRest(), eq = require_eq$2(), isIterateeCall = require__isIterateeCall(), keysIn = require_keysIn();
|
|
71610
71779
|
/** Used for built-in method references. */
|
|
71611
71780
|
var objectProto = Object.prototype;
|
|
71612
71781
|
/** Used to check objects for own properties. */
|
|
@@ -77228,7 +77397,7 @@ var require__listCacheClear = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
77228
77397
|
//#endregion
|
|
77229
77398
|
//#region ../../node_modules/lodash/_assocIndexOf.js
|
|
77230
77399
|
var require__assocIndexOf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
77231
|
-
var eq = require_eq();
|
|
77400
|
+
var eq = require_eq$2();
|
|
77232
77401
|
/**
|
|
77233
77402
|
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
77234
77403
|
*
|
|
@@ -85160,7 +85329,7 @@ var require_unix_stat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
85160
85329
|
}));
|
|
85161
85330
|
//#endregion
|
|
85162
85331
|
//#region ../../node_modules/compress-commons/lib/archivers/zip/constants.js
|
|
85163
|
-
var require_constants$
|
|
85332
|
+
var require_constants$7 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
85164
85333
|
/**
|
|
85165
85334
|
* node-compress-commons
|
|
85166
85335
|
*
|
|
@@ -85235,7 +85404,7 @@ var require_zip_archive_entry = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
85235
85404
|
var ArchiveEntry = require_archive_entry();
|
|
85236
85405
|
var GeneralPurposeBit = require_general_purpose_bit();
|
|
85237
85406
|
var UnixStat = require_unix_stat();
|
|
85238
|
-
var constants = require_constants$
|
|
85407
|
+
var constants = require_constants$7();
|
|
85239
85408
|
var zipUtil = require_util$3();
|
|
85240
85409
|
var ZipArchiveEntry = module.exports = function(name) {
|
|
85241
85410
|
if (!(this instanceof ZipArchiveEntry)) return new ZipArchiveEntry(name);
|
|
@@ -85869,7 +86038,7 @@ var require_zip_archive_output_stream = /* @__PURE__ */ __commonJSMin(((exports,
|
|
|
85869
86038
|
var ArchiveOutputStream = require_archive_output_stream();
|
|
85870
86039
|
require_zip_archive_entry();
|
|
85871
86040
|
require_general_purpose_bit();
|
|
85872
|
-
var constants = require_constants$
|
|
86041
|
+
var constants = require_constants$7();
|
|
85873
86042
|
require_util$2();
|
|
85874
86043
|
var zipUtil = require_util$3();
|
|
85875
86044
|
var ZipArchiveOutputStream = module.exports = function(options) {
|
|
@@ -88366,7 +88535,7 @@ var require_extract = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
88366
88535
|
}));
|
|
88367
88536
|
//#endregion
|
|
88368
88537
|
//#region ../../node_modules/tar-stream/constants.js
|
|
88369
|
-
var require_constants$
|
|
88538
|
+
var require_constants$6 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
88370
88539
|
const constants = {
|
|
88371
88540
|
S_IFMT: 61440,
|
|
88372
88541
|
S_IFDIR: 16384,
|
|
@@ -88386,7 +88555,7 @@ var require_constants$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
88386
88555
|
var require_pack = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
88387
88556
|
const { Readable, Writable, getStreamError } = require_streamx();
|
|
88388
88557
|
const b4a = require_b4a();
|
|
88389
|
-
const constants = require_constants$
|
|
88558
|
+
const constants = require_constants$6();
|
|
88390
88559
|
const headers = require_headers$1();
|
|
88391
88560
|
const DMODE = 493;
|
|
88392
88561
|
const FMODE = 420;
|
|
@@ -89450,6 +89619,360 @@ var require_update_workspaces = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
89450
89619
|
module.exports = updateWorkspaces;
|
|
89451
89620
|
}));
|
|
89452
89621
|
//#endregion
|
|
89622
|
+
//#region ../../node_modules/semver/internal/debug.js
|
|
89623
|
+
var require_debug$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89624
|
+
module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
89625
|
+
}));
|
|
89626
|
+
//#endregion
|
|
89627
|
+
//#region ../../node_modules/semver/internal/constants.js
|
|
89628
|
+
var require_constants$5 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89629
|
+
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
89630
|
+
const MAX_LENGTH = 256;
|
|
89631
|
+
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
89632
|
+
module.exports = {
|
|
89633
|
+
MAX_LENGTH,
|
|
89634
|
+
MAX_SAFE_COMPONENT_LENGTH: 16,
|
|
89635
|
+
MAX_SAFE_BUILD_LENGTH: MAX_LENGTH - 6,
|
|
89636
|
+
MAX_SAFE_INTEGER,
|
|
89637
|
+
RELEASE_TYPES: [
|
|
89638
|
+
"major",
|
|
89639
|
+
"premajor",
|
|
89640
|
+
"minor",
|
|
89641
|
+
"preminor",
|
|
89642
|
+
"patch",
|
|
89643
|
+
"prepatch",
|
|
89644
|
+
"prerelease"
|
|
89645
|
+
],
|
|
89646
|
+
SEMVER_SPEC_VERSION,
|
|
89647
|
+
FLAG_INCLUDE_PRERELEASE: 1,
|
|
89648
|
+
FLAG_LOOSE: 2
|
|
89649
|
+
};
|
|
89650
|
+
}));
|
|
89651
|
+
//#endregion
|
|
89652
|
+
//#region ../../node_modules/semver/internal/re.js
|
|
89653
|
+
var require_re$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89654
|
+
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants$5();
|
|
89655
|
+
const debug = require_debug$1();
|
|
89656
|
+
exports = module.exports = {};
|
|
89657
|
+
const re = exports.re = [];
|
|
89658
|
+
const safeRe = exports.safeRe = [];
|
|
89659
|
+
const src = exports.src = [];
|
|
89660
|
+
const safeSrc = exports.safeSrc = [];
|
|
89661
|
+
const t = exports.t = {};
|
|
89662
|
+
let R = 0;
|
|
89663
|
+
const LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
89664
|
+
const safeRegexReplacements = [
|
|
89665
|
+
["\\s", 1],
|
|
89666
|
+
["\\d", MAX_LENGTH],
|
|
89667
|
+
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
|
|
89668
|
+
];
|
|
89669
|
+
const makeSafeRegex = (value) => {
|
|
89670
|
+
for (const [token, max] of safeRegexReplacements) value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
|
|
89671
|
+
return value;
|
|
89672
|
+
};
|
|
89673
|
+
const createToken = (name, value, isGlobal) => {
|
|
89674
|
+
const safe = makeSafeRegex(value);
|
|
89675
|
+
const index = R++;
|
|
89676
|
+
debug(name, index, value);
|
|
89677
|
+
t[name] = index;
|
|
89678
|
+
src[index] = value;
|
|
89679
|
+
safeSrc[index] = safe;
|
|
89680
|
+
re[index] = new RegExp(value, isGlobal ? "g" : void 0);
|
|
89681
|
+
safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
89682
|
+
};
|
|
89683
|
+
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
89684
|
+
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
89685
|
+
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
89686
|
+
createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
|
|
89687
|
+
createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
89688
|
+
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
|
|
89689
|
+
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
89690
|
+
createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
89691
|
+
createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
89692
|
+
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
89693
|
+
createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
|
|
89694
|
+
createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
|
|
89695
|
+
createToken("FULL", `^${src[t.FULLPLAIN]}$`);
|
|
89696
|
+
createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
|
|
89697
|
+
createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
|
|
89698
|
+
createToken("GTLT", "((?:<|>)?=?)");
|
|
89699
|
+
createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
|
89700
|
+
createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
|
|
89701
|
+
createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
|
|
89702
|
+
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
|
|
89703
|
+
createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
|
|
89704
|
+
createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
|
|
89705
|
+
createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
|
89706
|
+
createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
89707
|
+
createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
|
|
89708
|
+
createToken("COERCERTL", src[t.COERCE], true);
|
|
89709
|
+
createToken("COERCERTLFULL", src[t.COERCEFULL], true);
|
|
89710
|
+
createToken("LONETILDE", "(?:~>?)");
|
|
89711
|
+
createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
|
|
89712
|
+
exports.tildeTrimReplace = "$1~";
|
|
89713
|
+
createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
|
|
89714
|
+
createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
89715
|
+
createToken("LONECARET", "(?:\\^)");
|
|
89716
|
+
createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
|
|
89717
|
+
exports.caretTrimReplace = "$1^";
|
|
89718
|
+
createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
|
|
89719
|
+
createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
89720
|
+
createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
|
|
89721
|
+
createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
|
|
89722
|
+
createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
|
|
89723
|
+
exports.comparatorTrimReplace = "$1$2$3";
|
|
89724
|
+
createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
|
|
89725
|
+
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
|
|
89726
|
+
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
89727
|
+
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
89728
|
+
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
89729
|
+
}));
|
|
89730
|
+
//#endregion
|
|
89731
|
+
//#region ../../node_modules/semver/internal/parse-options.js
|
|
89732
|
+
var require_parse_options$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89733
|
+
const looseOption = Object.freeze({ loose: true });
|
|
89734
|
+
const emptyOpts = Object.freeze({});
|
|
89735
|
+
const parseOptions = (options) => {
|
|
89736
|
+
if (!options) return emptyOpts;
|
|
89737
|
+
if (typeof options !== "object") return looseOption;
|
|
89738
|
+
return options;
|
|
89739
|
+
};
|
|
89740
|
+
module.exports = parseOptions;
|
|
89741
|
+
}));
|
|
89742
|
+
//#endregion
|
|
89743
|
+
//#region ../../node_modules/semver/internal/identifiers.js
|
|
89744
|
+
var require_identifiers$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89745
|
+
const numeric = /^[0-9]+$/;
|
|
89746
|
+
const compareIdentifiers = (a, b) => {
|
|
89747
|
+
if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
|
|
89748
|
+
const anum = numeric.test(a);
|
|
89749
|
+
const bnum = numeric.test(b);
|
|
89750
|
+
if (anum && bnum) {
|
|
89751
|
+
a = +a;
|
|
89752
|
+
b = +b;
|
|
89753
|
+
}
|
|
89754
|
+
return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
|
|
89755
|
+
};
|
|
89756
|
+
const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
|
|
89757
|
+
module.exports = {
|
|
89758
|
+
compareIdentifiers,
|
|
89759
|
+
rcompareIdentifiers
|
|
89760
|
+
};
|
|
89761
|
+
}));
|
|
89762
|
+
//#endregion
|
|
89763
|
+
//#region ../../node_modules/semver/classes/semver.js
|
|
89764
|
+
var require_semver$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89765
|
+
const debug = require_debug$1();
|
|
89766
|
+
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants$5();
|
|
89767
|
+
const { safeRe: re, t } = require_re$1();
|
|
89768
|
+
const parseOptions = require_parse_options$1();
|
|
89769
|
+
const { compareIdentifiers } = require_identifiers$1();
|
|
89770
|
+
module.exports = class SemVer {
|
|
89771
|
+
constructor(version, options) {
|
|
89772
|
+
options = parseOptions(options);
|
|
89773
|
+
if (version instanceof SemVer) if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) return version;
|
|
89774
|
+
else version = version.version;
|
|
89775
|
+
else if (typeof version !== "string") throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
89776
|
+
if (version.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
|
|
89777
|
+
debug("SemVer", version, options);
|
|
89778
|
+
this.options = options;
|
|
89779
|
+
this.loose = !!options.loose;
|
|
89780
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
89781
|
+
const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
|
|
89782
|
+
if (!m) throw new TypeError(`Invalid Version: ${version}`);
|
|
89783
|
+
this.raw = version;
|
|
89784
|
+
this.major = +m[1];
|
|
89785
|
+
this.minor = +m[2];
|
|
89786
|
+
this.patch = +m[3];
|
|
89787
|
+
if (this.major > MAX_SAFE_INTEGER || this.major < 0) throw new TypeError("Invalid major version");
|
|
89788
|
+
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError("Invalid minor version");
|
|
89789
|
+
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError("Invalid patch version");
|
|
89790
|
+
if (!m[4]) this.prerelease = [];
|
|
89791
|
+
else this.prerelease = m[4].split(".").map((id) => {
|
|
89792
|
+
if (/^[0-9]+$/.test(id)) {
|
|
89793
|
+
const num = +id;
|
|
89794
|
+
if (num >= 0 && num < MAX_SAFE_INTEGER) return num;
|
|
89795
|
+
}
|
|
89796
|
+
return id;
|
|
89797
|
+
});
|
|
89798
|
+
this.build = m[5] ? m[5].split(".") : [];
|
|
89799
|
+
this.format();
|
|
89800
|
+
}
|
|
89801
|
+
format() {
|
|
89802
|
+
this.version = `${this.major}.${this.minor}.${this.patch}`;
|
|
89803
|
+
if (this.prerelease.length) this.version += `-${this.prerelease.join(".")}`;
|
|
89804
|
+
return this.version;
|
|
89805
|
+
}
|
|
89806
|
+
toString() {
|
|
89807
|
+
return this.version;
|
|
89808
|
+
}
|
|
89809
|
+
compare(other) {
|
|
89810
|
+
debug("SemVer.compare", this.version, this.options, other);
|
|
89811
|
+
if (!(other instanceof SemVer)) {
|
|
89812
|
+
if (typeof other === "string" && other === this.version) return 0;
|
|
89813
|
+
other = new SemVer(other, this.options);
|
|
89814
|
+
}
|
|
89815
|
+
if (other.version === this.version) return 0;
|
|
89816
|
+
return this.compareMain(other) || this.comparePre(other);
|
|
89817
|
+
}
|
|
89818
|
+
compareMain(other) {
|
|
89819
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
89820
|
+
if (this.major < other.major) return -1;
|
|
89821
|
+
if (this.major > other.major) return 1;
|
|
89822
|
+
if (this.minor < other.minor) return -1;
|
|
89823
|
+
if (this.minor > other.minor) return 1;
|
|
89824
|
+
if (this.patch < other.patch) return -1;
|
|
89825
|
+
if (this.patch > other.patch) return 1;
|
|
89826
|
+
return 0;
|
|
89827
|
+
}
|
|
89828
|
+
comparePre(other) {
|
|
89829
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
89830
|
+
if (this.prerelease.length && !other.prerelease.length) return -1;
|
|
89831
|
+
else if (!this.prerelease.length && other.prerelease.length) return 1;
|
|
89832
|
+
else if (!this.prerelease.length && !other.prerelease.length) return 0;
|
|
89833
|
+
let i = 0;
|
|
89834
|
+
do {
|
|
89835
|
+
const a = this.prerelease[i];
|
|
89836
|
+
const b = other.prerelease[i];
|
|
89837
|
+
debug("prerelease compare", i, a, b);
|
|
89838
|
+
if (a === void 0 && b === void 0) return 0;
|
|
89839
|
+
else if (b === void 0) return 1;
|
|
89840
|
+
else if (a === void 0) return -1;
|
|
89841
|
+
else if (a === b) continue;
|
|
89842
|
+
else return compareIdentifiers(a, b);
|
|
89843
|
+
} while (++i);
|
|
89844
|
+
}
|
|
89845
|
+
compareBuild(other) {
|
|
89846
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
89847
|
+
let i = 0;
|
|
89848
|
+
do {
|
|
89849
|
+
const a = this.build[i];
|
|
89850
|
+
const b = other.build[i];
|
|
89851
|
+
debug("build compare", i, a, b);
|
|
89852
|
+
if (a === void 0 && b === void 0) return 0;
|
|
89853
|
+
else if (b === void 0) return 1;
|
|
89854
|
+
else if (a === void 0) return -1;
|
|
89855
|
+
else if (a === b) continue;
|
|
89856
|
+
else return compareIdentifiers(a, b);
|
|
89857
|
+
} while (++i);
|
|
89858
|
+
}
|
|
89859
|
+
inc(release, identifier, identifierBase) {
|
|
89860
|
+
if (release.startsWith("pre")) {
|
|
89861
|
+
if (!identifier && identifierBase === false) throw new Error("invalid increment argument: identifier is empty");
|
|
89862
|
+
if (identifier) {
|
|
89863
|
+
const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
|
|
89864
|
+
if (!match || match[1] !== identifier) throw new Error(`invalid identifier: ${identifier}`);
|
|
89865
|
+
}
|
|
89866
|
+
}
|
|
89867
|
+
switch (release) {
|
|
89868
|
+
case "premajor":
|
|
89869
|
+
this.prerelease.length = 0;
|
|
89870
|
+
this.patch = 0;
|
|
89871
|
+
this.minor = 0;
|
|
89872
|
+
this.major++;
|
|
89873
|
+
this.inc("pre", identifier, identifierBase);
|
|
89874
|
+
break;
|
|
89875
|
+
case "preminor":
|
|
89876
|
+
this.prerelease.length = 0;
|
|
89877
|
+
this.patch = 0;
|
|
89878
|
+
this.minor++;
|
|
89879
|
+
this.inc("pre", identifier, identifierBase);
|
|
89880
|
+
break;
|
|
89881
|
+
case "prepatch":
|
|
89882
|
+
this.prerelease.length = 0;
|
|
89883
|
+
this.inc("patch", identifier, identifierBase);
|
|
89884
|
+
this.inc("pre", identifier, identifierBase);
|
|
89885
|
+
break;
|
|
89886
|
+
case "prerelease":
|
|
89887
|
+
if (this.prerelease.length === 0) this.inc("patch", identifier, identifierBase);
|
|
89888
|
+
this.inc("pre", identifier, identifierBase);
|
|
89889
|
+
break;
|
|
89890
|
+
case "release":
|
|
89891
|
+
if (this.prerelease.length === 0) throw new Error(`version ${this.raw} is not a prerelease`);
|
|
89892
|
+
this.prerelease.length = 0;
|
|
89893
|
+
break;
|
|
89894
|
+
case "major":
|
|
89895
|
+
if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) this.major++;
|
|
89896
|
+
this.minor = 0;
|
|
89897
|
+
this.patch = 0;
|
|
89898
|
+
this.prerelease = [];
|
|
89899
|
+
break;
|
|
89900
|
+
case "minor":
|
|
89901
|
+
if (this.patch !== 0 || this.prerelease.length === 0) this.minor++;
|
|
89902
|
+
this.patch = 0;
|
|
89903
|
+
this.prerelease = [];
|
|
89904
|
+
break;
|
|
89905
|
+
case "patch":
|
|
89906
|
+
if (this.prerelease.length === 0) this.patch++;
|
|
89907
|
+
this.prerelease = [];
|
|
89908
|
+
break;
|
|
89909
|
+
case "pre": {
|
|
89910
|
+
const base = Number(identifierBase) ? 1 : 0;
|
|
89911
|
+
if (this.prerelease.length === 0) this.prerelease = [base];
|
|
89912
|
+
else {
|
|
89913
|
+
let i = this.prerelease.length;
|
|
89914
|
+
while (--i >= 0) if (typeof this.prerelease[i] === "number") {
|
|
89915
|
+
this.prerelease[i]++;
|
|
89916
|
+
i = -2;
|
|
89917
|
+
}
|
|
89918
|
+
if (i === -1) {
|
|
89919
|
+
if (identifier === this.prerelease.join(".") && identifierBase === false) throw new Error("invalid increment argument: identifier already exists");
|
|
89920
|
+
this.prerelease.push(base);
|
|
89921
|
+
}
|
|
89922
|
+
}
|
|
89923
|
+
if (identifier) {
|
|
89924
|
+
let prerelease = [identifier, base];
|
|
89925
|
+
if (identifierBase === false) prerelease = [identifier];
|
|
89926
|
+
if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
|
|
89927
|
+
if (isNaN(this.prerelease[1])) this.prerelease = prerelease;
|
|
89928
|
+
} else this.prerelease = prerelease;
|
|
89929
|
+
}
|
|
89930
|
+
break;
|
|
89931
|
+
}
|
|
89932
|
+
default: throw new Error(`invalid increment argument: ${release}`);
|
|
89933
|
+
}
|
|
89934
|
+
this.raw = this.format();
|
|
89935
|
+
if (this.build.length) this.raw += `+${this.build.join(".")}`;
|
|
89936
|
+
return this;
|
|
89937
|
+
}
|
|
89938
|
+
};
|
|
89939
|
+
}));
|
|
89940
|
+
//#endregion
|
|
89941
|
+
//#region ../../node_modules/semver/functions/parse.js
|
|
89942
|
+
var require_parse$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89943
|
+
const SemVer = require_semver$3();
|
|
89944
|
+
const parse = (version, options, throwErrors = false) => {
|
|
89945
|
+
if (version instanceof SemVer) return version;
|
|
89946
|
+
try {
|
|
89947
|
+
return new SemVer(version, options);
|
|
89948
|
+
} catch (er) {
|
|
89949
|
+
if (!throwErrors) return null;
|
|
89950
|
+
throw er;
|
|
89951
|
+
}
|
|
89952
|
+
};
|
|
89953
|
+
module.exports = parse;
|
|
89954
|
+
}));
|
|
89955
|
+
//#endregion
|
|
89956
|
+
//#region ../../node_modules/semver/functions/valid.js
|
|
89957
|
+
var require_valid$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89958
|
+
const parse = require_parse$3();
|
|
89959
|
+
const valid = (version, options) => {
|
|
89960
|
+
const v = parse(version, options);
|
|
89961
|
+
return v ? v.version : null;
|
|
89962
|
+
};
|
|
89963
|
+
module.exports = valid;
|
|
89964
|
+
}));
|
|
89965
|
+
//#endregion
|
|
89966
|
+
//#region ../../node_modules/semver/functions/clean.js
|
|
89967
|
+
var require_clean$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89968
|
+
const parse = require_parse$3();
|
|
89969
|
+
const clean = (version, options) => {
|
|
89970
|
+
const s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
89971
|
+
return s ? s.version : null;
|
|
89972
|
+
};
|
|
89973
|
+
module.exports = clean;
|
|
89974
|
+
}));
|
|
89975
|
+
//#endregion
|
|
89453
89976
|
//#region ../../node_modules/proc-log/lib/index.js
|
|
89454
89977
|
var require_lib$29 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89455
89978
|
module.exports = {
|
|
@@ -94948,7 +95471,7 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
94948
95471
|
}));
|
|
94949
95472
|
//#endregion
|
|
94950
95473
|
//#region ../../node_modules/@npmcli/package-json/node_modules/spdx-expression-parse/parse.js
|
|
94951
|
-
var require_parse$
|
|
95474
|
+
var require_parse$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
94952
95475
|
module.exports = function(tokens) {
|
|
94953
95476
|
var index = 0;
|
|
94954
95477
|
function hasMore() {
|
|
@@ -95039,7 +95562,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
95039
95562
|
//#region ../../node_modules/@npmcli/package-json/node_modules/spdx-expression-parse/index.js
|
|
95040
95563
|
var require_spdx_expression_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
95041
95564
|
var scan = require_scan();
|
|
95042
|
-
var parse = require_parse$
|
|
95565
|
+
var parse = require_parse$2();
|
|
95043
95566
|
module.exports = function(source) {
|
|
95044
95567
|
return parse(scan(source));
|
|
95045
95568
|
};
|
|
@@ -96247,9 +96770,1026 @@ var require_spawn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
96247
96770
|
};
|
|
96248
96771
|
}));
|
|
96249
96772
|
//#endregion
|
|
96773
|
+
//#region ../../node_modules/semver/functions/inc.js
|
|
96774
|
+
var require_inc$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96775
|
+
const SemVer = require_semver$3();
|
|
96776
|
+
const inc = (version, release, options, identifier, identifierBase) => {
|
|
96777
|
+
if (typeof options === "string") {
|
|
96778
|
+
identifierBase = identifier;
|
|
96779
|
+
identifier = options;
|
|
96780
|
+
options = void 0;
|
|
96781
|
+
}
|
|
96782
|
+
try {
|
|
96783
|
+
return new SemVer(version instanceof SemVer ? version.version : version, options).inc(release, identifier, identifierBase).version;
|
|
96784
|
+
} catch (er) {
|
|
96785
|
+
return null;
|
|
96786
|
+
}
|
|
96787
|
+
};
|
|
96788
|
+
module.exports = inc;
|
|
96789
|
+
}));
|
|
96790
|
+
//#endregion
|
|
96791
|
+
//#region ../../node_modules/semver/functions/diff.js
|
|
96792
|
+
var require_diff$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96793
|
+
const parse = require_parse$3();
|
|
96794
|
+
const diff = (version1, version2) => {
|
|
96795
|
+
const v1 = parse(version1, null, true);
|
|
96796
|
+
const v2 = parse(version2, null, true);
|
|
96797
|
+
const comparison = v1.compare(v2);
|
|
96798
|
+
if (comparison === 0) return null;
|
|
96799
|
+
const v1Higher = comparison > 0;
|
|
96800
|
+
const highVersion = v1Higher ? v1 : v2;
|
|
96801
|
+
const lowVersion = v1Higher ? v2 : v1;
|
|
96802
|
+
const highHasPre = !!highVersion.prerelease.length;
|
|
96803
|
+
if (!!lowVersion.prerelease.length && !highHasPre) {
|
|
96804
|
+
if (!lowVersion.patch && !lowVersion.minor) return "major";
|
|
96805
|
+
if (lowVersion.compareMain(highVersion) === 0) {
|
|
96806
|
+
if (lowVersion.minor && !lowVersion.patch) return "minor";
|
|
96807
|
+
return "patch";
|
|
96808
|
+
}
|
|
96809
|
+
}
|
|
96810
|
+
const prefix = highHasPre ? "pre" : "";
|
|
96811
|
+
if (v1.major !== v2.major) return prefix + "major";
|
|
96812
|
+
if (v1.minor !== v2.minor) return prefix + "minor";
|
|
96813
|
+
if (v1.patch !== v2.patch) return prefix + "patch";
|
|
96814
|
+
return "prerelease";
|
|
96815
|
+
};
|
|
96816
|
+
module.exports = diff;
|
|
96817
|
+
}));
|
|
96818
|
+
//#endregion
|
|
96819
|
+
//#region ../../node_modules/semver/functions/major.js
|
|
96820
|
+
var require_major$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96821
|
+
const SemVer = require_semver$3();
|
|
96822
|
+
const major = (a, loose) => new SemVer(a, loose).major;
|
|
96823
|
+
module.exports = major;
|
|
96824
|
+
}));
|
|
96825
|
+
//#endregion
|
|
96826
|
+
//#region ../../node_modules/semver/functions/minor.js
|
|
96827
|
+
var require_minor$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96828
|
+
const SemVer = require_semver$3();
|
|
96829
|
+
const minor = (a, loose) => new SemVer(a, loose).minor;
|
|
96830
|
+
module.exports = minor;
|
|
96831
|
+
}));
|
|
96832
|
+
//#endregion
|
|
96833
|
+
//#region ../../node_modules/semver/functions/patch.js
|
|
96834
|
+
var require_patch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96835
|
+
const SemVer = require_semver$3();
|
|
96836
|
+
const patch = (a, loose) => new SemVer(a, loose).patch;
|
|
96837
|
+
module.exports = patch;
|
|
96838
|
+
}));
|
|
96839
|
+
//#endregion
|
|
96840
|
+
//#region ../../node_modules/semver/functions/prerelease.js
|
|
96841
|
+
var require_prerelease$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96842
|
+
const parse = require_parse$3();
|
|
96843
|
+
const prerelease = (version, options) => {
|
|
96844
|
+
const parsed = parse(version, options);
|
|
96845
|
+
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
96846
|
+
};
|
|
96847
|
+
module.exports = prerelease;
|
|
96848
|
+
}));
|
|
96849
|
+
//#endregion
|
|
96850
|
+
//#region ../../node_modules/semver/functions/compare.js
|
|
96851
|
+
var require_compare$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96852
|
+
const SemVer = require_semver$3();
|
|
96853
|
+
const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
96854
|
+
module.exports = compare;
|
|
96855
|
+
}));
|
|
96856
|
+
//#endregion
|
|
96857
|
+
//#region ../../node_modules/semver/functions/rcompare.js
|
|
96858
|
+
var require_rcompare$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96859
|
+
const compare = require_compare$1();
|
|
96860
|
+
const rcompare = (a, b, loose) => compare(b, a, loose);
|
|
96861
|
+
module.exports = rcompare;
|
|
96862
|
+
}));
|
|
96863
|
+
//#endregion
|
|
96864
|
+
//#region ../../node_modules/semver/functions/compare-loose.js
|
|
96865
|
+
var require_compare_loose$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96866
|
+
const compare = require_compare$1();
|
|
96867
|
+
const compareLoose = (a, b) => compare(a, b, true);
|
|
96868
|
+
module.exports = compareLoose;
|
|
96869
|
+
}));
|
|
96870
|
+
//#endregion
|
|
96871
|
+
//#region ../../node_modules/semver/functions/compare-build.js
|
|
96872
|
+
var require_compare_build$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96873
|
+
const SemVer = require_semver$3();
|
|
96874
|
+
const compareBuild = (a, b, loose) => {
|
|
96875
|
+
const versionA = new SemVer(a, loose);
|
|
96876
|
+
const versionB = new SemVer(b, loose);
|
|
96877
|
+
return versionA.compare(versionB) || versionA.compareBuild(versionB);
|
|
96878
|
+
};
|
|
96879
|
+
module.exports = compareBuild;
|
|
96880
|
+
}));
|
|
96881
|
+
//#endregion
|
|
96882
|
+
//#region ../../node_modules/semver/functions/sort.js
|
|
96883
|
+
var require_sort$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96884
|
+
const compareBuild = require_compare_build$1();
|
|
96885
|
+
const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
96886
|
+
module.exports = sort;
|
|
96887
|
+
}));
|
|
96888
|
+
//#endregion
|
|
96889
|
+
//#region ../../node_modules/semver/functions/rsort.js
|
|
96890
|
+
var require_rsort$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96891
|
+
const compareBuild = require_compare_build$1();
|
|
96892
|
+
const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
96893
|
+
module.exports = rsort;
|
|
96894
|
+
}));
|
|
96895
|
+
//#endregion
|
|
96896
|
+
//#region ../../node_modules/semver/functions/gt.js
|
|
96897
|
+
var require_gt$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96898
|
+
const compare = require_compare$1();
|
|
96899
|
+
const gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
96900
|
+
module.exports = gt;
|
|
96901
|
+
}));
|
|
96902
|
+
//#endregion
|
|
96903
|
+
//#region ../../node_modules/semver/functions/lt.js
|
|
96904
|
+
var require_lt$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96905
|
+
const compare = require_compare$1();
|
|
96906
|
+
const lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
96907
|
+
module.exports = lt;
|
|
96908
|
+
}));
|
|
96909
|
+
//#endregion
|
|
96910
|
+
//#region ../../node_modules/semver/functions/eq.js
|
|
96911
|
+
var require_eq$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96912
|
+
const compare = require_compare$1();
|
|
96913
|
+
const eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
96914
|
+
module.exports = eq;
|
|
96915
|
+
}));
|
|
96916
|
+
//#endregion
|
|
96917
|
+
//#region ../../node_modules/semver/functions/neq.js
|
|
96918
|
+
var require_neq$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96919
|
+
const compare = require_compare$1();
|
|
96920
|
+
const neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
96921
|
+
module.exports = neq;
|
|
96922
|
+
}));
|
|
96923
|
+
//#endregion
|
|
96924
|
+
//#region ../../node_modules/semver/functions/gte.js
|
|
96925
|
+
var require_gte$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96926
|
+
const compare = require_compare$1();
|
|
96927
|
+
const gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
96928
|
+
module.exports = gte;
|
|
96929
|
+
}));
|
|
96930
|
+
//#endregion
|
|
96931
|
+
//#region ../../node_modules/semver/functions/lte.js
|
|
96932
|
+
var require_lte$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96933
|
+
const compare = require_compare$1();
|
|
96934
|
+
const lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
96935
|
+
module.exports = lte;
|
|
96936
|
+
}));
|
|
96937
|
+
//#endregion
|
|
96938
|
+
//#region ../../node_modules/semver/functions/cmp.js
|
|
96939
|
+
var require_cmp$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96940
|
+
const eq = require_eq$1();
|
|
96941
|
+
const neq = require_neq$1();
|
|
96942
|
+
const gt = require_gt$1();
|
|
96943
|
+
const gte = require_gte$1();
|
|
96944
|
+
const lt = require_lt$1();
|
|
96945
|
+
const lte = require_lte$1();
|
|
96946
|
+
const cmp = (a, op, b, loose) => {
|
|
96947
|
+
switch (op) {
|
|
96948
|
+
case "===":
|
|
96949
|
+
if (typeof a === "object") a = a.version;
|
|
96950
|
+
if (typeof b === "object") b = b.version;
|
|
96951
|
+
return a === b;
|
|
96952
|
+
case "!==":
|
|
96953
|
+
if (typeof a === "object") a = a.version;
|
|
96954
|
+
if (typeof b === "object") b = b.version;
|
|
96955
|
+
return a !== b;
|
|
96956
|
+
case "":
|
|
96957
|
+
case "=":
|
|
96958
|
+
case "==": return eq(a, b, loose);
|
|
96959
|
+
case "!=": return neq(a, b, loose);
|
|
96960
|
+
case ">": return gt(a, b, loose);
|
|
96961
|
+
case ">=": return gte(a, b, loose);
|
|
96962
|
+
case "<": return lt(a, b, loose);
|
|
96963
|
+
case "<=": return lte(a, b, loose);
|
|
96964
|
+
default: throw new TypeError(`Invalid operator: ${op}`);
|
|
96965
|
+
}
|
|
96966
|
+
};
|
|
96967
|
+
module.exports = cmp;
|
|
96968
|
+
}));
|
|
96969
|
+
//#endregion
|
|
96970
|
+
//#region ../../node_modules/semver/functions/coerce.js
|
|
96971
|
+
var require_coerce$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96972
|
+
const SemVer = require_semver$3();
|
|
96973
|
+
const parse = require_parse$3();
|
|
96974
|
+
const { safeRe: re, t } = require_re$1();
|
|
96975
|
+
const coerce = (version, options) => {
|
|
96976
|
+
if (version instanceof SemVer) return version;
|
|
96977
|
+
if (typeof version === "number") version = String(version);
|
|
96978
|
+
if (typeof version !== "string") return null;
|
|
96979
|
+
options = options || {};
|
|
96980
|
+
let match = null;
|
|
96981
|
+
if (!options.rtl) match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
|
|
96982
|
+
else {
|
|
96983
|
+
const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL];
|
|
96984
|
+
let next;
|
|
96985
|
+
while ((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)) {
|
|
96986
|
+
if (!match || next.index + next[0].length !== match.index + match[0].length) match = next;
|
|
96987
|
+
coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
|
96988
|
+
}
|
|
96989
|
+
coerceRtlRegex.lastIndex = -1;
|
|
96990
|
+
}
|
|
96991
|
+
if (match === null) return null;
|
|
96992
|
+
const major = match[2];
|
|
96993
|
+
return parse(`${major}.${match[3] || "0"}.${match[4] || "0"}${options.includePrerelease && match[5] ? `-${match[5]}` : ""}${options.includePrerelease && match[6] ? `+${match[6]}` : ""}`, options);
|
|
96994
|
+
};
|
|
96995
|
+
module.exports = coerce;
|
|
96996
|
+
}));
|
|
96997
|
+
//#endregion
|
|
96998
|
+
//#region ../../node_modules/semver/functions/truncate.js
|
|
96999
|
+
var require_truncate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97000
|
+
const parse = require_parse$3();
|
|
97001
|
+
const constants = require_constants$5();
|
|
97002
|
+
const SemVer = require_semver$3();
|
|
97003
|
+
const truncate = (version, truncation, options) => {
|
|
97004
|
+
if (!constants.RELEASE_TYPES.includes(truncation)) return null;
|
|
97005
|
+
const clonedVersion = cloneInputVersion(version, options);
|
|
97006
|
+
return clonedVersion && doTruncation(clonedVersion, truncation);
|
|
97007
|
+
};
|
|
97008
|
+
const cloneInputVersion = (version, options) => {
|
|
97009
|
+
return parse(version instanceof SemVer ? version.version : version, options);
|
|
97010
|
+
};
|
|
97011
|
+
const doTruncation = (version, truncation) => {
|
|
97012
|
+
if (isPrerelease(truncation)) return version.version;
|
|
97013
|
+
version.prerelease = [];
|
|
97014
|
+
switch (truncation) {
|
|
97015
|
+
case "major":
|
|
97016
|
+
version.minor = 0;
|
|
97017
|
+
version.patch = 0;
|
|
97018
|
+
break;
|
|
97019
|
+
case "minor":
|
|
97020
|
+
version.patch = 0;
|
|
97021
|
+
break;
|
|
97022
|
+
}
|
|
97023
|
+
return version.format();
|
|
97024
|
+
};
|
|
97025
|
+
const isPrerelease = (type) => {
|
|
97026
|
+
return type.startsWith("pre");
|
|
97027
|
+
};
|
|
97028
|
+
module.exports = truncate;
|
|
97029
|
+
}));
|
|
97030
|
+
//#endregion
|
|
97031
|
+
//#region ../../node_modules/semver/internal/lrucache.js
|
|
97032
|
+
var require_lrucache$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97033
|
+
var LRUCache = class {
|
|
97034
|
+
constructor() {
|
|
97035
|
+
this.max = 1e3;
|
|
97036
|
+
this.map = /* @__PURE__ */ new Map();
|
|
97037
|
+
}
|
|
97038
|
+
get(key) {
|
|
97039
|
+
const value = this.map.get(key);
|
|
97040
|
+
if (value === void 0) return;
|
|
97041
|
+
else {
|
|
97042
|
+
this.map.delete(key);
|
|
97043
|
+
this.map.set(key, value);
|
|
97044
|
+
return value;
|
|
97045
|
+
}
|
|
97046
|
+
}
|
|
97047
|
+
delete(key) {
|
|
97048
|
+
return this.map.delete(key);
|
|
97049
|
+
}
|
|
97050
|
+
set(key, value) {
|
|
97051
|
+
if (!this.delete(key) && value !== void 0) {
|
|
97052
|
+
if (this.map.size >= this.max) {
|
|
97053
|
+
const firstKey = this.map.keys().next().value;
|
|
97054
|
+
this.delete(firstKey);
|
|
97055
|
+
}
|
|
97056
|
+
this.map.set(key, value);
|
|
97057
|
+
}
|
|
97058
|
+
return this;
|
|
97059
|
+
}
|
|
97060
|
+
};
|
|
97061
|
+
module.exports = LRUCache;
|
|
97062
|
+
}));
|
|
97063
|
+
//#endregion
|
|
97064
|
+
//#region ../../node_modules/semver/classes/range.js
|
|
97065
|
+
var require_range$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97066
|
+
const SPACE_CHARACTERS = /\s+/g;
|
|
97067
|
+
module.exports = class Range {
|
|
97068
|
+
constructor(range, options) {
|
|
97069
|
+
options = parseOptions(options);
|
|
97070
|
+
if (range instanceof Range) if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) return range;
|
|
97071
|
+
else return new Range(range.raw, options);
|
|
97072
|
+
if (range instanceof Comparator) {
|
|
97073
|
+
this.raw = range.value;
|
|
97074
|
+
this.set = [[range]];
|
|
97075
|
+
this.formatted = void 0;
|
|
97076
|
+
return this;
|
|
97077
|
+
}
|
|
97078
|
+
this.options = options;
|
|
97079
|
+
this.loose = !!options.loose;
|
|
97080
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
97081
|
+
this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
|
|
97082
|
+
this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
|
|
97083
|
+
if (!this.set.length) throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
97084
|
+
if (this.set.length > 1) {
|
|
97085
|
+
const first = this.set[0];
|
|
97086
|
+
this.set = this.set.filter((c) => !isNullSet(c[0]));
|
|
97087
|
+
if (this.set.length === 0) this.set = [first];
|
|
97088
|
+
else if (this.set.length > 1) {
|
|
97089
|
+
for (const c of this.set) if (c.length === 1 && isAny(c[0])) {
|
|
97090
|
+
this.set = [c];
|
|
97091
|
+
break;
|
|
97092
|
+
}
|
|
97093
|
+
}
|
|
97094
|
+
}
|
|
97095
|
+
this.formatted = void 0;
|
|
97096
|
+
}
|
|
97097
|
+
get range() {
|
|
97098
|
+
if (this.formatted === void 0) {
|
|
97099
|
+
this.formatted = "";
|
|
97100
|
+
for (let i = 0; i < this.set.length; i++) {
|
|
97101
|
+
if (i > 0) this.formatted += "||";
|
|
97102
|
+
const comps = this.set[i];
|
|
97103
|
+
for (let k = 0; k < comps.length; k++) {
|
|
97104
|
+
if (k > 0) this.formatted += " ";
|
|
97105
|
+
this.formatted += comps[k].toString().trim();
|
|
97106
|
+
}
|
|
97107
|
+
}
|
|
97108
|
+
}
|
|
97109
|
+
return this.formatted;
|
|
97110
|
+
}
|
|
97111
|
+
format() {
|
|
97112
|
+
return this.range;
|
|
97113
|
+
}
|
|
97114
|
+
toString() {
|
|
97115
|
+
return this.range;
|
|
97116
|
+
}
|
|
97117
|
+
parseRange(range) {
|
|
97118
|
+
const memoKey = ((this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE)) + ":" + range;
|
|
97119
|
+
const cached = cache.get(memoKey);
|
|
97120
|
+
if (cached) return cached;
|
|
97121
|
+
const loose = this.options.loose;
|
|
97122
|
+
const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
|
|
97123
|
+
range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
|
|
97124
|
+
debug("hyphen replace", range);
|
|
97125
|
+
range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace);
|
|
97126
|
+
debug("comparator trim", range);
|
|
97127
|
+
range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
|
|
97128
|
+
debug("tilde trim", range);
|
|
97129
|
+
range = range.replace(re[t.CARETTRIM], caretTrimReplace);
|
|
97130
|
+
debug("caret trim", range);
|
|
97131
|
+
let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
|
|
97132
|
+
if (loose) rangeList = rangeList.filter((comp) => {
|
|
97133
|
+
debug("loose invalid filter", comp, this.options);
|
|
97134
|
+
return !!comp.match(re[t.COMPARATORLOOSE]);
|
|
97135
|
+
});
|
|
97136
|
+
debug("range list", rangeList);
|
|
97137
|
+
const rangeMap = /* @__PURE__ */ new Map();
|
|
97138
|
+
const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
|
|
97139
|
+
for (const comp of comparators) {
|
|
97140
|
+
if (isNullSet(comp)) return [comp];
|
|
97141
|
+
rangeMap.set(comp.value, comp);
|
|
97142
|
+
}
|
|
97143
|
+
if (rangeMap.size > 1 && rangeMap.has("")) rangeMap.delete("");
|
|
97144
|
+
const result = [...rangeMap.values()];
|
|
97145
|
+
cache.set(memoKey, result);
|
|
97146
|
+
return result;
|
|
97147
|
+
}
|
|
97148
|
+
intersects(range, options) {
|
|
97149
|
+
if (!(range instanceof Range)) throw new TypeError("a Range is required");
|
|
97150
|
+
return this.set.some((thisComparators) => {
|
|
97151
|
+
return isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => {
|
|
97152
|
+
return isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => {
|
|
97153
|
+
return rangeComparators.every((rangeComparator) => {
|
|
97154
|
+
return thisComparator.intersects(rangeComparator, options);
|
|
97155
|
+
});
|
|
97156
|
+
});
|
|
97157
|
+
});
|
|
97158
|
+
});
|
|
97159
|
+
}
|
|
97160
|
+
test(version) {
|
|
97161
|
+
if (!version) return false;
|
|
97162
|
+
if (typeof version === "string") try {
|
|
97163
|
+
version = new SemVer(version, this.options);
|
|
97164
|
+
} catch (er) {
|
|
97165
|
+
return false;
|
|
97166
|
+
}
|
|
97167
|
+
for (let i = 0; i < this.set.length; i++) if (testSet(this.set[i], version, this.options)) return true;
|
|
97168
|
+
return false;
|
|
97169
|
+
}
|
|
97170
|
+
};
|
|
97171
|
+
const cache = new (require_lrucache$1())();
|
|
97172
|
+
const parseOptions = require_parse_options$1();
|
|
97173
|
+
const Comparator = require_comparator$1();
|
|
97174
|
+
const debug = require_debug$1();
|
|
97175
|
+
const SemVer = require_semver$3();
|
|
97176
|
+
const { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re$1();
|
|
97177
|
+
const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants$5();
|
|
97178
|
+
const isNullSet = (c) => c.value === "<0.0.0-0";
|
|
97179
|
+
const isAny = (c) => c.value === "";
|
|
97180
|
+
const isSatisfiable = (comparators, options) => {
|
|
97181
|
+
let result = true;
|
|
97182
|
+
const remainingComparators = comparators.slice();
|
|
97183
|
+
let testComparator = remainingComparators.pop();
|
|
97184
|
+
while (result && remainingComparators.length) {
|
|
97185
|
+
result = remainingComparators.every((otherComparator) => {
|
|
97186
|
+
return testComparator.intersects(otherComparator, options);
|
|
97187
|
+
});
|
|
97188
|
+
testComparator = remainingComparators.pop();
|
|
97189
|
+
}
|
|
97190
|
+
return result;
|
|
97191
|
+
};
|
|
97192
|
+
const parseComparator = (comp, options) => {
|
|
97193
|
+
comp = comp.replace(re[t.BUILD], "");
|
|
97194
|
+
debug("comp", comp, options);
|
|
97195
|
+
comp = replaceCarets(comp, options);
|
|
97196
|
+
debug("caret", comp);
|
|
97197
|
+
comp = replaceTildes(comp, options);
|
|
97198
|
+
debug("tildes", comp);
|
|
97199
|
+
comp = replaceXRanges(comp, options);
|
|
97200
|
+
debug("xrange", comp);
|
|
97201
|
+
comp = replaceStars(comp, options);
|
|
97202
|
+
debug("stars", comp);
|
|
97203
|
+
return comp;
|
|
97204
|
+
};
|
|
97205
|
+
const isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
|
|
97206
|
+
const replaceTildes = (comp, options) => {
|
|
97207
|
+
return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
|
|
97208
|
+
};
|
|
97209
|
+
const replaceTilde = (comp, options) => {
|
|
97210
|
+
const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
|
|
97211
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
97212
|
+
debug("tilde", comp, _, M, m, p, pr);
|
|
97213
|
+
let ret;
|
|
97214
|
+
if (isX(M)) ret = "";
|
|
97215
|
+
else if (isX(m)) ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
|
|
97216
|
+
else if (isX(p)) ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
|
|
97217
|
+
else if (pr) {
|
|
97218
|
+
debug("replaceTilde pr", pr);
|
|
97219
|
+
ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
97220
|
+
} else ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
|
|
97221
|
+
debug("tilde return", ret);
|
|
97222
|
+
return ret;
|
|
97223
|
+
});
|
|
97224
|
+
};
|
|
97225
|
+
const replaceCarets = (comp, options) => {
|
|
97226
|
+
return comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" ");
|
|
97227
|
+
};
|
|
97228
|
+
const replaceCaret = (comp, options) => {
|
|
97229
|
+
debug("caret", comp, options);
|
|
97230
|
+
const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET];
|
|
97231
|
+
const z = options.includePrerelease ? "-0" : "";
|
|
97232
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
97233
|
+
debug("caret", comp, _, M, m, p, pr);
|
|
97234
|
+
let ret;
|
|
97235
|
+
if (isX(M)) ret = "";
|
|
97236
|
+
else if (isX(m)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
|
|
97237
|
+
else if (isX(p)) if (M === "0") ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
|
|
97238
|
+
else ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
|
|
97239
|
+
else if (pr) {
|
|
97240
|
+
debug("replaceCaret pr", pr);
|
|
97241
|
+
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;
|
|
97242
|
+
else ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
97243
|
+
else ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
|
|
97244
|
+
} else {
|
|
97245
|
+
debug("no pr");
|
|
97246
|
+
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0`;
|
|
97247
|
+
else ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0`;
|
|
97248
|
+
else ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
|
|
97249
|
+
}
|
|
97250
|
+
debug("caret return", ret);
|
|
97251
|
+
return ret;
|
|
97252
|
+
});
|
|
97253
|
+
};
|
|
97254
|
+
const replaceXRanges = (comp, options) => {
|
|
97255
|
+
debug("replaceXRanges", comp, options);
|
|
97256
|
+
return comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ");
|
|
97257
|
+
};
|
|
97258
|
+
const replaceXRange = (comp, options) => {
|
|
97259
|
+
comp = comp.trim();
|
|
97260
|
+
const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
|
|
97261
|
+
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
|
|
97262
|
+
debug("xRange", comp, ret, gtlt, M, m, p, pr);
|
|
97263
|
+
const xM = isX(M);
|
|
97264
|
+
const xm = xM || isX(m);
|
|
97265
|
+
const xp = xm || isX(p);
|
|
97266
|
+
const anyX = xp;
|
|
97267
|
+
if (gtlt === "=" && anyX) gtlt = "";
|
|
97268
|
+
pr = options.includePrerelease ? "-0" : "";
|
|
97269
|
+
if (xM) if (gtlt === ">" || gtlt === "<") ret = "<0.0.0-0";
|
|
97270
|
+
else ret = "*";
|
|
97271
|
+
else if (gtlt && anyX) {
|
|
97272
|
+
if (xm) m = 0;
|
|
97273
|
+
p = 0;
|
|
97274
|
+
if (gtlt === ">") {
|
|
97275
|
+
gtlt = ">=";
|
|
97276
|
+
if (xm) {
|
|
97277
|
+
M = +M + 1;
|
|
97278
|
+
m = 0;
|
|
97279
|
+
p = 0;
|
|
97280
|
+
} else {
|
|
97281
|
+
m = +m + 1;
|
|
97282
|
+
p = 0;
|
|
97283
|
+
}
|
|
97284
|
+
} else if (gtlt === "<=") {
|
|
97285
|
+
gtlt = "<";
|
|
97286
|
+
if (xm) M = +M + 1;
|
|
97287
|
+
else m = +m + 1;
|
|
97288
|
+
}
|
|
97289
|
+
if (gtlt === "<") pr = "-0";
|
|
97290
|
+
ret = `${gtlt + M}.${m}.${p}${pr}`;
|
|
97291
|
+
} else if (xm) ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
|
|
97292
|
+
else if (xp) ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;
|
|
97293
|
+
debug("xRange return", ret);
|
|
97294
|
+
return ret;
|
|
97295
|
+
});
|
|
97296
|
+
};
|
|
97297
|
+
const replaceStars = (comp, options) => {
|
|
97298
|
+
debug("replaceStars", comp, options);
|
|
97299
|
+
return comp.trim().replace(re[t.STAR], "");
|
|
97300
|
+
};
|
|
97301
|
+
const replaceGTE0 = (comp, options) => {
|
|
97302
|
+
debug("replaceGTE0", comp, options);
|
|
97303
|
+
return comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
|
|
97304
|
+
};
|
|
97305
|
+
const hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
|
|
97306
|
+
if (isX(fM)) from = "";
|
|
97307
|
+
else if (isX(fm)) from = `>=${fM}.0.0${incPr ? "-0" : ""}`;
|
|
97308
|
+
else if (isX(fp)) from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}`;
|
|
97309
|
+
else if (fpr) from = `>=${from}`;
|
|
97310
|
+
else from = `>=${from}${incPr ? "-0" : ""}`;
|
|
97311
|
+
if (isX(tM)) to = "";
|
|
97312
|
+
else if (isX(tm)) to = `<${+tM + 1}.0.0-0`;
|
|
97313
|
+
else if (isX(tp)) to = `<${tM}.${+tm + 1}.0-0`;
|
|
97314
|
+
else if (tpr) to = `<=${tM}.${tm}.${tp}-${tpr}`;
|
|
97315
|
+
else if (incPr) to = `<${tM}.${tm}.${+tp + 1}-0`;
|
|
97316
|
+
else to = `<=${to}`;
|
|
97317
|
+
return `${from} ${to}`.trim();
|
|
97318
|
+
};
|
|
97319
|
+
const testSet = (set, version, options) => {
|
|
97320
|
+
for (let i = 0; i < set.length; i++) if (!set[i].test(version)) return false;
|
|
97321
|
+
if (version.prerelease.length && !options.includePrerelease) {
|
|
97322
|
+
for (let i = 0; i < set.length; i++) {
|
|
97323
|
+
debug(set[i].semver);
|
|
97324
|
+
if (set[i].semver === Comparator.ANY) continue;
|
|
97325
|
+
if (set[i].semver.prerelease.length > 0) {
|
|
97326
|
+
const allowed = set[i].semver;
|
|
97327
|
+
if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) return true;
|
|
97328
|
+
}
|
|
97329
|
+
}
|
|
97330
|
+
return false;
|
|
97331
|
+
}
|
|
97332
|
+
return true;
|
|
97333
|
+
};
|
|
97334
|
+
}));
|
|
97335
|
+
//#endregion
|
|
97336
|
+
//#region ../../node_modules/semver/classes/comparator.js
|
|
97337
|
+
var require_comparator$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97338
|
+
const ANY = Symbol("SemVer ANY");
|
|
97339
|
+
module.exports = class Comparator {
|
|
97340
|
+
static get ANY() {
|
|
97341
|
+
return ANY;
|
|
97342
|
+
}
|
|
97343
|
+
constructor(comp, options) {
|
|
97344
|
+
options = parseOptions(options);
|
|
97345
|
+
if (comp instanceof Comparator) if (comp.loose === !!options.loose) return comp;
|
|
97346
|
+
else comp = comp.value;
|
|
97347
|
+
comp = comp.trim().split(/\s+/).join(" ");
|
|
97348
|
+
debug("comparator", comp, options);
|
|
97349
|
+
this.options = options;
|
|
97350
|
+
this.loose = !!options.loose;
|
|
97351
|
+
this.parse(comp);
|
|
97352
|
+
if (this.semver === ANY) this.value = "";
|
|
97353
|
+
else this.value = this.operator + this.semver.version;
|
|
97354
|
+
debug("comp", this);
|
|
97355
|
+
}
|
|
97356
|
+
parse(comp) {
|
|
97357
|
+
const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR];
|
|
97358
|
+
const m = comp.match(r);
|
|
97359
|
+
if (!m) throw new TypeError(`Invalid comparator: ${comp}`);
|
|
97360
|
+
this.operator = m[1] !== void 0 ? m[1] : "";
|
|
97361
|
+
if (this.operator === "=") this.operator = "";
|
|
97362
|
+
if (!m[2]) this.semver = ANY;
|
|
97363
|
+
else this.semver = new SemVer(m[2], this.options.loose);
|
|
97364
|
+
}
|
|
97365
|
+
toString() {
|
|
97366
|
+
return this.value;
|
|
97367
|
+
}
|
|
97368
|
+
test(version) {
|
|
97369
|
+
debug("Comparator.test", version, this.options.loose);
|
|
97370
|
+
if (this.semver === ANY || version === ANY) return true;
|
|
97371
|
+
if (typeof version === "string") try {
|
|
97372
|
+
version = new SemVer(version, this.options);
|
|
97373
|
+
} catch (er) {
|
|
97374
|
+
return false;
|
|
97375
|
+
}
|
|
97376
|
+
return cmp(version, this.operator, this.semver, this.options);
|
|
97377
|
+
}
|
|
97378
|
+
intersects(comp, options) {
|
|
97379
|
+
if (!(comp instanceof Comparator)) throw new TypeError("a Comparator is required");
|
|
97380
|
+
if (this.operator === "") {
|
|
97381
|
+
if (this.value === "") return true;
|
|
97382
|
+
return new Range(comp.value, options).test(this.value);
|
|
97383
|
+
} else if (comp.operator === "") {
|
|
97384
|
+
if (comp.value === "") return true;
|
|
97385
|
+
return new Range(this.value, options).test(comp.semver);
|
|
97386
|
+
}
|
|
97387
|
+
options = parseOptions(options);
|
|
97388
|
+
if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) return false;
|
|
97389
|
+
if (!options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0"))) return false;
|
|
97390
|
+
if (this.operator.startsWith(">") && comp.operator.startsWith(">")) return true;
|
|
97391
|
+
if (this.operator.startsWith("<") && comp.operator.startsWith("<")) return true;
|
|
97392
|
+
if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) return true;
|
|
97393
|
+
if (cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) return true;
|
|
97394
|
+
if (cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) return true;
|
|
97395
|
+
return false;
|
|
97396
|
+
}
|
|
97397
|
+
};
|
|
97398
|
+
const parseOptions = require_parse_options$1();
|
|
97399
|
+
const { safeRe: re, t } = require_re$1();
|
|
97400
|
+
const cmp = require_cmp$1();
|
|
97401
|
+
const debug = require_debug$1();
|
|
97402
|
+
const SemVer = require_semver$3();
|
|
97403
|
+
const Range = require_range$1();
|
|
97404
|
+
}));
|
|
97405
|
+
//#endregion
|
|
97406
|
+
//#region ../../node_modules/semver/functions/satisfies.js
|
|
97407
|
+
var require_satisfies$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97408
|
+
const Range = require_range$1();
|
|
97409
|
+
const satisfies = (version, range, options) => {
|
|
97410
|
+
try {
|
|
97411
|
+
range = new Range(range, options);
|
|
97412
|
+
} catch (er) {
|
|
97413
|
+
return false;
|
|
97414
|
+
}
|
|
97415
|
+
return range.test(version);
|
|
97416
|
+
};
|
|
97417
|
+
module.exports = satisfies;
|
|
97418
|
+
}));
|
|
97419
|
+
//#endregion
|
|
97420
|
+
//#region ../../node_modules/semver/ranges/to-comparators.js
|
|
97421
|
+
var require_to_comparators$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97422
|
+
const Range = require_range$1();
|
|
97423
|
+
const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
97424
|
+
module.exports = toComparators;
|
|
97425
|
+
}));
|
|
97426
|
+
//#endregion
|
|
97427
|
+
//#region ../../node_modules/semver/ranges/max-satisfying.js
|
|
97428
|
+
var require_max_satisfying$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97429
|
+
const SemVer = require_semver$3();
|
|
97430
|
+
const Range = require_range$1();
|
|
97431
|
+
const maxSatisfying = (versions, range, options) => {
|
|
97432
|
+
let max = null;
|
|
97433
|
+
let maxSV = null;
|
|
97434
|
+
let rangeObj = null;
|
|
97435
|
+
try {
|
|
97436
|
+
rangeObj = new Range(range, options);
|
|
97437
|
+
} catch (er) {
|
|
97438
|
+
return null;
|
|
97439
|
+
}
|
|
97440
|
+
versions.forEach((v) => {
|
|
97441
|
+
if (rangeObj.test(v)) {
|
|
97442
|
+
if (!max || maxSV.compare(v) === -1) {
|
|
97443
|
+
max = v;
|
|
97444
|
+
maxSV = new SemVer(max, options);
|
|
97445
|
+
}
|
|
97446
|
+
}
|
|
97447
|
+
});
|
|
97448
|
+
return max;
|
|
97449
|
+
};
|
|
97450
|
+
module.exports = maxSatisfying;
|
|
97451
|
+
}));
|
|
97452
|
+
//#endregion
|
|
97453
|
+
//#region ../../node_modules/semver/ranges/min-satisfying.js
|
|
97454
|
+
var require_min_satisfying$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97455
|
+
const SemVer = require_semver$3();
|
|
97456
|
+
const Range = require_range$1();
|
|
97457
|
+
const minSatisfying = (versions, range, options) => {
|
|
97458
|
+
let min = null;
|
|
97459
|
+
let minSV = null;
|
|
97460
|
+
let rangeObj = null;
|
|
97461
|
+
try {
|
|
97462
|
+
rangeObj = new Range(range, options);
|
|
97463
|
+
} catch (er) {
|
|
97464
|
+
return null;
|
|
97465
|
+
}
|
|
97466
|
+
versions.forEach((v) => {
|
|
97467
|
+
if (rangeObj.test(v)) {
|
|
97468
|
+
if (!min || minSV.compare(v) === 1) {
|
|
97469
|
+
min = v;
|
|
97470
|
+
minSV = new SemVer(min, options);
|
|
97471
|
+
}
|
|
97472
|
+
}
|
|
97473
|
+
});
|
|
97474
|
+
return min;
|
|
97475
|
+
};
|
|
97476
|
+
module.exports = minSatisfying;
|
|
97477
|
+
}));
|
|
97478
|
+
//#endregion
|
|
97479
|
+
//#region ../../node_modules/semver/ranges/min-version.js
|
|
97480
|
+
var require_min_version$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97481
|
+
const SemVer = require_semver$3();
|
|
97482
|
+
const Range = require_range$1();
|
|
97483
|
+
const gt = require_gt$1();
|
|
97484
|
+
const minVersion = (range, loose) => {
|
|
97485
|
+
range = new Range(range, loose);
|
|
97486
|
+
let minver = new SemVer("0.0.0");
|
|
97487
|
+
if (range.test(minver)) return minver;
|
|
97488
|
+
minver = new SemVer("0.0.0-0");
|
|
97489
|
+
if (range.test(minver)) return minver;
|
|
97490
|
+
minver = null;
|
|
97491
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
97492
|
+
const comparators = range.set[i];
|
|
97493
|
+
let setMin = null;
|
|
97494
|
+
comparators.forEach((comparator) => {
|
|
97495
|
+
const compver = new SemVer(comparator.semver.version);
|
|
97496
|
+
switch (comparator.operator) {
|
|
97497
|
+
case ">":
|
|
97498
|
+
if (compver.prerelease.length === 0) compver.patch++;
|
|
97499
|
+
else compver.prerelease.push(0);
|
|
97500
|
+
compver.raw = compver.format();
|
|
97501
|
+
case "":
|
|
97502
|
+
case ">=":
|
|
97503
|
+
if (!setMin || gt(compver, setMin)) setMin = compver;
|
|
97504
|
+
break;
|
|
97505
|
+
case "<":
|
|
97506
|
+
case "<=": break;
|
|
97507
|
+
default: throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
97508
|
+
}
|
|
97509
|
+
});
|
|
97510
|
+
if (setMin && (!minver || gt(minver, setMin))) minver = setMin;
|
|
97511
|
+
}
|
|
97512
|
+
if (minver && range.test(minver)) return minver;
|
|
97513
|
+
return null;
|
|
97514
|
+
};
|
|
97515
|
+
module.exports = minVersion;
|
|
97516
|
+
}));
|
|
97517
|
+
//#endregion
|
|
97518
|
+
//#region ../../node_modules/semver/ranges/valid.js
|
|
97519
|
+
var require_valid$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97520
|
+
const Range = require_range$1();
|
|
97521
|
+
const validRange = (range, options) => {
|
|
97522
|
+
try {
|
|
97523
|
+
return new Range(range, options).range || "*";
|
|
97524
|
+
} catch (er) {
|
|
97525
|
+
return null;
|
|
97526
|
+
}
|
|
97527
|
+
};
|
|
97528
|
+
module.exports = validRange;
|
|
97529
|
+
}));
|
|
97530
|
+
//#endregion
|
|
97531
|
+
//#region ../../node_modules/semver/ranges/outside.js
|
|
97532
|
+
var require_outside$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97533
|
+
const SemVer = require_semver$3();
|
|
97534
|
+
const Comparator = require_comparator$1();
|
|
97535
|
+
const { ANY } = Comparator;
|
|
97536
|
+
const Range = require_range$1();
|
|
97537
|
+
const satisfies = require_satisfies$1();
|
|
97538
|
+
const gt = require_gt$1();
|
|
97539
|
+
const lt = require_lt$1();
|
|
97540
|
+
const lte = require_lte$1();
|
|
97541
|
+
const gte = require_gte$1();
|
|
97542
|
+
const outside = (version, range, hilo, options) => {
|
|
97543
|
+
version = new SemVer(version, options);
|
|
97544
|
+
range = new Range(range, options);
|
|
97545
|
+
let gtfn, ltefn, ltfn, comp, ecomp;
|
|
97546
|
+
switch (hilo) {
|
|
97547
|
+
case ">":
|
|
97548
|
+
gtfn = gt;
|
|
97549
|
+
ltefn = lte;
|
|
97550
|
+
ltfn = lt;
|
|
97551
|
+
comp = ">";
|
|
97552
|
+
ecomp = ">=";
|
|
97553
|
+
break;
|
|
97554
|
+
case "<":
|
|
97555
|
+
gtfn = lt;
|
|
97556
|
+
ltefn = gte;
|
|
97557
|
+
ltfn = gt;
|
|
97558
|
+
comp = "<";
|
|
97559
|
+
ecomp = "<=";
|
|
97560
|
+
break;
|
|
97561
|
+
default: throw new TypeError("Must provide a hilo val of \"<\" or \">\"");
|
|
97562
|
+
}
|
|
97563
|
+
if (satisfies(version, range, options)) return false;
|
|
97564
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
97565
|
+
const comparators = range.set[i];
|
|
97566
|
+
let high = null;
|
|
97567
|
+
let low = null;
|
|
97568
|
+
comparators.forEach((comparator) => {
|
|
97569
|
+
if (comparator.semver === ANY) comparator = new Comparator(">=0.0.0");
|
|
97570
|
+
high = high || comparator;
|
|
97571
|
+
low = low || comparator;
|
|
97572
|
+
if (gtfn(comparator.semver, high.semver, options)) high = comparator;
|
|
97573
|
+
else if (ltfn(comparator.semver, low.semver, options)) low = comparator;
|
|
97574
|
+
});
|
|
97575
|
+
if (high.operator === comp || high.operator === ecomp) return false;
|
|
97576
|
+
if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) return false;
|
|
97577
|
+
else if (low.operator === ecomp && ltfn(version, low.semver)) return false;
|
|
97578
|
+
}
|
|
97579
|
+
return true;
|
|
97580
|
+
};
|
|
97581
|
+
module.exports = outside;
|
|
97582
|
+
}));
|
|
97583
|
+
//#endregion
|
|
97584
|
+
//#region ../../node_modules/semver/ranges/gtr.js
|
|
97585
|
+
var require_gtr$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97586
|
+
const outside = require_outside$1();
|
|
97587
|
+
const gtr = (version, range, options) => outside(version, range, ">", options);
|
|
97588
|
+
module.exports = gtr;
|
|
97589
|
+
}));
|
|
97590
|
+
//#endregion
|
|
97591
|
+
//#region ../../node_modules/semver/ranges/ltr.js
|
|
97592
|
+
var require_ltr$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97593
|
+
const outside = require_outside$1();
|
|
97594
|
+
const ltr = (version, range, options) => outside(version, range, "<", options);
|
|
97595
|
+
module.exports = ltr;
|
|
97596
|
+
}));
|
|
97597
|
+
//#endregion
|
|
97598
|
+
//#region ../../node_modules/semver/ranges/intersects.js
|
|
97599
|
+
var require_intersects$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97600
|
+
const Range = require_range$1();
|
|
97601
|
+
const intersects = (r1, r2, options) => {
|
|
97602
|
+
r1 = new Range(r1, options);
|
|
97603
|
+
r2 = new Range(r2, options);
|
|
97604
|
+
return r1.intersects(r2, options);
|
|
97605
|
+
};
|
|
97606
|
+
module.exports = intersects;
|
|
97607
|
+
}));
|
|
97608
|
+
//#endregion
|
|
97609
|
+
//#region ../../node_modules/semver/ranges/simplify.js
|
|
97610
|
+
var require_simplify$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97611
|
+
const satisfies = require_satisfies$1();
|
|
97612
|
+
const compare = require_compare$1();
|
|
97613
|
+
module.exports = (versions, range, options) => {
|
|
97614
|
+
const set = [];
|
|
97615
|
+
let first = null;
|
|
97616
|
+
let prev = null;
|
|
97617
|
+
const v = versions.sort((a, b) => compare(a, b, options));
|
|
97618
|
+
for (const version of v) if (satisfies(version, range, options)) {
|
|
97619
|
+
prev = version;
|
|
97620
|
+
if (!first) first = version;
|
|
97621
|
+
} else {
|
|
97622
|
+
if (prev) set.push([first, prev]);
|
|
97623
|
+
prev = null;
|
|
97624
|
+
first = null;
|
|
97625
|
+
}
|
|
97626
|
+
if (first) set.push([first, null]);
|
|
97627
|
+
const ranges = [];
|
|
97628
|
+
for (const [min, max] of set) if (min === max) ranges.push(min);
|
|
97629
|
+
else if (!max && min === v[0]) ranges.push("*");
|
|
97630
|
+
else if (!max) ranges.push(`>=${min}`);
|
|
97631
|
+
else if (min === v[0]) ranges.push(`<=${max}`);
|
|
97632
|
+
else ranges.push(`${min} - ${max}`);
|
|
97633
|
+
const simplified = ranges.join(" || ");
|
|
97634
|
+
const original = typeof range.raw === "string" ? range.raw : String(range);
|
|
97635
|
+
return simplified.length < original.length ? simplified : range;
|
|
97636
|
+
};
|
|
97637
|
+
}));
|
|
97638
|
+
//#endregion
|
|
97639
|
+
//#region ../../node_modules/semver/ranges/subset.js
|
|
97640
|
+
var require_subset$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97641
|
+
const Range = require_range$1();
|
|
97642
|
+
const Comparator = require_comparator$1();
|
|
97643
|
+
const { ANY } = Comparator;
|
|
97644
|
+
const satisfies = require_satisfies$1();
|
|
97645
|
+
const compare = require_compare$1();
|
|
97646
|
+
const subset = (sub, dom, options = {}) => {
|
|
97647
|
+
if (sub === dom) return true;
|
|
97648
|
+
sub = new Range(sub, options);
|
|
97649
|
+
dom = new Range(dom, options);
|
|
97650
|
+
let sawNonNull = false;
|
|
97651
|
+
OUTER: for (const simpleSub of sub.set) {
|
|
97652
|
+
for (const simpleDom of dom.set) {
|
|
97653
|
+
const isSub = simpleSubset(simpleSub, simpleDom, options);
|
|
97654
|
+
sawNonNull = sawNonNull || isSub !== null;
|
|
97655
|
+
if (isSub) continue OUTER;
|
|
97656
|
+
}
|
|
97657
|
+
if (sawNonNull) return false;
|
|
97658
|
+
}
|
|
97659
|
+
return true;
|
|
97660
|
+
};
|
|
97661
|
+
const minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")];
|
|
97662
|
+
const minimumVersion = [new Comparator(">=0.0.0")];
|
|
97663
|
+
const simpleSubset = (sub, dom, options) => {
|
|
97664
|
+
if (sub === dom) return true;
|
|
97665
|
+
if (sub.length === 1 && sub[0].semver === ANY) if (dom.length === 1 && dom[0].semver === ANY) return true;
|
|
97666
|
+
else if (options.includePrerelease) sub = minimumVersionWithPreRelease;
|
|
97667
|
+
else sub = minimumVersion;
|
|
97668
|
+
if (dom.length === 1 && dom[0].semver === ANY) if (options.includePrerelease) return true;
|
|
97669
|
+
else dom = minimumVersion;
|
|
97670
|
+
const eqSet = /* @__PURE__ */ new Set();
|
|
97671
|
+
let gt, lt;
|
|
97672
|
+
for (const c of sub) if (c.operator === ">" || c.operator === ">=") gt = higherGT(gt, c, options);
|
|
97673
|
+
else if (c.operator === "<" || c.operator === "<=") lt = lowerLT(lt, c, options);
|
|
97674
|
+
else eqSet.add(c.semver);
|
|
97675
|
+
if (eqSet.size > 1) return null;
|
|
97676
|
+
let gtltComp;
|
|
97677
|
+
if (gt && lt) {
|
|
97678
|
+
gtltComp = compare(gt.semver, lt.semver, options);
|
|
97679
|
+
if (gtltComp > 0) return null;
|
|
97680
|
+
else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) return null;
|
|
97681
|
+
}
|
|
97682
|
+
for (const eq of eqSet) {
|
|
97683
|
+
if (gt && !satisfies(eq, String(gt), options)) return null;
|
|
97684
|
+
if (lt && !satisfies(eq, String(lt), options)) return null;
|
|
97685
|
+
for (const c of dom) if (!satisfies(eq, String(c), options)) return false;
|
|
97686
|
+
return true;
|
|
97687
|
+
}
|
|
97688
|
+
let higher, lower;
|
|
97689
|
+
let hasDomLT, hasDomGT;
|
|
97690
|
+
let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;
|
|
97691
|
+
let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;
|
|
97692
|
+
if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0) needDomLTPre = false;
|
|
97693
|
+
for (const c of dom) {
|
|
97694
|
+
hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=";
|
|
97695
|
+
hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=";
|
|
97696
|
+
if (gt) {
|
|
97697
|
+
if (needDomGTPre) {
|
|
97698
|
+
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;
|
|
97699
|
+
}
|
|
97700
|
+
if (c.operator === ">" || c.operator === ">=") {
|
|
97701
|
+
higher = higherGT(gt, c, options);
|
|
97702
|
+
if (higher === c && higher !== gt) return false;
|
|
97703
|
+
} else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options)) return false;
|
|
97704
|
+
}
|
|
97705
|
+
if (lt) {
|
|
97706
|
+
if (needDomLTPre) {
|
|
97707
|
+
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;
|
|
97708
|
+
}
|
|
97709
|
+
if (c.operator === "<" || c.operator === "<=") {
|
|
97710
|
+
lower = lowerLT(lt, c, options);
|
|
97711
|
+
if (lower === c && lower !== lt) return false;
|
|
97712
|
+
} else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options)) return false;
|
|
97713
|
+
}
|
|
97714
|
+
if (!c.operator && (lt || gt) && gtltComp !== 0) return false;
|
|
97715
|
+
}
|
|
97716
|
+
if (gt && hasDomLT && !lt && gtltComp !== 0) return false;
|
|
97717
|
+
if (lt && hasDomGT && !gt && gtltComp !== 0) return false;
|
|
97718
|
+
if (needDomGTPre || needDomLTPre) return false;
|
|
97719
|
+
return true;
|
|
97720
|
+
};
|
|
97721
|
+
const higherGT = (a, b, options) => {
|
|
97722
|
+
if (!a) return b;
|
|
97723
|
+
const comp = compare(a.semver, b.semver, options);
|
|
97724
|
+
return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
|
|
97725
|
+
};
|
|
97726
|
+
const lowerLT = (a, b, options) => {
|
|
97727
|
+
if (!a) return b;
|
|
97728
|
+
const comp = compare(a.semver, b.semver, options);
|
|
97729
|
+
return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
|
|
97730
|
+
};
|
|
97731
|
+
module.exports = subset;
|
|
97732
|
+
}));
|
|
97733
|
+
//#endregion
|
|
97734
|
+
//#region ../../node_modules/semver/index.js
|
|
97735
|
+
var require_semver$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97736
|
+
const internalRe = require_re$1();
|
|
97737
|
+
const constants = require_constants$5();
|
|
97738
|
+
const SemVer = require_semver$3();
|
|
97739
|
+
const identifiers = require_identifiers$1();
|
|
97740
|
+
module.exports = {
|
|
97741
|
+
parse: require_parse$3(),
|
|
97742
|
+
valid: require_valid$3(),
|
|
97743
|
+
clean: require_clean$1(),
|
|
97744
|
+
inc: require_inc$1(),
|
|
97745
|
+
diff: require_diff$1(),
|
|
97746
|
+
major: require_major$1(),
|
|
97747
|
+
minor: require_minor$1(),
|
|
97748
|
+
patch: require_patch$1(),
|
|
97749
|
+
prerelease: require_prerelease$1(),
|
|
97750
|
+
compare: require_compare$1(),
|
|
97751
|
+
rcompare: require_rcompare$1(),
|
|
97752
|
+
compareLoose: require_compare_loose$1(),
|
|
97753
|
+
compareBuild: require_compare_build$1(),
|
|
97754
|
+
sort: require_sort$2(),
|
|
97755
|
+
rsort: require_rsort$1(),
|
|
97756
|
+
gt: require_gt$1(),
|
|
97757
|
+
lt: require_lt$1(),
|
|
97758
|
+
eq: require_eq$1(),
|
|
97759
|
+
neq: require_neq$1(),
|
|
97760
|
+
gte: require_gte$1(),
|
|
97761
|
+
lte: require_lte$1(),
|
|
97762
|
+
cmp: require_cmp$1(),
|
|
97763
|
+
coerce: require_coerce$1(),
|
|
97764
|
+
truncate: require_truncate(),
|
|
97765
|
+
Comparator: require_comparator$1(),
|
|
97766
|
+
Range: require_range$1(),
|
|
97767
|
+
satisfies: require_satisfies$1(),
|
|
97768
|
+
toComparators: require_to_comparators$1(),
|
|
97769
|
+
maxSatisfying: require_max_satisfying$1(),
|
|
97770
|
+
minSatisfying: require_min_satisfying$1(),
|
|
97771
|
+
minVersion: require_min_version$1(),
|
|
97772
|
+
validRange: require_valid$2(),
|
|
97773
|
+
outside: require_outside$1(),
|
|
97774
|
+
gtr: require_gtr$1(),
|
|
97775
|
+
ltr: require_ltr$1(),
|
|
97776
|
+
intersects: require_intersects$1(),
|
|
97777
|
+
simplifyRange: require_simplify$1(),
|
|
97778
|
+
subset: require_subset$1(),
|
|
97779
|
+
SemVer,
|
|
97780
|
+
re: internalRe.re,
|
|
97781
|
+
src: internalRe.src,
|
|
97782
|
+
tokens: internalRe.t,
|
|
97783
|
+
SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
|
|
97784
|
+
RELEASE_TYPES: constants.RELEASE_TYPES,
|
|
97785
|
+
compareIdentifiers: identifiers.compareIdentifiers,
|
|
97786
|
+
rcompareIdentifiers: identifiers.rcompareIdentifiers
|
|
97787
|
+
};
|
|
97788
|
+
}));
|
|
97789
|
+
//#endregion
|
|
96250
97790
|
//#region ../../node_modules/@npmcli/git/lib/lines-to-revs.js
|
|
96251
97791
|
var require_lines_to_revs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96252
|
-
const semver = require_semver();
|
|
97792
|
+
const semver = require_semver$2();
|
|
96253
97793
|
module.exports = (lines) => finish(lines.reduce(linesToRevsReducer, {
|
|
96254
97794
|
versions: {},
|
|
96255
97795
|
"dist-tags": {},
|
|
@@ -96516,7 +98056,7 @@ var require_npa = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
96516
98056
|
const path$17 = isWindows ? __require("node:path/win32") : __require("node:path");
|
|
96517
98057
|
const { homedir: homedir$2 } = __require("node:os");
|
|
96518
98058
|
const HostedGit = require_lib$28();
|
|
96519
|
-
const semver = require_semver();
|
|
98059
|
+
const semver = require_semver$2();
|
|
96520
98060
|
const validatePackageName = require_lib$23();
|
|
96521
98061
|
const { log } = require_lib$29();
|
|
96522
98062
|
const hasSlashes = isWindows ? /\\|[/]/ : /[/]/;
|
|
@@ -96889,8 +98429,8 @@ var require_current_env = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
96889
98429
|
//#endregion
|
|
96890
98430
|
//#region ../../node_modules/npm-install-checks/lib/dev-engines.js
|
|
96891
98431
|
var require_dev_engines = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96892
|
-
const satisfies = require_satisfies();
|
|
96893
|
-
const validRange = require_valid();
|
|
98432
|
+
const satisfies = require_satisfies$1();
|
|
98433
|
+
const validRange = require_valid$2();
|
|
96894
98434
|
const recognizedOnFail = [
|
|
96895
98435
|
"ignore",
|
|
96896
98436
|
"warn",
|
|
@@ -96970,7 +98510,7 @@ var require_dev_engines = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
96970
98510
|
//#endregion
|
|
96971
98511
|
//#region ../../node_modules/npm-install-checks/lib/index.js
|
|
96972
98512
|
var require_lib$22 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96973
|
-
const semver = require_semver();
|
|
98513
|
+
const semver = require_semver$2();
|
|
96974
98514
|
const currentEnv = require_current_env();
|
|
96975
98515
|
const { checkDevEngines } = require_dev_engines();
|
|
96976
98516
|
const checkEngine = (target, npmVer, nodeVer, force = false) => {
|
|
@@ -97079,7 +98619,7 @@ var require_lib$21 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
97079
98619
|
//#region ../../node_modules/npm-pick-manifest/lib/index.js
|
|
97080
98620
|
var require_lib$20 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97081
98621
|
const npa = require_npa();
|
|
97082
|
-
const semver = require_semver();
|
|
98622
|
+
const semver = require_semver$2();
|
|
97083
98623
|
const { checkEngine } = require_lib$22();
|
|
97084
98624
|
const normalizeBin = require_lib$21();
|
|
97085
98625
|
const engineOk = (manifest, npmVersion, nodeVersion) => {
|
|
@@ -97373,8 +98913,8 @@ var require_lib$19 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
97373
98913
|
//#endregion
|
|
97374
98914
|
//#region ../../node_modules/@npmcli/package-json/lib/normalize.js
|
|
97375
98915
|
var require_normalize = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97376
|
-
const valid = require_valid$
|
|
97377
|
-
const clean = require_clean();
|
|
98916
|
+
const valid = require_valid$3();
|
|
98917
|
+
const clean = require_clean$1();
|
|
97378
98918
|
const fs$13 = __require("node:fs/promises");
|
|
97379
98919
|
const path$15 = __require("node:path");
|
|
97380
98920
|
const { log } = require_lib$29();
|
|
@@ -97805,7 +99345,7 @@ var require_read_package = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
97805
99345
|
}));
|
|
97806
99346
|
//#endregion
|
|
97807
99347
|
//#region ../../node_modules/@npmcli/package-json/lib/sort.js
|
|
97808
|
-
var require_sort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
99348
|
+
var require_sort$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97809
99349
|
/**
|
|
97810
99350
|
* arbitrary sort order for package.json largely pulled from:
|
|
97811
99351
|
* https://github.com/keithamus/sort-package-json/blob/main/defaultRules.md
|
|
@@ -97873,7 +99413,7 @@ var require_lib$18 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
97873
99413
|
const updateWorkspaces = require_update_workspaces();
|
|
97874
99414
|
const { normalize, syncNormalize } = require_normalize();
|
|
97875
99415
|
const { read, parse } = require_read_package();
|
|
97876
|
-
const { packageSort } = require_sort();
|
|
99416
|
+
const { packageSort } = require_sort$1();
|
|
97877
99417
|
const knownSteps = new Set([
|
|
97878
99418
|
updateDeps,
|
|
97879
99419
|
updateScripts,
|
|
@@ -99019,7 +100559,7 @@ var require_get_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
99019
100559
|
//#endregion
|
|
99020
100560
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/common/node.js
|
|
99021
100561
|
var require_node$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
99022
|
-
const semver = require_semver();
|
|
100562
|
+
const semver = require_semver$2();
|
|
99023
100563
|
const satisfies = (range) => {
|
|
99024
100564
|
return semver.satisfies(process.version, range, { includePrerelease: true });
|
|
99025
100565
|
};
|
|
@@ -111553,7 +113093,7 @@ var require_errors$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
111553
113093
|
}));
|
|
111554
113094
|
//#endregion
|
|
111555
113095
|
//#region ../../node_modules/minizlib/dist/commonjs/constants.js
|
|
111556
|
-
var require_constants$
|
|
113096
|
+
var require_constants$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
111557
113097
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
111558
113098
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
111559
113099
|
};
|
|
@@ -111724,8 +113264,8 @@ var require_commonjs$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
111724
113264
|
const buffer_1$1 = __require("buffer");
|
|
111725
113265
|
const minipass_1 = require_commonjs$10();
|
|
111726
113266
|
const realZlib = __importStar(__require("zlib"));
|
|
111727
|
-
const constants_js_1 = require_constants$
|
|
111728
|
-
var constants_js_2 = require_constants$
|
|
113267
|
+
const constants_js_1 = require_constants$4();
|
|
113268
|
+
var constants_js_2 = require_constants$4();
|
|
111729
113269
|
Object.defineProperty(exports, "constants", {
|
|
111730
113270
|
enumerable: true,
|
|
111731
113271
|
get: function() {
|
|
@@ -126367,7 +127907,7 @@ var require_smartbuffer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
126367
127907
|
}));
|
|
126368
127908
|
//#endregion
|
|
126369
127909
|
//#region ../../node_modules/socks/build/common/constants.js
|
|
126370
|
-
var require_constants$
|
|
127910
|
+
var require_constants$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
126371
127911
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
126372
127912
|
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;
|
|
126373
127913
|
exports.DEFAULT_TIMEOUT = 3e4;
|
|
@@ -126533,7 +128073,7 @@ var require_common = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
126533
128073
|
}));
|
|
126534
128074
|
//#endregion
|
|
126535
128075
|
//#region ../../node_modules/ip-address/dist/v4/constants.js
|
|
126536
|
-
var require_constants$
|
|
128076
|
+
var require_constants$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
126537
128077
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
126538
128078
|
exports.RE_SUBNET_STRING = exports.RE_ADDRESS = exports.GROUPS = exports.BITS = void 0;
|
|
126539
128079
|
exports.BITS = 32;
|
|
@@ -126592,7 +128132,7 @@ var require_ipv4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
126592
128132
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
126593
128133
|
exports.Address4 = void 0;
|
|
126594
128134
|
const common = __importStar(require_common());
|
|
126595
|
-
const constants = __importStar(require_constants$
|
|
128135
|
+
const constants = __importStar(require_constants$2());
|
|
126596
128136
|
const address_error_1 = require_address_error();
|
|
126597
128137
|
exports.Address4 = class Address4 {
|
|
126598
128138
|
constructor(address) {
|
|
@@ -126886,7 +128426,7 @@ var require_ipv4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
126886
128426
|
}));
|
|
126887
128427
|
//#endregion
|
|
126888
128428
|
//#region ../../node_modules/ip-address/dist/v6/constants.js
|
|
126889
|
-
var require_constants = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
128429
|
+
var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
126890
128430
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
126891
128431
|
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;
|
|
126892
128432
|
exports.BITS = 128;
|
|
@@ -127042,7 +128582,7 @@ var require_regular_expressions = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
127042
128582
|
exports.padGroup = padGroup;
|
|
127043
128583
|
exports.simpleRegularExpression = simpleRegularExpression;
|
|
127044
128584
|
exports.possibleElisions = possibleElisions;
|
|
127045
|
-
const v6 = __importStar(require_constants());
|
|
128585
|
+
const v6 = __importStar(require_constants$1());
|
|
127046
128586
|
function groupPossibilities(possibilities) {
|
|
127047
128587
|
return `(${possibilities.join("|")})`;
|
|
127048
128588
|
}
|
|
@@ -127117,8 +128657,8 @@ var require_ipv6 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
127117
128657
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
127118
128658
|
exports.Address6 = void 0;
|
|
127119
128659
|
const common = __importStar(require_common());
|
|
127120
|
-
const constants4 = __importStar(require_constants$
|
|
127121
|
-
const constants6 = __importStar(require_constants());
|
|
128660
|
+
const constants4 = __importStar(require_constants$2());
|
|
128661
|
+
const constants6 = __importStar(require_constants$1());
|
|
127122
128662
|
const helpers = __importStar(require_helpers$1());
|
|
127123
128663
|
const ipv4_1 = require_ipv4();
|
|
127124
128664
|
const regular_expressions_1 = require_regular_expressions();
|
|
@@ -127938,7 +129478,7 @@ var require_helpers = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
127938
129478
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
127939
129479
|
exports.ipToBuffer = exports.int32ToIpv4 = exports.ipv4ToInt32 = exports.validateSocksClientChainOptions = exports.validateSocksClientOptions = void 0;
|
|
127940
129480
|
const util_1 = require_util$1();
|
|
127941
|
-
const constants_1 = require_constants$
|
|
129481
|
+
const constants_1 = require_constants$3();
|
|
127942
129482
|
const stream = __require("stream");
|
|
127943
129483
|
const ip_address_1 = require_ip_address();
|
|
127944
129484
|
const net$3 = __require("net");
|
|
@@ -128103,7 +129643,7 @@ var require_socksclient = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
128103
129643
|
const events_1 = __require("events");
|
|
128104
129644
|
const net$2 = __require("net");
|
|
128105
129645
|
const smart_buffer_1 = require_smartbuffer();
|
|
128106
|
-
const constants_1 = require_constants$
|
|
129646
|
+
const constants_1 = require_constants$3();
|
|
128107
129647
|
const helpers_1 = require_helpers();
|
|
128108
129648
|
const receivebuffer_1 = require_receivebuffer();
|
|
128109
129649
|
const util_1 = require_util$1();
|
|
@@ -132352,7 +133892,7 @@ var require_length = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
132352
133892
|
}));
|
|
132353
133893
|
//#endregion
|
|
132354
133894
|
//#region ../../node_modules/@sigstore/core/dist/asn1/parse.js
|
|
132355
|
-
var require_parse = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
133895
|
+
var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
132356
133896
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
132357
133897
|
exports.parseInteger = parseInteger;
|
|
132358
133898
|
exports.parseStringASCII = parseStringASCII;
|
|
@@ -132498,7 +134038,7 @@ var require_obj = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
132498
134038
|
const stream_1 = require_stream();
|
|
132499
134039
|
const error_1 = require_error$8();
|
|
132500
134040
|
const length_1 = require_length();
|
|
132501
|
-
const parse_1 = require_parse();
|
|
134041
|
+
const parse_1 = require_parse$1();
|
|
132502
134042
|
const tag_1 = require_tag();
|
|
132503
134043
|
var ASN1Obj = class {
|
|
132504
134044
|
tag;
|
|
@@ -140814,6 +142354,1343 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
140814
142354
|
};
|
|
140815
142355
|
}));
|
|
140816
142356
|
//#endregion
|
|
142357
|
+
//#region ../../packages/core-node/node_modules/semver/internal/constants.js
|
|
142358
|
+
var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142359
|
+
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
142360
|
+
const MAX_LENGTH = 256;
|
|
142361
|
+
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
142362
|
+
module.exports = {
|
|
142363
|
+
MAX_LENGTH,
|
|
142364
|
+
MAX_SAFE_COMPONENT_LENGTH: 16,
|
|
142365
|
+
MAX_SAFE_BUILD_LENGTH: MAX_LENGTH - 6,
|
|
142366
|
+
MAX_SAFE_INTEGER,
|
|
142367
|
+
RELEASE_TYPES: [
|
|
142368
|
+
"major",
|
|
142369
|
+
"premajor",
|
|
142370
|
+
"minor",
|
|
142371
|
+
"preminor",
|
|
142372
|
+
"patch",
|
|
142373
|
+
"prepatch",
|
|
142374
|
+
"prerelease"
|
|
142375
|
+
],
|
|
142376
|
+
SEMVER_SPEC_VERSION,
|
|
142377
|
+
FLAG_INCLUDE_PRERELEASE: 1,
|
|
142378
|
+
FLAG_LOOSE: 2
|
|
142379
|
+
};
|
|
142380
|
+
}));
|
|
142381
|
+
//#endregion
|
|
142382
|
+
//#region ../../packages/core-node/node_modules/semver/internal/debug.js
|
|
142383
|
+
var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142384
|
+
module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
142385
|
+
}));
|
|
142386
|
+
//#endregion
|
|
142387
|
+
//#region ../../packages/core-node/node_modules/semver/internal/re.js
|
|
142388
|
+
var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142389
|
+
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
|
|
142390
|
+
const debug = require_debug();
|
|
142391
|
+
exports = module.exports = {};
|
|
142392
|
+
const re = exports.re = [];
|
|
142393
|
+
const safeRe = exports.safeRe = [];
|
|
142394
|
+
const src = exports.src = [];
|
|
142395
|
+
const safeSrc = exports.safeSrc = [];
|
|
142396
|
+
const t = exports.t = {};
|
|
142397
|
+
let R = 0;
|
|
142398
|
+
const LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
142399
|
+
const safeRegexReplacements = [
|
|
142400
|
+
["\\s", 1],
|
|
142401
|
+
["\\d", MAX_LENGTH],
|
|
142402
|
+
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
|
|
142403
|
+
];
|
|
142404
|
+
const makeSafeRegex = (value) => {
|
|
142405
|
+
for (const [token, max] of safeRegexReplacements) value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
|
|
142406
|
+
return value;
|
|
142407
|
+
};
|
|
142408
|
+
const createToken = (name, value, isGlobal) => {
|
|
142409
|
+
const safe = makeSafeRegex(value);
|
|
142410
|
+
const index = R++;
|
|
142411
|
+
debug(name, index, value);
|
|
142412
|
+
t[name] = index;
|
|
142413
|
+
src[index] = value;
|
|
142414
|
+
safeSrc[index] = safe;
|
|
142415
|
+
re[index] = new RegExp(value, isGlobal ? "g" : void 0);
|
|
142416
|
+
safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
142417
|
+
};
|
|
142418
|
+
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
142419
|
+
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
142420
|
+
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
142421
|
+
createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
|
|
142422
|
+
createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
142423
|
+
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
|
|
142424
|
+
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
142425
|
+
createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
142426
|
+
createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
142427
|
+
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
142428
|
+
createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
|
|
142429
|
+
createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
|
|
142430
|
+
createToken("FULL", `^${src[t.FULLPLAIN]}$`);
|
|
142431
|
+
createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
|
|
142432
|
+
createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
|
|
142433
|
+
createToken("GTLT", "((?:<|>)?=?)");
|
|
142434
|
+
createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
|
142435
|
+
createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
|
|
142436
|
+
createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
|
|
142437
|
+
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
|
|
142438
|
+
createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
|
|
142439
|
+
createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
|
|
142440
|
+
createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
|
142441
|
+
createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
142442
|
+
createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
|
|
142443
|
+
createToken("COERCERTL", src[t.COERCE], true);
|
|
142444
|
+
createToken("COERCERTLFULL", src[t.COERCEFULL], true);
|
|
142445
|
+
createToken("LONETILDE", "(?:~>?)");
|
|
142446
|
+
createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
|
|
142447
|
+
exports.tildeTrimReplace = "$1~";
|
|
142448
|
+
createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
|
|
142449
|
+
createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
142450
|
+
createToken("LONECARET", "(?:\\^)");
|
|
142451
|
+
createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
|
|
142452
|
+
exports.caretTrimReplace = "$1^";
|
|
142453
|
+
createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
|
|
142454
|
+
createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
142455
|
+
createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
|
|
142456
|
+
createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
|
|
142457
|
+
createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
|
|
142458
|
+
exports.comparatorTrimReplace = "$1$2$3";
|
|
142459
|
+
createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
|
|
142460
|
+
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
|
|
142461
|
+
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
142462
|
+
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
142463
|
+
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
142464
|
+
}));
|
|
142465
|
+
//#endregion
|
|
142466
|
+
//#region ../../packages/core-node/node_modules/semver/internal/parse-options.js
|
|
142467
|
+
var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142468
|
+
const looseOption = Object.freeze({ loose: true });
|
|
142469
|
+
const emptyOpts = Object.freeze({});
|
|
142470
|
+
const parseOptions = (options) => {
|
|
142471
|
+
if (!options) return emptyOpts;
|
|
142472
|
+
if (typeof options !== "object") return looseOption;
|
|
142473
|
+
return options;
|
|
142474
|
+
};
|
|
142475
|
+
module.exports = parseOptions;
|
|
142476
|
+
}));
|
|
142477
|
+
//#endregion
|
|
142478
|
+
//#region ../../packages/core-node/node_modules/semver/internal/identifiers.js
|
|
142479
|
+
var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142480
|
+
const numeric = /^[0-9]+$/;
|
|
142481
|
+
const compareIdentifiers = (a, b) => {
|
|
142482
|
+
if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
|
|
142483
|
+
const anum = numeric.test(a);
|
|
142484
|
+
const bnum = numeric.test(b);
|
|
142485
|
+
if (anum && bnum) {
|
|
142486
|
+
a = +a;
|
|
142487
|
+
b = +b;
|
|
142488
|
+
}
|
|
142489
|
+
return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
|
|
142490
|
+
};
|
|
142491
|
+
const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
|
|
142492
|
+
module.exports = {
|
|
142493
|
+
compareIdentifiers,
|
|
142494
|
+
rcompareIdentifiers
|
|
142495
|
+
};
|
|
142496
|
+
}));
|
|
142497
|
+
//#endregion
|
|
142498
|
+
//#region ../../packages/core-node/node_modules/semver/classes/semver.js
|
|
142499
|
+
var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142500
|
+
const debug = require_debug();
|
|
142501
|
+
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
142502
|
+
const { safeRe: re, t } = require_re();
|
|
142503
|
+
const parseOptions = require_parse_options();
|
|
142504
|
+
const { compareIdentifiers } = require_identifiers();
|
|
142505
|
+
module.exports = class SemVer {
|
|
142506
|
+
constructor(version, options) {
|
|
142507
|
+
options = parseOptions(options);
|
|
142508
|
+
if (version instanceof SemVer) if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) return version;
|
|
142509
|
+
else version = version.version;
|
|
142510
|
+
else if (typeof version !== "string") throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
142511
|
+
if (version.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
|
|
142512
|
+
debug("SemVer", version, options);
|
|
142513
|
+
this.options = options;
|
|
142514
|
+
this.loose = !!options.loose;
|
|
142515
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
142516
|
+
const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
|
|
142517
|
+
if (!m) throw new TypeError(`Invalid Version: ${version}`);
|
|
142518
|
+
this.raw = version;
|
|
142519
|
+
this.major = +m[1];
|
|
142520
|
+
this.minor = +m[2];
|
|
142521
|
+
this.patch = +m[3];
|
|
142522
|
+
if (this.major > MAX_SAFE_INTEGER || this.major < 0) throw new TypeError("Invalid major version");
|
|
142523
|
+
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError("Invalid minor version");
|
|
142524
|
+
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError("Invalid patch version");
|
|
142525
|
+
if (!m[4]) this.prerelease = [];
|
|
142526
|
+
else this.prerelease = m[4].split(".").map((id) => {
|
|
142527
|
+
if (/^[0-9]+$/.test(id)) {
|
|
142528
|
+
const num = +id;
|
|
142529
|
+
if (num >= 0 && num < MAX_SAFE_INTEGER) return num;
|
|
142530
|
+
}
|
|
142531
|
+
return id;
|
|
142532
|
+
});
|
|
142533
|
+
this.build = m[5] ? m[5].split(".") : [];
|
|
142534
|
+
this.format();
|
|
142535
|
+
}
|
|
142536
|
+
format() {
|
|
142537
|
+
this.version = `${this.major}.${this.minor}.${this.patch}`;
|
|
142538
|
+
if (this.prerelease.length) this.version += `-${this.prerelease.join(".")}`;
|
|
142539
|
+
return this.version;
|
|
142540
|
+
}
|
|
142541
|
+
toString() {
|
|
142542
|
+
return this.version;
|
|
142543
|
+
}
|
|
142544
|
+
compare(other) {
|
|
142545
|
+
debug("SemVer.compare", this.version, this.options, other);
|
|
142546
|
+
if (!(other instanceof SemVer)) {
|
|
142547
|
+
if (typeof other === "string" && other === this.version) return 0;
|
|
142548
|
+
other = new SemVer(other, this.options);
|
|
142549
|
+
}
|
|
142550
|
+
if (other.version === this.version) return 0;
|
|
142551
|
+
return this.compareMain(other) || this.comparePre(other);
|
|
142552
|
+
}
|
|
142553
|
+
compareMain(other) {
|
|
142554
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
142555
|
+
if (this.major < other.major) return -1;
|
|
142556
|
+
if (this.major > other.major) return 1;
|
|
142557
|
+
if (this.minor < other.minor) return -1;
|
|
142558
|
+
if (this.minor > other.minor) return 1;
|
|
142559
|
+
if (this.patch < other.patch) return -1;
|
|
142560
|
+
if (this.patch > other.patch) return 1;
|
|
142561
|
+
return 0;
|
|
142562
|
+
}
|
|
142563
|
+
comparePre(other) {
|
|
142564
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
142565
|
+
if (this.prerelease.length && !other.prerelease.length) return -1;
|
|
142566
|
+
else if (!this.prerelease.length && other.prerelease.length) return 1;
|
|
142567
|
+
else if (!this.prerelease.length && !other.prerelease.length) return 0;
|
|
142568
|
+
let i = 0;
|
|
142569
|
+
do {
|
|
142570
|
+
const a = this.prerelease[i];
|
|
142571
|
+
const b = other.prerelease[i];
|
|
142572
|
+
debug("prerelease compare", i, a, b);
|
|
142573
|
+
if (a === void 0 && b === void 0) return 0;
|
|
142574
|
+
else if (b === void 0) return 1;
|
|
142575
|
+
else if (a === void 0) return -1;
|
|
142576
|
+
else if (a === b) continue;
|
|
142577
|
+
else return compareIdentifiers(a, b);
|
|
142578
|
+
} while (++i);
|
|
142579
|
+
}
|
|
142580
|
+
compareBuild(other) {
|
|
142581
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
142582
|
+
let i = 0;
|
|
142583
|
+
do {
|
|
142584
|
+
const a = this.build[i];
|
|
142585
|
+
const b = other.build[i];
|
|
142586
|
+
debug("build compare", i, a, b);
|
|
142587
|
+
if (a === void 0 && b === void 0) return 0;
|
|
142588
|
+
else if (b === void 0) return 1;
|
|
142589
|
+
else if (a === void 0) return -1;
|
|
142590
|
+
else if (a === b) continue;
|
|
142591
|
+
else return compareIdentifiers(a, b);
|
|
142592
|
+
} while (++i);
|
|
142593
|
+
}
|
|
142594
|
+
inc(release, identifier, identifierBase) {
|
|
142595
|
+
if (release.startsWith("pre")) {
|
|
142596
|
+
if (!identifier && identifierBase === false) throw new Error("invalid increment argument: identifier is empty");
|
|
142597
|
+
if (identifier) {
|
|
142598
|
+
const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
|
|
142599
|
+
if (!match || match[1] !== identifier) throw new Error(`invalid identifier: ${identifier}`);
|
|
142600
|
+
}
|
|
142601
|
+
}
|
|
142602
|
+
switch (release) {
|
|
142603
|
+
case "premajor":
|
|
142604
|
+
this.prerelease.length = 0;
|
|
142605
|
+
this.patch = 0;
|
|
142606
|
+
this.minor = 0;
|
|
142607
|
+
this.major++;
|
|
142608
|
+
this.inc("pre", identifier, identifierBase);
|
|
142609
|
+
break;
|
|
142610
|
+
case "preminor":
|
|
142611
|
+
this.prerelease.length = 0;
|
|
142612
|
+
this.patch = 0;
|
|
142613
|
+
this.minor++;
|
|
142614
|
+
this.inc("pre", identifier, identifierBase);
|
|
142615
|
+
break;
|
|
142616
|
+
case "prepatch":
|
|
142617
|
+
this.prerelease.length = 0;
|
|
142618
|
+
this.inc("patch", identifier, identifierBase);
|
|
142619
|
+
this.inc("pre", identifier, identifierBase);
|
|
142620
|
+
break;
|
|
142621
|
+
case "prerelease":
|
|
142622
|
+
if (this.prerelease.length === 0) this.inc("patch", identifier, identifierBase);
|
|
142623
|
+
this.inc("pre", identifier, identifierBase);
|
|
142624
|
+
break;
|
|
142625
|
+
case "release":
|
|
142626
|
+
if (this.prerelease.length === 0) throw new Error(`version ${this.raw} is not a prerelease`);
|
|
142627
|
+
this.prerelease.length = 0;
|
|
142628
|
+
break;
|
|
142629
|
+
case "major":
|
|
142630
|
+
if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) this.major++;
|
|
142631
|
+
this.minor = 0;
|
|
142632
|
+
this.patch = 0;
|
|
142633
|
+
this.prerelease = [];
|
|
142634
|
+
break;
|
|
142635
|
+
case "minor":
|
|
142636
|
+
if (this.patch !== 0 || this.prerelease.length === 0) this.minor++;
|
|
142637
|
+
this.patch = 0;
|
|
142638
|
+
this.prerelease = [];
|
|
142639
|
+
break;
|
|
142640
|
+
case "patch":
|
|
142641
|
+
if (this.prerelease.length === 0) this.patch++;
|
|
142642
|
+
this.prerelease = [];
|
|
142643
|
+
break;
|
|
142644
|
+
case "pre": {
|
|
142645
|
+
const base = Number(identifierBase) ? 1 : 0;
|
|
142646
|
+
if (this.prerelease.length === 0) this.prerelease = [base];
|
|
142647
|
+
else {
|
|
142648
|
+
let i = this.prerelease.length;
|
|
142649
|
+
while (--i >= 0) if (typeof this.prerelease[i] === "number") {
|
|
142650
|
+
this.prerelease[i]++;
|
|
142651
|
+
i = -2;
|
|
142652
|
+
}
|
|
142653
|
+
if (i === -1) {
|
|
142654
|
+
if (identifier === this.prerelease.join(".") && identifierBase === false) throw new Error("invalid increment argument: identifier already exists");
|
|
142655
|
+
this.prerelease.push(base);
|
|
142656
|
+
}
|
|
142657
|
+
}
|
|
142658
|
+
if (identifier) {
|
|
142659
|
+
let prerelease = [identifier, base];
|
|
142660
|
+
if (identifierBase === false) prerelease = [identifier];
|
|
142661
|
+
if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
|
|
142662
|
+
if (isNaN(this.prerelease[1])) this.prerelease = prerelease;
|
|
142663
|
+
} else this.prerelease = prerelease;
|
|
142664
|
+
}
|
|
142665
|
+
break;
|
|
142666
|
+
}
|
|
142667
|
+
default: throw new Error(`invalid increment argument: ${release}`);
|
|
142668
|
+
}
|
|
142669
|
+
this.raw = this.format();
|
|
142670
|
+
if (this.build.length) this.raw += `+${this.build.join(".")}`;
|
|
142671
|
+
return this;
|
|
142672
|
+
}
|
|
142673
|
+
};
|
|
142674
|
+
}));
|
|
142675
|
+
//#endregion
|
|
142676
|
+
//#region ../../packages/core-node/node_modules/semver/functions/parse.js
|
|
142677
|
+
var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142678
|
+
const SemVer = require_semver$1();
|
|
142679
|
+
const parse = (version, options, throwErrors = false) => {
|
|
142680
|
+
if (version instanceof SemVer) return version;
|
|
142681
|
+
try {
|
|
142682
|
+
return new SemVer(version, options);
|
|
142683
|
+
} catch (er) {
|
|
142684
|
+
if (!throwErrors) return null;
|
|
142685
|
+
throw er;
|
|
142686
|
+
}
|
|
142687
|
+
};
|
|
142688
|
+
module.exports = parse;
|
|
142689
|
+
}));
|
|
142690
|
+
//#endregion
|
|
142691
|
+
//#region ../../packages/core-node/node_modules/semver/functions/valid.js
|
|
142692
|
+
var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142693
|
+
const parse = require_parse();
|
|
142694
|
+
const valid = (version, options) => {
|
|
142695
|
+
const v = parse(version, options);
|
|
142696
|
+
return v ? v.version : null;
|
|
142697
|
+
};
|
|
142698
|
+
module.exports = valid;
|
|
142699
|
+
}));
|
|
142700
|
+
//#endregion
|
|
142701
|
+
//#region ../../packages/core-node/node_modules/semver/functions/clean.js
|
|
142702
|
+
var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142703
|
+
const parse = require_parse();
|
|
142704
|
+
const clean = (version, options) => {
|
|
142705
|
+
const s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
142706
|
+
return s ? s.version : null;
|
|
142707
|
+
};
|
|
142708
|
+
module.exports = clean;
|
|
142709
|
+
}));
|
|
142710
|
+
//#endregion
|
|
142711
|
+
//#region ../../packages/core-node/node_modules/semver/functions/inc.js
|
|
142712
|
+
var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142713
|
+
const SemVer = require_semver$1();
|
|
142714
|
+
const inc = (version, release, options, identifier, identifierBase) => {
|
|
142715
|
+
if (typeof options === "string") {
|
|
142716
|
+
identifierBase = identifier;
|
|
142717
|
+
identifier = options;
|
|
142718
|
+
options = void 0;
|
|
142719
|
+
}
|
|
142720
|
+
try {
|
|
142721
|
+
return new SemVer(version instanceof SemVer ? version.version : version, options).inc(release, identifier, identifierBase).version;
|
|
142722
|
+
} catch (er) {
|
|
142723
|
+
return null;
|
|
142724
|
+
}
|
|
142725
|
+
};
|
|
142726
|
+
module.exports = inc;
|
|
142727
|
+
}));
|
|
142728
|
+
//#endregion
|
|
142729
|
+
//#region ../../packages/core-node/node_modules/semver/functions/diff.js
|
|
142730
|
+
var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142731
|
+
const parse = require_parse();
|
|
142732
|
+
const diff = (version1, version2) => {
|
|
142733
|
+
const v1 = parse(version1, null, true);
|
|
142734
|
+
const v2 = parse(version2, null, true);
|
|
142735
|
+
const comparison = v1.compare(v2);
|
|
142736
|
+
if (comparison === 0) return null;
|
|
142737
|
+
const v1Higher = comparison > 0;
|
|
142738
|
+
const highVersion = v1Higher ? v1 : v2;
|
|
142739
|
+
const lowVersion = v1Higher ? v2 : v1;
|
|
142740
|
+
const highHasPre = !!highVersion.prerelease.length;
|
|
142741
|
+
if (!!lowVersion.prerelease.length && !highHasPre) {
|
|
142742
|
+
if (!lowVersion.patch && !lowVersion.minor) return "major";
|
|
142743
|
+
if (lowVersion.compareMain(highVersion) === 0) {
|
|
142744
|
+
if (lowVersion.minor && !lowVersion.patch) return "minor";
|
|
142745
|
+
return "patch";
|
|
142746
|
+
}
|
|
142747
|
+
}
|
|
142748
|
+
const prefix = highHasPre ? "pre" : "";
|
|
142749
|
+
if (v1.major !== v2.major) return prefix + "major";
|
|
142750
|
+
if (v1.minor !== v2.minor) return prefix + "minor";
|
|
142751
|
+
if (v1.patch !== v2.patch) return prefix + "patch";
|
|
142752
|
+
return "prerelease";
|
|
142753
|
+
};
|
|
142754
|
+
module.exports = diff;
|
|
142755
|
+
}));
|
|
142756
|
+
//#endregion
|
|
142757
|
+
//#region ../../packages/core-node/node_modules/semver/functions/major.js
|
|
142758
|
+
var require_major = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142759
|
+
const SemVer = require_semver$1();
|
|
142760
|
+
const major = (a, loose) => new SemVer(a, loose).major;
|
|
142761
|
+
module.exports = major;
|
|
142762
|
+
}));
|
|
142763
|
+
//#endregion
|
|
142764
|
+
//#region ../../packages/core-node/node_modules/semver/functions/minor.js
|
|
142765
|
+
var require_minor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142766
|
+
const SemVer = require_semver$1();
|
|
142767
|
+
const minor = (a, loose) => new SemVer(a, loose).minor;
|
|
142768
|
+
module.exports = minor;
|
|
142769
|
+
}));
|
|
142770
|
+
//#endregion
|
|
142771
|
+
//#region ../../packages/core-node/node_modules/semver/functions/patch.js
|
|
142772
|
+
var require_patch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142773
|
+
const SemVer = require_semver$1();
|
|
142774
|
+
const patch = (a, loose) => new SemVer(a, loose).patch;
|
|
142775
|
+
module.exports = patch;
|
|
142776
|
+
}));
|
|
142777
|
+
//#endregion
|
|
142778
|
+
//#region ../../packages/core-node/node_modules/semver/functions/prerelease.js
|
|
142779
|
+
var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142780
|
+
const parse = require_parse();
|
|
142781
|
+
const prerelease = (version, options) => {
|
|
142782
|
+
const parsed = parse(version, options);
|
|
142783
|
+
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
142784
|
+
};
|
|
142785
|
+
module.exports = prerelease;
|
|
142786
|
+
}));
|
|
142787
|
+
//#endregion
|
|
142788
|
+
//#region ../../packages/core-node/node_modules/semver/functions/compare.js
|
|
142789
|
+
var require_compare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142790
|
+
const SemVer = require_semver$1();
|
|
142791
|
+
const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
142792
|
+
module.exports = compare;
|
|
142793
|
+
}));
|
|
142794
|
+
//#endregion
|
|
142795
|
+
//#region ../../packages/core-node/node_modules/semver/functions/rcompare.js
|
|
142796
|
+
var require_rcompare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142797
|
+
const compare = require_compare();
|
|
142798
|
+
const rcompare = (a, b, loose) => compare(b, a, loose);
|
|
142799
|
+
module.exports = rcompare;
|
|
142800
|
+
}));
|
|
142801
|
+
//#endregion
|
|
142802
|
+
//#region ../../packages/core-node/node_modules/semver/functions/compare-loose.js
|
|
142803
|
+
var require_compare_loose = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142804
|
+
const compare = require_compare();
|
|
142805
|
+
const compareLoose = (a, b) => compare(a, b, true);
|
|
142806
|
+
module.exports = compareLoose;
|
|
142807
|
+
}));
|
|
142808
|
+
//#endregion
|
|
142809
|
+
//#region ../../packages/core-node/node_modules/semver/functions/compare-build.js
|
|
142810
|
+
var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142811
|
+
const SemVer = require_semver$1();
|
|
142812
|
+
const compareBuild = (a, b, loose) => {
|
|
142813
|
+
const versionA = new SemVer(a, loose);
|
|
142814
|
+
const versionB = new SemVer(b, loose);
|
|
142815
|
+
return versionA.compare(versionB) || versionA.compareBuild(versionB);
|
|
142816
|
+
};
|
|
142817
|
+
module.exports = compareBuild;
|
|
142818
|
+
}));
|
|
142819
|
+
//#endregion
|
|
142820
|
+
//#region ../../packages/core-node/node_modules/semver/functions/sort.js
|
|
142821
|
+
var require_sort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142822
|
+
const compareBuild = require_compare_build();
|
|
142823
|
+
const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
142824
|
+
module.exports = sort;
|
|
142825
|
+
}));
|
|
142826
|
+
//#endregion
|
|
142827
|
+
//#region ../../packages/core-node/node_modules/semver/functions/rsort.js
|
|
142828
|
+
var require_rsort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142829
|
+
const compareBuild = require_compare_build();
|
|
142830
|
+
const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
142831
|
+
module.exports = rsort;
|
|
142832
|
+
}));
|
|
142833
|
+
//#endregion
|
|
142834
|
+
//#region ../../packages/core-node/node_modules/semver/functions/gt.js
|
|
142835
|
+
var require_gt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142836
|
+
const compare = require_compare();
|
|
142837
|
+
const gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
142838
|
+
module.exports = gt;
|
|
142839
|
+
}));
|
|
142840
|
+
//#endregion
|
|
142841
|
+
//#region ../../packages/core-node/node_modules/semver/functions/lt.js
|
|
142842
|
+
var require_lt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142843
|
+
const compare = require_compare();
|
|
142844
|
+
const lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
142845
|
+
module.exports = lt;
|
|
142846
|
+
}));
|
|
142847
|
+
//#endregion
|
|
142848
|
+
//#region ../../packages/core-node/node_modules/semver/functions/eq.js
|
|
142849
|
+
var require_eq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142850
|
+
const compare = require_compare();
|
|
142851
|
+
const eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
142852
|
+
module.exports = eq;
|
|
142853
|
+
}));
|
|
142854
|
+
//#endregion
|
|
142855
|
+
//#region ../../packages/core-node/node_modules/semver/functions/neq.js
|
|
142856
|
+
var require_neq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142857
|
+
const compare = require_compare();
|
|
142858
|
+
const neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
142859
|
+
module.exports = neq;
|
|
142860
|
+
}));
|
|
142861
|
+
//#endregion
|
|
142862
|
+
//#region ../../packages/core-node/node_modules/semver/functions/gte.js
|
|
142863
|
+
var require_gte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142864
|
+
const compare = require_compare();
|
|
142865
|
+
const gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
142866
|
+
module.exports = gte;
|
|
142867
|
+
}));
|
|
142868
|
+
//#endregion
|
|
142869
|
+
//#region ../../packages/core-node/node_modules/semver/functions/lte.js
|
|
142870
|
+
var require_lte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142871
|
+
const compare = require_compare();
|
|
142872
|
+
const lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
142873
|
+
module.exports = lte;
|
|
142874
|
+
}));
|
|
142875
|
+
//#endregion
|
|
142876
|
+
//#region ../../packages/core-node/node_modules/semver/functions/cmp.js
|
|
142877
|
+
var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142878
|
+
const eq = require_eq();
|
|
142879
|
+
const neq = require_neq();
|
|
142880
|
+
const gt = require_gt();
|
|
142881
|
+
const gte = require_gte();
|
|
142882
|
+
const lt = require_lt();
|
|
142883
|
+
const lte = require_lte();
|
|
142884
|
+
const cmp = (a, op, b, loose) => {
|
|
142885
|
+
switch (op) {
|
|
142886
|
+
case "===":
|
|
142887
|
+
if (typeof a === "object") a = a.version;
|
|
142888
|
+
if (typeof b === "object") b = b.version;
|
|
142889
|
+
return a === b;
|
|
142890
|
+
case "!==":
|
|
142891
|
+
if (typeof a === "object") a = a.version;
|
|
142892
|
+
if (typeof b === "object") b = b.version;
|
|
142893
|
+
return a !== b;
|
|
142894
|
+
case "":
|
|
142895
|
+
case "=":
|
|
142896
|
+
case "==": return eq(a, b, loose);
|
|
142897
|
+
case "!=": return neq(a, b, loose);
|
|
142898
|
+
case ">": return gt(a, b, loose);
|
|
142899
|
+
case ">=": return gte(a, b, loose);
|
|
142900
|
+
case "<": return lt(a, b, loose);
|
|
142901
|
+
case "<=": return lte(a, b, loose);
|
|
142902
|
+
default: throw new TypeError(`Invalid operator: ${op}`);
|
|
142903
|
+
}
|
|
142904
|
+
};
|
|
142905
|
+
module.exports = cmp;
|
|
142906
|
+
}));
|
|
142907
|
+
//#endregion
|
|
142908
|
+
//#region ../../packages/core-node/node_modules/semver/functions/coerce.js
|
|
142909
|
+
var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142910
|
+
const SemVer = require_semver$1();
|
|
142911
|
+
const parse = require_parse();
|
|
142912
|
+
const { safeRe: re, t } = require_re();
|
|
142913
|
+
const coerce = (version, options) => {
|
|
142914
|
+
if (version instanceof SemVer) return version;
|
|
142915
|
+
if (typeof version === "number") version = String(version);
|
|
142916
|
+
if (typeof version !== "string") return null;
|
|
142917
|
+
options = options || {};
|
|
142918
|
+
let match = null;
|
|
142919
|
+
if (!options.rtl) match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
|
|
142920
|
+
else {
|
|
142921
|
+
const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL];
|
|
142922
|
+
let next;
|
|
142923
|
+
while ((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)) {
|
|
142924
|
+
if (!match || next.index + next[0].length !== match.index + match[0].length) match = next;
|
|
142925
|
+
coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
|
142926
|
+
}
|
|
142927
|
+
coerceRtlRegex.lastIndex = -1;
|
|
142928
|
+
}
|
|
142929
|
+
if (match === null) return null;
|
|
142930
|
+
const major = match[2];
|
|
142931
|
+
return parse(`${major}.${match[3] || "0"}.${match[4] || "0"}${options.includePrerelease && match[5] ? `-${match[5]}` : ""}${options.includePrerelease && match[6] ? `+${match[6]}` : ""}`, options);
|
|
142932
|
+
};
|
|
142933
|
+
module.exports = coerce;
|
|
142934
|
+
}));
|
|
142935
|
+
//#endregion
|
|
142936
|
+
//#region ../../packages/core-node/node_modules/semver/internal/lrucache.js
|
|
142937
|
+
var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142938
|
+
var LRUCache = class {
|
|
142939
|
+
constructor() {
|
|
142940
|
+
this.max = 1e3;
|
|
142941
|
+
this.map = /* @__PURE__ */ new Map();
|
|
142942
|
+
}
|
|
142943
|
+
get(key) {
|
|
142944
|
+
const value = this.map.get(key);
|
|
142945
|
+
if (value === void 0) return;
|
|
142946
|
+
else {
|
|
142947
|
+
this.map.delete(key);
|
|
142948
|
+
this.map.set(key, value);
|
|
142949
|
+
return value;
|
|
142950
|
+
}
|
|
142951
|
+
}
|
|
142952
|
+
delete(key) {
|
|
142953
|
+
return this.map.delete(key);
|
|
142954
|
+
}
|
|
142955
|
+
set(key, value) {
|
|
142956
|
+
if (!this.delete(key) && value !== void 0) {
|
|
142957
|
+
if (this.map.size >= this.max) {
|
|
142958
|
+
const firstKey = this.map.keys().next().value;
|
|
142959
|
+
this.delete(firstKey);
|
|
142960
|
+
}
|
|
142961
|
+
this.map.set(key, value);
|
|
142962
|
+
}
|
|
142963
|
+
return this;
|
|
142964
|
+
}
|
|
142965
|
+
};
|
|
142966
|
+
module.exports = LRUCache;
|
|
142967
|
+
}));
|
|
142968
|
+
//#endregion
|
|
142969
|
+
//#region ../../packages/core-node/node_modules/semver/classes/range.js
|
|
142970
|
+
var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142971
|
+
const SPACE_CHARACTERS = /\s+/g;
|
|
142972
|
+
module.exports = class Range {
|
|
142973
|
+
constructor(range, options) {
|
|
142974
|
+
options = parseOptions(options);
|
|
142975
|
+
if (range instanceof Range) if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) return range;
|
|
142976
|
+
else return new Range(range.raw, options);
|
|
142977
|
+
if (range instanceof Comparator) {
|
|
142978
|
+
this.raw = range.value;
|
|
142979
|
+
this.set = [[range]];
|
|
142980
|
+
this.formatted = void 0;
|
|
142981
|
+
return this;
|
|
142982
|
+
}
|
|
142983
|
+
this.options = options;
|
|
142984
|
+
this.loose = !!options.loose;
|
|
142985
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
142986
|
+
this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
|
|
142987
|
+
this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
|
|
142988
|
+
if (!this.set.length) throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
142989
|
+
if (this.set.length > 1) {
|
|
142990
|
+
const first = this.set[0];
|
|
142991
|
+
this.set = this.set.filter((c) => !isNullSet(c[0]));
|
|
142992
|
+
if (this.set.length === 0) this.set = [first];
|
|
142993
|
+
else if (this.set.length > 1) {
|
|
142994
|
+
for (const c of this.set) if (c.length === 1 && isAny(c[0])) {
|
|
142995
|
+
this.set = [c];
|
|
142996
|
+
break;
|
|
142997
|
+
}
|
|
142998
|
+
}
|
|
142999
|
+
}
|
|
143000
|
+
this.formatted = void 0;
|
|
143001
|
+
}
|
|
143002
|
+
get range() {
|
|
143003
|
+
if (this.formatted === void 0) {
|
|
143004
|
+
this.formatted = "";
|
|
143005
|
+
for (let i = 0; i < this.set.length; i++) {
|
|
143006
|
+
if (i > 0) this.formatted += "||";
|
|
143007
|
+
const comps = this.set[i];
|
|
143008
|
+
for (let k = 0; k < comps.length; k++) {
|
|
143009
|
+
if (k > 0) this.formatted += " ";
|
|
143010
|
+
this.formatted += comps[k].toString().trim();
|
|
143011
|
+
}
|
|
143012
|
+
}
|
|
143013
|
+
}
|
|
143014
|
+
return this.formatted;
|
|
143015
|
+
}
|
|
143016
|
+
format() {
|
|
143017
|
+
return this.range;
|
|
143018
|
+
}
|
|
143019
|
+
toString() {
|
|
143020
|
+
return this.range;
|
|
143021
|
+
}
|
|
143022
|
+
parseRange(range) {
|
|
143023
|
+
const memoKey = ((this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE)) + ":" + range;
|
|
143024
|
+
const cached = cache.get(memoKey);
|
|
143025
|
+
if (cached) return cached;
|
|
143026
|
+
const loose = this.options.loose;
|
|
143027
|
+
const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
|
|
143028
|
+
range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
|
|
143029
|
+
debug("hyphen replace", range);
|
|
143030
|
+
range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace);
|
|
143031
|
+
debug("comparator trim", range);
|
|
143032
|
+
range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
|
|
143033
|
+
debug("tilde trim", range);
|
|
143034
|
+
range = range.replace(re[t.CARETTRIM], caretTrimReplace);
|
|
143035
|
+
debug("caret trim", range);
|
|
143036
|
+
let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
|
|
143037
|
+
if (loose) rangeList = rangeList.filter((comp) => {
|
|
143038
|
+
debug("loose invalid filter", comp, this.options);
|
|
143039
|
+
return !!comp.match(re[t.COMPARATORLOOSE]);
|
|
143040
|
+
});
|
|
143041
|
+
debug("range list", rangeList);
|
|
143042
|
+
const rangeMap = /* @__PURE__ */ new Map();
|
|
143043
|
+
const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
|
|
143044
|
+
for (const comp of comparators) {
|
|
143045
|
+
if (isNullSet(comp)) return [comp];
|
|
143046
|
+
rangeMap.set(comp.value, comp);
|
|
143047
|
+
}
|
|
143048
|
+
if (rangeMap.size > 1 && rangeMap.has("")) rangeMap.delete("");
|
|
143049
|
+
const result = [...rangeMap.values()];
|
|
143050
|
+
cache.set(memoKey, result);
|
|
143051
|
+
return result;
|
|
143052
|
+
}
|
|
143053
|
+
intersects(range, options) {
|
|
143054
|
+
if (!(range instanceof Range)) throw new TypeError("a Range is required");
|
|
143055
|
+
return this.set.some((thisComparators) => {
|
|
143056
|
+
return isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => {
|
|
143057
|
+
return isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => {
|
|
143058
|
+
return rangeComparators.every((rangeComparator) => {
|
|
143059
|
+
return thisComparator.intersects(rangeComparator, options);
|
|
143060
|
+
});
|
|
143061
|
+
});
|
|
143062
|
+
});
|
|
143063
|
+
});
|
|
143064
|
+
}
|
|
143065
|
+
test(version) {
|
|
143066
|
+
if (!version) return false;
|
|
143067
|
+
if (typeof version === "string") try {
|
|
143068
|
+
version = new SemVer(version, this.options);
|
|
143069
|
+
} catch (er) {
|
|
143070
|
+
return false;
|
|
143071
|
+
}
|
|
143072
|
+
for (let i = 0; i < this.set.length; i++) if (testSet(this.set[i], version, this.options)) return true;
|
|
143073
|
+
return false;
|
|
143074
|
+
}
|
|
143075
|
+
};
|
|
143076
|
+
const cache = new (require_lrucache())();
|
|
143077
|
+
const parseOptions = require_parse_options();
|
|
143078
|
+
const Comparator = require_comparator();
|
|
143079
|
+
const debug = require_debug();
|
|
143080
|
+
const SemVer = require_semver$1();
|
|
143081
|
+
const { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re();
|
|
143082
|
+
const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants();
|
|
143083
|
+
const isNullSet = (c) => c.value === "<0.0.0-0";
|
|
143084
|
+
const isAny = (c) => c.value === "";
|
|
143085
|
+
const isSatisfiable = (comparators, options) => {
|
|
143086
|
+
let result = true;
|
|
143087
|
+
const remainingComparators = comparators.slice();
|
|
143088
|
+
let testComparator = remainingComparators.pop();
|
|
143089
|
+
while (result && remainingComparators.length) {
|
|
143090
|
+
result = remainingComparators.every((otherComparator) => {
|
|
143091
|
+
return testComparator.intersects(otherComparator, options);
|
|
143092
|
+
});
|
|
143093
|
+
testComparator = remainingComparators.pop();
|
|
143094
|
+
}
|
|
143095
|
+
return result;
|
|
143096
|
+
};
|
|
143097
|
+
const parseComparator = (comp, options) => {
|
|
143098
|
+
comp = comp.replace(re[t.BUILD], "");
|
|
143099
|
+
debug("comp", comp, options);
|
|
143100
|
+
comp = replaceCarets(comp, options);
|
|
143101
|
+
debug("caret", comp);
|
|
143102
|
+
comp = replaceTildes(comp, options);
|
|
143103
|
+
debug("tildes", comp);
|
|
143104
|
+
comp = replaceXRanges(comp, options);
|
|
143105
|
+
debug("xrange", comp);
|
|
143106
|
+
comp = replaceStars(comp, options);
|
|
143107
|
+
debug("stars", comp);
|
|
143108
|
+
return comp;
|
|
143109
|
+
};
|
|
143110
|
+
const isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
|
|
143111
|
+
const replaceTildes = (comp, options) => {
|
|
143112
|
+
return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
|
|
143113
|
+
};
|
|
143114
|
+
const replaceTilde = (comp, options) => {
|
|
143115
|
+
const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
|
|
143116
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
143117
|
+
debug("tilde", comp, _, M, m, p, pr);
|
|
143118
|
+
let ret;
|
|
143119
|
+
if (isX(M)) ret = "";
|
|
143120
|
+
else if (isX(m)) ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
|
|
143121
|
+
else if (isX(p)) ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
|
|
143122
|
+
else if (pr) {
|
|
143123
|
+
debug("replaceTilde pr", pr);
|
|
143124
|
+
ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
143125
|
+
} else ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
|
|
143126
|
+
debug("tilde return", ret);
|
|
143127
|
+
return ret;
|
|
143128
|
+
});
|
|
143129
|
+
};
|
|
143130
|
+
const replaceCarets = (comp, options) => {
|
|
143131
|
+
return comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" ");
|
|
143132
|
+
};
|
|
143133
|
+
const replaceCaret = (comp, options) => {
|
|
143134
|
+
debug("caret", comp, options);
|
|
143135
|
+
const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET];
|
|
143136
|
+
const z = options.includePrerelease ? "-0" : "";
|
|
143137
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
143138
|
+
debug("caret", comp, _, M, m, p, pr);
|
|
143139
|
+
let ret;
|
|
143140
|
+
if (isX(M)) ret = "";
|
|
143141
|
+
else if (isX(m)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
|
|
143142
|
+
else if (isX(p)) if (M === "0") ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
|
|
143143
|
+
else ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
|
|
143144
|
+
else if (pr) {
|
|
143145
|
+
debug("replaceCaret pr", pr);
|
|
143146
|
+
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;
|
|
143147
|
+
else ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
143148
|
+
else ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
|
|
143149
|
+
} else {
|
|
143150
|
+
debug("no pr");
|
|
143151
|
+
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0`;
|
|
143152
|
+
else ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0`;
|
|
143153
|
+
else ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
|
|
143154
|
+
}
|
|
143155
|
+
debug("caret return", ret);
|
|
143156
|
+
return ret;
|
|
143157
|
+
});
|
|
143158
|
+
};
|
|
143159
|
+
const replaceXRanges = (comp, options) => {
|
|
143160
|
+
debug("replaceXRanges", comp, options);
|
|
143161
|
+
return comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ");
|
|
143162
|
+
};
|
|
143163
|
+
const replaceXRange = (comp, options) => {
|
|
143164
|
+
comp = comp.trim();
|
|
143165
|
+
const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
|
|
143166
|
+
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
|
|
143167
|
+
debug("xRange", comp, ret, gtlt, M, m, p, pr);
|
|
143168
|
+
const xM = isX(M);
|
|
143169
|
+
const xm = xM || isX(m);
|
|
143170
|
+
const xp = xm || isX(p);
|
|
143171
|
+
const anyX = xp;
|
|
143172
|
+
if (gtlt === "=" && anyX) gtlt = "";
|
|
143173
|
+
pr = options.includePrerelease ? "-0" : "";
|
|
143174
|
+
if (xM) if (gtlt === ">" || gtlt === "<") ret = "<0.0.0-0";
|
|
143175
|
+
else ret = "*";
|
|
143176
|
+
else if (gtlt && anyX) {
|
|
143177
|
+
if (xm) m = 0;
|
|
143178
|
+
p = 0;
|
|
143179
|
+
if (gtlt === ">") {
|
|
143180
|
+
gtlt = ">=";
|
|
143181
|
+
if (xm) {
|
|
143182
|
+
M = +M + 1;
|
|
143183
|
+
m = 0;
|
|
143184
|
+
p = 0;
|
|
143185
|
+
} else {
|
|
143186
|
+
m = +m + 1;
|
|
143187
|
+
p = 0;
|
|
143188
|
+
}
|
|
143189
|
+
} else if (gtlt === "<=") {
|
|
143190
|
+
gtlt = "<";
|
|
143191
|
+
if (xm) M = +M + 1;
|
|
143192
|
+
else m = +m + 1;
|
|
143193
|
+
}
|
|
143194
|
+
if (gtlt === "<") pr = "-0";
|
|
143195
|
+
ret = `${gtlt + M}.${m}.${p}${pr}`;
|
|
143196
|
+
} else if (xm) ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
|
|
143197
|
+
else if (xp) ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;
|
|
143198
|
+
debug("xRange return", ret);
|
|
143199
|
+
return ret;
|
|
143200
|
+
});
|
|
143201
|
+
};
|
|
143202
|
+
const replaceStars = (comp, options) => {
|
|
143203
|
+
debug("replaceStars", comp, options);
|
|
143204
|
+
return comp.trim().replace(re[t.STAR], "");
|
|
143205
|
+
};
|
|
143206
|
+
const replaceGTE0 = (comp, options) => {
|
|
143207
|
+
debug("replaceGTE0", comp, options);
|
|
143208
|
+
return comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
|
|
143209
|
+
};
|
|
143210
|
+
const hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
|
|
143211
|
+
if (isX(fM)) from = "";
|
|
143212
|
+
else if (isX(fm)) from = `>=${fM}.0.0${incPr ? "-0" : ""}`;
|
|
143213
|
+
else if (isX(fp)) from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}`;
|
|
143214
|
+
else if (fpr) from = `>=${from}`;
|
|
143215
|
+
else from = `>=${from}${incPr ? "-0" : ""}`;
|
|
143216
|
+
if (isX(tM)) to = "";
|
|
143217
|
+
else if (isX(tm)) to = `<${+tM + 1}.0.0-0`;
|
|
143218
|
+
else if (isX(tp)) to = `<${tM}.${+tm + 1}.0-0`;
|
|
143219
|
+
else if (tpr) to = `<=${tM}.${tm}.${tp}-${tpr}`;
|
|
143220
|
+
else if (incPr) to = `<${tM}.${tm}.${+tp + 1}-0`;
|
|
143221
|
+
else to = `<=${to}`;
|
|
143222
|
+
return `${from} ${to}`.trim();
|
|
143223
|
+
};
|
|
143224
|
+
const testSet = (set, version, options) => {
|
|
143225
|
+
for (let i = 0; i < set.length; i++) if (!set[i].test(version)) return false;
|
|
143226
|
+
if (version.prerelease.length && !options.includePrerelease) {
|
|
143227
|
+
for (let i = 0; i < set.length; i++) {
|
|
143228
|
+
debug(set[i].semver);
|
|
143229
|
+
if (set[i].semver === Comparator.ANY) continue;
|
|
143230
|
+
if (set[i].semver.prerelease.length > 0) {
|
|
143231
|
+
const allowed = set[i].semver;
|
|
143232
|
+
if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) return true;
|
|
143233
|
+
}
|
|
143234
|
+
}
|
|
143235
|
+
return false;
|
|
143236
|
+
}
|
|
143237
|
+
return true;
|
|
143238
|
+
};
|
|
143239
|
+
}));
|
|
143240
|
+
//#endregion
|
|
143241
|
+
//#region ../../packages/core-node/node_modules/semver/classes/comparator.js
|
|
143242
|
+
var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143243
|
+
const ANY = Symbol("SemVer ANY");
|
|
143244
|
+
module.exports = class Comparator {
|
|
143245
|
+
static get ANY() {
|
|
143246
|
+
return ANY;
|
|
143247
|
+
}
|
|
143248
|
+
constructor(comp, options) {
|
|
143249
|
+
options = parseOptions(options);
|
|
143250
|
+
if (comp instanceof Comparator) if (comp.loose === !!options.loose) return comp;
|
|
143251
|
+
else comp = comp.value;
|
|
143252
|
+
comp = comp.trim().split(/\s+/).join(" ");
|
|
143253
|
+
debug("comparator", comp, options);
|
|
143254
|
+
this.options = options;
|
|
143255
|
+
this.loose = !!options.loose;
|
|
143256
|
+
this.parse(comp);
|
|
143257
|
+
if (this.semver === ANY) this.value = "";
|
|
143258
|
+
else this.value = this.operator + this.semver.version;
|
|
143259
|
+
debug("comp", this);
|
|
143260
|
+
}
|
|
143261
|
+
parse(comp) {
|
|
143262
|
+
const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR];
|
|
143263
|
+
const m = comp.match(r);
|
|
143264
|
+
if (!m) throw new TypeError(`Invalid comparator: ${comp}`);
|
|
143265
|
+
this.operator = m[1] !== void 0 ? m[1] : "";
|
|
143266
|
+
if (this.operator === "=") this.operator = "";
|
|
143267
|
+
if (!m[2]) this.semver = ANY;
|
|
143268
|
+
else this.semver = new SemVer(m[2], this.options.loose);
|
|
143269
|
+
}
|
|
143270
|
+
toString() {
|
|
143271
|
+
return this.value;
|
|
143272
|
+
}
|
|
143273
|
+
test(version) {
|
|
143274
|
+
debug("Comparator.test", version, this.options.loose);
|
|
143275
|
+
if (this.semver === ANY || version === ANY) return true;
|
|
143276
|
+
if (typeof version === "string") try {
|
|
143277
|
+
version = new SemVer(version, this.options);
|
|
143278
|
+
} catch (er) {
|
|
143279
|
+
return false;
|
|
143280
|
+
}
|
|
143281
|
+
return cmp(version, this.operator, this.semver, this.options);
|
|
143282
|
+
}
|
|
143283
|
+
intersects(comp, options) {
|
|
143284
|
+
if (!(comp instanceof Comparator)) throw new TypeError("a Comparator is required");
|
|
143285
|
+
if (this.operator === "") {
|
|
143286
|
+
if (this.value === "") return true;
|
|
143287
|
+
return new Range(comp.value, options).test(this.value);
|
|
143288
|
+
} else if (comp.operator === "") {
|
|
143289
|
+
if (comp.value === "") return true;
|
|
143290
|
+
return new Range(this.value, options).test(comp.semver);
|
|
143291
|
+
}
|
|
143292
|
+
options = parseOptions(options);
|
|
143293
|
+
if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) return false;
|
|
143294
|
+
if (!options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0"))) return false;
|
|
143295
|
+
if (this.operator.startsWith(">") && comp.operator.startsWith(">")) return true;
|
|
143296
|
+
if (this.operator.startsWith("<") && comp.operator.startsWith("<")) return true;
|
|
143297
|
+
if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) return true;
|
|
143298
|
+
if (cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) return true;
|
|
143299
|
+
if (cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) return true;
|
|
143300
|
+
return false;
|
|
143301
|
+
}
|
|
143302
|
+
};
|
|
143303
|
+
const parseOptions = require_parse_options();
|
|
143304
|
+
const { safeRe: re, t } = require_re();
|
|
143305
|
+
const cmp = require_cmp();
|
|
143306
|
+
const debug = require_debug();
|
|
143307
|
+
const SemVer = require_semver$1();
|
|
143308
|
+
const Range = require_range();
|
|
143309
|
+
}));
|
|
143310
|
+
//#endregion
|
|
143311
|
+
//#region ../../packages/core-node/node_modules/semver/functions/satisfies.js
|
|
143312
|
+
var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143313
|
+
const Range = require_range();
|
|
143314
|
+
const satisfies = (version, range, options) => {
|
|
143315
|
+
try {
|
|
143316
|
+
range = new Range(range, options);
|
|
143317
|
+
} catch (er) {
|
|
143318
|
+
return false;
|
|
143319
|
+
}
|
|
143320
|
+
return range.test(version);
|
|
143321
|
+
};
|
|
143322
|
+
module.exports = satisfies;
|
|
143323
|
+
}));
|
|
143324
|
+
//#endregion
|
|
143325
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/to-comparators.js
|
|
143326
|
+
var require_to_comparators = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143327
|
+
const Range = require_range();
|
|
143328
|
+
const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
143329
|
+
module.exports = toComparators;
|
|
143330
|
+
}));
|
|
143331
|
+
//#endregion
|
|
143332
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/max-satisfying.js
|
|
143333
|
+
var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143334
|
+
const SemVer = require_semver$1();
|
|
143335
|
+
const Range = require_range();
|
|
143336
|
+
const maxSatisfying = (versions, range, options) => {
|
|
143337
|
+
let max = null;
|
|
143338
|
+
let maxSV = null;
|
|
143339
|
+
let rangeObj = null;
|
|
143340
|
+
try {
|
|
143341
|
+
rangeObj = new Range(range, options);
|
|
143342
|
+
} catch (er) {
|
|
143343
|
+
return null;
|
|
143344
|
+
}
|
|
143345
|
+
versions.forEach((v) => {
|
|
143346
|
+
if (rangeObj.test(v)) {
|
|
143347
|
+
if (!max || maxSV.compare(v) === -1) {
|
|
143348
|
+
max = v;
|
|
143349
|
+
maxSV = new SemVer(max, options);
|
|
143350
|
+
}
|
|
143351
|
+
}
|
|
143352
|
+
});
|
|
143353
|
+
return max;
|
|
143354
|
+
};
|
|
143355
|
+
module.exports = maxSatisfying;
|
|
143356
|
+
}));
|
|
143357
|
+
//#endregion
|
|
143358
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/min-satisfying.js
|
|
143359
|
+
var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143360
|
+
const SemVer = require_semver$1();
|
|
143361
|
+
const Range = require_range();
|
|
143362
|
+
const minSatisfying = (versions, range, options) => {
|
|
143363
|
+
let min = null;
|
|
143364
|
+
let minSV = null;
|
|
143365
|
+
let rangeObj = null;
|
|
143366
|
+
try {
|
|
143367
|
+
rangeObj = new Range(range, options);
|
|
143368
|
+
} catch (er) {
|
|
143369
|
+
return null;
|
|
143370
|
+
}
|
|
143371
|
+
versions.forEach((v) => {
|
|
143372
|
+
if (rangeObj.test(v)) {
|
|
143373
|
+
if (!min || minSV.compare(v) === 1) {
|
|
143374
|
+
min = v;
|
|
143375
|
+
minSV = new SemVer(min, options);
|
|
143376
|
+
}
|
|
143377
|
+
}
|
|
143378
|
+
});
|
|
143379
|
+
return min;
|
|
143380
|
+
};
|
|
143381
|
+
module.exports = minSatisfying;
|
|
143382
|
+
}));
|
|
143383
|
+
//#endregion
|
|
143384
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/min-version.js
|
|
143385
|
+
var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143386
|
+
const SemVer = require_semver$1();
|
|
143387
|
+
const Range = require_range();
|
|
143388
|
+
const gt = require_gt();
|
|
143389
|
+
const minVersion = (range, loose) => {
|
|
143390
|
+
range = new Range(range, loose);
|
|
143391
|
+
let minver = new SemVer("0.0.0");
|
|
143392
|
+
if (range.test(minver)) return minver;
|
|
143393
|
+
minver = new SemVer("0.0.0-0");
|
|
143394
|
+
if (range.test(minver)) return minver;
|
|
143395
|
+
minver = null;
|
|
143396
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
143397
|
+
const comparators = range.set[i];
|
|
143398
|
+
let setMin = null;
|
|
143399
|
+
comparators.forEach((comparator) => {
|
|
143400
|
+
const compver = new SemVer(comparator.semver.version);
|
|
143401
|
+
switch (comparator.operator) {
|
|
143402
|
+
case ">":
|
|
143403
|
+
if (compver.prerelease.length === 0) compver.patch++;
|
|
143404
|
+
else compver.prerelease.push(0);
|
|
143405
|
+
compver.raw = compver.format();
|
|
143406
|
+
case "":
|
|
143407
|
+
case ">=":
|
|
143408
|
+
if (!setMin || gt(compver, setMin)) setMin = compver;
|
|
143409
|
+
break;
|
|
143410
|
+
case "<":
|
|
143411
|
+
case "<=": break;
|
|
143412
|
+
default: throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
143413
|
+
}
|
|
143414
|
+
});
|
|
143415
|
+
if (setMin && (!minver || gt(minver, setMin))) minver = setMin;
|
|
143416
|
+
}
|
|
143417
|
+
if (minver && range.test(minver)) return minver;
|
|
143418
|
+
return null;
|
|
143419
|
+
};
|
|
143420
|
+
module.exports = minVersion;
|
|
143421
|
+
}));
|
|
143422
|
+
//#endregion
|
|
143423
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/valid.js
|
|
143424
|
+
var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143425
|
+
const Range = require_range();
|
|
143426
|
+
const validRange = (range, options) => {
|
|
143427
|
+
try {
|
|
143428
|
+
return new Range(range, options).range || "*";
|
|
143429
|
+
} catch (er) {
|
|
143430
|
+
return null;
|
|
143431
|
+
}
|
|
143432
|
+
};
|
|
143433
|
+
module.exports = validRange;
|
|
143434
|
+
}));
|
|
143435
|
+
//#endregion
|
|
143436
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/outside.js
|
|
143437
|
+
var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143438
|
+
const SemVer = require_semver$1();
|
|
143439
|
+
const Comparator = require_comparator();
|
|
143440
|
+
const { ANY } = Comparator;
|
|
143441
|
+
const Range = require_range();
|
|
143442
|
+
const satisfies = require_satisfies();
|
|
143443
|
+
const gt = require_gt();
|
|
143444
|
+
const lt = require_lt();
|
|
143445
|
+
const lte = require_lte();
|
|
143446
|
+
const gte = require_gte();
|
|
143447
|
+
const outside = (version, range, hilo, options) => {
|
|
143448
|
+
version = new SemVer(version, options);
|
|
143449
|
+
range = new Range(range, options);
|
|
143450
|
+
let gtfn, ltefn, ltfn, comp, ecomp;
|
|
143451
|
+
switch (hilo) {
|
|
143452
|
+
case ">":
|
|
143453
|
+
gtfn = gt;
|
|
143454
|
+
ltefn = lte;
|
|
143455
|
+
ltfn = lt;
|
|
143456
|
+
comp = ">";
|
|
143457
|
+
ecomp = ">=";
|
|
143458
|
+
break;
|
|
143459
|
+
case "<":
|
|
143460
|
+
gtfn = lt;
|
|
143461
|
+
ltefn = gte;
|
|
143462
|
+
ltfn = gt;
|
|
143463
|
+
comp = "<";
|
|
143464
|
+
ecomp = "<=";
|
|
143465
|
+
break;
|
|
143466
|
+
default: throw new TypeError("Must provide a hilo val of \"<\" or \">\"");
|
|
143467
|
+
}
|
|
143468
|
+
if (satisfies(version, range, options)) return false;
|
|
143469
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
143470
|
+
const comparators = range.set[i];
|
|
143471
|
+
let high = null;
|
|
143472
|
+
let low = null;
|
|
143473
|
+
comparators.forEach((comparator) => {
|
|
143474
|
+
if (comparator.semver === ANY) comparator = new Comparator(">=0.0.0");
|
|
143475
|
+
high = high || comparator;
|
|
143476
|
+
low = low || comparator;
|
|
143477
|
+
if (gtfn(comparator.semver, high.semver, options)) high = comparator;
|
|
143478
|
+
else if (ltfn(comparator.semver, low.semver, options)) low = comparator;
|
|
143479
|
+
});
|
|
143480
|
+
if (high.operator === comp || high.operator === ecomp) return false;
|
|
143481
|
+
if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) return false;
|
|
143482
|
+
else if (low.operator === ecomp && ltfn(version, low.semver)) return false;
|
|
143483
|
+
}
|
|
143484
|
+
return true;
|
|
143485
|
+
};
|
|
143486
|
+
module.exports = outside;
|
|
143487
|
+
}));
|
|
143488
|
+
//#endregion
|
|
143489
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/gtr.js
|
|
143490
|
+
var require_gtr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143491
|
+
const outside = require_outside();
|
|
143492
|
+
const gtr = (version, range, options) => outside(version, range, ">", options);
|
|
143493
|
+
module.exports = gtr;
|
|
143494
|
+
}));
|
|
143495
|
+
//#endregion
|
|
143496
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/ltr.js
|
|
143497
|
+
var require_ltr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143498
|
+
const outside = require_outside();
|
|
143499
|
+
const ltr = (version, range, options) => outside(version, range, "<", options);
|
|
143500
|
+
module.exports = ltr;
|
|
143501
|
+
}));
|
|
143502
|
+
//#endregion
|
|
143503
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/intersects.js
|
|
143504
|
+
var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143505
|
+
const Range = require_range();
|
|
143506
|
+
const intersects = (r1, r2, options) => {
|
|
143507
|
+
r1 = new Range(r1, options);
|
|
143508
|
+
r2 = new Range(r2, options);
|
|
143509
|
+
return r1.intersects(r2, options);
|
|
143510
|
+
};
|
|
143511
|
+
module.exports = intersects;
|
|
143512
|
+
}));
|
|
143513
|
+
//#endregion
|
|
143514
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/simplify.js
|
|
143515
|
+
var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143516
|
+
const satisfies = require_satisfies();
|
|
143517
|
+
const compare = require_compare();
|
|
143518
|
+
module.exports = (versions, range, options) => {
|
|
143519
|
+
const set = [];
|
|
143520
|
+
let first = null;
|
|
143521
|
+
let prev = null;
|
|
143522
|
+
const v = versions.sort((a, b) => compare(a, b, options));
|
|
143523
|
+
for (const version of v) if (satisfies(version, range, options)) {
|
|
143524
|
+
prev = version;
|
|
143525
|
+
if (!first) first = version;
|
|
143526
|
+
} else {
|
|
143527
|
+
if (prev) set.push([first, prev]);
|
|
143528
|
+
prev = null;
|
|
143529
|
+
first = null;
|
|
143530
|
+
}
|
|
143531
|
+
if (first) set.push([first, null]);
|
|
143532
|
+
const ranges = [];
|
|
143533
|
+
for (const [min, max] of set) if (min === max) ranges.push(min);
|
|
143534
|
+
else if (!max && min === v[0]) ranges.push("*");
|
|
143535
|
+
else if (!max) ranges.push(`>=${min}`);
|
|
143536
|
+
else if (min === v[0]) ranges.push(`<=${max}`);
|
|
143537
|
+
else ranges.push(`${min} - ${max}`);
|
|
143538
|
+
const simplified = ranges.join(" || ");
|
|
143539
|
+
const original = typeof range.raw === "string" ? range.raw : String(range);
|
|
143540
|
+
return simplified.length < original.length ? simplified : range;
|
|
143541
|
+
};
|
|
143542
|
+
}));
|
|
143543
|
+
//#endregion
|
|
143544
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/subset.js
|
|
143545
|
+
var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143546
|
+
const Range = require_range();
|
|
143547
|
+
const Comparator = require_comparator();
|
|
143548
|
+
const { ANY } = Comparator;
|
|
143549
|
+
const satisfies = require_satisfies();
|
|
143550
|
+
const compare = require_compare();
|
|
143551
|
+
const subset = (sub, dom, options = {}) => {
|
|
143552
|
+
if (sub === dom) return true;
|
|
143553
|
+
sub = new Range(sub, options);
|
|
143554
|
+
dom = new Range(dom, options);
|
|
143555
|
+
let sawNonNull = false;
|
|
143556
|
+
OUTER: for (const simpleSub of sub.set) {
|
|
143557
|
+
for (const simpleDom of dom.set) {
|
|
143558
|
+
const isSub = simpleSubset(simpleSub, simpleDom, options);
|
|
143559
|
+
sawNonNull = sawNonNull || isSub !== null;
|
|
143560
|
+
if (isSub) continue OUTER;
|
|
143561
|
+
}
|
|
143562
|
+
if (sawNonNull) return false;
|
|
143563
|
+
}
|
|
143564
|
+
return true;
|
|
143565
|
+
};
|
|
143566
|
+
const minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")];
|
|
143567
|
+
const minimumVersion = [new Comparator(">=0.0.0")];
|
|
143568
|
+
const simpleSubset = (sub, dom, options) => {
|
|
143569
|
+
if (sub === dom) return true;
|
|
143570
|
+
if (sub.length === 1 && sub[0].semver === ANY) if (dom.length === 1 && dom[0].semver === ANY) return true;
|
|
143571
|
+
else if (options.includePrerelease) sub = minimumVersionWithPreRelease;
|
|
143572
|
+
else sub = minimumVersion;
|
|
143573
|
+
if (dom.length === 1 && dom[0].semver === ANY) if (options.includePrerelease) return true;
|
|
143574
|
+
else dom = minimumVersion;
|
|
143575
|
+
const eqSet = /* @__PURE__ */ new Set();
|
|
143576
|
+
let gt, lt;
|
|
143577
|
+
for (const c of sub) if (c.operator === ">" || c.operator === ">=") gt = higherGT(gt, c, options);
|
|
143578
|
+
else if (c.operator === "<" || c.operator === "<=") lt = lowerLT(lt, c, options);
|
|
143579
|
+
else eqSet.add(c.semver);
|
|
143580
|
+
if (eqSet.size > 1) return null;
|
|
143581
|
+
let gtltComp;
|
|
143582
|
+
if (gt && lt) {
|
|
143583
|
+
gtltComp = compare(gt.semver, lt.semver, options);
|
|
143584
|
+
if (gtltComp > 0) return null;
|
|
143585
|
+
else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) return null;
|
|
143586
|
+
}
|
|
143587
|
+
for (const eq of eqSet) {
|
|
143588
|
+
if (gt && !satisfies(eq, String(gt), options)) return null;
|
|
143589
|
+
if (lt && !satisfies(eq, String(lt), options)) return null;
|
|
143590
|
+
for (const c of dom) if (!satisfies(eq, String(c), options)) return false;
|
|
143591
|
+
return true;
|
|
143592
|
+
}
|
|
143593
|
+
let higher, lower;
|
|
143594
|
+
let hasDomLT, hasDomGT;
|
|
143595
|
+
let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;
|
|
143596
|
+
let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;
|
|
143597
|
+
if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0) needDomLTPre = false;
|
|
143598
|
+
for (const c of dom) {
|
|
143599
|
+
hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=";
|
|
143600
|
+
hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=";
|
|
143601
|
+
if (gt) {
|
|
143602
|
+
if (needDomGTPre) {
|
|
143603
|
+
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;
|
|
143604
|
+
}
|
|
143605
|
+
if (c.operator === ">" || c.operator === ">=") {
|
|
143606
|
+
higher = higherGT(gt, c, options);
|
|
143607
|
+
if (higher === c && higher !== gt) return false;
|
|
143608
|
+
} else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options)) return false;
|
|
143609
|
+
}
|
|
143610
|
+
if (lt) {
|
|
143611
|
+
if (needDomLTPre) {
|
|
143612
|
+
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;
|
|
143613
|
+
}
|
|
143614
|
+
if (c.operator === "<" || c.operator === "<=") {
|
|
143615
|
+
lower = lowerLT(lt, c, options);
|
|
143616
|
+
if (lower === c && lower !== lt) return false;
|
|
143617
|
+
} else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options)) return false;
|
|
143618
|
+
}
|
|
143619
|
+
if (!c.operator && (lt || gt) && gtltComp !== 0) return false;
|
|
143620
|
+
}
|
|
143621
|
+
if (gt && hasDomLT && !lt && gtltComp !== 0) return false;
|
|
143622
|
+
if (lt && hasDomGT && !gt && gtltComp !== 0) return false;
|
|
143623
|
+
if (needDomGTPre || needDomLTPre) return false;
|
|
143624
|
+
return true;
|
|
143625
|
+
};
|
|
143626
|
+
const higherGT = (a, b, options) => {
|
|
143627
|
+
if (!a) return b;
|
|
143628
|
+
const comp = compare(a.semver, b.semver, options);
|
|
143629
|
+
return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
|
|
143630
|
+
};
|
|
143631
|
+
const lowerLT = (a, b, options) => {
|
|
143632
|
+
if (!a) return b;
|
|
143633
|
+
const comp = compare(a.semver, b.semver, options);
|
|
143634
|
+
return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
|
|
143635
|
+
};
|
|
143636
|
+
module.exports = subset;
|
|
143637
|
+
}));
|
|
143638
|
+
//#endregion
|
|
143639
|
+
//#region ../../packages/core-node/node_modules/semver/index.js
|
|
143640
|
+
var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143641
|
+
const internalRe = require_re();
|
|
143642
|
+
const constants = require_constants();
|
|
143643
|
+
const SemVer = require_semver$1();
|
|
143644
|
+
const identifiers = require_identifiers();
|
|
143645
|
+
module.exports = {
|
|
143646
|
+
parse: require_parse(),
|
|
143647
|
+
valid: require_valid$1(),
|
|
143648
|
+
clean: require_clean(),
|
|
143649
|
+
inc: require_inc(),
|
|
143650
|
+
diff: require_diff(),
|
|
143651
|
+
major: require_major(),
|
|
143652
|
+
minor: require_minor(),
|
|
143653
|
+
patch: require_patch(),
|
|
143654
|
+
prerelease: require_prerelease(),
|
|
143655
|
+
compare: require_compare(),
|
|
143656
|
+
rcompare: require_rcompare(),
|
|
143657
|
+
compareLoose: require_compare_loose(),
|
|
143658
|
+
compareBuild: require_compare_build(),
|
|
143659
|
+
sort: require_sort(),
|
|
143660
|
+
rsort: require_rsort(),
|
|
143661
|
+
gt: require_gt(),
|
|
143662
|
+
lt: require_lt(),
|
|
143663
|
+
eq: require_eq(),
|
|
143664
|
+
neq: require_neq(),
|
|
143665
|
+
gte: require_gte(),
|
|
143666
|
+
lte: require_lte(),
|
|
143667
|
+
cmp: require_cmp(),
|
|
143668
|
+
coerce: require_coerce(),
|
|
143669
|
+
Comparator: require_comparator(),
|
|
143670
|
+
Range: require_range(),
|
|
143671
|
+
satisfies: require_satisfies(),
|
|
143672
|
+
toComparators: require_to_comparators(),
|
|
143673
|
+
maxSatisfying: require_max_satisfying(),
|
|
143674
|
+
minSatisfying: require_min_satisfying(),
|
|
143675
|
+
minVersion: require_min_version(),
|
|
143676
|
+
validRange: require_valid(),
|
|
143677
|
+
outside: require_outside(),
|
|
143678
|
+
gtr: require_gtr(),
|
|
143679
|
+
ltr: require_ltr(),
|
|
143680
|
+
intersects: require_intersects(),
|
|
143681
|
+
simplifyRange: require_simplify(),
|
|
143682
|
+
subset: require_subset(),
|
|
143683
|
+
SemVer,
|
|
143684
|
+
re: internalRe.re,
|
|
143685
|
+
src: internalRe.src,
|
|
143686
|
+
tokens: internalRe.t,
|
|
143687
|
+
SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
|
|
143688
|
+
RELEASE_TYPES: constants.RELEASE_TYPES,
|
|
143689
|
+
compareIdentifiers: identifiers.compareIdentifiers,
|
|
143690
|
+
rcompareIdentifiers: identifiers.rcompareIdentifiers
|
|
143691
|
+
};
|
|
143692
|
+
}));
|
|
143693
|
+
//#endregion
|
|
140817
143694
|
//#region ../../node_modules/serve-handler/src/glob-slash.js
|
|
140818
143695
|
var require_glob_slash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
140819
143696
|
const path$4 = __require("path");
|
|
@@ -148203,6 +151080,7 @@ var require_error = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
148203
151080
|
stream.pipe(response);
|
|
148204
151081
|
};
|
|
148205
151082
|
})))();
|
|
151083
|
+
var import_semver = /* @__PURE__ */ __toESM(require_semver(), 1);
|
|
148206
151084
|
var import_lib = /* @__PURE__ */ __toESM(require_lib(), 1);
|
|
148207
151085
|
//#endregion
|
|
148208
151086
|
//#region ../../packages/core-node/src/server.ts
|
|
@@ -148279,7 +151157,9 @@ async function fetchPackage(packageName, versionOrRange, options) {
|
|
|
148279
151157
|
const ctx = options.context;
|
|
148280
151158
|
const baseDir = ctx.getPackagesPath(packageName);
|
|
148281
151159
|
let resolvedVersion;
|
|
148282
|
-
|
|
151160
|
+
let resolvedVersionOrRange = versionOrRange;
|
|
151161
|
+
if (resolvedVersionOrRange === "local") resolvedVersionOrRange = "latest";
|
|
151162
|
+
console.log(`[Fetcher] Resolving ${packageName}@${resolvedVersionOrRange || "latest"}...`);
|
|
148283
151163
|
const resolveStart = Date.now();
|
|
148284
151164
|
try {
|
|
148285
151165
|
const cachePath = join(ctx.userDataPath, "cache", "pacote");
|
|
@@ -148290,7 +151170,7 @@ async function fetchPackage(packageName, versionOrRange, options) {
|
|
|
148290
151170
|
}
|
|
148291
151171
|
const packument = await packumentPromise;
|
|
148292
151172
|
const versions = Object.keys(packument.versions);
|
|
148293
|
-
const range =
|
|
151173
|
+
const range = resolvedVersionOrRange || "latest";
|
|
148294
151174
|
const foundVersion = packument["dist-tags"]?.[range] || import_semver.default.maxSatisfying(versions, range);
|
|
148295
151175
|
if (!foundVersion) throw new Error(`Package ${packageName}@${range} not found on npm (available tags: ${Object.keys(packument["dist-tags"] || {}).join(", ")})`);
|
|
148296
151176
|
resolvedVersion = foundVersion;
|
|
@@ -148298,7 +151178,7 @@ async function fetchPackage(packageName, versionOrRange, options) {
|
|
|
148298
151178
|
} catch (error) {
|
|
148299
151179
|
console.warn(`[Fetcher] ${packageName}: remote resolution failed (${Date.now() - resolveStart}ms), trying local fallback...`);
|
|
148300
151180
|
const fallbackStart = Date.now();
|
|
148301
|
-
const fallbackVersion = await tryLocalFallback(
|
|
151181
|
+
const fallbackVersion = await tryLocalFallback(resolvedVersionOrRange, error, baseDir, packageName);
|
|
148302
151182
|
if (fallbackVersion) {
|
|
148303
151183
|
resolvedVersion = fallbackVersion;
|
|
148304
151184
|
console.log(`[Fetcher] ${packageName}: Resolved to local fallback ${resolvedVersion} (${Date.now() - fallbackStart}ms)`);
|
|
@@ -148564,22 +151444,27 @@ async function crawlMonorepoPackages() {
|
|
|
148564
151444
|
}
|
|
148565
151445
|
return cache;
|
|
148566
151446
|
}
|
|
148567
|
-
async function
|
|
151447
|
+
async function tryLocalFallback(versionOrRange, _error, baseDir, logPrefix) {
|
|
148568
151448
|
if (!existsSync(baseDir)) return null;
|
|
148569
151449
|
try {
|
|
148570
|
-
|
|
148571
|
-
|
|
148572
|
-
|
|
148573
|
-
|
|
148574
|
-
|
|
148575
|
-
|
|
148576
|
-
|
|
148577
|
-
|
|
148578
|
-
|
|
148579
|
-
|
|
148580
|
-
|
|
148581
|
-
|
|
148582
|
-
|
|
151450
|
+
const localVersions = (await readdir(baseDir, { withFileTypes: true })).filter((e) => e.isDirectory() || e.isSymbolicLink()).map((e) => e.name).filter((name) => !!import_semver.default.valid(name));
|
|
151451
|
+
if (localVersions.length === 0) return null;
|
|
151452
|
+
const range = versionOrRange || "latest";
|
|
151453
|
+
if (range === "latest") {
|
|
151454
|
+
const latestLocal = localVersions.sort((a, b) => import_semver.default.rcompare(a, b))[0] || null;
|
|
151455
|
+
if (latestLocal) {
|
|
151456
|
+
console.info(`[Fetcher] ${logPrefix}: Using locally cached latest version: ${latestLocal}`);
|
|
151457
|
+
return latestLocal;
|
|
151458
|
+
}
|
|
151459
|
+
} else {
|
|
151460
|
+
const matched = import_semver.default.maxSatisfying(localVersions, range);
|
|
151461
|
+
if (matched) {
|
|
151462
|
+
console.info(`[Fetcher] ${logPrefix}: Using locally cached matching version: ${matched} for range ${range}`);
|
|
151463
|
+
return matched;
|
|
151464
|
+
}
|
|
151465
|
+
}
|
|
151466
|
+
} catch (e) {
|
|
151467
|
+
console.warn(`[Fetcher] ${logPrefix}: Error during local fallback resolution:`, e);
|
|
148583
151468
|
}
|
|
148584
151469
|
return null;
|
|
148585
151470
|
}
|
|
@@ -148605,6 +151490,26 @@ async function resolveEntryPoint(packageDir, packageName) {
|
|
|
148605
151490
|
//#region ../../packages/core-node/src/handler-func.ts
|
|
148606
151491
|
const { join: join$1 } = path;
|
|
148607
151492
|
//#endregion
|
|
151493
|
+
//#region ../../packages/core-node/src/handlers/plugins.ts
|
|
151494
|
+
const localPluginsMap = /* @__PURE__ */ new Map();
|
|
151495
|
+
if (isDev && projectRoot) {
|
|
151496
|
+
const pluginsDir = join(projectRoot, "plugins");
|
|
151497
|
+
if (existsSync(pluginsDir)) try {
|
|
151498
|
+
const entries = readdirSync(pluginsDir, { withFileTypes: true });
|
|
151499
|
+
for (const entry of entries) if (entry.isDirectory()) {
|
|
151500
|
+
const pkgPath = join(pluginsDir, entry.name, "package.json");
|
|
151501
|
+
if (existsSync(pkgPath)) try {
|
|
151502
|
+
const pkg = JSON.parse(readFileSync(pkgPath, "utf-8"));
|
|
151503
|
+
if (pkg.name) localPluginsMap.set(pkg.name, join(pluginsDir, entry.name));
|
|
151504
|
+
} catch (e) {
|
|
151505
|
+
console.error(`[Plugins] Failed to parse package.json for ${entry.name}:`, e);
|
|
151506
|
+
}
|
|
151507
|
+
}
|
|
151508
|
+
} catch (e) {
|
|
151509
|
+
console.error(`[Plugins] Failed to scan local workspace plugins directory:`, e);
|
|
151510
|
+
}
|
|
151511
|
+
}
|
|
151512
|
+
//#endregion
|
|
148608
151513
|
//#region ../plugin-core/src/pipelab.ts
|
|
148609
151514
|
const createActionRunner = (runner) => runner;
|
|
148610
151515
|
//#endregion
|
|
@@ -149041,15 +151946,7 @@ const ExportProjectActionRunner = createActionRunner(async (options) => {
|
|
|
149041
151946
|
});
|
|
149042
151947
|
//#endregion
|
|
149043
151948
|
//#region src/index.ts
|
|
149044
|
-
const icon = new URL("./assets/construct.webp", import.meta.url).href;
|
|
149045
151949
|
var src_default = createNodeDefinition({
|
|
149046
|
-
description: "Construct",
|
|
149047
|
-
name: "Construct",
|
|
149048
|
-
id: "construct",
|
|
149049
|
-
icon: {
|
|
149050
|
-
type: "image",
|
|
149051
|
-
image: icon
|
|
149052
|
-
},
|
|
149053
151950
|
nodes: [{
|
|
149054
151951
|
node: exportAction,
|
|
149055
151952
|
runner: ExportActionRunner
|