@pipelab/plugin-poki 1.0.0-beta.12 → 1.0.0-beta.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/poki-icon.webp +0 -0
- package/dist/index.cjs +3724 -828
- package/dist/index.mjs +3308 -415
- package/dist/index.mjs.map +1 -1
- package/package.json +21 -4
package/dist/index.mjs
CHANGED
|
@@ -35,8 +35,8 @@ const finalVersion = () => {
|
|
|
35
35
|
throw new Error("Unable to go up on the final version!");
|
|
36
36
|
};
|
|
37
37
|
//#endregion
|
|
38
|
-
//#region ../../node_modules/semver/internal/constants.js
|
|
39
|
-
var require_constants$
|
|
38
|
+
//#region ../../packages/migration/node_modules/semver/internal/constants.js
|
|
39
|
+
var require_constants$10 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
40
40
|
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
41
41
|
const MAX_LENGTH = 256;
|
|
42
42
|
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
@@ -60,15 +60,15 @@ var require_constants$8 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
60
60
|
};
|
|
61
61
|
}));
|
|
62
62
|
//#endregion
|
|
63
|
-
//#region ../../node_modules/semver/internal/debug.js
|
|
64
|
-
var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
63
|
+
//#region ../../packages/migration/node_modules/semver/internal/debug.js
|
|
64
|
+
var require_debug$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
65
65
|
module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
66
66
|
}));
|
|
67
67
|
//#endregion
|
|
68
|
-
//#region ../../node_modules/semver/internal/re.js
|
|
69
|
-
var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
70
|
-
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants$
|
|
71
|
-
const debug = require_debug();
|
|
68
|
+
//#region ../../packages/migration/node_modules/semver/internal/re.js
|
|
69
|
+
var require_re$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
70
|
+
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants$10();
|
|
71
|
+
const debug = require_debug$2();
|
|
72
72
|
exports = module.exports = {};
|
|
73
73
|
const re = exports.re = [];
|
|
74
74
|
const safeRe = exports.safeRe = [];
|
|
@@ -144,8 +144,8 @@ var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
144
144
|
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
145
145
|
}));
|
|
146
146
|
//#endregion
|
|
147
|
-
//#region ../../node_modules/semver/internal/parse-options.js
|
|
148
|
-
var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
147
|
+
//#region ../../packages/migration/node_modules/semver/internal/parse-options.js
|
|
148
|
+
var require_parse_options$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
149
149
|
const looseOption = Object.freeze({ loose: true });
|
|
150
150
|
const emptyOpts = Object.freeze({});
|
|
151
151
|
const parseOptions = (options) => {
|
|
@@ -156,8 +156,8 @@ var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
156
156
|
module.exports = parseOptions;
|
|
157
157
|
}));
|
|
158
158
|
//#endregion
|
|
159
|
-
//#region ../../node_modules/semver/internal/identifiers.js
|
|
160
|
-
var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
159
|
+
//#region ../../packages/migration/node_modules/semver/internal/identifiers.js
|
|
160
|
+
var require_identifiers$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
161
161
|
const numeric = /^[0-9]+$/;
|
|
162
162
|
const compareIdentifiers = (a, b) => {
|
|
163
163
|
if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
|
|
@@ -176,13 +176,13 @@ var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
176
176
|
};
|
|
177
177
|
}));
|
|
178
178
|
//#endregion
|
|
179
|
-
//#region ../../node_modules/semver/classes/semver.js
|
|
180
|
-
var require_semver$
|
|
181
|
-
const debug = require_debug();
|
|
182
|
-
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants$
|
|
183
|
-
const { safeRe: re, t } = require_re();
|
|
184
|
-
const parseOptions = require_parse_options();
|
|
185
|
-
const { compareIdentifiers } = require_identifiers();
|
|
179
|
+
//#region ../../packages/migration/node_modules/semver/classes/semver.js
|
|
180
|
+
var require_semver$5 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
181
|
+
const debug = require_debug$2();
|
|
182
|
+
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants$10();
|
|
183
|
+
const { safeRe: re, t } = require_re$2();
|
|
184
|
+
const parseOptions = require_parse_options$2();
|
|
185
|
+
const { compareIdentifiers } = require_identifiers$2();
|
|
186
186
|
module.exports = class SemVer {
|
|
187
187
|
constructor(version, options) {
|
|
188
188
|
options = parseOptions(options);
|
|
@@ -354,9 +354,9 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
354
354
|
};
|
|
355
355
|
}));
|
|
356
356
|
//#endregion
|
|
357
|
-
//#region ../../node_modules/semver/functions/parse.js
|
|
358
|
-
var require_parse$
|
|
359
|
-
const SemVer = require_semver$
|
|
357
|
+
//#region ../../packages/migration/node_modules/semver/functions/parse.js
|
|
358
|
+
var require_parse$6 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
359
|
+
const SemVer = require_semver$5();
|
|
360
360
|
const parse = (version, options, throwErrors = false) => {
|
|
361
361
|
if (version instanceof SemVer) return version;
|
|
362
362
|
try {
|
|
@@ -369,9 +369,9 @@ var require_parse$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
369
369
|
module.exports = parse;
|
|
370
370
|
}));
|
|
371
371
|
//#endregion
|
|
372
|
-
//#region ../../node_modules/semver/functions/valid.js
|
|
373
|
-
var require_valid$
|
|
374
|
-
const parse = require_parse$
|
|
372
|
+
//#region ../../packages/migration/node_modules/semver/functions/valid.js
|
|
373
|
+
var require_valid$5 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
374
|
+
const parse = require_parse$6();
|
|
375
375
|
const valid = (version, options) => {
|
|
376
376
|
const v = parse(version, options);
|
|
377
377
|
return v ? v.version : null;
|
|
@@ -379,9 +379,9 @@ var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
379
379
|
module.exports = valid;
|
|
380
380
|
}));
|
|
381
381
|
//#endregion
|
|
382
|
-
//#region ../../node_modules/semver/functions/clean.js
|
|
383
|
-
var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
384
|
-
const parse = require_parse$
|
|
382
|
+
//#region ../../packages/migration/node_modules/semver/functions/clean.js
|
|
383
|
+
var require_clean$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
384
|
+
const parse = require_parse$6();
|
|
385
385
|
const clean = (version, options) => {
|
|
386
386
|
const s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
387
387
|
return s ? s.version : null;
|
|
@@ -389,9 +389,9 @@ var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
389
389
|
module.exports = clean;
|
|
390
390
|
}));
|
|
391
391
|
//#endregion
|
|
392
|
-
//#region ../../node_modules/semver/functions/inc.js
|
|
393
|
-
var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
394
|
-
const SemVer = require_semver$
|
|
392
|
+
//#region ../../packages/migration/node_modules/semver/functions/inc.js
|
|
393
|
+
var require_inc$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
394
|
+
const SemVer = require_semver$5();
|
|
395
395
|
const inc = (version, release, options, identifier, identifierBase) => {
|
|
396
396
|
if (typeof options === "string") {
|
|
397
397
|
identifierBase = identifier;
|
|
@@ -407,9 +407,9 @@ var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
407
407
|
module.exports = inc;
|
|
408
408
|
}));
|
|
409
409
|
//#endregion
|
|
410
|
-
//#region ../../node_modules/semver/functions/diff.js
|
|
411
|
-
var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
412
|
-
const parse = require_parse$
|
|
410
|
+
//#region ../../packages/migration/node_modules/semver/functions/diff.js
|
|
411
|
+
var require_diff$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
412
|
+
const parse = require_parse$6();
|
|
413
413
|
const diff = (version1, version2) => {
|
|
414
414
|
const v1 = parse(version1, null, true);
|
|
415
415
|
const v2 = parse(version2, null, true);
|
|
@@ -435,30 +435,30 @@ var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
435
435
|
module.exports = diff;
|
|
436
436
|
}));
|
|
437
437
|
//#endregion
|
|
438
|
-
//#region ../../node_modules/semver/functions/major.js
|
|
439
|
-
var require_major = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
440
|
-
const SemVer = require_semver$
|
|
438
|
+
//#region ../../packages/migration/node_modules/semver/functions/major.js
|
|
439
|
+
var require_major$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
440
|
+
const SemVer = require_semver$5();
|
|
441
441
|
const major = (a, loose) => new SemVer(a, loose).major;
|
|
442
442
|
module.exports = major;
|
|
443
443
|
}));
|
|
444
444
|
//#endregion
|
|
445
|
-
//#region ../../node_modules/semver/functions/minor.js
|
|
446
|
-
var require_minor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
447
|
-
const SemVer = require_semver$
|
|
445
|
+
//#region ../../packages/migration/node_modules/semver/functions/minor.js
|
|
446
|
+
var require_minor$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
447
|
+
const SemVer = require_semver$5();
|
|
448
448
|
const minor = (a, loose) => new SemVer(a, loose).minor;
|
|
449
449
|
module.exports = minor;
|
|
450
450
|
}));
|
|
451
451
|
//#endregion
|
|
452
|
-
//#region ../../node_modules/semver/functions/patch.js
|
|
453
|
-
var require_patch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
454
|
-
const SemVer = require_semver$
|
|
452
|
+
//#region ../../packages/migration/node_modules/semver/functions/patch.js
|
|
453
|
+
var require_patch$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
454
|
+
const SemVer = require_semver$5();
|
|
455
455
|
const patch = (a, loose) => new SemVer(a, loose).patch;
|
|
456
456
|
module.exports = patch;
|
|
457
457
|
}));
|
|
458
458
|
//#endregion
|
|
459
|
-
//#region ../../node_modules/semver/functions/prerelease.js
|
|
460
|
-
var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
461
|
-
const parse = require_parse$
|
|
459
|
+
//#region ../../packages/migration/node_modules/semver/functions/prerelease.js
|
|
460
|
+
var require_prerelease$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
461
|
+
const parse = require_parse$6();
|
|
462
462
|
const prerelease = (version, options) => {
|
|
463
463
|
const parsed = parse(version, options);
|
|
464
464
|
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
@@ -466,30 +466,30 @@ var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
466
466
|
module.exports = prerelease;
|
|
467
467
|
}));
|
|
468
468
|
//#endregion
|
|
469
|
-
//#region ../../node_modules/semver/functions/compare.js
|
|
470
|
-
var require_compare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
471
|
-
const SemVer = require_semver$
|
|
469
|
+
//#region ../../packages/migration/node_modules/semver/functions/compare.js
|
|
470
|
+
var require_compare$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
471
|
+
const SemVer = require_semver$5();
|
|
472
472
|
const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
473
473
|
module.exports = compare;
|
|
474
474
|
}));
|
|
475
475
|
//#endregion
|
|
476
|
-
//#region ../../node_modules/semver/functions/rcompare.js
|
|
477
|
-
var require_rcompare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
478
|
-
const compare = require_compare();
|
|
476
|
+
//#region ../../packages/migration/node_modules/semver/functions/rcompare.js
|
|
477
|
+
var require_rcompare$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
478
|
+
const compare = require_compare$2();
|
|
479
479
|
const rcompare = (a, b, loose) => compare(b, a, loose);
|
|
480
480
|
module.exports = rcompare;
|
|
481
481
|
}));
|
|
482
482
|
//#endregion
|
|
483
|
-
//#region ../../node_modules/semver/functions/compare-loose.js
|
|
484
|
-
var require_compare_loose = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
485
|
-
const compare = require_compare();
|
|
483
|
+
//#region ../../packages/migration/node_modules/semver/functions/compare-loose.js
|
|
484
|
+
var require_compare_loose$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
485
|
+
const compare = require_compare$2();
|
|
486
486
|
const compareLoose = (a, b) => compare(a, b, true);
|
|
487
487
|
module.exports = compareLoose;
|
|
488
488
|
}));
|
|
489
489
|
//#endregion
|
|
490
|
-
//#region ../../node_modules/semver/functions/compare-build.js
|
|
491
|
-
var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
492
|
-
const SemVer = require_semver$
|
|
490
|
+
//#region ../../packages/migration/node_modules/semver/functions/compare-build.js
|
|
491
|
+
var require_compare_build$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
492
|
+
const SemVer = require_semver$5();
|
|
493
493
|
const compareBuild = (a, b, loose) => {
|
|
494
494
|
const versionA = new SemVer(a, loose);
|
|
495
495
|
const versionB = new SemVer(b, loose);
|
|
@@ -498,70 +498,70 @@ var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
498
498
|
module.exports = compareBuild;
|
|
499
499
|
}));
|
|
500
500
|
//#endregion
|
|
501
|
-
//#region ../../node_modules/semver/functions/sort.js
|
|
502
|
-
var require_sort$
|
|
503
|
-
const compareBuild = require_compare_build();
|
|
501
|
+
//#region ../../packages/migration/node_modules/semver/functions/sort.js
|
|
502
|
+
var require_sort$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
503
|
+
const compareBuild = require_compare_build$2();
|
|
504
504
|
const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
505
505
|
module.exports = sort;
|
|
506
506
|
}));
|
|
507
507
|
//#endregion
|
|
508
|
-
//#region ../../node_modules/semver/functions/rsort.js
|
|
509
|
-
var require_rsort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
510
|
-
const compareBuild = require_compare_build();
|
|
508
|
+
//#region ../../packages/migration/node_modules/semver/functions/rsort.js
|
|
509
|
+
var require_rsort$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
510
|
+
const compareBuild = require_compare_build$2();
|
|
511
511
|
const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
512
512
|
module.exports = rsort;
|
|
513
513
|
}));
|
|
514
514
|
//#endregion
|
|
515
|
-
//#region ../../node_modules/semver/functions/gt.js
|
|
516
|
-
var require_gt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
517
|
-
const compare = require_compare();
|
|
515
|
+
//#region ../../packages/migration/node_modules/semver/functions/gt.js
|
|
516
|
+
var require_gt$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
517
|
+
const compare = require_compare$2();
|
|
518
518
|
const gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
519
519
|
module.exports = gt;
|
|
520
520
|
}));
|
|
521
521
|
//#endregion
|
|
522
|
-
//#region ../../node_modules/semver/functions/lt.js
|
|
523
|
-
var require_lt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
524
|
-
const compare = require_compare();
|
|
522
|
+
//#region ../../packages/migration/node_modules/semver/functions/lt.js
|
|
523
|
+
var require_lt$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
524
|
+
const compare = require_compare$2();
|
|
525
525
|
const lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
526
526
|
module.exports = lt;
|
|
527
527
|
}));
|
|
528
528
|
//#endregion
|
|
529
|
-
//#region ../../node_modules/semver/functions/eq.js
|
|
530
|
-
var require_eq$
|
|
531
|
-
const compare = require_compare();
|
|
529
|
+
//#region ../../packages/migration/node_modules/semver/functions/eq.js
|
|
530
|
+
var require_eq$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
531
|
+
const compare = require_compare$2();
|
|
532
532
|
const eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
533
533
|
module.exports = eq;
|
|
534
534
|
}));
|
|
535
535
|
//#endregion
|
|
536
|
-
//#region ../../node_modules/semver/functions/neq.js
|
|
537
|
-
var require_neq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
538
|
-
const compare = require_compare();
|
|
536
|
+
//#region ../../packages/migration/node_modules/semver/functions/neq.js
|
|
537
|
+
var require_neq$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
538
|
+
const compare = require_compare$2();
|
|
539
539
|
const neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
540
540
|
module.exports = neq;
|
|
541
541
|
}));
|
|
542
542
|
//#endregion
|
|
543
|
-
//#region ../../node_modules/semver/functions/gte.js
|
|
544
|
-
var require_gte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
545
|
-
const compare = require_compare();
|
|
543
|
+
//#region ../../packages/migration/node_modules/semver/functions/gte.js
|
|
544
|
+
var require_gte$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
545
|
+
const compare = require_compare$2();
|
|
546
546
|
const gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
547
547
|
module.exports = gte;
|
|
548
548
|
}));
|
|
549
549
|
//#endregion
|
|
550
|
-
//#region ../../node_modules/semver/functions/lte.js
|
|
551
|
-
var require_lte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
552
|
-
const compare = require_compare();
|
|
550
|
+
//#region ../../packages/migration/node_modules/semver/functions/lte.js
|
|
551
|
+
var require_lte$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
552
|
+
const compare = require_compare$2();
|
|
553
553
|
const lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
554
554
|
module.exports = lte;
|
|
555
555
|
}));
|
|
556
556
|
//#endregion
|
|
557
|
-
//#region ../../node_modules/semver/functions/cmp.js
|
|
558
|
-
var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
559
|
-
const eq = require_eq$
|
|
560
|
-
const neq = require_neq();
|
|
561
|
-
const gt = require_gt();
|
|
562
|
-
const gte = require_gte();
|
|
563
|
-
const lt = require_lt();
|
|
564
|
-
const lte = require_lte();
|
|
557
|
+
//#region ../../packages/migration/node_modules/semver/functions/cmp.js
|
|
558
|
+
var require_cmp$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
559
|
+
const eq = require_eq$3();
|
|
560
|
+
const neq = require_neq$2();
|
|
561
|
+
const gt = require_gt$2();
|
|
562
|
+
const gte = require_gte$2();
|
|
563
|
+
const lt = require_lt$2();
|
|
564
|
+
const lte = require_lte$2();
|
|
565
565
|
const cmp = (a, op, b, loose) => {
|
|
566
566
|
switch (op) {
|
|
567
567
|
case "===":
|
|
@@ -586,11 +586,11 @@ var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
586
586
|
module.exports = cmp;
|
|
587
587
|
}));
|
|
588
588
|
//#endregion
|
|
589
|
-
//#region ../../node_modules/semver/functions/coerce.js
|
|
590
|
-
var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
591
|
-
const SemVer = require_semver$
|
|
592
|
-
const parse = require_parse$
|
|
593
|
-
const { safeRe: re, t } = require_re();
|
|
589
|
+
//#region ../../packages/migration/node_modules/semver/functions/coerce.js
|
|
590
|
+
var require_coerce$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
591
|
+
const SemVer = require_semver$5();
|
|
592
|
+
const parse = require_parse$6();
|
|
593
|
+
const { safeRe: re, t } = require_re$2();
|
|
594
594
|
const coerce = (version, options) => {
|
|
595
595
|
if (version instanceof SemVer) return version;
|
|
596
596
|
if (typeof version === "number") version = String(version);
|
|
@@ -614,8 +614,8 @@ var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
614
614
|
module.exports = coerce;
|
|
615
615
|
}));
|
|
616
616
|
//#endregion
|
|
617
|
-
//#region ../../node_modules/semver/internal/lrucache.js
|
|
618
|
-
var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
617
|
+
//#region ../../packages/migration/node_modules/semver/internal/lrucache.js
|
|
618
|
+
var require_lrucache$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
619
619
|
var LRUCache = class {
|
|
620
620
|
constructor() {
|
|
621
621
|
this.max = 1e3;
|
|
@@ -647,8 +647,8 @@ var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
647
647
|
module.exports = LRUCache;
|
|
648
648
|
}));
|
|
649
649
|
//#endregion
|
|
650
|
-
//#region ../../node_modules/semver/classes/range.js
|
|
651
|
-
var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
650
|
+
//#region ../../packages/migration/node_modules/semver/classes/range.js
|
|
651
|
+
var require_range$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
652
652
|
const SPACE_CHARACTERS = /\s+/g;
|
|
653
653
|
module.exports = class Range {
|
|
654
654
|
constructor(range, options) {
|
|
@@ -754,13 +754,13 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
754
754
|
return false;
|
|
755
755
|
}
|
|
756
756
|
};
|
|
757
|
-
const cache = new (require_lrucache())();
|
|
758
|
-
const parseOptions = require_parse_options();
|
|
759
|
-
const Comparator = require_comparator();
|
|
760
|
-
const debug = require_debug();
|
|
761
|
-
const SemVer = require_semver$
|
|
762
|
-
const { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re();
|
|
763
|
-
const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants$
|
|
757
|
+
const cache = new (require_lrucache$2())();
|
|
758
|
+
const parseOptions = require_parse_options$2();
|
|
759
|
+
const Comparator = require_comparator$2();
|
|
760
|
+
const debug = require_debug$2();
|
|
761
|
+
const SemVer = require_semver$5();
|
|
762
|
+
const { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re$2();
|
|
763
|
+
const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants$10();
|
|
764
764
|
const isNullSet = (c) => c.value === "<0.0.0-0";
|
|
765
765
|
const isAny = (c) => c.value === "";
|
|
766
766
|
const isSatisfiable = (comparators, options) => {
|
|
@@ -919,8 +919,8 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
919
919
|
};
|
|
920
920
|
}));
|
|
921
921
|
//#endregion
|
|
922
|
-
//#region ../../node_modules/semver/classes/comparator.js
|
|
923
|
-
var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
922
|
+
//#region ../../packages/migration/node_modules/semver/classes/comparator.js
|
|
923
|
+
var require_comparator$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
924
924
|
const ANY = Symbol("SemVer ANY");
|
|
925
925
|
module.exports = class Comparator {
|
|
926
926
|
static get ANY() {
|
|
@@ -981,17 +981,17 @@ var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
981
981
|
return false;
|
|
982
982
|
}
|
|
983
983
|
};
|
|
984
|
-
const parseOptions = require_parse_options();
|
|
985
|
-
const { safeRe: re, t } = require_re();
|
|
986
|
-
const cmp = require_cmp();
|
|
987
|
-
const debug = require_debug();
|
|
988
|
-
const SemVer = require_semver$
|
|
989
|
-
const Range = require_range();
|
|
984
|
+
const parseOptions = require_parse_options$2();
|
|
985
|
+
const { safeRe: re, t } = require_re$2();
|
|
986
|
+
const cmp = require_cmp$2();
|
|
987
|
+
const debug = require_debug$2();
|
|
988
|
+
const SemVer = require_semver$5();
|
|
989
|
+
const Range = require_range$2();
|
|
990
990
|
}));
|
|
991
991
|
//#endregion
|
|
992
|
-
//#region ../../node_modules/semver/functions/satisfies.js
|
|
993
|
-
var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
994
|
-
const Range = require_range();
|
|
992
|
+
//#region ../../packages/migration/node_modules/semver/functions/satisfies.js
|
|
993
|
+
var require_satisfies$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
994
|
+
const Range = require_range$2();
|
|
995
995
|
const satisfies = (version, range, options) => {
|
|
996
996
|
try {
|
|
997
997
|
range = new Range(range, options);
|
|
@@ -1003,17 +1003,17 @@ var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1003
1003
|
module.exports = satisfies;
|
|
1004
1004
|
}));
|
|
1005
1005
|
//#endregion
|
|
1006
|
-
//#region ../../node_modules/semver/ranges/to-comparators.js
|
|
1007
|
-
var require_to_comparators = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1008
|
-
const Range = require_range();
|
|
1006
|
+
//#region ../../packages/migration/node_modules/semver/ranges/to-comparators.js
|
|
1007
|
+
var require_to_comparators$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1008
|
+
const Range = require_range$2();
|
|
1009
1009
|
const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
1010
1010
|
module.exports = toComparators;
|
|
1011
1011
|
}));
|
|
1012
1012
|
//#endregion
|
|
1013
|
-
//#region ../../node_modules/semver/ranges/max-satisfying.js
|
|
1014
|
-
var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1015
|
-
const SemVer = require_semver$
|
|
1016
|
-
const Range = require_range();
|
|
1013
|
+
//#region ../../packages/migration/node_modules/semver/ranges/max-satisfying.js
|
|
1014
|
+
var require_max_satisfying$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1015
|
+
const SemVer = require_semver$5();
|
|
1016
|
+
const Range = require_range$2();
|
|
1017
1017
|
const maxSatisfying = (versions, range, options) => {
|
|
1018
1018
|
let max = null;
|
|
1019
1019
|
let maxSV = null;
|
|
@@ -1036,10 +1036,10 @@ var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
1036
1036
|
module.exports = maxSatisfying;
|
|
1037
1037
|
}));
|
|
1038
1038
|
//#endregion
|
|
1039
|
-
//#region ../../node_modules/semver/ranges/min-satisfying.js
|
|
1040
|
-
var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1041
|
-
const SemVer = require_semver$
|
|
1042
|
-
const Range = require_range();
|
|
1039
|
+
//#region ../../packages/migration/node_modules/semver/ranges/min-satisfying.js
|
|
1040
|
+
var require_min_satisfying$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1041
|
+
const SemVer = require_semver$5();
|
|
1042
|
+
const Range = require_range$2();
|
|
1043
1043
|
const minSatisfying = (versions, range, options) => {
|
|
1044
1044
|
let min = null;
|
|
1045
1045
|
let minSV = null;
|
|
@@ -1062,11 +1062,11 @@ var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
1062
1062
|
module.exports = minSatisfying;
|
|
1063
1063
|
}));
|
|
1064
1064
|
//#endregion
|
|
1065
|
-
//#region ../../node_modules/semver/ranges/min-version.js
|
|
1066
|
-
var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1067
|
-
const SemVer = require_semver$
|
|
1068
|
-
const Range = require_range();
|
|
1069
|
-
const gt = require_gt();
|
|
1065
|
+
//#region ../../packages/migration/node_modules/semver/ranges/min-version.js
|
|
1066
|
+
var require_min_version$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1067
|
+
const SemVer = require_semver$5();
|
|
1068
|
+
const Range = require_range$2();
|
|
1069
|
+
const gt = require_gt$2();
|
|
1070
1070
|
const minVersion = (range, loose) => {
|
|
1071
1071
|
range = new Range(range, loose);
|
|
1072
1072
|
let minver = new SemVer("0.0.0");
|
|
@@ -1101,9 +1101,9 @@ var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1101
1101
|
module.exports = minVersion;
|
|
1102
1102
|
}));
|
|
1103
1103
|
//#endregion
|
|
1104
|
-
//#region ../../node_modules/semver/ranges/valid.js
|
|
1105
|
-
var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1106
|
-
const Range = require_range();
|
|
1104
|
+
//#region ../../packages/migration/node_modules/semver/ranges/valid.js
|
|
1105
|
+
var require_valid$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1106
|
+
const Range = require_range$2();
|
|
1107
1107
|
const validRange = (range, options) => {
|
|
1108
1108
|
try {
|
|
1109
1109
|
return new Range(range, options).range || "*";
|
|
@@ -1114,17 +1114,17 @@ var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1114
1114
|
module.exports = validRange;
|
|
1115
1115
|
}));
|
|
1116
1116
|
//#endregion
|
|
1117
|
-
//#region ../../node_modules/semver/ranges/outside.js
|
|
1118
|
-
var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1119
|
-
const SemVer = require_semver$
|
|
1120
|
-
const Comparator = require_comparator();
|
|
1117
|
+
//#region ../../packages/migration/node_modules/semver/ranges/outside.js
|
|
1118
|
+
var require_outside$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1119
|
+
const SemVer = require_semver$5();
|
|
1120
|
+
const Comparator = require_comparator$2();
|
|
1121
1121
|
const { ANY } = Comparator;
|
|
1122
|
-
const Range = require_range();
|
|
1123
|
-
const satisfies = require_satisfies();
|
|
1124
|
-
const gt = require_gt();
|
|
1125
|
-
const lt = require_lt();
|
|
1126
|
-
const lte = require_lte();
|
|
1127
|
-
const gte = require_gte();
|
|
1122
|
+
const Range = require_range$2();
|
|
1123
|
+
const satisfies = require_satisfies$2();
|
|
1124
|
+
const gt = require_gt$2();
|
|
1125
|
+
const lt = require_lt$2();
|
|
1126
|
+
const lte = require_lte$2();
|
|
1127
|
+
const gte = require_gte$2();
|
|
1128
1128
|
const outside = (version, range, hilo, options) => {
|
|
1129
1129
|
version = new SemVer(version, options);
|
|
1130
1130
|
range = new Range(range, options);
|
|
@@ -1167,23 +1167,23 @@ var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1167
1167
|
module.exports = outside;
|
|
1168
1168
|
}));
|
|
1169
1169
|
//#endregion
|
|
1170
|
-
//#region ../../node_modules/semver/ranges/gtr.js
|
|
1171
|
-
var require_gtr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1172
|
-
const outside = require_outside();
|
|
1170
|
+
//#region ../../packages/migration/node_modules/semver/ranges/gtr.js
|
|
1171
|
+
var require_gtr$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1172
|
+
const outside = require_outside$2();
|
|
1173
1173
|
const gtr = (version, range, options) => outside(version, range, ">", options);
|
|
1174
1174
|
module.exports = gtr;
|
|
1175
1175
|
}));
|
|
1176
1176
|
//#endregion
|
|
1177
|
-
//#region ../../node_modules/semver/ranges/ltr.js
|
|
1178
|
-
var require_ltr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1179
|
-
const outside = require_outside();
|
|
1177
|
+
//#region ../../packages/migration/node_modules/semver/ranges/ltr.js
|
|
1178
|
+
var require_ltr$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1179
|
+
const outside = require_outside$2();
|
|
1180
1180
|
const ltr = (version, range, options) => outside(version, range, "<", options);
|
|
1181
1181
|
module.exports = ltr;
|
|
1182
1182
|
}));
|
|
1183
1183
|
//#endregion
|
|
1184
|
-
//#region ../../node_modules/semver/ranges/intersects.js
|
|
1185
|
-
var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1186
|
-
const Range = require_range();
|
|
1184
|
+
//#region ../../packages/migration/node_modules/semver/ranges/intersects.js
|
|
1185
|
+
var require_intersects$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1186
|
+
const Range = require_range$2();
|
|
1187
1187
|
const intersects = (r1, r2, options) => {
|
|
1188
1188
|
r1 = new Range(r1, options);
|
|
1189
1189
|
r2 = new Range(r2, options);
|
|
@@ -1192,10 +1192,10 @@ var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1192
1192
|
module.exports = intersects;
|
|
1193
1193
|
}));
|
|
1194
1194
|
//#endregion
|
|
1195
|
-
//#region ../../node_modules/semver/ranges/simplify.js
|
|
1196
|
-
var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1197
|
-
const satisfies = require_satisfies();
|
|
1198
|
-
const compare = require_compare();
|
|
1195
|
+
//#region ../../packages/migration/node_modules/semver/ranges/simplify.js
|
|
1196
|
+
var require_simplify$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1197
|
+
const satisfies = require_satisfies$2();
|
|
1198
|
+
const compare = require_compare$2();
|
|
1199
1199
|
module.exports = (versions, range, options) => {
|
|
1200
1200
|
const set = [];
|
|
1201
1201
|
let first = null;
|
|
@@ -1222,13 +1222,13 @@ var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1222
1222
|
};
|
|
1223
1223
|
}));
|
|
1224
1224
|
//#endregion
|
|
1225
|
-
//#region ../../node_modules/semver/ranges/subset.js
|
|
1226
|
-
var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1227
|
-
const Range = require_range();
|
|
1228
|
-
const Comparator = require_comparator();
|
|
1225
|
+
//#region ../../packages/migration/node_modules/semver/ranges/subset.js
|
|
1226
|
+
var require_subset$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1227
|
+
const Range = require_range$2();
|
|
1228
|
+
const Comparator = require_comparator$2();
|
|
1229
1229
|
const { ANY } = Comparator;
|
|
1230
|
-
const satisfies = require_satisfies();
|
|
1231
|
-
const compare = require_compare();
|
|
1230
|
+
const satisfies = require_satisfies$2();
|
|
1231
|
+
const compare = require_compare$2();
|
|
1232
1232
|
const subset = (sub, dom, options = {}) => {
|
|
1233
1233
|
if (sub === dom) return true;
|
|
1234
1234
|
sub = new Range(sub, options);
|
|
@@ -1317,50 +1317,50 @@ var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1317
1317
|
module.exports = subset;
|
|
1318
1318
|
}));
|
|
1319
1319
|
//#endregion
|
|
1320
|
-
//#region ../../
|
|
1321
|
-
var
|
|
1322
|
-
const internalRe = require_re();
|
|
1323
|
-
const constants = require_constants$
|
|
1324
|
-
const SemVer = require_semver$
|
|
1325
|
-
const identifiers = require_identifiers();
|
|
1320
|
+
//#region ../../packages/migration/src/utils/object-keys.ts
|
|
1321
|
+
var import_semver$1 = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1322
|
+
const internalRe = require_re$2();
|
|
1323
|
+
const constants = require_constants$10();
|
|
1324
|
+
const SemVer = require_semver$5();
|
|
1325
|
+
const identifiers = require_identifiers$2();
|
|
1326
1326
|
module.exports = {
|
|
1327
|
-
parse: require_parse$
|
|
1328
|
-
valid: require_valid$
|
|
1329
|
-
clean: require_clean(),
|
|
1330
|
-
inc: require_inc(),
|
|
1331
|
-
diff: require_diff(),
|
|
1332
|
-
major: require_major(),
|
|
1333
|
-
minor: require_minor(),
|
|
1334
|
-
patch: require_patch(),
|
|
1335
|
-
prerelease: require_prerelease(),
|
|
1336
|
-
compare: require_compare(),
|
|
1337
|
-
rcompare: require_rcompare(),
|
|
1338
|
-
compareLoose: require_compare_loose(),
|
|
1339
|
-
compareBuild: require_compare_build(),
|
|
1340
|
-
sort: require_sort$
|
|
1341
|
-
rsort: require_rsort(),
|
|
1342
|
-
gt: require_gt(),
|
|
1343
|
-
lt: require_lt(),
|
|
1344
|
-
eq: require_eq$
|
|
1345
|
-
neq: require_neq(),
|
|
1346
|
-
gte: require_gte(),
|
|
1347
|
-
lte: require_lte(),
|
|
1348
|
-
cmp: require_cmp(),
|
|
1349
|
-
coerce: require_coerce(),
|
|
1350
|
-
Comparator: require_comparator(),
|
|
1351
|
-
Range: require_range(),
|
|
1352
|
-
satisfies: require_satisfies(),
|
|
1353
|
-
toComparators: require_to_comparators(),
|
|
1354
|
-
maxSatisfying: require_max_satisfying(),
|
|
1355
|
-
minSatisfying: require_min_satisfying(),
|
|
1356
|
-
minVersion: require_min_version(),
|
|
1357
|
-
validRange: require_valid(),
|
|
1358
|
-
outside: require_outside(),
|
|
1359
|
-
gtr: require_gtr(),
|
|
1360
|
-
ltr: require_ltr(),
|
|
1361
|
-
intersects: require_intersects(),
|
|
1362
|
-
simplifyRange: require_simplify(),
|
|
1363
|
-
subset: require_subset(),
|
|
1327
|
+
parse: require_parse$6(),
|
|
1328
|
+
valid: require_valid$5(),
|
|
1329
|
+
clean: require_clean$2(),
|
|
1330
|
+
inc: require_inc$2(),
|
|
1331
|
+
diff: require_diff$2(),
|
|
1332
|
+
major: require_major$2(),
|
|
1333
|
+
minor: require_minor$2(),
|
|
1334
|
+
patch: require_patch$2(),
|
|
1335
|
+
prerelease: require_prerelease$2(),
|
|
1336
|
+
compare: require_compare$2(),
|
|
1337
|
+
rcompare: require_rcompare$2(),
|
|
1338
|
+
compareLoose: require_compare_loose$2(),
|
|
1339
|
+
compareBuild: require_compare_build$2(),
|
|
1340
|
+
sort: require_sort$3(),
|
|
1341
|
+
rsort: require_rsort$2(),
|
|
1342
|
+
gt: require_gt$2(),
|
|
1343
|
+
lt: require_lt$2(),
|
|
1344
|
+
eq: require_eq$3(),
|
|
1345
|
+
neq: require_neq$2(),
|
|
1346
|
+
gte: require_gte$2(),
|
|
1347
|
+
lte: require_lte$2(),
|
|
1348
|
+
cmp: require_cmp$2(),
|
|
1349
|
+
coerce: require_coerce$2(),
|
|
1350
|
+
Comparator: require_comparator$2(),
|
|
1351
|
+
Range: require_range$2(),
|
|
1352
|
+
satisfies: require_satisfies$2(),
|
|
1353
|
+
toComparators: require_to_comparators$2(),
|
|
1354
|
+
maxSatisfying: require_max_satisfying$2(),
|
|
1355
|
+
minSatisfying: require_min_satisfying$2(),
|
|
1356
|
+
minVersion: require_min_version$2(),
|
|
1357
|
+
validRange: require_valid$4(),
|
|
1358
|
+
outside: require_outside$2(),
|
|
1359
|
+
gtr: require_gtr$2(),
|
|
1360
|
+
ltr: require_ltr$2(),
|
|
1361
|
+
intersects: require_intersects$2(),
|
|
1362
|
+
simplifyRange: require_simplify$2(),
|
|
1363
|
+
subset: require_subset$2(),
|
|
1364
1364
|
SemVer,
|
|
1365
1365
|
re: internalRe.re,
|
|
1366
1366
|
src: internalRe.src,
|
|
@@ -1370,10 +1370,7 @@ var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1370
1370
|
compareIdentifiers: identifiers.compareIdentifiers,
|
|
1371
1371
|
rcompareIdentifiers: identifiers.rcompareIdentifiers
|
|
1372
1372
|
};
|
|
1373
|
-
}));
|
|
1374
|
-
//#endregion
|
|
1375
|
-
//#region ../../packages/migration/src/utils/object-keys.ts
|
|
1376
|
-
var import_semver = /* @__PURE__ */ __toESM(require_semver(), 1);
|
|
1373
|
+
})))(), 1);
|
|
1377
1374
|
const objectKeys = Object.keys;
|
|
1378
1375
|
//#endregion
|
|
1379
1376
|
//#region ../../node_modules/klona/dist/index.mjs
|
|
@@ -1582,19 +1579,6 @@ function custom(check2, message) {
|
|
|
1582
1579
|
}
|
|
1583
1580
|
};
|
|
1584
1581
|
}
|
|
1585
|
-
function lazy(getter) {
|
|
1586
|
-
return {
|
|
1587
|
-
kind: "schema",
|
|
1588
|
-
type: "lazy",
|
|
1589
|
-
reference: lazy,
|
|
1590
|
-
expects: "unknown",
|
|
1591
|
-
async: false,
|
|
1592
|
-
getter,
|
|
1593
|
-
_run(dataset, config2) {
|
|
1594
|
-
return this.getter(dataset.value)._run(dataset, config2);
|
|
1595
|
-
}
|
|
1596
|
-
};
|
|
1597
|
-
}
|
|
1598
1582
|
function literal(literal_, message) {
|
|
1599
1583
|
return {
|
|
1600
1584
|
kind: "schema",
|
|
@@ -1938,7 +1922,7 @@ var Migrator = class {
|
|
|
1938
1922
|
}
|
|
1939
1923
|
getVersions() {
|
|
1940
1924
|
const keys = objectKeys(this.migrations);
|
|
1941
|
-
return import_semver.sort(keys);
|
|
1925
|
+
return import_semver$1.sort(keys);
|
|
1942
1926
|
}
|
|
1943
1927
|
async migrate(_state, options) {
|
|
1944
1928
|
const state = _state ?? this.defaultValue;
|
|
@@ -1970,11 +1954,11 @@ var Migrator = class {
|
|
|
1970
1954
|
return finalState;
|
|
1971
1955
|
}
|
|
1972
1956
|
tryCoerce(version) {
|
|
1973
|
-
return this.coerce ? (0, import_semver.coerce)(version)?.version ?? version : version;
|
|
1957
|
+
return this.coerce ? (0, import_semver$1.coerce)(version)?.version ?? version : version;
|
|
1974
1958
|
}
|
|
1975
1959
|
needMigration(version) {
|
|
1976
1960
|
const newVersion = this.tryCoerce(version);
|
|
1977
|
-
return import_semver.lt(newVersion, this.current);
|
|
1961
|
+
return import_semver$1.lt(newVersion, this.current);
|
|
1978
1962
|
}
|
|
1979
1963
|
};
|
|
1980
1964
|
//#endregion
|
|
@@ -1991,12 +1975,74 @@ const createMigrator = () => {
|
|
|
1991
1975
|
};
|
|
1992
1976
|
//#endregion
|
|
1993
1977
|
//#region ../../packages/shared/src/config/migrators.ts
|
|
1978
|
+
const DEFAULT_PLUGINS = [
|
|
1979
|
+
{
|
|
1980
|
+
name: "@pipelab/plugin-construct",
|
|
1981
|
+
enabled: true,
|
|
1982
|
+
description: "Construct 3 export & packaging"
|
|
1983
|
+
},
|
|
1984
|
+
{
|
|
1985
|
+
name: "@pipelab/plugin-filesystem",
|
|
1986
|
+
enabled: true,
|
|
1987
|
+
description: "Filesystem utilities"
|
|
1988
|
+
},
|
|
1989
|
+
{
|
|
1990
|
+
name: "@pipelab/plugin-system",
|
|
1991
|
+
enabled: true,
|
|
1992
|
+
description: "System & shell commands"
|
|
1993
|
+
},
|
|
1994
|
+
{
|
|
1995
|
+
name: "@pipelab/plugin-steam",
|
|
1996
|
+
enabled: true,
|
|
1997
|
+
description: "Steam publishing"
|
|
1998
|
+
},
|
|
1999
|
+
{
|
|
2000
|
+
name: "@pipelab/plugin-itch",
|
|
2001
|
+
enabled: true,
|
|
2002
|
+
description: "Itch.io publishing"
|
|
2003
|
+
},
|
|
2004
|
+
{
|
|
2005
|
+
name: "@pipelab/plugin-electron",
|
|
2006
|
+
enabled: true,
|
|
2007
|
+
description: "Electron packaging"
|
|
2008
|
+
},
|
|
2009
|
+
{
|
|
2010
|
+
name: "@pipelab/plugin-discord",
|
|
2011
|
+
enabled: true,
|
|
2012
|
+
description: "Discord Rich Presence"
|
|
2013
|
+
},
|
|
2014
|
+
{
|
|
2015
|
+
name: "@pipelab/plugin-poki",
|
|
2016
|
+
enabled: true,
|
|
2017
|
+
description: "Poki publishing"
|
|
2018
|
+
},
|
|
2019
|
+
{
|
|
2020
|
+
name: "@pipelab/plugin-nvpatch",
|
|
2021
|
+
enabled: true,
|
|
2022
|
+
description: "NW.js patching"
|
|
2023
|
+
},
|
|
2024
|
+
{
|
|
2025
|
+
name: "@pipelab/plugin-tauri",
|
|
2026
|
+
enabled: true,
|
|
2027
|
+
description: "Tauri packaging"
|
|
2028
|
+
},
|
|
2029
|
+
{
|
|
2030
|
+
name: "@pipelab/plugin-minify",
|
|
2031
|
+
enabled: true,
|
|
2032
|
+
description: "Asset minification"
|
|
2033
|
+
},
|
|
2034
|
+
{
|
|
2035
|
+
name: "@pipelab/plugin-netlify",
|
|
2036
|
+
enabled: true,
|
|
2037
|
+
description: "Netlify deployment"
|
|
2038
|
+
}
|
|
2039
|
+
];
|
|
1994
2040
|
const createMigration = (config) => createMigration$1(config);
|
|
1995
2041
|
const settingsMigratorInternal = createMigrator();
|
|
1996
2042
|
const defaultAppSettings = settingsMigratorInternal.createDefault({
|
|
1997
2043
|
locale: "en-US",
|
|
1998
2044
|
theme: "light",
|
|
1999
|
-
version: "
|
|
2045
|
+
version: "8.0.0",
|
|
2000
2046
|
autosave: true,
|
|
2001
2047
|
agents: [],
|
|
2002
2048
|
tours: {
|
|
@@ -2013,7 +2059,9 @@ const defaultAppSettings = settingsMigratorInternal.createDefault({
|
|
|
2013
2059
|
enabled: false,
|
|
2014
2060
|
maxEntries: 50,
|
|
2015
2061
|
maxAge: 30
|
|
2016
|
-
} }
|
|
2062
|
+
} },
|
|
2063
|
+
plugins: DEFAULT_PLUGINS,
|
|
2064
|
+
isInternalMigrationBannerClosed: false
|
|
2017
2065
|
});
|
|
2018
2066
|
settingsMigratorInternal.createMigrations({
|
|
2019
2067
|
defaultValue: defaultAppSettings,
|
|
@@ -2064,19 +2112,22 @@ settingsMigratorInternal.createMigrations({
|
|
|
2064
2112
|
createMigration({
|
|
2065
2113
|
version: "6.0.0",
|
|
2066
2114
|
up: (state) => {
|
|
2115
|
+
const { cacheFolder: _, clearTemporaryFoldersOnPipelineEnd: __, ...rest } = state;
|
|
2067
2116
|
return {
|
|
2068
|
-
...
|
|
2117
|
+
...rest,
|
|
2069
2118
|
agents: [],
|
|
2070
2119
|
buildHistory: { retentionPolicy: {
|
|
2071
2120
|
enabled: false,
|
|
2072
2121
|
maxEntries: 50,
|
|
2073
2122
|
maxAge: 30
|
|
2074
|
-
} }
|
|
2123
|
+
} },
|
|
2124
|
+
plugins: DEFAULT_PLUGINS,
|
|
2125
|
+
isInternalMigrationBannerClosed: false
|
|
2075
2126
|
};
|
|
2076
2127
|
}
|
|
2077
2128
|
}),
|
|
2078
2129
|
createMigration({
|
|
2079
|
-
version: "
|
|
2130
|
+
version: "8.0.0",
|
|
2080
2131
|
up: finalVersion
|
|
2081
2132
|
})
|
|
2082
2133
|
]
|
|
@@ -2127,8 +2178,7 @@ const savedFileDefaultValue = savedFileMigratorInternal.createDefault({
|
|
|
2127
2178
|
description: "",
|
|
2128
2179
|
name: "",
|
|
2129
2180
|
variables: [],
|
|
2130
|
-
|
|
2131
|
-
version: "4.0.0"
|
|
2181
|
+
version: "5.0.0"
|
|
2132
2182
|
});
|
|
2133
2183
|
savedFileMigratorInternal.createMigrations({
|
|
2134
2184
|
defaultValue: savedFileDefaultValue,
|
|
@@ -2191,10 +2241,63 @@ savedFileMigratorInternal.createMigrations({
|
|
|
2191
2241
|
}),
|
|
2192
2242
|
createMigration({
|
|
2193
2243
|
version: "4.0.0",
|
|
2244
|
+
up: (_state) => {
|
|
2245
|
+
const state = _state;
|
|
2246
|
+
if (state.type === "simple") return {
|
|
2247
|
+
name: state.name,
|
|
2248
|
+
description: state.description,
|
|
2249
|
+
canvas: {
|
|
2250
|
+
blocks: [],
|
|
2251
|
+
triggers: []
|
|
2252
|
+
},
|
|
2253
|
+
variables: []
|
|
2254
|
+
};
|
|
2255
|
+
const migrateBlock = (block, pluginsMap) => {
|
|
2256
|
+
if (!block) return;
|
|
2257
|
+
if (block.origin?.pluginId) {
|
|
2258
|
+
block.origin.pluginId = getStrictPluginId(block.origin.pluginId);
|
|
2259
|
+
block.origin.version = pluginsMap[block.origin.pluginId] ?? "latest";
|
|
2260
|
+
}
|
|
2261
|
+
};
|
|
2262
|
+
const normalizedPlugins = {};
|
|
2263
|
+
if (state.plugins) for (const [key, val] of Object.entries(state.plugins)) normalizedPlugins[getStrictPluginId(key)] = val;
|
|
2264
|
+
if (state.canvas) {
|
|
2265
|
+
for (const block of state.canvas.blocks ?? []) migrateBlock(block, normalizedPlugins);
|
|
2266
|
+
for (const trigger of state.canvas.triggers ?? []) migrateBlock(trigger, normalizedPlugins);
|
|
2267
|
+
}
|
|
2268
|
+
const { plugins: _dropped, type: _type, ...rest } = state;
|
|
2269
|
+
return rest;
|
|
2270
|
+
}
|
|
2271
|
+
}),
|
|
2272
|
+
createMigration({
|
|
2273
|
+
version: "5.0.0",
|
|
2194
2274
|
up: finalVersion
|
|
2195
2275
|
})
|
|
2196
2276
|
]
|
|
2197
2277
|
});
|
|
2278
|
+
const LEGACY_ID_MAP = {
|
|
2279
|
+
construct: "@pipelab/plugin-construct",
|
|
2280
|
+
filesystem: "@pipelab/plugin-filesystem",
|
|
2281
|
+
system: "@pipelab/plugin-system",
|
|
2282
|
+
steam: "@pipelab/plugin-steam",
|
|
2283
|
+
itch: "@pipelab/plugin-itch",
|
|
2284
|
+
electron: "@pipelab/plugin-electron",
|
|
2285
|
+
discord: "@pipelab/plugin-discord",
|
|
2286
|
+
dicord: "@pipelab/plugin-discord",
|
|
2287
|
+
"@pipelab/plugin-dicord": "@pipelab/plugin-discord",
|
|
2288
|
+
poki: "@pipelab/plugin-poki",
|
|
2289
|
+
nvpatch: "@pipelab/plugin-nvpatch",
|
|
2290
|
+
tauri: "@pipelab/plugin-tauri",
|
|
2291
|
+
minify: "@pipelab/plugin-minify",
|
|
2292
|
+
netlify: "@pipelab/plugin-netlify"
|
|
2293
|
+
};
|
|
2294
|
+
const getStrictPluginId = (pluginId) => {
|
|
2295
|
+
if (!pluginId) return pluginId;
|
|
2296
|
+
if (LEGACY_ID_MAP[pluginId]) return LEGACY_ID_MAP[pluginId];
|
|
2297
|
+
if (pluginId.startsWith("@") || pluginId.includes("/") || pluginId.startsWith("pipelab-plugin-")) return pluginId;
|
|
2298
|
+
const prefixed = `@pipelab/plugin-${pluginId}`;
|
|
2299
|
+
return LEGACY_ID_MAP[prefixed] || prefixed;
|
|
2300
|
+
};
|
|
2198
2301
|
object({
|
|
2199
2302
|
cacheFolder: string(),
|
|
2200
2303
|
theme: union([literal("light"), literal("dark")]),
|
|
@@ -2307,6 +2410,45 @@ object({
|
|
|
2307
2410
|
maxAge: number()
|
|
2308
2411
|
}) })
|
|
2309
2412
|
});
|
|
2413
|
+
object({
|
|
2414
|
+
theme: union([literal("light"), literal("dark")]),
|
|
2415
|
+
version: literal("8.0.0"),
|
|
2416
|
+
locale: union([
|
|
2417
|
+
literal("en-US"),
|
|
2418
|
+
literal("fr-FR"),
|
|
2419
|
+
literal("pt-BR"),
|
|
2420
|
+
literal("zh-CN"),
|
|
2421
|
+
literal("es-ES"),
|
|
2422
|
+
literal("de-DE")
|
|
2423
|
+
]),
|
|
2424
|
+
tours: object({
|
|
2425
|
+
dashboard: object({
|
|
2426
|
+
step: number(),
|
|
2427
|
+
completed: boolean()
|
|
2428
|
+
}),
|
|
2429
|
+
editor: object({
|
|
2430
|
+
step: number(),
|
|
2431
|
+
completed: boolean()
|
|
2432
|
+
})
|
|
2433
|
+
}),
|
|
2434
|
+
autosave: boolean(),
|
|
2435
|
+
agents: array(object({
|
|
2436
|
+
id: string(),
|
|
2437
|
+
name: string(),
|
|
2438
|
+
url: string()
|
|
2439
|
+
})),
|
|
2440
|
+
buildHistory: object({ retentionPolicy: object({
|
|
2441
|
+
enabled: boolean(),
|
|
2442
|
+
maxEntries: number(),
|
|
2443
|
+
maxAge: number()
|
|
2444
|
+
}) }),
|
|
2445
|
+
plugins: array(object({
|
|
2446
|
+
name: string(),
|
|
2447
|
+
enabled: boolean(),
|
|
2448
|
+
description: string()
|
|
2449
|
+
})),
|
|
2450
|
+
isInternalMigrationBannerClosed: optional(boolean(), false)
|
|
2451
|
+
});
|
|
2310
2452
|
//#endregion
|
|
2311
2453
|
//#region ../../node_modules/tslog/dist/esm/prettyLogStyles.js
|
|
2312
2454
|
const prettyLogStyles = {
|
|
@@ -2826,7 +2968,8 @@ const useLogger = () => {
|
|
|
2826
2968
|
//#region ../../packages/shared/src/model.ts
|
|
2827
2969
|
const OriginValidator = object({
|
|
2828
2970
|
pluginId: string(),
|
|
2829
|
-
nodeId: string()
|
|
2971
|
+
nodeId: string(),
|
|
2972
|
+
version: pipe(optional(string()), description("Pinned version of the plugin for this block. Falls back to \"latest\" when absent."))
|
|
2830
2973
|
});
|
|
2831
2974
|
const BlockActionValidatorV1 = object({
|
|
2832
2975
|
type: literal("action"),
|
|
@@ -2847,21 +2990,6 @@ const BlockActionValidatorV3 = object({
|
|
|
2847
2990
|
})),
|
|
2848
2991
|
origin: OriginValidator
|
|
2849
2992
|
});
|
|
2850
|
-
object({
|
|
2851
|
-
type: literal("condition"),
|
|
2852
|
-
uid: string(),
|
|
2853
|
-
origin: OriginValidator,
|
|
2854
|
-
params: record(string(), any()),
|
|
2855
|
-
branchTrue: lazy(() => array(BlockValidator)),
|
|
2856
|
-
branchFalse: lazy(() => array(BlockValidator))
|
|
2857
|
-
});
|
|
2858
|
-
object({
|
|
2859
|
-
type: literal("loop"),
|
|
2860
|
-
uid: string(),
|
|
2861
|
-
origin: OriginValidator,
|
|
2862
|
-
params: record(string(), any()),
|
|
2863
|
-
children: lazy(() => array(BlockValidator))
|
|
2864
|
-
});
|
|
2865
2993
|
const BlockEventValidator = object({
|
|
2866
2994
|
type: literal("event"),
|
|
2867
2995
|
uid: string(),
|
|
@@ -2877,7 +3005,6 @@ object({
|
|
|
2877
3005
|
const BlockValidatorV1 = variant("type", [BlockActionValidatorV1, BlockEventValidator]);
|
|
2878
3006
|
const BlockValidatorV2 = variant("type", [BlockActionValidatorV1]);
|
|
2879
3007
|
const BlockValidatorV3 = variant("type", [BlockActionValidatorV3]);
|
|
2880
|
-
const BlockValidator = BlockValidatorV3;
|
|
2881
3008
|
const CanvasValidatorV1 = object({ blocks: array(BlockValidatorV1) });
|
|
2882
3009
|
const CanvasValidatorV2 = object({
|
|
2883
3010
|
blocks: array(BlockValidatorV2),
|
|
@@ -2909,18 +3036,59 @@ object({
|
|
|
2909
3036
|
canvas: CanvasValidatorV3,
|
|
2910
3037
|
variables: array(VariableValidatorV1)
|
|
2911
3038
|
});
|
|
2912
|
-
|
|
3039
|
+
const SavedFileDefaultValidatorV4 = object({
|
|
2913
3040
|
version: literal("4.0.0"),
|
|
2914
3041
|
type: literal("default"),
|
|
2915
3042
|
name: string(),
|
|
2916
3043
|
description: string(),
|
|
3044
|
+
plugins: optional(record(string(), string())),
|
|
2917
3045
|
canvas: CanvasValidatorV3,
|
|
2918
3046
|
variables: array(VariableValidatorV1)
|
|
2919
|
-
})
|
|
3047
|
+
});
|
|
3048
|
+
const SavedFileSimpleValidatorV4 = object({
|
|
2920
3049
|
version: literal("4.0.0"),
|
|
2921
3050
|
type: literal("simple"),
|
|
2922
3051
|
name: string(),
|
|
2923
3052
|
description: string(),
|
|
3053
|
+
plugins: optional(record(string(), string())),
|
|
3054
|
+
source: object({
|
|
3055
|
+
type: union([
|
|
3056
|
+
literal("c3-html"),
|
|
3057
|
+
literal("c3-nwjs"),
|
|
3058
|
+
literal("godot"),
|
|
3059
|
+
literal("html")
|
|
3060
|
+
]),
|
|
3061
|
+
path: string()
|
|
3062
|
+
}),
|
|
3063
|
+
packaging: object({ enabled: boolean() }),
|
|
3064
|
+
publishing: object({
|
|
3065
|
+
steam: object({
|
|
3066
|
+
enabled: boolean(),
|
|
3067
|
+
appId: optional(string())
|
|
3068
|
+
}),
|
|
3069
|
+
itch: object({
|
|
3070
|
+
enabled: boolean(),
|
|
3071
|
+
project: optional(string())
|
|
3072
|
+
}),
|
|
3073
|
+
poki: object({
|
|
3074
|
+
enabled: boolean(),
|
|
3075
|
+
gameId: optional(string())
|
|
3076
|
+
})
|
|
3077
|
+
})
|
|
3078
|
+
});
|
|
3079
|
+
object({
|
|
3080
|
+
version: literal("5.0.0"),
|
|
3081
|
+
name: string(),
|
|
3082
|
+
description: string(),
|
|
3083
|
+
canvas: CanvasValidatorV3,
|
|
3084
|
+
variables: array(VariableValidatorV1)
|
|
3085
|
+
});
|
|
3086
|
+
object({
|
|
3087
|
+
version: literal("5.0.0"),
|
|
3088
|
+
type: literal("simple"),
|
|
3089
|
+
name: string(),
|
|
3090
|
+
description: string(),
|
|
3091
|
+
plugins: record(string(), string()),
|
|
2924
3092
|
source: object({
|
|
2925
3093
|
type: union([
|
|
2926
3094
|
literal("c3-html"),
|
|
@@ -2945,7 +3113,8 @@ union([object({
|
|
|
2945
3113
|
gameId: optional(string())
|
|
2946
3114
|
})
|
|
2947
3115
|
})
|
|
2948
|
-
})
|
|
3116
|
+
});
|
|
3117
|
+
union([SavedFileDefaultValidatorV4, SavedFileSimpleValidatorV4]);
|
|
2949
3118
|
//#endregion
|
|
2950
3119
|
//#region ../../node_modules/vue/node_modules/@vue/shared/dist/shared.cjs.prod.js
|
|
2951
3120
|
/**
|
|
@@ -45209,7 +45378,7 @@ function findProjectRoot(startDir) {
|
|
|
45209
45378
|
const projectRoot = findProjectRoot(_dirname);
|
|
45210
45379
|
//#endregion
|
|
45211
45380
|
//#region ../../packages/core-node/node_modules/ws/lib/constants.js
|
|
45212
|
-
var require_constants$
|
|
45381
|
+
var require_constants$9 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
45213
45382
|
const BINARY_TYPES = [
|
|
45214
45383
|
"nodebuffer",
|
|
45215
45384
|
"arraybuffer",
|
|
@@ -45232,7 +45401,7 @@ var require_constants$7 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
45232
45401
|
//#endregion
|
|
45233
45402
|
//#region ../../packages/core-node/node_modules/ws/lib/buffer-util.js
|
|
45234
45403
|
var require_buffer_util = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
45235
|
-
const { EMPTY_BUFFER } = require_constants$
|
|
45404
|
+
const { EMPTY_BUFFER } = require_constants$9();
|
|
45236
45405
|
const FastBuffer = Buffer[Symbol.species];
|
|
45237
45406
|
/**
|
|
45238
45407
|
* Merges an array of buffers into a new buffer.
|
|
@@ -45386,7 +45555,7 @@ var require_permessage_deflate = /* @__PURE__ */ __commonJSMin(((exports, module
|
|
|
45386
45555
|
const zlib$2 = __require("zlib");
|
|
45387
45556
|
const bufferUtil = require_buffer_util();
|
|
45388
45557
|
const Limiter = require_limiter();
|
|
45389
|
-
const { kStatusCode } = require_constants$
|
|
45558
|
+
const { kStatusCode } = require_constants$9();
|
|
45390
45559
|
const FastBuffer = Buffer[Symbol.species];
|
|
45391
45560
|
const TRAILER = Buffer.from([
|
|
45392
45561
|
0,
|
|
@@ -45717,7 +45886,7 @@ var require_permessage_deflate = /* @__PURE__ */ __commonJSMin(((exports, module
|
|
|
45717
45886
|
//#region ../../packages/core-node/node_modules/ws/lib/validation.js
|
|
45718
45887
|
var require_validation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
45719
45888
|
const { isUtf8 } = __require("buffer");
|
|
45720
|
-
const { hasBlob } = require_constants$
|
|
45889
|
+
const { hasBlob } = require_constants$9();
|
|
45721
45890
|
const tokenChars = [
|
|
45722
45891
|
0,
|
|
45723
45892
|
0,
|
|
@@ -45914,7 +46083,7 @@ var require_validation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
45914
46083
|
var require_receiver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
45915
46084
|
const { Writable: Writable$2 } = __require("stream");
|
|
45916
46085
|
const PerMessageDeflate = require_permessage_deflate();
|
|
45917
|
-
const { BINARY_TYPES, EMPTY_BUFFER, kStatusCode, kWebSocket } = require_constants$
|
|
46086
|
+
const { BINARY_TYPES, EMPTY_BUFFER, kStatusCode, kWebSocket } = require_constants$9();
|
|
45918
46087
|
const { concat, toArrayBuffer, unmask } = require_buffer_util();
|
|
45919
46088
|
const { isValidStatusCode, isValidUTF8 } = require_validation();
|
|
45920
46089
|
const FastBuffer = Buffer[Symbol.species];
|
|
@@ -46362,7 +46531,7 @@ var require_sender = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
46362
46531
|
const { Duplex: Duplex$4 } = __require("stream");
|
|
46363
46532
|
const { randomFillSync } = __require("crypto");
|
|
46364
46533
|
const PerMessageDeflate = require_permessage_deflate();
|
|
46365
|
-
const { EMPTY_BUFFER, kWebSocket, NOOP } = require_constants$
|
|
46534
|
+
const { EMPTY_BUFFER, kWebSocket, NOOP } = require_constants$9();
|
|
46366
46535
|
const { isBlob, isValidStatusCode } = require_validation();
|
|
46367
46536
|
const { mask: applyMask, toBuffer } = require_buffer_util();
|
|
46368
46537
|
const kByteLength = Symbol("kByteLength");
|
|
@@ -46850,7 +47019,7 @@ var require_sender = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
46850
47019
|
//#endregion
|
|
46851
47020
|
//#region ../../packages/core-node/node_modules/ws/lib/event-target.js
|
|
46852
47021
|
var require_event_target = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
46853
|
-
const { kForOnEventAttribute, kListener } = require_constants$
|
|
47022
|
+
const { kForOnEventAttribute, kListener } = require_constants$9();
|
|
46854
47023
|
const kCode = Symbol("kCode");
|
|
46855
47024
|
const kData = Symbol("kData");
|
|
46856
47025
|
const kError = Symbol("kError");
|
|
@@ -47217,7 +47386,7 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
47217
47386
|
const Receiver = require_receiver();
|
|
47218
47387
|
const Sender = require_sender();
|
|
47219
47388
|
const { isBlob } = require_validation();
|
|
47220
|
-
const { BINARY_TYPES, EMPTY_BUFFER, GUID, kForOnEventAttribute, kListener, kStatusCode, kWebSocket, NOOP } = require_constants$
|
|
47389
|
+
const { BINARY_TYPES, EMPTY_BUFFER, GUID, kForOnEventAttribute, kListener, kStatusCode, kWebSocket, NOOP } = require_constants$9();
|
|
47221
47390
|
const { EventTarget: { addEventListener, removeEventListener } } = require_event_target();
|
|
47222
47391
|
const { format, parse } = require_extension();
|
|
47223
47392
|
const { toBuffer } = require_buffer_util();
|
|
@@ -48333,7 +48502,7 @@ var require_websocket_server = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
48333
48502
|
const PerMessageDeflate = require_permessage_deflate();
|
|
48334
48503
|
const subprotocol = require_subprotocol();
|
|
48335
48504
|
const WebSocket = require_websocket();
|
|
48336
|
-
const { GUID, kWebSocket } = require_constants$
|
|
48505
|
+
const { GUID, kWebSocket } = require_constants$9();
|
|
48337
48506
|
const keyRegex = /^[+/0-9A-Za-z]{22}==$/;
|
|
48338
48507
|
const RUNNING = 0;
|
|
48339
48508
|
const CLOSING = 1;
|
|
@@ -49998,7 +50167,7 @@ var require_readShebang = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
49998
50167
|
}));
|
|
49999
50168
|
//#endregion
|
|
50000
50169
|
//#region ../../node_modules/cross-spawn/lib/parse.js
|
|
50001
|
-
var require_parse$
|
|
50170
|
+
var require_parse$5 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
50002
50171
|
const path$32 = __require("path");
|
|
50003
50172
|
const resolveCommand = require_resolveCommand();
|
|
50004
50173
|
const escape = require_escape$4();
|
|
@@ -50100,7 +50269,7 @@ var require_enoent = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
50100
50269
|
//#region ../../node_modules/npm-run-path/node_modules/path-key/index.js
|
|
50101
50270
|
var import_cross_spawn = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
50102
50271
|
const cp$1 = __require("child_process");
|
|
50103
|
-
const parse = require_parse$
|
|
50272
|
+
const parse = require_parse$5();
|
|
50104
50273
|
const enoent = require_enoent();
|
|
50105
50274
|
function spawn(command, args, options) {
|
|
50106
50275
|
const parsed = parse(command, args, options);
|
|
@@ -55637,7 +55806,7 @@ while (this[FLUSHCHUNK](this[BUFFERSHIFT]()) && this[BUFFER].length);
|
|
|
55637
55806
|
}));
|
|
55638
55807
|
//#endregion
|
|
55639
55808
|
//#region ../../node_modules/tar/node_modules/minizlib/constants.js
|
|
55640
|
-
var require_constants$
|
|
55809
|
+
var require_constants$8 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
55641
55810
|
const realZlibConstants$1 = __require("zlib").constants || (
|
|
55642
55811
|
/* istanbul ignore next */ { ZLIB_VERNUM: 4736 });
|
|
55643
55812
|
module.exports = Object.freeze(Object.assign(Object.create(null), {
|
|
@@ -56185,7 +56354,7 @@ var require_minizlib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
56185
56354
|
const assert$2 = __require("assert");
|
|
56186
56355
|
const Buffer$8 = __require("buffer").Buffer;
|
|
56187
56356
|
const realZlib$1 = __require("zlib");
|
|
56188
|
-
const constants = exports.constants = require_constants$
|
|
56357
|
+
const constants = exports.constants = require_constants$8();
|
|
56189
56358
|
const Minipass = require_minipass$3();
|
|
56190
56359
|
const OriginalBufferConcat = Buffer$8.concat;
|
|
56191
56360
|
const _superWrite = Symbol("_superWrite");
|
|
@@ -58642,7 +58811,7 @@ var require_fs_minipass = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
58642
58811
|
}));
|
|
58643
58812
|
//#endregion
|
|
58644
58813
|
//#region ../../node_modules/tar/lib/parse.js
|
|
58645
|
-
var require_parse$
|
|
58814
|
+
var require_parse$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
58646
58815
|
const warner = require_warn_mixin();
|
|
58647
58816
|
const Header = require_header();
|
|
58648
58817
|
const EE$10 = __require("events");
|
|
@@ -58990,7 +59159,7 @@ while (this[PROCESSENTRY](this[QUEUE].shift()));
|
|
|
58990
59159
|
//#region ../../node_modules/tar/lib/list.js
|
|
58991
59160
|
var require_list = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
58992
59161
|
const hlo = require_high_level_opt();
|
|
58993
|
-
const Parser = require_parse$
|
|
59162
|
+
const Parser = require_parse$4();
|
|
58994
59163
|
const fs$29 = __require("fs");
|
|
58995
59164
|
const fsm = require_fs_minipass();
|
|
58996
59165
|
const path$28 = __require("path");
|
|
@@ -59875,7 +60044,7 @@ var require_get_write_flag = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
59875
60044
|
//#region ../../node_modules/tar/lib/unpack.js
|
|
59876
60045
|
var require_unpack = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
59877
60046
|
const assert = __require("assert");
|
|
59878
|
-
const Parser = require_parse$
|
|
60047
|
+
const Parser = require_parse$4();
|
|
59879
60048
|
const fs$23 = __require("fs");
|
|
59880
60049
|
const fsm = require_fs_minipass();
|
|
59881
60050
|
const path$23 = __require("path");
|
|
@@ -60533,7 +60702,7 @@ var require_tar$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
60533
60702
|
exports.x = exports.extract = require_extract$1();
|
|
60534
60703
|
exports.Pack = require_pack$1();
|
|
60535
60704
|
exports.Unpack = require_unpack();
|
|
60536
|
-
exports.Parse = require_parse$
|
|
60705
|
+
exports.Parse = require_parse$4();
|
|
60537
60706
|
exports.ReadEntry = require_read_entry();
|
|
60538
60707
|
exports.WriteEntry = require_write_entry();
|
|
60539
60708
|
exports.Header = require_header();
|
|
@@ -71128,7 +71297,7 @@ var require__baseRest = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
71128
71297
|
}));
|
|
71129
71298
|
//#endregion
|
|
71130
71299
|
//#region ../../node_modules/lodash/eq.js
|
|
71131
|
-
var require_eq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
71300
|
+
var require_eq$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
71132
71301
|
/**
|
|
71133
71302
|
* Performs a
|
|
71134
71303
|
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
@@ -71261,7 +71430,7 @@ var require__isIndex = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
71261
71430
|
//#endregion
|
|
71262
71431
|
//#region ../../node_modules/lodash/_isIterateeCall.js
|
|
71263
71432
|
var require__isIterateeCall = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
71264
|
-
var eq = require_eq(), isArrayLike = require_isArrayLike(), isIndex = require__isIndex(), isObject = require_isObject();
|
|
71433
|
+
var eq = require_eq$2(), isArrayLike = require_isArrayLike(), isIndex = require__isIndex(), isObject = require_isObject();
|
|
71265
71434
|
/**
|
|
71266
71435
|
* Checks if the given arguments are from an iteratee call.
|
|
71267
71436
|
*
|
|
@@ -71582,7 +71751,7 @@ var require_keysIn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
71582
71751
|
//#endregion
|
|
71583
71752
|
//#region ../../node_modules/lodash/defaults.js
|
|
71584
71753
|
var require_defaults = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
71585
|
-
var baseRest = require__baseRest(), eq = require_eq(), isIterateeCall = require__isIterateeCall(), keysIn = require_keysIn();
|
|
71754
|
+
var baseRest = require__baseRest(), eq = require_eq$2(), isIterateeCall = require__isIterateeCall(), keysIn = require_keysIn();
|
|
71586
71755
|
/** Used for built-in method references. */
|
|
71587
71756
|
var objectProto = Object.prototype;
|
|
71588
71757
|
/** Used to check objects for own properties. */
|
|
@@ -77204,7 +77373,7 @@ var require__listCacheClear = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
77204
77373
|
//#endregion
|
|
77205
77374
|
//#region ../../node_modules/lodash/_assocIndexOf.js
|
|
77206
77375
|
var require__assocIndexOf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
77207
|
-
var eq = require_eq();
|
|
77376
|
+
var eq = require_eq$2();
|
|
77208
77377
|
/**
|
|
77209
77378
|
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
77210
77379
|
*
|
|
@@ -85136,7 +85305,7 @@ var require_unix_stat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
85136
85305
|
}));
|
|
85137
85306
|
//#endregion
|
|
85138
85307
|
//#region ../../node_modules/compress-commons/lib/archivers/zip/constants.js
|
|
85139
|
-
var require_constants$
|
|
85308
|
+
var require_constants$7 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
85140
85309
|
/**
|
|
85141
85310
|
* node-compress-commons
|
|
85142
85311
|
*
|
|
@@ -85211,7 +85380,7 @@ var require_zip_archive_entry = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
85211
85380
|
var ArchiveEntry = require_archive_entry();
|
|
85212
85381
|
var GeneralPurposeBit = require_general_purpose_bit();
|
|
85213
85382
|
var UnixStat = require_unix_stat();
|
|
85214
|
-
var constants = require_constants$
|
|
85383
|
+
var constants = require_constants$7();
|
|
85215
85384
|
var zipUtil = require_util$3();
|
|
85216
85385
|
var ZipArchiveEntry = module.exports = function(name) {
|
|
85217
85386
|
if (!(this instanceof ZipArchiveEntry)) return new ZipArchiveEntry(name);
|
|
@@ -85845,7 +86014,7 @@ var require_zip_archive_output_stream = /* @__PURE__ */ __commonJSMin(((exports,
|
|
|
85845
86014
|
var ArchiveOutputStream = require_archive_output_stream();
|
|
85846
86015
|
require_zip_archive_entry();
|
|
85847
86016
|
require_general_purpose_bit();
|
|
85848
|
-
var constants = require_constants$
|
|
86017
|
+
var constants = require_constants$7();
|
|
85849
86018
|
require_util$2();
|
|
85850
86019
|
var zipUtil = require_util$3();
|
|
85851
86020
|
var ZipArchiveOutputStream = module.exports = function(options) {
|
|
@@ -88342,7 +88511,7 @@ var require_extract = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
88342
88511
|
}));
|
|
88343
88512
|
//#endregion
|
|
88344
88513
|
//#region ../../node_modules/tar-stream/constants.js
|
|
88345
|
-
var require_constants$
|
|
88514
|
+
var require_constants$6 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
88346
88515
|
const constants = {
|
|
88347
88516
|
S_IFMT: 61440,
|
|
88348
88517
|
S_IFDIR: 16384,
|
|
@@ -88362,7 +88531,7 @@ var require_constants$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
88362
88531
|
var require_pack = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
88363
88532
|
const { Readable, Writable, getStreamError } = require_streamx();
|
|
88364
88533
|
const b4a = require_b4a();
|
|
88365
|
-
const constants = require_constants$
|
|
88534
|
+
const constants = require_constants$6();
|
|
88366
88535
|
const headers = require_headers$1();
|
|
88367
88536
|
const DMODE = 493;
|
|
88368
88537
|
const FMODE = 420;
|
|
@@ -89426,6 +89595,360 @@ var require_update_workspaces = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
89426
89595
|
module.exports = updateWorkspaces;
|
|
89427
89596
|
}));
|
|
89428
89597
|
//#endregion
|
|
89598
|
+
//#region ../../node_modules/semver/internal/debug.js
|
|
89599
|
+
var require_debug$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89600
|
+
module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
89601
|
+
}));
|
|
89602
|
+
//#endregion
|
|
89603
|
+
//#region ../../node_modules/semver/internal/constants.js
|
|
89604
|
+
var require_constants$5 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89605
|
+
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
89606
|
+
const MAX_LENGTH = 256;
|
|
89607
|
+
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
89608
|
+
module.exports = {
|
|
89609
|
+
MAX_LENGTH,
|
|
89610
|
+
MAX_SAFE_COMPONENT_LENGTH: 16,
|
|
89611
|
+
MAX_SAFE_BUILD_LENGTH: MAX_LENGTH - 6,
|
|
89612
|
+
MAX_SAFE_INTEGER,
|
|
89613
|
+
RELEASE_TYPES: [
|
|
89614
|
+
"major",
|
|
89615
|
+
"premajor",
|
|
89616
|
+
"minor",
|
|
89617
|
+
"preminor",
|
|
89618
|
+
"patch",
|
|
89619
|
+
"prepatch",
|
|
89620
|
+
"prerelease"
|
|
89621
|
+
],
|
|
89622
|
+
SEMVER_SPEC_VERSION,
|
|
89623
|
+
FLAG_INCLUDE_PRERELEASE: 1,
|
|
89624
|
+
FLAG_LOOSE: 2
|
|
89625
|
+
};
|
|
89626
|
+
}));
|
|
89627
|
+
//#endregion
|
|
89628
|
+
//#region ../../node_modules/semver/internal/re.js
|
|
89629
|
+
var require_re$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89630
|
+
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants$5();
|
|
89631
|
+
const debug = require_debug$1();
|
|
89632
|
+
exports = module.exports = {};
|
|
89633
|
+
const re = exports.re = [];
|
|
89634
|
+
const safeRe = exports.safeRe = [];
|
|
89635
|
+
const src = exports.src = [];
|
|
89636
|
+
const safeSrc = exports.safeSrc = [];
|
|
89637
|
+
const t = exports.t = {};
|
|
89638
|
+
let R = 0;
|
|
89639
|
+
const LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
89640
|
+
const safeRegexReplacements = [
|
|
89641
|
+
["\\s", 1],
|
|
89642
|
+
["\\d", MAX_LENGTH],
|
|
89643
|
+
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
|
|
89644
|
+
];
|
|
89645
|
+
const makeSafeRegex = (value) => {
|
|
89646
|
+
for (const [token, max] of safeRegexReplacements) value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
|
|
89647
|
+
return value;
|
|
89648
|
+
};
|
|
89649
|
+
const createToken = (name, value, isGlobal) => {
|
|
89650
|
+
const safe = makeSafeRegex(value);
|
|
89651
|
+
const index = R++;
|
|
89652
|
+
debug(name, index, value);
|
|
89653
|
+
t[name] = index;
|
|
89654
|
+
src[index] = value;
|
|
89655
|
+
safeSrc[index] = safe;
|
|
89656
|
+
re[index] = new RegExp(value, isGlobal ? "g" : void 0);
|
|
89657
|
+
safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
89658
|
+
};
|
|
89659
|
+
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
89660
|
+
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
89661
|
+
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
89662
|
+
createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
|
|
89663
|
+
createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
89664
|
+
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
|
|
89665
|
+
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
89666
|
+
createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
89667
|
+
createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
89668
|
+
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
89669
|
+
createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
|
|
89670
|
+
createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
|
|
89671
|
+
createToken("FULL", `^${src[t.FULLPLAIN]}$`);
|
|
89672
|
+
createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
|
|
89673
|
+
createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
|
|
89674
|
+
createToken("GTLT", "((?:<|>)?=?)");
|
|
89675
|
+
createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
|
89676
|
+
createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
|
|
89677
|
+
createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
|
|
89678
|
+
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
|
|
89679
|
+
createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
|
|
89680
|
+
createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
|
|
89681
|
+
createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
|
89682
|
+
createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
89683
|
+
createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
|
|
89684
|
+
createToken("COERCERTL", src[t.COERCE], true);
|
|
89685
|
+
createToken("COERCERTLFULL", src[t.COERCEFULL], true);
|
|
89686
|
+
createToken("LONETILDE", "(?:~>?)");
|
|
89687
|
+
createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
|
|
89688
|
+
exports.tildeTrimReplace = "$1~";
|
|
89689
|
+
createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
|
|
89690
|
+
createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
89691
|
+
createToken("LONECARET", "(?:\\^)");
|
|
89692
|
+
createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
|
|
89693
|
+
exports.caretTrimReplace = "$1^";
|
|
89694
|
+
createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
|
|
89695
|
+
createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
89696
|
+
createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
|
|
89697
|
+
createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
|
|
89698
|
+
createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
|
|
89699
|
+
exports.comparatorTrimReplace = "$1$2$3";
|
|
89700
|
+
createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
|
|
89701
|
+
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
|
|
89702
|
+
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
89703
|
+
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
89704
|
+
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
89705
|
+
}));
|
|
89706
|
+
//#endregion
|
|
89707
|
+
//#region ../../node_modules/semver/internal/parse-options.js
|
|
89708
|
+
var require_parse_options$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89709
|
+
const looseOption = Object.freeze({ loose: true });
|
|
89710
|
+
const emptyOpts = Object.freeze({});
|
|
89711
|
+
const parseOptions = (options) => {
|
|
89712
|
+
if (!options) return emptyOpts;
|
|
89713
|
+
if (typeof options !== "object") return looseOption;
|
|
89714
|
+
return options;
|
|
89715
|
+
};
|
|
89716
|
+
module.exports = parseOptions;
|
|
89717
|
+
}));
|
|
89718
|
+
//#endregion
|
|
89719
|
+
//#region ../../node_modules/semver/internal/identifiers.js
|
|
89720
|
+
var require_identifiers$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89721
|
+
const numeric = /^[0-9]+$/;
|
|
89722
|
+
const compareIdentifiers = (a, b) => {
|
|
89723
|
+
if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
|
|
89724
|
+
const anum = numeric.test(a);
|
|
89725
|
+
const bnum = numeric.test(b);
|
|
89726
|
+
if (anum && bnum) {
|
|
89727
|
+
a = +a;
|
|
89728
|
+
b = +b;
|
|
89729
|
+
}
|
|
89730
|
+
return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
|
|
89731
|
+
};
|
|
89732
|
+
const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
|
|
89733
|
+
module.exports = {
|
|
89734
|
+
compareIdentifiers,
|
|
89735
|
+
rcompareIdentifiers
|
|
89736
|
+
};
|
|
89737
|
+
}));
|
|
89738
|
+
//#endregion
|
|
89739
|
+
//#region ../../node_modules/semver/classes/semver.js
|
|
89740
|
+
var require_semver$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89741
|
+
const debug = require_debug$1();
|
|
89742
|
+
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants$5();
|
|
89743
|
+
const { safeRe: re, t } = require_re$1();
|
|
89744
|
+
const parseOptions = require_parse_options$1();
|
|
89745
|
+
const { compareIdentifiers } = require_identifiers$1();
|
|
89746
|
+
module.exports = class SemVer {
|
|
89747
|
+
constructor(version, options) {
|
|
89748
|
+
options = parseOptions(options);
|
|
89749
|
+
if (version instanceof SemVer) if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) return version;
|
|
89750
|
+
else version = version.version;
|
|
89751
|
+
else if (typeof version !== "string") throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
89752
|
+
if (version.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
|
|
89753
|
+
debug("SemVer", version, options);
|
|
89754
|
+
this.options = options;
|
|
89755
|
+
this.loose = !!options.loose;
|
|
89756
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
89757
|
+
const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
|
|
89758
|
+
if (!m) throw new TypeError(`Invalid Version: ${version}`);
|
|
89759
|
+
this.raw = version;
|
|
89760
|
+
this.major = +m[1];
|
|
89761
|
+
this.minor = +m[2];
|
|
89762
|
+
this.patch = +m[3];
|
|
89763
|
+
if (this.major > MAX_SAFE_INTEGER || this.major < 0) throw new TypeError("Invalid major version");
|
|
89764
|
+
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError("Invalid minor version");
|
|
89765
|
+
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError("Invalid patch version");
|
|
89766
|
+
if (!m[4]) this.prerelease = [];
|
|
89767
|
+
else this.prerelease = m[4].split(".").map((id) => {
|
|
89768
|
+
if (/^[0-9]+$/.test(id)) {
|
|
89769
|
+
const num = +id;
|
|
89770
|
+
if (num >= 0 && num < MAX_SAFE_INTEGER) return num;
|
|
89771
|
+
}
|
|
89772
|
+
return id;
|
|
89773
|
+
});
|
|
89774
|
+
this.build = m[5] ? m[5].split(".") : [];
|
|
89775
|
+
this.format();
|
|
89776
|
+
}
|
|
89777
|
+
format() {
|
|
89778
|
+
this.version = `${this.major}.${this.minor}.${this.patch}`;
|
|
89779
|
+
if (this.prerelease.length) this.version += `-${this.prerelease.join(".")}`;
|
|
89780
|
+
return this.version;
|
|
89781
|
+
}
|
|
89782
|
+
toString() {
|
|
89783
|
+
return this.version;
|
|
89784
|
+
}
|
|
89785
|
+
compare(other) {
|
|
89786
|
+
debug("SemVer.compare", this.version, this.options, other);
|
|
89787
|
+
if (!(other instanceof SemVer)) {
|
|
89788
|
+
if (typeof other === "string" && other === this.version) return 0;
|
|
89789
|
+
other = new SemVer(other, this.options);
|
|
89790
|
+
}
|
|
89791
|
+
if (other.version === this.version) return 0;
|
|
89792
|
+
return this.compareMain(other) || this.comparePre(other);
|
|
89793
|
+
}
|
|
89794
|
+
compareMain(other) {
|
|
89795
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
89796
|
+
if (this.major < other.major) return -1;
|
|
89797
|
+
if (this.major > other.major) return 1;
|
|
89798
|
+
if (this.minor < other.minor) return -1;
|
|
89799
|
+
if (this.minor > other.minor) return 1;
|
|
89800
|
+
if (this.patch < other.patch) return -1;
|
|
89801
|
+
if (this.patch > other.patch) return 1;
|
|
89802
|
+
return 0;
|
|
89803
|
+
}
|
|
89804
|
+
comparePre(other) {
|
|
89805
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
89806
|
+
if (this.prerelease.length && !other.prerelease.length) return -1;
|
|
89807
|
+
else if (!this.prerelease.length && other.prerelease.length) return 1;
|
|
89808
|
+
else if (!this.prerelease.length && !other.prerelease.length) return 0;
|
|
89809
|
+
let i = 0;
|
|
89810
|
+
do {
|
|
89811
|
+
const a = this.prerelease[i];
|
|
89812
|
+
const b = other.prerelease[i];
|
|
89813
|
+
debug("prerelease compare", i, a, b);
|
|
89814
|
+
if (a === void 0 && b === void 0) return 0;
|
|
89815
|
+
else if (b === void 0) return 1;
|
|
89816
|
+
else if (a === void 0) return -1;
|
|
89817
|
+
else if (a === b) continue;
|
|
89818
|
+
else return compareIdentifiers(a, b);
|
|
89819
|
+
} while (++i);
|
|
89820
|
+
}
|
|
89821
|
+
compareBuild(other) {
|
|
89822
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
89823
|
+
let i = 0;
|
|
89824
|
+
do {
|
|
89825
|
+
const a = this.build[i];
|
|
89826
|
+
const b = other.build[i];
|
|
89827
|
+
debug("build compare", i, a, b);
|
|
89828
|
+
if (a === void 0 && b === void 0) return 0;
|
|
89829
|
+
else if (b === void 0) return 1;
|
|
89830
|
+
else if (a === void 0) return -1;
|
|
89831
|
+
else if (a === b) continue;
|
|
89832
|
+
else return compareIdentifiers(a, b);
|
|
89833
|
+
} while (++i);
|
|
89834
|
+
}
|
|
89835
|
+
inc(release, identifier, identifierBase) {
|
|
89836
|
+
if (release.startsWith("pre")) {
|
|
89837
|
+
if (!identifier && identifierBase === false) throw new Error("invalid increment argument: identifier is empty");
|
|
89838
|
+
if (identifier) {
|
|
89839
|
+
const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
|
|
89840
|
+
if (!match || match[1] !== identifier) throw new Error(`invalid identifier: ${identifier}`);
|
|
89841
|
+
}
|
|
89842
|
+
}
|
|
89843
|
+
switch (release) {
|
|
89844
|
+
case "premajor":
|
|
89845
|
+
this.prerelease.length = 0;
|
|
89846
|
+
this.patch = 0;
|
|
89847
|
+
this.minor = 0;
|
|
89848
|
+
this.major++;
|
|
89849
|
+
this.inc("pre", identifier, identifierBase);
|
|
89850
|
+
break;
|
|
89851
|
+
case "preminor":
|
|
89852
|
+
this.prerelease.length = 0;
|
|
89853
|
+
this.patch = 0;
|
|
89854
|
+
this.minor++;
|
|
89855
|
+
this.inc("pre", identifier, identifierBase);
|
|
89856
|
+
break;
|
|
89857
|
+
case "prepatch":
|
|
89858
|
+
this.prerelease.length = 0;
|
|
89859
|
+
this.inc("patch", identifier, identifierBase);
|
|
89860
|
+
this.inc("pre", identifier, identifierBase);
|
|
89861
|
+
break;
|
|
89862
|
+
case "prerelease":
|
|
89863
|
+
if (this.prerelease.length === 0) this.inc("patch", identifier, identifierBase);
|
|
89864
|
+
this.inc("pre", identifier, identifierBase);
|
|
89865
|
+
break;
|
|
89866
|
+
case "release":
|
|
89867
|
+
if (this.prerelease.length === 0) throw new Error(`version ${this.raw} is not a prerelease`);
|
|
89868
|
+
this.prerelease.length = 0;
|
|
89869
|
+
break;
|
|
89870
|
+
case "major":
|
|
89871
|
+
if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) this.major++;
|
|
89872
|
+
this.minor = 0;
|
|
89873
|
+
this.patch = 0;
|
|
89874
|
+
this.prerelease = [];
|
|
89875
|
+
break;
|
|
89876
|
+
case "minor":
|
|
89877
|
+
if (this.patch !== 0 || this.prerelease.length === 0) this.minor++;
|
|
89878
|
+
this.patch = 0;
|
|
89879
|
+
this.prerelease = [];
|
|
89880
|
+
break;
|
|
89881
|
+
case "patch":
|
|
89882
|
+
if (this.prerelease.length === 0) this.patch++;
|
|
89883
|
+
this.prerelease = [];
|
|
89884
|
+
break;
|
|
89885
|
+
case "pre": {
|
|
89886
|
+
const base = Number(identifierBase) ? 1 : 0;
|
|
89887
|
+
if (this.prerelease.length === 0) this.prerelease = [base];
|
|
89888
|
+
else {
|
|
89889
|
+
let i = this.prerelease.length;
|
|
89890
|
+
while (--i >= 0) if (typeof this.prerelease[i] === "number") {
|
|
89891
|
+
this.prerelease[i]++;
|
|
89892
|
+
i = -2;
|
|
89893
|
+
}
|
|
89894
|
+
if (i === -1) {
|
|
89895
|
+
if (identifier === this.prerelease.join(".") && identifierBase === false) throw new Error("invalid increment argument: identifier already exists");
|
|
89896
|
+
this.prerelease.push(base);
|
|
89897
|
+
}
|
|
89898
|
+
}
|
|
89899
|
+
if (identifier) {
|
|
89900
|
+
let prerelease = [identifier, base];
|
|
89901
|
+
if (identifierBase === false) prerelease = [identifier];
|
|
89902
|
+
if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
|
|
89903
|
+
if (isNaN(this.prerelease[1])) this.prerelease = prerelease;
|
|
89904
|
+
} else this.prerelease = prerelease;
|
|
89905
|
+
}
|
|
89906
|
+
break;
|
|
89907
|
+
}
|
|
89908
|
+
default: throw new Error(`invalid increment argument: ${release}`);
|
|
89909
|
+
}
|
|
89910
|
+
this.raw = this.format();
|
|
89911
|
+
if (this.build.length) this.raw += `+${this.build.join(".")}`;
|
|
89912
|
+
return this;
|
|
89913
|
+
}
|
|
89914
|
+
};
|
|
89915
|
+
}));
|
|
89916
|
+
//#endregion
|
|
89917
|
+
//#region ../../node_modules/semver/functions/parse.js
|
|
89918
|
+
var require_parse$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89919
|
+
const SemVer = require_semver$3();
|
|
89920
|
+
const parse = (version, options, throwErrors = false) => {
|
|
89921
|
+
if (version instanceof SemVer) return version;
|
|
89922
|
+
try {
|
|
89923
|
+
return new SemVer(version, options);
|
|
89924
|
+
} catch (er) {
|
|
89925
|
+
if (!throwErrors) return null;
|
|
89926
|
+
throw er;
|
|
89927
|
+
}
|
|
89928
|
+
};
|
|
89929
|
+
module.exports = parse;
|
|
89930
|
+
}));
|
|
89931
|
+
//#endregion
|
|
89932
|
+
//#region ../../node_modules/semver/functions/valid.js
|
|
89933
|
+
var require_valid$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89934
|
+
const parse = require_parse$3();
|
|
89935
|
+
const valid = (version, options) => {
|
|
89936
|
+
const v = parse(version, options);
|
|
89937
|
+
return v ? v.version : null;
|
|
89938
|
+
};
|
|
89939
|
+
module.exports = valid;
|
|
89940
|
+
}));
|
|
89941
|
+
//#endregion
|
|
89942
|
+
//#region ../../node_modules/semver/functions/clean.js
|
|
89943
|
+
var require_clean$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89944
|
+
const parse = require_parse$3();
|
|
89945
|
+
const clean = (version, options) => {
|
|
89946
|
+
const s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
89947
|
+
return s ? s.version : null;
|
|
89948
|
+
};
|
|
89949
|
+
module.exports = clean;
|
|
89950
|
+
}));
|
|
89951
|
+
//#endregion
|
|
89429
89952
|
//#region ../../node_modules/proc-log/lib/index.js
|
|
89430
89953
|
var require_lib$29 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89431
89954
|
module.exports = {
|
|
@@ -94924,7 +95447,7 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
94924
95447
|
}));
|
|
94925
95448
|
//#endregion
|
|
94926
95449
|
//#region ../../node_modules/@npmcli/package-json/node_modules/spdx-expression-parse/parse.js
|
|
94927
|
-
var require_parse$
|
|
95450
|
+
var require_parse$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
94928
95451
|
module.exports = function(tokens) {
|
|
94929
95452
|
var index = 0;
|
|
94930
95453
|
function hasMore() {
|
|
@@ -95015,7 +95538,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
95015
95538
|
//#region ../../node_modules/@npmcli/package-json/node_modules/spdx-expression-parse/index.js
|
|
95016
95539
|
var require_spdx_expression_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
95017
95540
|
var scan = require_scan();
|
|
95018
|
-
var parse = require_parse$
|
|
95541
|
+
var parse = require_parse$2();
|
|
95019
95542
|
module.exports = function(source) {
|
|
95020
95543
|
return parse(scan(source));
|
|
95021
95544
|
};
|
|
@@ -96223,9 +96746,1026 @@ var require_spawn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
96223
96746
|
};
|
|
96224
96747
|
}));
|
|
96225
96748
|
//#endregion
|
|
96749
|
+
//#region ../../node_modules/semver/functions/inc.js
|
|
96750
|
+
var require_inc$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96751
|
+
const SemVer = require_semver$3();
|
|
96752
|
+
const inc = (version, release, options, identifier, identifierBase) => {
|
|
96753
|
+
if (typeof options === "string") {
|
|
96754
|
+
identifierBase = identifier;
|
|
96755
|
+
identifier = options;
|
|
96756
|
+
options = void 0;
|
|
96757
|
+
}
|
|
96758
|
+
try {
|
|
96759
|
+
return new SemVer(version instanceof SemVer ? version.version : version, options).inc(release, identifier, identifierBase).version;
|
|
96760
|
+
} catch (er) {
|
|
96761
|
+
return null;
|
|
96762
|
+
}
|
|
96763
|
+
};
|
|
96764
|
+
module.exports = inc;
|
|
96765
|
+
}));
|
|
96766
|
+
//#endregion
|
|
96767
|
+
//#region ../../node_modules/semver/functions/diff.js
|
|
96768
|
+
var require_diff$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96769
|
+
const parse = require_parse$3();
|
|
96770
|
+
const diff = (version1, version2) => {
|
|
96771
|
+
const v1 = parse(version1, null, true);
|
|
96772
|
+
const v2 = parse(version2, null, true);
|
|
96773
|
+
const comparison = v1.compare(v2);
|
|
96774
|
+
if (comparison === 0) return null;
|
|
96775
|
+
const v1Higher = comparison > 0;
|
|
96776
|
+
const highVersion = v1Higher ? v1 : v2;
|
|
96777
|
+
const lowVersion = v1Higher ? v2 : v1;
|
|
96778
|
+
const highHasPre = !!highVersion.prerelease.length;
|
|
96779
|
+
if (!!lowVersion.prerelease.length && !highHasPre) {
|
|
96780
|
+
if (!lowVersion.patch && !lowVersion.minor) return "major";
|
|
96781
|
+
if (lowVersion.compareMain(highVersion) === 0) {
|
|
96782
|
+
if (lowVersion.minor && !lowVersion.patch) return "minor";
|
|
96783
|
+
return "patch";
|
|
96784
|
+
}
|
|
96785
|
+
}
|
|
96786
|
+
const prefix = highHasPre ? "pre" : "";
|
|
96787
|
+
if (v1.major !== v2.major) return prefix + "major";
|
|
96788
|
+
if (v1.minor !== v2.minor) return prefix + "minor";
|
|
96789
|
+
if (v1.patch !== v2.patch) return prefix + "patch";
|
|
96790
|
+
return "prerelease";
|
|
96791
|
+
};
|
|
96792
|
+
module.exports = diff;
|
|
96793
|
+
}));
|
|
96794
|
+
//#endregion
|
|
96795
|
+
//#region ../../node_modules/semver/functions/major.js
|
|
96796
|
+
var require_major$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96797
|
+
const SemVer = require_semver$3();
|
|
96798
|
+
const major = (a, loose) => new SemVer(a, loose).major;
|
|
96799
|
+
module.exports = major;
|
|
96800
|
+
}));
|
|
96801
|
+
//#endregion
|
|
96802
|
+
//#region ../../node_modules/semver/functions/minor.js
|
|
96803
|
+
var require_minor$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96804
|
+
const SemVer = require_semver$3();
|
|
96805
|
+
const minor = (a, loose) => new SemVer(a, loose).minor;
|
|
96806
|
+
module.exports = minor;
|
|
96807
|
+
}));
|
|
96808
|
+
//#endregion
|
|
96809
|
+
//#region ../../node_modules/semver/functions/patch.js
|
|
96810
|
+
var require_patch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96811
|
+
const SemVer = require_semver$3();
|
|
96812
|
+
const patch = (a, loose) => new SemVer(a, loose).patch;
|
|
96813
|
+
module.exports = patch;
|
|
96814
|
+
}));
|
|
96815
|
+
//#endregion
|
|
96816
|
+
//#region ../../node_modules/semver/functions/prerelease.js
|
|
96817
|
+
var require_prerelease$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96818
|
+
const parse = require_parse$3();
|
|
96819
|
+
const prerelease = (version, options) => {
|
|
96820
|
+
const parsed = parse(version, options);
|
|
96821
|
+
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
96822
|
+
};
|
|
96823
|
+
module.exports = prerelease;
|
|
96824
|
+
}));
|
|
96825
|
+
//#endregion
|
|
96826
|
+
//#region ../../node_modules/semver/functions/compare.js
|
|
96827
|
+
var require_compare$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96828
|
+
const SemVer = require_semver$3();
|
|
96829
|
+
const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
96830
|
+
module.exports = compare;
|
|
96831
|
+
}));
|
|
96832
|
+
//#endregion
|
|
96833
|
+
//#region ../../node_modules/semver/functions/rcompare.js
|
|
96834
|
+
var require_rcompare$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96835
|
+
const compare = require_compare$1();
|
|
96836
|
+
const rcompare = (a, b, loose) => compare(b, a, loose);
|
|
96837
|
+
module.exports = rcompare;
|
|
96838
|
+
}));
|
|
96839
|
+
//#endregion
|
|
96840
|
+
//#region ../../node_modules/semver/functions/compare-loose.js
|
|
96841
|
+
var require_compare_loose$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96842
|
+
const compare = require_compare$1();
|
|
96843
|
+
const compareLoose = (a, b) => compare(a, b, true);
|
|
96844
|
+
module.exports = compareLoose;
|
|
96845
|
+
}));
|
|
96846
|
+
//#endregion
|
|
96847
|
+
//#region ../../node_modules/semver/functions/compare-build.js
|
|
96848
|
+
var require_compare_build$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96849
|
+
const SemVer = require_semver$3();
|
|
96850
|
+
const compareBuild = (a, b, loose) => {
|
|
96851
|
+
const versionA = new SemVer(a, loose);
|
|
96852
|
+
const versionB = new SemVer(b, loose);
|
|
96853
|
+
return versionA.compare(versionB) || versionA.compareBuild(versionB);
|
|
96854
|
+
};
|
|
96855
|
+
module.exports = compareBuild;
|
|
96856
|
+
}));
|
|
96857
|
+
//#endregion
|
|
96858
|
+
//#region ../../node_modules/semver/functions/sort.js
|
|
96859
|
+
var require_sort$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96860
|
+
const compareBuild = require_compare_build$1();
|
|
96861
|
+
const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
96862
|
+
module.exports = sort;
|
|
96863
|
+
}));
|
|
96864
|
+
//#endregion
|
|
96865
|
+
//#region ../../node_modules/semver/functions/rsort.js
|
|
96866
|
+
var require_rsort$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96867
|
+
const compareBuild = require_compare_build$1();
|
|
96868
|
+
const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
96869
|
+
module.exports = rsort;
|
|
96870
|
+
}));
|
|
96871
|
+
//#endregion
|
|
96872
|
+
//#region ../../node_modules/semver/functions/gt.js
|
|
96873
|
+
var require_gt$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96874
|
+
const compare = require_compare$1();
|
|
96875
|
+
const gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
96876
|
+
module.exports = gt;
|
|
96877
|
+
}));
|
|
96878
|
+
//#endregion
|
|
96879
|
+
//#region ../../node_modules/semver/functions/lt.js
|
|
96880
|
+
var require_lt$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96881
|
+
const compare = require_compare$1();
|
|
96882
|
+
const lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
96883
|
+
module.exports = lt;
|
|
96884
|
+
}));
|
|
96885
|
+
//#endregion
|
|
96886
|
+
//#region ../../node_modules/semver/functions/eq.js
|
|
96887
|
+
var require_eq$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96888
|
+
const compare = require_compare$1();
|
|
96889
|
+
const eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
96890
|
+
module.exports = eq;
|
|
96891
|
+
}));
|
|
96892
|
+
//#endregion
|
|
96893
|
+
//#region ../../node_modules/semver/functions/neq.js
|
|
96894
|
+
var require_neq$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96895
|
+
const compare = require_compare$1();
|
|
96896
|
+
const neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
96897
|
+
module.exports = neq;
|
|
96898
|
+
}));
|
|
96899
|
+
//#endregion
|
|
96900
|
+
//#region ../../node_modules/semver/functions/gte.js
|
|
96901
|
+
var require_gte$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96902
|
+
const compare = require_compare$1();
|
|
96903
|
+
const gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
96904
|
+
module.exports = gte;
|
|
96905
|
+
}));
|
|
96906
|
+
//#endregion
|
|
96907
|
+
//#region ../../node_modules/semver/functions/lte.js
|
|
96908
|
+
var require_lte$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96909
|
+
const compare = require_compare$1();
|
|
96910
|
+
const lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
96911
|
+
module.exports = lte;
|
|
96912
|
+
}));
|
|
96913
|
+
//#endregion
|
|
96914
|
+
//#region ../../node_modules/semver/functions/cmp.js
|
|
96915
|
+
var require_cmp$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96916
|
+
const eq = require_eq$1();
|
|
96917
|
+
const neq = require_neq$1();
|
|
96918
|
+
const gt = require_gt$1();
|
|
96919
|
+
const gte = require_gte$1();
|
|
96920
|
+
const lt = require_lt$1();
|
|
96921
|
+
const lte = require_lte$1();
|
|
96922
|
+
const cmp = (a, op, b, loose) => {
|
|
96923
|
+
switch (op) {
|
|
96924
|
+
case "===":
|
|
96925
|
+
if (typeof a === "object") a = a.version;
|
|
96926
|
+
if (typeof b === "object") b = b.version;
|
|
96927
|
+
return a === b;
|
|
96928
|
+
case "!==":
|
|
96929
|
+
if (typeof a === "object") a = a.version;
|
|
96930
|
+
if (typeof b === "object") b = b.version;
|
|
96931
|
+
return a !== b;
|
|
96932
|
+
case "":
|
|
96933
|
+
case "=":
|
|
96934
|
+
case "==": return eq(a, b, loose);
|
|
96935
|
+
case "!=": return neq(a, b, loose);
|
|
96936
|
+
case ">": return gt(a, b, loose);
|
|
96937
|
+
case ">=": return gte(a, b, loose);
|
|
96938
|
+
case "<": return lt(a, b, loose);
|
|
96939
|
+
case "<=": return lte(a, b, loose);
|
|
96940
|
+
default: throw new TypeError(`Invalid operator: ${op}`);
|
|
96941
|
+
}
|
|
96942
|
+
};
|
|
96943
|
+
module.exports = cmp;
|
|
96944
|
+
}));
|
|
96945
|
+
//#endregion
|
|
96946
|
+
//#region ../../node_modules/semver/functions/coerce.js
|
|
96947
|
+
var require_coerce$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96948
|
+
const SemVer = require_semver$3();
|
|
96949
|
+
const parse = require_parse$3();
|
|
96950
|
+
const { safeRe: re, t } = require_re$1();
|
|
96951
|
+
const coerce = (version, options) => {
|
|
96952
|
+
if (version instanceof SemVer) return version;
|
|
96953
|
+
if (typeof version === "number") version = String(version);
|
|
96954
|
+
if (typeof version !== "string") return null;
|
|
96955
|
+
options = options || {};
|
|
96956
|
+
let match = null;
|
|
96957
|
+
if (!options.rtl) match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
|
|
96958
|
+
else {
|
|
96959
|
+
const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL];
|
|
96960
|
+
let next;
|
|
96961
|
+
while ((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)) {
|
|
96962
|
+
if (!match || next.index + next[0].length !== match.index + match[0].length) match = next;
|
|
96963
|
+
coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
|
96964
|
+
}
|
|
96965
|
+
coerceRtlRegex.lastIndex = -1;
|
|
96966
|
+
}
|
|
96967
|
+
if (match === null) return null;
|
|
96968
|
+
const major = match[2];
|
|
96969
|
+
return parse(`${major}.${match[3] || "0"}.${match[4] || "0"}${options.includePrerelease && match[5] ? `-${match[5]}` : ""}${options.includePrerelease && match[6] ? `+${match[6]}` : ""}`, options);
|
|
96970
|
+
};
|
|
96971
|
+
module.exports = coerce;
|
|
96972
|
+
}));
|
|
96973
|
+
//#endregion
|
|
96974
|
+
//#region ../../node_modules/semver/functions/truncate.js
|
|
96975
|
+
var require_truncate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96976
|
+
const parse = require_parse$3();
|
|
96977
|
+
const constants = require_constants$5();
|
|
96978
|
+
const SemVer = require_semver$3();
|
|
96979
|
+
const truncate = (version, truncation, options) => {
|
|
96980
|
+
if (!constants.RELEASE_TYPES.includes(truncation)) return null;
|
|
96981
|
+
const clonedVersion = cloneInputVersion(version, options);
|
|
96982
|
+
return clonedVersion && doTruncation(clonedVersion, truncation);
|
|
96983
|
+
};
|
|
96984
|
+
const cloneInputVersion = (version, options) => {
|
|
96985
|
+
return parse(version instanceof SemVer ? version.version : version, options);
|
|
96986
|
+
};
|
|
96987
|
+
const doTruncation = (version, truncation) => {
|
|
96988
|
+
if (isPrerelease(truncation)) return version.version;
|
|
96989
|
+
version.prerelease = [];
|
|
96990
|
+
switch (truncation) {
|
|
96991
|
+
case "major":
|
|
96992
|
+
version.minor = 0;
|
|
96993
|
+
version.patch = 0;
|
|
96994
|
+
break;
|
|
96995
|
+
case "minor":
|
|
96996
|
+
version.patch = 0;
|
|
96997
|
+
break;
|
|
96998
|
+
}
|
|
96999
|
+
return version.format();
|
|
97000
|
+
};
|
|
97001
|
+
const isPrerelease = (type) => {
|
|
97002
|
+
return type.startsWith("pre");
|
|
97003
|
+
};
|
|
97004
|
+
module.exports = truncate;
|
|
97005
|
+
}));
|
|
97006
|
+
//#endregion
|
|
97007
|
+
//#region ../../node_modules/semver/internal/lrucache.js
|
|
97008
|
+
var require_lrucache$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97009
|
+
var LRUCache = class {
|
|
97010
|
+
constructor() {
|
|
97011
|
+
this.max = 1e3;
|
|
97012
|
+
this.map = /* @__PURE__ */ new Map();
|
|
97013
|
+
}
|
|
97014
|
+
get(key) {
|
|
97015
|
+
const value = this.map.get(key);
|
|
97016
|
+
if (value === void 0) return;
|
|
97017
|
+
else {
|
|
97018
|
+
this.map.delete(key);
|
|
97019
|
+
this.map.set(key, value);
|
|
97020
|
+
return value;
|
|
97021
|
+
}
|
|
97022
|
+
}
|
|
97023
|
+
delete(key) {
|
|
97024
|
+
return this.map.delete(key);
|
|
97025
|
+
}
|
|
97026
|
+
set(key, value) {
|
|
97027
|
+
if (!this.delete(key) && value !== void 0) {
|
|
97028
|
+
if (this.map.size >= this.max) {
|
|
97029
|
+
const firstKey = this.map.keys().next().value;
|
|
97030
|
+
this.delete(firstKey);
|
|
97031
|
+
}
|
|
97032
|
+
this.map.set(key, value);
|
|
97033
|
+
}
|
|
97034
|
+
return this;
|
|
97035
|
+
}
|
|
97036
|
+
};
|
|
97037
|
+
module.exports = LRUCache;
|
|
97038
|
+
}));
|
|
97039
|
+
//#endregion
|
|
97040
|
+
//#region ../../node_modules/semver/classes/range.js
|
|
97041
|
+
var require_range$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97042
|
+
const SPACE_CHARACTERS = /\s+/g;
|
|
97043
|
+
module.exports = class Range {
|
|
97044
|
+
constructor(range, options) {
|
|
97045
|
+
options = parseOptions(options);
|
|
97046
|
+
if (range instanceof Range) if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) return range;
|
|
97047
|
+
else return new Range(range.raw, options);
|
|
97048
|
+
if (range instanceof Comparator) {
|
|
97049
|
+
this.raw = range.value;
|
|
97050
|
+
this.set = [[range]];
|
|
97051
|
+
this.formatted = void 0;
|
|
97052
|
+
return this;
|
|
97053
|
+
}
|
|
97054
|
+
this.options = options;
|
|
97055
|
+
this.loose = !!options.loose;
|
|
97056
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
97057
|
+
this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
|
|
97058
|
+
this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
|
|
97059
|
+
if (!this.set.length) throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
97060
|
+
if (this.set.length > 1) {
|
|
97061
|
+
const first = this.set[0];
|
|
97062
|
+
this.set = this.set.filter((c) => !isNullSet(c[0]));
|
|
97063
|
+
if (this.set.length === 0) this.set = [first];
|
|
97064
|
+
else if (this.set.length > 1) {
|
|
97065
|
+
for (const c of this.set) if (c.length === 1 && isAny(c[0])) {
|
|
97066
|
+
this.set = [c];
|
|
97067
|
+
break;
|
|
97068
|
+
}
|
|
97069
|
+
}
|
|
97070
|
+
}
|
|
97071
|
+
this.formatted = void 0;
|
|
97072
|
+
}
|
|
97073
|
+
get range() {
|
|
97074
|
+
if (this.formatted === void 0) {
|
|
97075
|
+
this.formatted = "";
|
|
97076
|
+
for (let i = 0; i < this.set.length; i++) {
|
|
97077
|
+
if (i > 0) this.formatted += "||";
|
|
97078
|
+
const comps = this.set[i];
|
|
97079
|
+
for (let k = 0; k < comps.length; k++) {
|
|
97080
|
+
if (k > 0) this.formatted += " ";
|
|
97081
|
+
this.formatted += comps[k].toString().trim();
|
|
97082
|
+
}
|
|
97083
|
+
}
|
|
97084
|
+
}
|
|
97085
|
+
return this.formatted;
|
|
97086
|
+
}
|
|
97087
|
+
format() {
|
|
97088
|
+
return this.range;
|
|
97089
|
+
}
|
|
97090
|
+
toString() {
|
|
97091
|
+
return this.range;
|
|
97092
|
+
}
|
|
97093
|
+
parseRange(range) {
|
|
97094
|
+
const memoKey = ((this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE)) + ":" + range;
|
|
97095
|
+
const cached = cache.get(memoKey);
|
|
97096
|
+
if (cached) return cached;
|
|
97097
|
+
const loose = this.options.loose;
|
|
97098
|
+
const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
|
|
97099
|
+
range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
|
|
97100
|
+
debug("hyphen replace", range);
|
|
97101
|
+
range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace);
|
|
97102
|
+
debug("comparator trim", range);
|
|
97103
|
+
range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
|
|
97104
|
+
debug("tilde trim", range);
|
|
97105
|
+
range = range.replace(re[t.CARETTRIM], caretTrimReplace);
|
|
97106
|
+
debug("caret trim", range);
|
|
97107
|
+
let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
|
|
97108
|
+
if (loose) rangeList = rangeList.filter((comp) => {
|
|
97109
|
+
debug("loose invalid filter", comp, this.options);
|
|
97110
|
+
return !!comp.match(re[t.COMPARATORLOOSE]);
|
|
97111
|
+
});
|
|
97112
|
+
debug("range list", rangeList);
|
|
97113
|
+
const rangeMap = /* @__PURE__ */ new Map();
|
|
97114
|
+
const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
|
|
97115
|
+
for (const comp of comparators) {
|
|
97116
|
+
if (isNullSet(comp)) return [comp];
|
|
97117
|
+
rangeMap.set(comp.value, comp);
|
|
97118
|
+
}
|
|
97119
|
+
if (rangeMap.size > 1 && rangeMap.has("")) rangeMap.delete("");
|
|
97120
|
+
const result = [...rangeMap.values()];
|
|
97121
|
+
cache.set(memoKey, result);
|
|
97122
|
+
return result;
|
|
97123
|
+
}
|
|
97124
|
+
intersects(range, options) {
|
|
97125
|
+
if (!(range instanceof Range)) throw new TypeError("a Range is required");
|
|
97126
|
+
return this.set.some((thisComparators) => {
|
|
97127
|
+
return isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => {
|
|
97128
|
+
return isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => {
|
|
97129
|
+
return rangeComparators.every((rangeComparator) => {
|
|
97130
|
+
return thisComparator.intersects(rangeComparator, options);
|
|
97131
|
+
});
|
|
97132
|
+
});
|
|
97133
|
+
});
|
|
97134
|
+
});
|
|
97135
|
+
}
|
|
97136
|
+
test(version) {
|
|
97137
|
+
if (!version) return false;
|
|
97138
|
+
if (typeof version === "string") try {
|
|
97139
|
+
version = new SemVer(version, this.options);
|
|
97140
|
+
} catch (er) {
|
|
97141
|
+
return false;
|
|
97142
|
+
}
|
|
97143
|
+
for (let i = 0; i < this.set.length; i++) if (testSet(this.set[i], version, this.options)) return true;
|
|
97144
|
+
return false;
|
|
97145
|
+
}
|
|
97146
|
+
};
|
|
97147
|
+
const cache = new (require_lrucache$1())();
|
|
97148
|
+
const parseOptions = require_parse_options$1();
|
|
97149
|
+
const Comparator = require_comparator$1();
|
|
97150
|
+
const debug = require_debug$1();
|
|
97151
|
+
const SemVer = require_semver$3();
|
|
97152
|
+
const { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re$1();
|
|
97153
|
+
const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants$5();
|
|
97154
|
+
const isNullSet = (c) => c.value === "<0.0.0-0";
|
|
97155
|
+
const isAny = (c) => c.value === "";
|
|
97156
|
+
const isSatisfiable = (comparators, options) => {
|
|
97157
|
+
let result = true;
|
|
97158
|
+
const remainingComparators = comparators.slice();
|
|
97159
|
+
let testComparator = remainingComparators.pop();
|
|
97160
|
+
while (result && remainingComparators.length) {
|
|
97161
|
+
result = remainingComparators.every((otherComparator) => {
|
|
97162
|
+
return testComparator.intersects(otherComparator, options);
|
|
97163
|
+
});
|
|
97164
|
+
testComparator = remainingComparators.pop();
|
|
97165
|
+
}
|
|
97166
|
+
return result;
|
|
97167
|
+
};
|
|
97168
|
+
const parseComparator = (comp, options) => {
|
|
97169
|
+
comp = comp.replace(re[t.BUILD], "");
|
|
97170
|
+
debug("comp", comp, options);
|
|
97171
|
+
comp = replaceCarets(comp, options);
|
|
97172
|
+
debug("caret", comp);
|
|
97173
|
+
comp = replaceTildes(comp, options);
|
|
97174
|
+
debug("tildes", comp);
|
|
97175
|
+
comp = replaceXRanges(comp, options);
|
|
97176
|
+
debug("xrange", comp);
|
|
97177
|
+
comp = replaceStars(comp, options);
|
|
97178
|
+
debug("stars", comp);
|
|
97179
|
+
return comp;
|
|
97180
|
+
};
|
|
97181
|
+
const isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
|
|
97182
|
+
const replaceTildes = (comp, options) => {
|
|
97183
|
+
return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
|
|
97184
|
+
};
|
|
97185
|
+
const replaceTilde = (comp, options) => {
|
|
97186
|
+
const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
|
|
97187
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
97188
|
+
debug("tilde", comp, _, M, m, p, pr);
|
|
97189
|
+
let ret;
|
|
97190
|
+
if (isX(M)) ret = "";
|
|
97191
|
+
else if (isX(m)) ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
|
|
97192
|
+
else if (isX(p)) ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
|
|
97193
|
+
else if (pr) {
|
|
97194
|
+
debug("replaceTilde pr", pr);
|
|
97195
|
+
ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
97196
|
+
} else ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
|
|
97197
|
+
debug("tilde return", ret);
|
|
97198
|
+
return ret;
|
|
97199
|
+
});
|
|
97200
|
+
};
|
|
97201
|
+
const replaceCarets = (comp, options) => {
|
|
97202
|
+
return comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" ");
|
|
97203
|
+
};
|
|
97204
|
+
const replaceCaret = (comp, options) => {
|
|
97205
|
+
debug("caret", comp, options);
|
|
97206
|
+
const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET];
|
|
97207
|
+
const z = options.includePrerelease ? "-0" : "";
|
|
97208
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
97209
|
+
debug("caret", comp, _, M, m, p, pr);
|
|
97210
|
+
let ret;
|
|
97211
|
+
if (isX(M)) ret = "";
|
|
97212
|
+
else if (isX(m)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
|
|
97213
|
+
else if (isX(p)) if (M === "0") ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
|
|
97214
|
+
else ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
|
|
97215
|
+
else if (pr) {
|
|
97216
|
+
debug("replaceCaret pr", pr);
|
|
97217
|
+
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;
|
|
97218
|
+
else ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
97219
|
+
else ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
|
|
97220
|
+
} else {
|
|
97221
|
+
debug("no pr");
|
|
97222
|
+
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0`;
|
|
97223
|
+
else ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0`;
|
|
97224
|
+
else ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
|
|
97225
|
+
}
|
|
97226
|
+
debug("caret return", ret);
|
|
97227
|
+
return ret;
|
|
97228
|
+
});
|
|
97229
|
+
};
|
|
97230
|
+
const replaceXRanges = (comp, options) => {
|
|
97231
|
+
debug("replaceXRanges", comp, options);
|
|
97232
|
+
return comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ");
|
|
97233
|
+
};
|
|
97234
|
+
const replaceXRange = (comp, options) => {
|
|
97235
|
+
comp = comp.trim();
|
|
97236
|
+
const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
|
|
97237
|
+
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
|
|
97238
|
+
debug("xRange", comp, ret, gtlt, M, m, p, pr);
|
|
97239
|
+
const xM = isX(M);
|
|
97240
|
+
const xm = xM || isX(m);
|
|
97241
|
+
const xp = xm || isX(p);
|
|
97242
|
+
const anyX = xp;
|
|
97243
|
+
if (gtlt === "=" && anyX) gtlt = "";
|
|
97244
|
+
pr = options.includePrerelease ? "-0" : "";
|
|
97245
|
+
if (xM) if (gtlt === ">" || gtlt === "<") ret = "<0.0.0-0";
|
|
97246
|
+
else ret = "*";
|
|
97247
|
+
else if (gtlt && anyX) {
|
|
97248
|
+
if (xm) m = 0;
|
|
97249
|
+
p = 0;
|
|
97250
|
+
if (gtlt === ">") {
|
|
97251
|
+
gtlt = ">=";
|
|
97252
|
+
if (xm) {
|
|
97253
|
+
M = +M + 1;
|
|
97254
|
+
m = 0;
|
|
97255
|
+
p = 0;
|
|
97256
|
+
} else {
|
|
97257
|
+
m = +m + 1;
|
|
97258
|
+
p = 0;
|
|
97259
|
+
}
|
|
97260
|
+
} else if (gtlt === "<=") {
|
|
97261
|
+
gtlt = "<";
|
|
97262
|
+
if (xm) M = +M + 1;
|
|
97263
|
+
else m = +m + 1;
|
|
97264
|
+
}
|
|
97265
|
+
if (gtlt === "<") pr = "-0";
|
|
97266
|
+
ret = `${gtlt + M}.${m}.${p}${pr}`;
|
|
97267
|
+
} else if (xm) ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
|
|
97268
|
+
else if (xp) ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;
|
|
97269
|
+
debug("xRange return", ret);
|
|
97270
|
+
return ret;
|
|
97271
|
+
});
|
|
97272
|
+
};
|
|
97273
|
+
const replaceStars = (comp, options) => {
|
|
97274
|
+
debug("replaceStars", comp, options);
|
|
97275
|
+
return comp.trim().replace(re[t.STAR], "");
|
|
97276
|
+
};
|
|
97277
|
+
const replaceGTE0 = (comp, options) => {
|
|
97278
|
+
debug("replaceGTE0", comp, options);
|
|
97279
|
+
return comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
|
|
97280
|
+
};
|
|
97281
|
+
const hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
|
|
97282
|
+
if (isX(fM)) from = "";
|
|
97283
|
+
else if (isX(fm)) from = `>=${fM}.0.0${incPr ? "-0" : ""}`;
|
|
97284
|
+
else if (isX(fp)) from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}`;
|
|
97285
|
+
else if (fpr) from = `>=${from}`;
|
|
97286
|
+
else from = `>=${from}${incPr ? "-0" : ""}`;
|
|
97287
|
+
if (isX(tM)) to = "";
|
|
97288
|
+
else if (isX(tm)) to = `<${+tM + 1}.0.0-0`;
|
|
97289
|
+
else if (isX(tp)) to = `<${tM}.${+tm + 1}.0-0`;
|
|
97290
|
+
else if (tpr) to = `<=${tM}.${tm}.${tp}-${tpr}`;
|
|
97291
|
+
else if (incPr) to = `<${tM}.${tm}.${+tp + 1}-0`;
|
|
97292
|
+
else to = `<=${to}`;
|
|
97293
|
+
return `${from} ${to}`.trim();
|
|
97294
|
+
};
|
|
97295
|
+
const testSet = (set, version, options) => {
|
|
97296
|
+
for (let i = 0; i < set.length; i++) if (!set[i].test(version)) return false;
|
|
97297
|
+
if (version.prerelease.length && !options.includePrerelease) {
|
|
97298
|
+
for (let i = 0; i < set.length; i++) {
|
|
97299
|
+
debug(set[i].semver);
|
|
97300
|
+
if (set[i].semver === Comparator.ANY) continue;
|
|
97301
|
+
if (set[i].semver.prerelease.length > 0) {
|
|
97302
|
+
const allowed = set[i].semver;
|
|
97303
|
+
if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) return true;
|
|
97304
|
+
}
|
|
97305
|
+
}
|
|
97306
|
+
return false;
|
|
97307
|
+
}
|
|
97308
|
+
return true;
|
|
97309
|
+
};
|
|
97310
|
+
}));
|
|
97311
|
+
//#endregion
|
|
97312
|
+
//#region ../../node_modules/semver/classes/comparator.js
|
|
97313
|
+
var require_comparator$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97314
|
+
const ANY = Symbol("SemVer ANY");
|
|
97315
|
+
module.exports = class Comparator {
|
|
97316
|
+
static get ANY() {
|
|
97317
|
+
return ANY;
|
|
97318
|
+
}
|
|
97319
|
+
constructor(comp, options) {
|
|
97320
|
+
options = parseOptions(options);
|
|
97321
|
+
if (comp instanceof Comparator) if (comp.loose === !!options.loose) return comp;
|
|
97322
|
+
else comp = comp.value;
|
|
97323
|
+
comp = comp.trim().split(/\s+/).join(" ");
|
|
97324
|
+
debug("comparator", comp, options);
|
|
97325
|
+
this.options = options;
|
|
97326
|
+
this.loose = !!options.loose;
|
|
97327
|
+
this.parse(comp);
|
|
97328
|
+
if (this.semver === ANY) this.value = "";
|
|
97329
|
+
else this.value = this.operator + this.semver.version;
|
|
97330
|
+
debug("comp", this);
|
|
97331
|
+
}
|
|
97332
|
+
parse(comp) {
|
|
97333
|
+
const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR];
|
|
97334
|
+
const m = comp.match(r);
|
|
97335
|
+
if (!m) throw new TypeError(`Invalid comparator: ${comp}`);
|
|
97336
|
+
this.operator = m[1] !== void 0 ? m[1] : "";
|
|
97337
|
+
if (this.operator === "=") this.operator = "";
|
|
97338
|
+
if (!m[2]) this.semver = ANY;
|
|
97339
|
+
else this.semver = new SemVer(m[2], this.options.loose);
|
|
97340
|
+
}
|
|
97341
|
+
toString() {
|
|
97342
|
+
return this.value;
|
|
97343
|
+
}
|
|
97344
|
+
test(version) {
|
|
97345
|
+
debug("Comparator.test", version, this.options.loose);
|
|
97346
|
+
if (this.semver === ANY || version === ANY) return true;
|
|
97347
|
+
if (typeof version === "string") try {
|
|
97348
|
+
version = new SemVer(version, this.options);
|
|
97349
|
+
} catch (er) {
|
|
97350
|
+
return false;
|
|
97351
|
+
}
|
|
97352
|
+
return cmp(version, this.operator, this.semver, this.options);
|
|
97353
|
+
}
|
|
97354
|
+
intersects(comp, options) {
|
|
97355
|
+
if (!(comp instanceof Comparator)) throw new TypeError("a Comparator is required");
|
|
97356
|
+
if (this.operator === "") {
|
|
97357
|
+
if (this.value === "") return true;
|
|
97358
|
+
return new Range(comp.value, options).test(this.value);
|
|
97359
|
+
} else if (comp.operator === "") {
|
|
97360
|
+
if (comp.value === "") return true;
|
|
97361
|
+
return new Range(this.value, options).test(comp.semver);
|
|
97362
|
+
}
|
|
97363
|
+
options = parseOptions(options);
|
|
97364
|
+
if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) return false;
|
|
97365
|
+
if (!options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0"))) return false;
|
|
97366
|
+
if (this.operator.startsWith(">") && comp.operator.startsWith(">")) return true;
|
|
97367
|
+
if (this.operator.startsWith("<") && comp.operator.startsWith("<")) return true;
|
|
97368
|
+
if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) return true;
|
|
97369
|
+
if (cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) return true;
|
|
97370
|
+
if (cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) return true;
|
|
97371
|
+
return false;
|
|
97372
|
+
}
|
|
97373
|
+
};
|
|
97374
|
+
const parseOptions = require_parse_options$1();
|
|
97375
|
+
const { safeRe: re, t } = require_re$1();
|
|
97376
|
+
const cmp = require_cmp$1();
|
|
97377
|
+
const debug = require_debug$1();
|
|
97378
|
+
const SemVer = require_semver$3();
|
|
97379
|
+
const Range = require_range$1();
|
|
97380
|
+
}));
|
|
97381
|
+
//#endregion
|
|
97382
|
+
//#region ../../node_modules/semver/functions/satisfies.js
|
|
97383
|
+
var require_satisfies$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97384
|
+
const Range = require_range$1();
|
|
97385
|
+
const satisfies = (version, range, options) => {
|
|
97386
|
+
try {
|
|
97387
|
+
range = new Range(range, options);
|
|
97388
|
+
} catch (er) {
|
|
97389
|
+
return false;
|
|
97390
|
+
}
|
|
97391
|
+
return range.test(version);
|
|
97392
|
+
};
|
|
97393
|
+
module.exports = satisfies;
|
|
97394
|
+
}));
|
|
97395
|
+
//#endregion
|
|
97396
|
+
//#region ../../node_modules/semver/ranges/to-comparators.js
|
|
97397
|
+
var require_to_comparators$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97398
|
+
const Range = require_range$1();
|
|
97399
|
+
const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
97400
|
+
module.exports = toComparators;
|
|
97401
|
+
}));
|
|
97402
|
+
//#endregion
|
|
97403
|
+
//#region ../../node_modules/semver/ranges/max-satisfying.js
|
|
97404
|
+
var require_max_satisfying$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97405
|
+
const SemVer = require_semver$3();
|
|
97406
|
+
const Range = require_range$1();
|
|
97407
|
+
const maxSatisfying = (versions, range, options) => {
|
|
97408
|
+
let max = null;
|
|
97409
|
+
let maxSV = null;
|
|
97410
|
+
let rangeObj = null;
|
|
97411
|
+
try {
|
|
97412
|
+
rangeObj = new Range(range, options);
|
|
97413
|
+
} catch (er) {
|
|
97414
|
+
return null;
|
|
97415
|
+
}
|
|
97416
|
+
versions.forEach((v) => {
|
|
97417
|
+
if (rangeObj.test(v)) {
|
|
97418
|
+
if (!max || maxSV.compare(v) === -1) {
|
|
97419
|
+
max = v;
|
|
97420
|
+
maxSV = new SemVer(max, options);
|
|
97421
|
+
}
|
|
97422
|
+
}
|
|
97423
|
+
});
|
|
97424
|
+
return max;
|
|
97425
|
+
};
|
|
97426
|
+
module.exports = maxSatisfying;
|
|
97427
|
+
}));
|
|
97428
|
+
//#endregion
|
|
97429
|
+
//#region ../../node_modules/semver/ranges/min-satisfying.js
|
|
97430
|
+
var require_min_satisfying$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97431
|
+
const SemVer = require_semver$3();
|
|
97432
|
+
const Range = require_range$1();
|
|
97433
|
+
const minSatisfying = (versions, range, options) => {
|
|
97434
|
+
let min = null;
|
|
97435
|
+
let minSV = null;
|
|
97436
|
+
let rangeObj = null;
|
|
97437
|
+
try {
|
|
97438
|
+
rangeObj = new Range(range, options);
|
|
97439
|
+
} catch (er) {
|
|
97440
|
+
return null;
|
|
97441
|
+
}
|
|
97442
|
+
versions.forEach((v) => {
|
|
97443
|
+
if (rangeObj.test(v)) {
|
|
97444
|
+
if (!min || minSV.compare(v) === 1) {
|
|
97445
|
+
min = v;
|
|
97446
|
+
minSV = new SemVer(min, options);
|
|
97447
|
+
}
|
|
97448
|
+
}
|
|
97449
|
+
});
|
|
97450
|
+
return min;
|
|
97451
|
+
};
|
|
97452
|
+
module.exports = minSatisfying;
|
|
97453
|
+
}));
|
|
97454
|
+
//#endregion
|
|
97455
|
+
//#region ../../node_modules/semver/ranges/min-version.js
|
|
97456
|
+
var require_min_version$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97457
|
+
const SemVer = require_semver$3();
|
|
97458
|
+
const Range = require_range$1();
|
|
97459
|
+
const gt = require_gt$1();
|
|
97460
|
+
const minVersion = (range, loose) => {
|
|
97461
|
+
range = new Range(range, loose);
|
|
97462
|
+
let minver = new SemVer("0.0.0");
|
|
97463
|
+
if (range.test(minver)) return minver;
|
|
97464
|
+
minver = new SemVer("0.0.0-0");
|
|
97465
|
+
if (range.test(minver)) return minver;
|
|
97466
|
+
minver = null;
|
|
97467
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
97468
|
+
const comparators = range.set[i];
|
|
97469
|
+
let setMin = null;
|
|
97470
|
+
comparators.forEach((comparator) => {
|
|
97471
|
+
const compver = new SemVer(comparator.semver.version);
|
|
97472
|
+
switch (comparator.operator) {
|
|
97473
|
+
case ">":
|
|
97474
|
+
if (compver.prerelease.length === 0) compver.patch++;
|
|
97475
|
+
else compver.prerelease.push(0);
|
|
97476
|
+
compver.raw = compver.format();
|
|
97477
|
+
case "":
|
|
97478
|
+
case ">=":
|
|
97479
|
+
if (!setMin || gt(compver, setMin)) setMin = compver;
|
|
97480
|
+
break;
|
|
97481
|
+
case "<":
|
|
97482
|
+
case "<=": break;
|
|
97483
|
+
default: throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
97484
|
+
}
|
|
97485
|
+
});
|
|
97486
|
+
if (setMin && (!minver || gt(minver, setMin))) minver = setMin;
|
|
97487
|
+
}
|
|
97488
|
+
if (minver && range.test(minver)) return minver;
|
|
97489
|
+
return null;
|
|
97490
|
+
};
|
|
97491
|
+
module.exports = minVersion;
|
|
97492
|
+
}));
|
|
97493
|
+
//#endregion
|
|
97494
|
+
//#region ../../node_modules/semver/ranges/valid.js
|
|
97495
|
+
var require_valid$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97496
|
+
const Range = require_range$1();
|
|
97497
|
+
const validRange = (range, options) => {
|
|
97498
|
+
try {
|
|
97499
|
+
return new Range(range, options).range || "*";
|
|
97500
|
+
} catch (er) {
|
|
97501
|
+
return null;
|
|
97502
|
+
}
|
|
97503
|
+
};
|
|
97504
|
+
module.exports = validRange;
|
|
97505
|
+
}));
|
|
97506
|
+
//#endregion
|
|
97507
|
+
//#region ../../node_modules/semver/ranges/outside.js
|
|
97508
|
+
var require_outside$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97509
|
+
const SemVer = require_semver$3();
|
|
97510
|
+
const Comparator = require_comparator$1();
|
|
97511
|
+
const { ANY } = Comparator;
|
|
97512
|
+
const Range = require_range$1();
|
|
97513
|
+
const satisfies = require_satisfies$1();
|
|
97514
|
+
const gt = require_gt$1();
|
|
97515
|
+
const lt = require_lt$1();
|
|
97516
|
+
const lte = require_lte$1();
|
|
97517
|
+
const gte = require_gte$1();
|
|
97518
|
+
const outside = (version, range, hilo, options) => {
|
|
97519
|
+
version = new SemVer(version, options);
|
|
97520
|
+
range = new Range(range, options);
|
|
97521
|
+
let gtfn, ltefn, ltfn, comp, ecomp;
|
|
97522
|
+
switch (hilo) {
|
|
97523
|
+
case ">":
|
|
97524
|
+
gtfn = gt;
|
|
97525
|
+
ltefn = lte;
|
|
97526
|
+
ltfn = lt;
|
|
97527
|
+
comp = ">";
|
|
97528
|
+
ecomp = ">=";
|
|
97529
|
+
break;
|
|
97530
|
+
case "<":
|
|
97531
|
+
gtfn = lt;
|
|
97532
|
+
ltefn = gte;
|
|
97533
|
+
ltfn = gt;
|
|
97534
|
+
comp = "<";
|
|
97535
|
+
ecomp = "<=";
|
|
97536
|
+
break;
|
|
97537
|
+
default: throw new TypeError("Must provide a hilo val of \"<\" or \">\"");
|
|
97538
|
+
}
|
|
97539
|
+
if (satisfies(version, range, options)) return false;
|
|
97540
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
97541
|
+
const comparators = range.set[i];
|
|
97542
|
+
let high = null;
|
|
97543
|
+
let low = null;
|
|
97544
|
+
comparators.forEach((comparator) => {
|
|
97545
|
+
if (comparator.semver === ANY) comparator = new Comparator(">=0.0.0");
|
|
97546
|
+
high = high || comparator;
|
|
97547
|
+
low = low || comparator;
|
|
97548
|
+
if (gtfn(comparator.semver, high.semver, options)) high = comparator;
|
|
97549
|
+
else if (ltfn(comparator.semver, low.semver, options)) low = comparator;
|
|
97550
|
+
});
|
|
97551
|
+
if (high.operator === comp || high.operator === ecomp) return false;
|
|
97552
|
+
if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) return false;
|
|
97553
|
+
else if (low.operator === ecomp && ltfn(version, low.semver)) return false;
|
|
97554
|
+
}
|
|
97555
|
+
return true;
|
|
97556
|
+
};
|
|
97557
|
+
module.exports = outside;
|
|
97558
|
+
}));
|
|
97559
|
+
//#endregion
|
|
97560
|
+
//#region ../../node_modules/semver/ranges/gtr.js
|
|
97561
|
+
var require_gtr$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97562
|
+
const outside = require_outside$1();
|
|
97563
|
+
const gtr = (version, range, options) => outside(version, range, ">", options);
|
|
97564
|
+
module.exports = gtr;
|
|
97565
|
+
}));
|
|
97566
|
+
//#endregion
|
|
97567
|
+
//#region ../../node_modules/semver/ranges/ltr.js
|
|
97568
|
+
var require_ltr$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97569
|
+
const outside = require_outside$1();
|
|
97570
|
+
const ltr = (version, range, options) => outside(version, range, "<", options);
|
|
97571
|
+
module.exports = ltr;
|
|
97572
|
+
}));
|
|
97573
|
+
//#endregion
|
|
97574
|
+
//#region ../../node_modules/semver/ranges/intersects.js
|
|
97575
|
+
var require_intersects$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97576
|
+
const Range = require_range$1();
|
|
97577
|
+
const intersects = (r1, r2, options) => {
|
|
97578
|
+
r1 = new Range(r1, options);
|
|
97579
|
+
r2 = new Range(r2, options);
|
|
97580
|
+
return r1.intersects(r2, options);
|
|
97581
|
+
};
|
|
97582
|
+
module.exports = intersects;
|
|
97583
|
+
}));
|
|
97584
|
+
//#endregion
|
|
97585
|
+
//#region ../../node_modules/semver/ranges/simplify.js
|
|
97586
|
+
var require_simplify$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97587
|
+
const satisfies = require_satisfies$1();
|
|
97588
|
+
const compare = require_compare$1();
|
|
97589
|
+
module.exports = (versions, range, options) => {
|
|
97590
|
+
const set = [];
|
|
97591
|
+
let first = null;
|
|
97592
|
+
let prev = null;
|
|
97593
|
+
const v = versions.sort((a, b) => compare(a, b, options));
|
|
97594
|
+
for (const version of v) if (satisfies(version, range, options)) {
|
|
97595
|
+
prev = version;
|
|
97596
|
+
if (!first) first = version;
|
|
97597
|
+
} else {
|
|
97598
|
+
if (prev) set.push([first, prev]);
|
|
97599
|
+
prev = null;
|
|
97600
|
+
first = null;
|
|
97601
|
+
}
|
|
97602
|
+
if (first) set.push([first, null]);
|
|
97603
|
+
const ranges = [];
|
|
97604
|
+
for (const [min, max] of set) if (min === max) ranges.push(min);
|
|
97605
|
+
else if (!max && min === v[0]) ranges.push("*");
|
|
97606
|
+
else if (!max) ranges.push(`>=${min}`);
|
|
97607
|
+
else if (min === v[0]) ranges.push(`<=${max}`);
|
|
97608
|
+
else ranges.push(`${min} - ${max}`);
|
|
97609
|
+
const simplified = ranges.join(" || ");
|
|
97610
|
+
const original = typeof range.raw === "string" ? range.raw : String(range);
|
|
97611
|
+
return simplified.length < original.length ? simplified : range;
|
|
97612
|
+
};
|
|
97613
|
+
}));
|
|
97614
|
+
//#endregion
|
|
97615
|
+
//#region ../../node_modules/semver/ranges/subset.js
|
|
97616
|
+
var require_subset$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97617
|
+
const Range = require_range$1();
|
|
97618
|
+
const Comparator = require_comparator$1();
|
|
97619
|
+
const { ANY } = Comparator;
|
|
97620
|
+
const satisfies = require_satisfies$1();
|
|
97621
|
+
const compare = require_compare$1();
|
|
97622
|
+
const subset = (sub, dom, options = {}) => {
|
|
97623
|
+
if (sub === dom) return true;
|
|
97624
|
+
sub = new Range(sub, options);
|
|
97625
|
+
dom = new Range(dom, options);
|
|
97626
|
+
let sawNonNull = false;
|
|
97627
|
+
OUTER: for (const simpleSub of sub.set) {
|
|
97628
|
+
for (const simpleDom of dom.set) {
|
|
97629
|
+
const isSub = simpleSubset(simpleSub, simpleDom, options);
|
|
97630
|
+
sawNonNull = sawNonNull || isSub !== null;
|
|
97631
|
+
if (isSub) continue OUTER;
|
|
97632
|
+
}
|
|
97633
|
+
if (sawNonNull) return false;
|
|
97634
|
+
}
|
|
97635
|
+
return true;
|
|
97636
|
+
};
|
|
97637
|
+
const minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")];
|
|
97638
|
+
const minimumVersion = [new Comparator(">=0.0.0")];
|
|
97639
|
+
const simpleSubset = (sub, dom, options) => {
|
|
97640
|
+
if (sub === dom) return true;
|
|
97641
|
+
if (sub.length === 1 && sub[0].semver === ANY) if (dom.length === 1 && dom[0].semver === ANY) return true;
|
|
97642
|
+
else if (options.includePrerelease) sub = minimumVersionWithPreRelease;
|
|
97643
|
+
else sub = minimumVersion;
|
|
97644
|
+
if (dom.length === 1 && dom[0].semver === ANY) if (options.includePrerelease) return true;
|
|
97645
|
+
else dom = minimumVersion;
|
|
97646
|
+
const eqSet = /* @__PURE__ */ new Set();
|
|
97647
|
+
let gt, lt;
|
|
97648
|
+
for (const c of sub) if (c.operator === ">" || c.operator === ">=") gt = higherGT(gt, c, options);
|
|
97649
|
+
else if (c.operator === "<" || c.operator === "<=") lt = lowerLT(lt, c, options);
|
|
97650
|
+
else eqSet.add(c.semver);
|
|
97651
|
+
if (eqSet.size > 1) return null;
|
|
97652
|
+
let gtltComp;
|
|
97653
|
+
if (gt && lt) {
|
|
97654
|
+
gtltComp = compare(gt.semver, lt.semver, options);
|
|
97655
|
+
if (gtltComp > 0) return null;
|
|
97656
|
+
else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) return null;
|
|
97657
|
+
}
|
|
97658
|
+
for (const eq of eqSet) {
|
|
97659
|
+
if (gt && !satisfies(eq, String(gt), options)) return null;
|
|
97660
|
+
if (lt && !satisfies(eq, String(lt), options)) return null;
|
|
97661
|
+
for (const c of dom) if (!satisfies(eq, String(c), options)) return false;
|
|
97662
|
+
return true;
|
|
97663
|
+
}
|
|
97664
|
+
let higher, lower;
|
|
97665
|
+
let hasDomLT, hasDomGT;
|
|
97666
|
+
let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;
|
|
97667
|
+
let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;
|
|
97668
|
+
if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0) needDomLTPre = false;
|
|
97669
|
+
for (const c of dom) {
|
|
97670
|
+
hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=";
|
|
97671
|
+
hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=";
|
|
97672
|
+
if (gt) {
|
|
97673
|
+
if (needDomGTPre) {
|
|
97674
|
+
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;
|
|
97675
|
+
}
|
|
97676
|
+
if (c.operator === ">" || c.operator === ">=") {
|
|
97677
|
+
higher = higherGT(gt, c, options);
|
|
97678
|
+
if (higher === c && higher !== gt) return false;
|
|
97679
|
+
} else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options)) return false;
|
|
97680
|
+
}
|
|
97681
|
+
if (lt) {
|
|
97682
|
+
if (needDomLTPre) {
|
|
97683
|
+
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;
|
|
97684
|
+
}
|
|
97685
|
+
if (c.operator === "<" || c.operator === "<=") {
|
|
97686
|
+
lower = lowerLT(lt, c, options);
|
|
97687
|
+
if (lower === c && lower !== lt) return false;
|
|
97688
|
+
} else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options)) return false;
|
|
97689
|
+
}
|
|
97690
|
+
if (!c.operator && (lt || gt) && gtltComp !== 0) return false;
|
|
97691
|
+
}
|
|
97692
|
+
if (gt && hasDomLT && !lt && gtltComp !== 0) return false;
|
|
97693
|
+
if (lt && hasDomGT && !gt && gtltComp !== 0) return false;
|
|
97694
|
+
if (needDomGTPre || needDomLTPre) return false;
|
|
97695
|
+
return true;
|
|
97696
|
+
};
|
|
97697
|
+
const higherGT = (a, b, options) => {
|
|
97698
|
+
if (!a) return b;
|
|
97699
|
+
const comp = compare(a.semver, b.semver, options);
|
|
97700
|
+
return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
|
|
97701
|
+
};
|
|
97702
|
+
const lowerLT = (a, b, options) => {
|
|
97703
|
+
if (!a) return b;
|
|
97704
|
+
const comp = compare(a.semver, b.semver, options);
|
|
97705
|
+
return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
|
|
97706
|
+
};
|
|
97707
|
+
module.exports = subset;
|
|
97708
|
+
}));
|
|
97709
|
+
//#endregion
|
|
97710
|
+
//#region ../../node_modules/semver/index.js
|
|
97711
|
+
var require_semver$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97712
|
+
const internalRe = require_re$1();
|
|
97713
|
+
const constants = require_constants$5();
|
|
97714
|
+
const SemVer = require_semver$3();
|
|
97715
|
+
const identifiers = require_identifiers$1();
|
|
97716
|
+
module.exports = {
|
|
97717
|
+
parse: require_parse$3(),
|
|
97718
|
+
valid: require_valid$3(),
|
|
97719
|
+
clean: require_clean$1(),
|
|
97720
|
+
inc: require_inc$1(),
|
|
97721
|
+
diff: require_diff$1(),
|
|
97722
|
+
major: require_major$1(),
|
|
97723
|
+
minor: require_minor$1(),
|
|
97724
|
+
patch: require_patch$1(),
|
|
97725
|
+
prerelease: require_prerelease$1(),
|
|
97726
|
+
compare: require_compare$1(),
|
|
97727
|
+
rcompare: require_rcompare$1(),
|
|
97728
|
+
compareLoose: require_compare_loose$1(),
|
|
97729
|
+
compareBuild: require_compare_build$1(),
|
|
97730
|
+
sort: require_sort$2(),
|
|
97731
|
+
rsort: require_rsort$1(),
|
|
97732
|
+
gt: require_gt$1(),
|
|
97733
|
+
lt: require_lt$1(),
|
|
97734
|
+
eq: require_eq$1(),
|
|
97735
|
+
neq: require_neq$1(),
|
|
97736
|
+
gte: require_gte$1(),
|
|
97737
|
+
lte: require_lte$1(),
|
|
97738
|
+
cmp: require_cmp$1(),
|
|
97739
|
+
coerce: require_coerce$1(),
|
|
97740
|
+
truncate: require_truncate(),
|
|
97741
|
+
Comparator: require_comparator$1(),
|
|
97742
|
+
Range: require_range$1(),
|
|
97743
|
+
satisfies: require_satisfies$1(),
|
|
97744
|
+
toComparators: require_to_comparators$1(),
|
|
97745
|
+
maxSatisfying: require_max_satisfying$1(),
|
|
97746
|
+
minSatisfying: require_min_satisfying$1(),
|
|
97747
|
+
minVersion: require_min_version$1(),
|
|
97748
|
+
validRange: require_valid$2(),
|
|
97749
|
+
outside: require_outside$1(),
|
|
97750
|
+
gtr: require_gtr$1(),
|
|
97751
|
+
ltr: require_ltr$1(),
|
|
97752
|
+
intersects: require_intersects$1(),
|
|
97753
|
+
simplifyRange: require_simplify$1(),
|
|
97754
|
+
subset: require_subset$1(),
|
|
97755
|
+
SemVer,
|
|
97756
|
+
re: internalRe.re,
|
|
97757
|
+
src: internalRe.src,
|
|
97758
|
+
tokens: internalRe.t,
|
|
97759
|
+
SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
|
|
97760
|
+
RELEASE_TYPES: constants.RELEASE_TYPES,
|
|
97761
|
+
compareIdentifiers: identifiers.compareIdentifiers,
|
|
97762
|
+
rcompareIdentifiers: identifiers.rcompareIdentifiers
|
|
97763
|
+
};
|
|
97764
|
+
}));
|
|
97765
|
+
//#endregion
|
|
96226
97766
|
//#region ../../node_modules/@npmcli/git/lib/lines-to-revs.js
|
|
96227
97767
|
var require_lines_to_revs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96228
|
-
const semver = require_semver();
|
|
97768
|
+
const semver = require_semver$2();
|
|
96229
97769
|
module.exports = (lines) => finish(lines.reduce(linesToRevsReducer, {
|
|
96230
97770
|
versions: {},
|
|
96231
97771
|
"dist-tags": {},
|
|
@@ -96492,7 +98032,7 @@ var require_npa = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
96492
98032
|
const path$17 = isWindows ? __require("node:path/win32") : __require("node:path");
|
|
96493
98033
|
const { homedir: homedir$1 } = __require("node:os");
|
|
96494
98034
|
const HostedGit = require_lib$28();
|
|
96495
|
-
const semver = require_semver();
|
|
98035
|
+
const semver = require_semver$2();
|
|
96496
98036
|
const validatePackageName = require_lib$23();
|
|
96497
98037
|
const { log } = require_lib$29();
|
|
96498
98038
|
const hasSlashes = isWindows ? /\\|[/]/ : /[/]/;
|
|
@@ -96865,8 +98405,8 @@ var require_current_env = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
96865
98405
|
//#endregion
|
|
96866
98406
|
//#region ../../node_modules/npm-install-checks/lib/dev-engines.js
|
|
96867
98407
|
var require_dev_engines = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96868
|
-
const satisfies = require_satisfies();
|
|
96869
|
-
const validRange = require_valid();
|
|
98408
|
+
const satisfies = require_satisfies$1();
|
|
98409
|
+
const validRange = require_valid$2();
|
|
96870
98410
|
const recognizedOnFail = [
|
|
96871
98411
|
"ignore",
|
|
96872
98412
|
"warn",
|
|
@@ -96946,7 +98486,7 @@ var require_dev_engines = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
96946
98486
|
//#endregion
|
|
96947
98487
|
//#region ../../node_modules/npm-install-checks/lib/index.js
|
|
96948
98488
|
var require_lib$22 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96949
|
-
const semver = require_semver();
|
|
98489
|
+
const semver = require_semver$2();
|
|
96950
98490
|
const currentEnv = require_current_env();
|
|
96951
98491
|
const { checkDevEngines } = require_dev_engines();
|
|
96952
98492
|
const checkEngine = (target, npmVer, nodeVer, force = false) => {
|
|
@@ -97055,7 +98595,7 @@ var require_lib$21 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
97055
98595
|
//#region ../../node_modules/npm-pick-manifest/lib/index.js
|
|
97056
98596
|
var require_lib$20 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97057
98597
|
const npa = require_npa();
|
|
97058
|
-
const semver = require_semver();
|
|
98598
|
+
const semver = require_semver$2();
|
|
97059
98599
|
const { checkEngine } = require_lib$22();
|
|
97060
98600
|
const normalizeBin = require_lib$21();
|
|
97061
98601
|
const engineOk = (manifest, npmVersion, nodeVersion) => {
|
|
@@ -97349,8 +98889,8 @@ var require_lib$19 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
97349
98889
|
//#endregion
|
|
97350
98890
|
//#region ../../node_modules/@npmcli/package-json/lib/normalize.js
|
|
97351
98891
|
var require_normalize = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97352
|
-
const valid = require_valid$
|
|
97353
|
-
const clean = require_clean();
|
|
98892
|
+
const valid = require_valid$3();
|
|
98893
|
+
const clean = require_clean$1();
|
|
97354
98894
|
const fs$13 = __require("node:fs/promises");
|
|
97355
98895
|
const path$15 = __require("node:path");
|
|
97356
98896
|
const { log } = require_lib$29();
|
|
@@ -97781,7 +99321,7 @@ var require_read_package = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
97781
99321
|
}));
|
|
97782
99322
|
//#endregion
|
|
97783
99323
|
//#region ../../node_modules/@npmcli/package-json/lib/sort.js
|
|
97784
|
-
var require_sort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
99324
|
+
var require_sort$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97785
99325
|
/**
|
|
97786
99326
|
* arbitrary sort order for package.json largely pulled from:
|
|
97787
99327
|
* https://github.com/keithamus/sort-package-json/blob/main/defaultRules.md
|
|
@@ -97849,7 +99389,7 @@ var require_lib$18 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
97849
99389
|
const updateWorkspaces = require_update_workspaces();
|
|
97850
99390
|
const { normalize, syncNormalize } = require_normalize();
|
|
97851
99391
|
const { read, parse } = require_read_package();
|
|
97852
|
-
const { packageSort } = require_sort();
|
|
99392
|
+
const { packageSort } = require_sort$1();
|
|
97853
99393
|
const knownSteps = new Set([
|
|
97854
99394
|
updateDeps,
|
|
97855
99395
|
updateScripts,
|
|
@@ -98995,7 +100535,7 @@ var require_get_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
98995
100535
|
//#endregion
|
|
98996
100536
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/common/node.js
|
|
98997
100537
|
var require_node$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
98998
|
-
const semver = require_semver();
|
|
100538
|
+
const semver = require_semver$2();
|
|
98999
100539
|
const satisfies = (range) => {
|
|
99000
100540
|
return semver.satisfies(process.version, range, { includePrerelease: true });
|
|
99001
100541
|
};
|
|
@@ -111529,7 +113069,7 @@ var require_errors$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
111529
113069
|
}));
|
|
111530
113070
|
//#endregion
|
|
111531
113071
|
//#region ../../node_modules/minizlib/dist/commonjs/constants.js
|
|
111532
|
-
var require_constants$
|
|
113072
|
+
var require_constants$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
111533
113073
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
111534
113074
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
111535
113075
|
};
|
|
@@ -111700,8 +113240,8 @@ var require_commonjs$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
111700
113240
|
const buffer_1$1 = __require("buffer");
|
|
111701
113241
|
const minipass_1 = require_commonjs$10();
|
|
111702
113242
|
const realZlib = __importStar(__require("zlib"));
|
|
111703
|
-
const constants_js_1 = require_constants$
|
|
111704
|
-
var constants_js_2 = require_constants$
|
|
113243
|
+
const constants_js_1 = require_constants$4();
|
|
113244
|
+
var constants_js_2 = require_constants$4();
|
|
111705
113245
|
Object.defineProperty(exports, "constants", {
|
|
111706
113246
|
enumerable: true,
|
|
111707
113247
|
get: function() {
|
|
@@ -126343,7 +127883,7 @@ var require_smartbuffer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
126343
127883
|
}));
|
|
126344
127884
|
//#endregion
|
|
126345
127885
|
//#region ../../node_modules/socks/build/common/constants.js
|
|
126346
|
-
var require_constants$
|
|
127886
|
+
var require_constants$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
126347
127887
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
126348
127888
|
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;
|
|
126349
127889
|
exports.DEFAULT_TIMEOUT = 3e4;
|
|
@@ -126509,7 +128049,7 @@ var require_common = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
126509
128049
|
}));
|
|
126510
128050
|
//#endregion
|
|
126511
128051
|
//#region ../../node_modules/ip-address/dist/v4/constants.js
|
|
126512
|
-
var require_constants$
|
|
128052
|
+
var require_constants$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
126513
128053
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
126514
128054
|
exports.RE_SUBNET_STRING = exports.RE_ADDRESS = exports.GROUPS = exports.BITS = void 0;
|
|
126515
128055
|
exports.BITS = 32;
|
|
@@ -126568,7 +128108,7 @@ var require_ipv4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
126568
128108
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
126569
128109
|
exports.Address4 = void 0;
|
|
126570
128110
|
const common = __importStar(require_common());
|
|
126571
|
-
const constants = __importStar(require_constants$
|
|
128111
|
+
const constants = __importStar(require_constants$2());
|
|
126572
128112
|
const address_error_1 = require_address_error();
|
|
126573
128113
|
exports.Address4 = class Address4 {
|
|
126574
128114
|
constructor(address) {
|
|
@@ -126862,7 +128402,7 @@ var require_ipv4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
126862
128402
|
}));
|
|
126863
128403
|
//#endregion
|
|
126864
128404
|
//#region ../../node_modules/ip-address/dist/v6/constants.js
|
|
126865
|
-
var require_constants = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
128405
|
+
var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
126866
128406
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
126867
128407
|
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;
|
|
126868
128408
|
exports.BITS = 128;
|
|
@@ -127018,7 +128558,7 @@ var require_regular_expressions = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
127018
128558
|
exports.padGroup = padGroup;
|
|
127019
128559
|
exports.simpleRegularExpression = simpleRegularExpression;
|
|
127020
128560
|
exports.possibleElisions = possibleElisions;
|
|
127021
|
-
const v6 = __importStar(require_constants());
|
|
128561
|
+
const v6 = __importStar(require_constants$1());
|
|
127022
128562
|
function groupPossibilities(possibilities) {
|
|
127023
128563
|
return `(${possibilities.join("|")})`;
|
|
127024
128564
|
}
|
|
@@ -127093,8 +128633,8 @@ var require_ipv6 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
127093
128633
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
127094
128634
|
exports.Address6 = void 0;
|
|
127095
128635
|
const common = __importStar(require_common());
|
|
127096
|
-
const constants4 = __importStar(require_constants$
|
|
127097
|
-
const constants6 = __importStar(require_constants());
|
|
128636
|
+
const constants4 = __importStar(require_constants$2());
|
|
128637
|
+
const constants6 = __importStar(require_constants$1());
|
|
127098
128638
|
const helpers = __importStar(require_helpers$1());
|
|
127099
128639
|
const ipv4_1 = require_ipv4();
|
|
127100
128640
|
const regular_expressions_1 = require_regular_expressions();
|
|
@@ -127914,7 +129454,7 @@ var require_helpers = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
127914
129454
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
127915
129455
|
exports.ipToBuffer = exports.int32ToIpv4 = exports.ipv4ToInt32 = exports.validateSocksClientChainOptions = exports.validateSocksClientOptions = void 0;
|
|
127916
129456
|
const util_1 = require_util$1();
|
|
127917
|
-
const constants_1 = require_constants$
|
|
129457
|
+
const constants_1 = require_constants$3();
|
|
127918
129458
|
const stream = __require("stream");
|
|
127919
129459
|
const ip_address_1 = require_ip_address();
|
|
127920
129460
|
const net$3 = __require("net");
|
|
@@ -128079,7 +129619,7 @@ var require_socksclient = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
128079
129619
|
const events_1 = __require("events");
|
|
128080
129620
|
const net$2 = __require("net");
|
|
128081
129621
|
const smart_buffer_1 = require_smartbuffer();
|
|
128082
|
-
const constants_1 = require_constants$
|
|
129622
|
+
const constants_1 = require_constants$3();
|
|
128083
129623
|
const helpers_1 = require_helpers();
|
|
128084
129624
|
const receivebuffer_1 = require_receivebuffer();
|
|
128085
129625
|
const util_1 = require_util$1();
|
|
@@ -132328,7 +133868,7 @@ var require_length = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
132328
133868
|
}));
|
|
132329
133869
|
//#endregion
|
|
132330
133870
|
//#region ../../node_modules/@sigstore/core/dist/asn1/parse.js
|
|
132331
|
-
var require_parse = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
133871
|
+
var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
132332
133872
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
132333
133873
|
exports.parseInteger = parseInteger;
|
|
132334
133874
|
exports.parseStringASCII = parseStringASCII;
|
|
@@ -132474,7 +134014,7 @@ var require_obj = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
132474
134014
|
const stream_1 = require_stream();
|
|
132475
134015
|
const error_1 = require_error$8();
|
|
132476
134016
|
const length_1 = require_length();
|
|
132477
|
-
const parse_1 = require_parse();
|
|
134017
|
+
const parse_1 = require_parse$1();
|
|
132478
134018
|
const tag_1 = require_tag();
|
|
132479
134019
|
var ASN1Obj = class {
|
|
132480
134020
|
tag;
|
|
@@ -140790,6 +142330,1343 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
140790
142330
|
};
|
|
140791
142331
|
}));
|
|
140792
142332
|
//#endregion
|
|
142333
|
+
//#region ../../packages/core-node/node_modules/semver/internal/constants.js
|
|
142334
|
+
var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142335
|
+
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
142336
|
+
const MAX_LENGTH = 256;
|
|
142337
|
+
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
142338
|
+
module.exports = {
|
|
142339
|
+
MAX_LENGTH,
|
|
142340
|
+
MAX_SAFE_COMPONENT_LENGTH: 16,
|
|
142341
|
+
MAX_SAFE_BUILD_LENGTH: MAX_LENGTH - 6,
|
|
142342
|
+
MAX_SAFE_INTEGER,
|
|
142343
|
+
RELEASE_TYPES: [
|
|
142344
|
+
"major",
|
|
142345
|
+
"premajor",
|
|
142346
|
+
"minor",
|
|
142347
|
+
"preminor",
|
|
142348
|
+
"patch",
|
|
142349
|
+
"prepatch",
|
|
142350
|
+
"prerelease"
|
|
142351
|
+
],
|
|
142352
|
+
SEMVER_SPEC_VERSION,
|
|
142353
|
+
FLAG_INCLUDE_PRERELEASE: 1,
|
|
142354
|
+
FLAG_LOOSE: 2
|
|
142355
|
+
};
|
|
142356
|
+
}));
|
|
142357
|
+
//#endregion
|
|
142358
|
+
//#region ../../packages/core-node/node_modules/semver/internal/debug.js
|
|
142359
|
+
var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142360
|
+
module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
142361
|
+
}));
|
|
142362
|
+
//#endregion
|
|
142363
|
+
//#region ../../packages/core-node/node_modules/semver/internal/re.js
|
|
142364
|
+
var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142365
|
+
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
|
|
142366
|
+
const debug = require_debug();
|
|
142367
|
+
exports = module.exports = {};
|
|
142368
|
+
const re = exports.re = [];
|
|
142369
|
+
const safeRe = exports.safeRe = [];
|
|
142370
|
+
const src = exports.src = [];
|
|
142371
|
+
const safeSrc = exports.safeSrc = [];
|
|
142372
|
+
const t = exports.t = {};
|
|
142373
|
+
let R = 0;
|
|
142374
|
+
const LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
142375
|
+
const safeRegexReplacements = [
|
|
142376
|
+
["\\s", 1],
|
|
142377
|
+
["\\d", MAX_LENGTH],
|
|
142378
|
+
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
|
|
142379
|
+
];
|
|
142380
|
+
const makeSafeRegex = (value) => {
|
|
142381
|
+
for (const [token, max] of safeRegexReplacements) value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
|
|
142382
|
+
return value;
|
|
142383
|
+
};
|
|
142384
|
+
const createToken = (name, value, isGlobal) => {
|
|
142385
|
+
const safe = makeSafeRegex(value);
|
|
142386
|
+
const index = R++;
|
|
142387
|
+
debug(name, index, value);
|
|
142388
|
+
t[name] = index;
|
|
142389
|
+
src[index] = value;
|
|
142390
|
+
safeSrc[index] = safe;
|
|
142391
|
+
re[index] = new RegExp(value, isGlobal ? "g" : void 0);
|
|
142392
|
+
safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
142393
|
+
};
|
|
142394
|
+
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
142395
|
+
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
142396
|
+
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
142397
|
+
createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
|
|
142398
|
+
createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
142399
|
+
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
|
|
142400
|
+
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
142401
|
+
createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
142402
|
+
createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
142403
|
+
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
142404
|
+
createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
|
|
142405
|
+
createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
|
|
142406
|
+
createToken("FULL", `^${src[t.FULLPLAIN]}$`);
|
|
142407
|
+
createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
|
|
142408
|
+
createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
|
|
142409
|
+
createToken("GTLT", "((?:<|>)?=?)");
|
|
142410
|
+
createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
|
142411
|
+
createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
|
|
142412
|
+
createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
|
|
142413
|
+
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
|
|
142414
|
+
createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
|
|
142415
|
+
createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
|
|
142416
|
+
createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
|
142417
|
+
createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
142418
|
+
createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
|
|
142419
|
+
createToken("COERCERTL", src[t.COERCE], true);
|
|
142420
|
+
createToken("COERCERTLFULL", src[t.COERCEFULL], true);
|
|
142421
|
+
createToken("LONETILDE", "(?:~>?)");
|
|
142422
|
+
createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
|
|
142423
|
+
exports.tildeTrimReplace = "$1~";
|
|
142424
|
+
createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
|
|
142425
|
+
createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
142426
|
+
createToken("LONECARET", "(?:\\^)");
|
|
142427
|
+
createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
|
|
142428
|
+
exports.caretTrimReplace = "$1^";
|
|
142429
|
+
createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
|
|
142430
|
+
createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
142431
|
+
createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
|
|
142432
|
+
createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
|
|
142433
|
+
createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
|
|
142434
|
+
exports.comparatorTrimReplace = "$1$2$3";
|
|
142435
|
+
createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
|
|
142436
|
+
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
|
|
142437
|
+
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
142438
|
+
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
142439
|
+
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
142440
|
+
}));
|
|
142441
|
+
//#endregion
|
|
142442
|
+
//#region ../../packages/core-node/node_modules/semver/internal/parse-options.js
|
|
142443
|
+
var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142444
|
+
const looseOption = Object.freeze({ loose: true });
|
|
142445
|
+
const emptyOpts = Object.freeze({});
|
|
142446
|
+
const parseOptions = (options) => {
|
|
142447
|
+
if (!options) return emptyOpts;
|
|
142448
|
+
if (typeof options !== "object") return looseOption;
|
|
142449
|
+
return options;
|
|
142450
|
+
};
|
|
142451
|
+
module.exports = parseOptions;
|
|
142452
|
+
}));
|
|
142453
|
+
//#endregion
|
|
142454
|
+
//#region ../../packages/core-node/node_modules/semver/internal/identifiers.js
|
|
142455
|
+
var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142456
|
+
const numeric = /^[0-9]+$/;
|
|
142457
|
+
const compareIdentifiers = (a, b) => {
|
|
142458
|
+
if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
|
|
142459
|
+
const anum = numeric.test(a);
|
|
142460
|
+
const bnum = numeric.test(b);
|
|
142461
|
+
if (anum && bnum) {
|
|
142462
|
+
a = +a;
|
|
142463
|
+
b = +b;
|
|
142464
|
+
}
|
|
142465
|
+
return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
|
|
142466
|
+
};
|
|
142467
|
+
const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
|
|
142468
|
+
module.exports = {
|
|
142469
|
+
compareIdentifiers,
|
|
142470
|
+
rcompareIdentifiers
|
|
142471
|
+
};
|
|
142472
|
+
}));
|
|
142473
|
+
//#endregion
|
|
142474
|
+
//#region ../../packages/core-node/node_modules/semver/classes/semver.js
|
|
142475
|
+
var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142476
|
+
const debug = require_debug();
|
|
142477
|
+
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
142478
|
+
const { safeRe: re, t } = require_re();
|
|
142479
|
+
const parseOptions = require_parse_options();
|
|
142480
|
+
const { compareIdentifiers } = require_identifiers();
|
|
142481
|
+
module.exports = class SemVer {
|
|
142482
|
+
constructor(version, options) {
|
|
142483
|
+
options = parseOptions(options);
|
|
142484
|
+
if (version instanceof SemVer) if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) return version;
|
|
142485
|
+
else version = version.version;
|
|
142486
|
+
else if (typeof version !== "string") throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
142487
|
+
if (version.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
|
|
142488
|
+
debug("SemVer", version, options);
|
|
142489
|
+
this.options = options;
|
|
142490
|
+
this.loose = !!options.loose;
|
|
142491
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
142492
|
+
const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
|
|
142493
|
+
if (!m) throw new TypeError(`Invalid Version: ${version}`);
|
|
142494
|
+
this.raw = version;
|
|
142495
|
+
this.major = +m[1];
|
|
142496
|
+
this.minor = +m[2];
|
|
142497
|
+
this.patch = +m[3];
|
|
142498
|
+
if (this.major > MAX_SAFE_INTEGER || this.major < 0) throw new TypeError("Invalid major version");
|
|
142499
|
+
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError("Invalid minor version");
|
|
142500
|
+
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError("Invalid patch version");
|
|
142501
|
+
if (!m[4]) this.prerelease = [];
|
|
142502
|
+
else this.prerelease = m[4].split(".").map((id) => {
|
|
142503
|
+
if (/^[0-9]+$/.test(id)) {
|
|
142504
|
+
const num = +id;
|
|
142505
|
+
if (num >= 0 && num < MAX_SAFE_INTEGER) return num;
|
|
142506
|
+
}
|
|
142507
|
+
return id;
|
|
142508
|
+
});
|
|
142509
|
+
this.build = m[5] ? m[5].split(".") : [];
|
|
142510
|
+
this.format();
|
|
142511
|
+
}
|
|
142512
|
+
format() {
|
|
142513
|
+
this.version = `${this.major}.${this.minor}.${this.patch}`;
|
|
142514
|
+
if (this.prerelease.length) this.version += `-${this.prerelease.join(".")}`;
|
|
142515
|
+
return this.version;
|
|
142516
|
+
}
|
|
142517
|
+
toString() {
|
|
142518
|
+
return this.version;
|
|
142519
|
+
}
|
|
142520
|
+
compare(other) {
|
|
142521
|
+
debug("SemVer.compare", this.version, this.options, other);
|
|
142522
|
+
if (!(other instanceof SemVer)) {
|
|
142523
|
+
if (typeof other === "string" && other === this.version) return 0;
|
|
142524
|
+
other = new SemVer(other, this.options);
|
|
142525
|
+
}
|
|
142526
|
+
if (other.version === this.version) return 0;
|
|
142527
|
+
return this.compareMain(other) || this.comparePre(other);
|
|
142528
|
+
}
|
|
142529
|
+
compareMain(other) {
|
|
142530
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
142531
|
+
if (this.major < other.major) return -1;
|
|
142532
|
+
if (this.major > other.major) return 1;
|
|
142533
|
+
if (this.minor < other.minor) return -1;
|
|
142534
|
+
if (this.minor > other.minor) return 1;
|
|
142535
|
+
if (this.patch < other.patch) return -1;
|
|
142536
|
+
if (this.patch > other.patch) return 1;
|
|
142537
|
+
return 0;
|
|
142538
|
+
}
|
|
142539
|
+
comparePre(other) {
|
|
142540
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
142541
|
+
if (this.prerelease.length && !other.prerelease.length) return -1;
|
|
142542
|
+
else if (!this.prerelease.length && other.prerelease.length) return 1;
|
|
142543
|
+
else if (!this.prerelease.length && !other.prerelease.length) return 0;
|
|
142544
|
+
let i = 0;
|
|
142545
|
+
do {
|
|
142546
|
+
const a = this.prerelease[i];
|
|
142547
|
+
const b = other.prerelease[i];
|
|
142548
|
+
debug("prerelease compare", i, a, b);
|
|
142549
|
+
if (a === void 0 && b === void 0) return 0;
|
|
142550
|
+
else if (b === void 0) return 1;
|
|
142551
|
+
else if (a === void 0) return -1;
|
|
142552
|
+
else if (a === b) continue;
|
|
142553
|
+
else return compareIdentifiers(a, b);
|
|
142554
|
+
} while (++i);
|
|
142555
|
+
}
|
|
142556
|
+
compareBuild(other) {
|
|
142557
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
142558
|
+
let i = 0;
|
|
142559
|
+
do {
|
|
142560
|
+
const a = this.build[i];
|
|
142561
|
+
const b = other.build[i];
|
|
142562
|
+
debug("build compare", i, a, b);
|
|
142563
|
+
if (a === void 0 && b === void 0) return 0;
|
|
142564
|
+
else if (b === void 0) return 1;
|
|
142565
|
+
else if (a === void 0) return -1;
|
|
142566
|
+
else if (a === b) continue;
|
|
142567
|
+
else return compareIdentifiers(a, b);
|
|
142568
|
+
} while (++i);
|
|
142569
|
+
}
|
|
142570
|
+
inc(release, identifier, identifierBase) {
|
|
142571
|
+
if (release.startsWith("pre")) {
|
|
142572
|
+
if (!identifier && identifierBase === false) throw new Error("invalid increment argument: identifier is empty");
|
|
142573
|
+
if (identifier) {
|
|
142574
|
+
const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
|
|
142575
|
+
if (!match || match[1] !== identifier) throw new Error(`invalid identifier: ${identifier}`);
|
|
142576
|
+
}
|
|
142577
|
+
}
|
|
142578
|
+
switch (release) {
|
|
142579
|
+
case "premajor":
|
|
142580
|
+
this.prerelease.length = 0;
|
|
142581
|
+
this.patch = 0;
|
|
142582
|
+
this.minor = 0;
|
|
142583
|
+
this.major++;
|
|
142584
|
+
this.inc("pre", identifier, identifierBase);
|
|
142585
|
+
break;
|
|
142586
|
+
case "preminor":
|
|
142587
|
+
this.prerelease.length = 0;
|
|
142588
|
+
this.patch = 0;
|
|
142589
|
+
this.minor++;
|
|
142590
|
+
this.inc("pre", identifier, identifierBase);
|
|
142591
|
+
break;
|
|
142592
|
+
case "prepatch":
|
|
142593
|
+
this.prerelease.length = 0;
|
|
142594
|
+
this.inc("patch", identifier, identifierBase);
|
|
142595
|
+
this.inc("pre", identifier, identifierBase);
|
|
142596
|
+
break;
|
|
142597
|
+
case "prerelease":
|
|
142598
|
+
if (this.prerelease.length === 0) this.inc("patch", identifier, identifierBase);
|
|
142599
|
+
this.inc("pre", identifier, identifierBase);
|
|
142600
|
+
break;
|
|
142601
|
+
case "release":
|
|
142602
|
+
if (this.prerelease.length === 0) throw new Error(`version ${this.raw} is not a prerelease`);
|
|
142603
|
+
this.prerelease.length = 0;
|
|
142604
|
+
break;
|
|
142605
|
+
case "major":
|
|
142606
|
+
if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) this.major++;
|
|
142607
|
+
this.minor = 0;
|
|
142608
|
+
this.patch = 0;
|
|
142609
|
+
this.prerelease = [];
|
|
142610
|
+
break;
|
|
142611
|
+
case "minor":
|
|
142612
|
+
if (this.patch !== 0 || this.prerelease.length === 0) this.minor++;
|
|
142613
|
+
this.patch = 0;
|
|
142614
|
+
this.prerelease = [];
|
|
142615
|
+
break;
|
|
142616
|
+
case "patch":
|
|
142617
|
+
if (this.prerelease.length === 0) this.patch++;
|
|
142618
|
+
this.prerelease = [];
|
|
142619
|
+
break;
|
|
142620
|
+
case "pre": {
|
|
142621
|
+
const base = Number(identifierBase) ? 1 : 0;
|
|
142622
|
+
if (this.prerelease.length === 0) this.prerelease = [base];
|
|
142623
|
+
else {
|
|
142624
|
+
let i = this.prerelease.length;
|
|
142625
|
+
while (--i >= 0) if (typeof this.prerelease[i] === "number") {
|
|
142626
|
+
this.prerelease[i]++;
|
|
142627
|
+
i = -2;
|
|
142628
|
+
}
|
|
142629
|
+
if (i === -1) {
|
|
142630
|
+
if (identifier === this.prerelease.join(".") && identifierBase === false) throw new Error("invalid increment argument: identifier already exists");
|
|
142631
|
+
this.prerelease.push(base);
|
|
142632
|
+
}
|
|
142633
|
+
}
|
|
142634
|
+
if (identifier) {
|
|
142635
|
+
let prerelease = [identifier, base];
|
|
142636
|
+
if (identifierBase === false) prerelease = [identifier];
|
|
142637
|
+
if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
|
|
142638
|
+
if (isNaN(this.prerelease[1])) this.prerelease = prerelease;
|
|
142639
|
+
} else this.prerelease = prerelease;
|
|
142640
|
+
}
|
|
142641
|
+
break;
|
|
142642
|
+
}
|
|
142643
|
+
default: throw new Error(`invalid increment argument: ${release}`);
|
|
142644
|
+
}
|
|
142645
|
+
this.raw = this.format();
|
|
142646
|
+
if (this.build.length) this.raw += `+${this.build.join(".")}`;
|
|
142647
|
+
return this;
|
|
142648
|
+
}
|
|
142649
|
+
};
|
|
142650
|
+
}));
|
|
142651
|
+
//#endregion
|
|
142652
|
+
//#region ../../packages/core-node/node_modules/semver/functions/parse.js
|
|
142653
|
+
var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142654
|
+
const SemVer = require_semver$1();
|
|
142655
|
+
const parse = (version, options, throwErrors = false) => {
|
|
142656
|
+
if (version instanceof SemVer) return version;
|
|
142657
|
+
try {
|
|
142658
|
+
return new SemVer(version, options);
|
|
142659
|
+
} catch (er) {
|
|
142660
|
+
if (!throwErrors) return null;
|
|
142661
|
+
throw er;
|
|
142662
|
+
}
|
|
142663
|
+
};
|
|
142664
|
+
module.exports = parse;
|
|
142665
|
+
}));
|
|
142666
|
+
//#endregion
|
|
142667
|
+
//#region ../../packages/core-node/node_modules/semver/functions/valid.js
|
|
142668
|
+
var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142669
|
+
const parse = require_parse();
|
|
142670
|
+
const valid = (version, options) => {
|
|
142671
|
+
const v = parse(version, options);
|
|
142672
|
+
return v ? v.version : null;
|
|
142673
|
+
};
|
|
142674
|
+
module.exports = valid;
|
|
142675
|
+
}));
|
|
142676
|
+
//#endregion
|
|
142677
|
+
//#region ../../packages/core-node/node_modules/semver/functions/clean.js
|
|
142678
|
+
var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142679
|
+
const parse = require_parse();
|
|
142680
|
+
const clean = (version, options) => {
|
|
142681
|
+
const s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
142682
|
+
return s ? s.version : null;
|
|
142683
|
+
};
|
|
142684
|
+
module.exports = clean;
|
|
142685
|
+
}));
|
|
142686
|
+
//#endregion
|
|
142687
|
+
//#region ../../packages/core-node/node_modules/semver/functions/inc.js
|
|
142688
|
+
var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142689
|
+
const SemVer = require_semver$1();
|
|
142690
|
+
const inc = (version, release, options, identifier, identifierBase) => {
|
|
142691
|
+
if (typeof options === "string") {
|
|
142692
|
+
identifierBase = identifier;
|
|
142693
|
+
identifier = options;
|
|
142694
|
+
options = void 0;
|
|
142695
|
+
}
|
|
142696
|
+
try {
|
|
142697
|
+
return new SemVer(version instanceof SemVer ? version.version : version, options).inc(release, identifier, identifierBase).version;
|
|
142698
|
+
} catch (er) {
|
|
142699
|
+
return null;
|
|
142700
|
+
}
|
|
142701
|
+
};
|
|
142702
|
+
module.exports = inc;
|
|
142703
|
+
}));
|
|
142704
|
+
//#endregion
|
|
142705
|
+
//#region ../../packages/core-node/node_modules/semver/functions/diff.js
|
|
142706
|
+
var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142707
|
+
const parse = require_parse();
|
|
142708
|
+
const diff = (version1, version2) => {
|
|
142709
|
+
const v1 = parse(version1, null, true);
|
|
142710
|
+
const v2 = parse(version2, null, true);
|
|
142711
|
+
const comparison = v1.compare(v2);
|
|
142712
|
+
if (comparison === 0) return null;
|
|
142713
|
+
const v1Higher = comparison > 0;
|
|
142714
|
+
const highVersion = v1Higher ? v1 : v2;
|
|
142715
|
+
const lowVersion = v1Higher ? v2 : v1;
|
|
142716
|
+
const highHasPre = !!highVersion.prerelease.length;
|
|
142717
|
+
if (!!lowVersion.prerelease.length && !highHasPre) {
|
|
142718
|
+
if (!lowVersion.patch && !lowVersion.minor) return "major";
|
|
142719
|
+
if (lowVersion.compareMain(highVersion) === 0) {
|
|
142720
|
+
if (lowVersion.minor && !lowVersion.patch) return "minor";
|
|
142721
|
+
return "patch";
|
|
142722
|
+
}
|
|
142723
|
+
}
|
|
142724
|
+
const prefix = highHasPre ? "pre" : "";
|
|
142725
|
+
if (v1.major !== v2.major) return prefix + "major";
|
|
142726
|
+
if (v1.minor !== v2.minor) return prefix + "minor";
|
|
142727
|
+
if (v1.patch !== v2.patch) return prefix + "patch";
|
|
142728
|
+
return "prerelease";
|
|
142729
|
+
};
|
|
142730
|
+
module.exports = diff;
|
|
142731
|
+
}));
|
|
142732
|
+
//#endregion
|
|
142733
|
+
//#region ../../packages/core-node/node_modules/semver/functions/major.js
|
|
142734
|
+
var require_major = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142735
|
+
const SemVer = require_semver$1();
|
|
142736
|
+
const major = (a, loose) => new SemVer(a, loose).major;
|
|
142737
|
+
module.exports = major;
|
|
142738
|
+
}));
|
|
142739
|
+
//#endregion
|
|
142740
|
+
//#region ../../packages/core-node/node_modules/semver/functions/minor.js
|
|
142741
|
+
var require_minor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142742
|
+
const SemVer = require_semver$1();
|
|
142743
|
+
const minor = (a, loose) => new SemVer(a, loose).minor;
|
|
142744
|
+
module.exports = minor;
|
|
142745
|
+
}));
|
|
142746
|
+
//#endregion
|
|
142747
|
+
//#region ../../packages/core-node/node_modules/semver/functions/patch.js
|
|
142748
|
+
var require_patch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142749
|
+
const SemVer = require_semver$1();
|
|
142750
|
+
const patch = (a, loose) => new SemVer(a, loose).patch;
|
|
142751
|
+
module.exports = patch;
|
|
142752
|
+
}));
|
|
142753
|
+
//#endregion
|
|
142754
|
+
//#region ../../packages/core-node/node_modules/semver/functions/prerelease.js
|
|
142755
|
+
var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142756
|
+
const parse = require_parse();
|
|
142757
|
+
const prerelease = (version, options) => {
|
|
142758
|
+
const parsed = parse(version, options);
|
|
142759
|
+
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
142760
|
+
};
|
|
142761
|
+
module.exports = prerelease;
|
|
142762
|
+
}));
|
|
142763
|
+
//#endregion
|
|
142764
|
+
//#region ../../packages/core-node/node_modules/semver/functions/compare.js
|
|
142765
|
+
var require_compare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142766
|
+
const SemVer = require_semver$1();
|
|
142767
|
+
const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
142768
|
+
module.exports = compare;
|
|
142769
|
+
}));
|
|
142770
|
+
//#endregion
|
|
142771
|
+
//#region ../../packages/core-node/node_modules/semver/functions/rcompare.js
|
|
142772
|
+
var require_rcompare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142773
|
+
const compare = require_compare();
|
|
142774
|
+
const rcompare = (a, b, loose) => compare(b, a, loose);
|
|
142775
|
+
module.exports = rcompare;
|
|
142776
|
+
}));
|
|
142777
|
+
//#endregion
|
|
142778
|
+
//#region ../../packages/core-node/node_modules/semver/functions/compare-loose.js
|
|
142779
|
+
var require_compare_loose = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142780
|
+
const compare = require_compare();
|
|
142781
|
+
const compareLoose = (a, b) => compare(a, b, true);
|
|
142782
|
+
module.exports = compareLoose;
|
|
142783
|
+
}));
|
|
142784
|
+
//#endregion
|
|
142785
|
+
//#region ../../packages/core-node/node_modules/semver/functions/compare-build.js
|
|
142786
|
+
var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142787
|
+
const SemVer = require_semver$1();
|
|
142788
|
+
const compareBuild = (a, b, loose) => {
|
|
142789
|
+
const versionA = new SemVer(a, loose);
|
|
142790
|
+
const versionB = new SemVer(b, loose);
|
|
142791
|
+
return versionA.compare(versionB) || versionA.compareBuild(versionB);
|
|
142792
|
+
};
|
|
142793
|
+
module.exports = compareBuild;
|
|
142794
|
+
}));
|
|
142795
|
+
//#endregion
|
|
142796
|
+
//#region ../../packages/core-node/node_modules/semver/functions/sort.js
|
|
142797
|
+
var require_sort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142798
|
+
const compareBuild = require_compare_build();
|
|
142799
|
+
const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
142800
|
+
module.exports = sort;
|
|
142801
|
+
}));
|
|
142802
|
+
//#endregion
|
|
142803
|
+
//#region ../../packages/core-node/node_modules/semver/functions/rsort.js
|
|
142804
|
+
var require_rsort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142805
|
+
const compareBuild = require_compare_build();
|
|
142806
|
+
const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
142807
|
+
module.exports = rsort;
|
|
142808
|
+
}));
|
|
142809
|
+
//#endregion
|
|
142810
|
+
//#region ../../packages/core-node/node_modules/semver/functions/gt.js
|
|
142811
|
+
var require_gt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142812
|
+
const compare = require_compare();
|
|
142813
|
+
const gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
142814
|
+
module.exports = gt;
|
|
142815
|
+
}));
|
|
142816
|
+
//#endregion
|
|
142817
|
+
//#region ../../packages/core-node/node_modules/semver/functions/lt.js
|
|
142818
|
+
var require_lt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142819
|
+
const compare = require_compare();
|
|
142820
|
+
const lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
142821
|
+
module.exports = lt;
|
|
142822
|
+
}));
|
|
142823
|
+
//#endregion
|
|
142824
|
+
//#region ../../packages/core-node/node_modules/semver/functions/eq.js
|
|
142825
|
+
var require_eq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142826
|
+
const compare = require_compare();
|
|
142827
|
+
const eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
142828
|
+
module.exports = eq;
|
|
142829
|
+
}));
|
|
142830
|
+
//#endregion
|
|
142831
|
+
//#region ../../packages/core-node/node_modules/semver/functions/neq.js
|
|
142832
|
+
var require_neq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142833
|
+
const compare = require_compare();
|
|
142834
|
+
const neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
142835
|
+
module.exports = neq;
|
|
142836
|
+
}));
|
|
142837
|
+
//#endregion
|
|
142838
|
+
//#region ../../packages/core-node/node_modules/semver/functions/gte.js
|
|
142839
|
+
var require_gte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142840
|
+
const compare = require_compare();
|
|
142841
|
+
const gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
142842
|
+
module.exports = gte;
|
|
142843
|
+
}));
|
|
142844
|
+
//#endregion
|
|
142845
|
+
//#region ../../packages/core-node/node_modules/semver/functions/lte.js
|
|
142846
|
+
var require_lte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142847
|
+
const compare = require_compare();
|
|
142848
|
+
const lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
142849
|
+
module.exports = lte;
|
|
142850
|
+
}));
|
|
142851
|
+
//#endregion
|
|
142852
|
+
//#region ../../packages/core-node/node_modules/semver/functions/cmp.js
|
|
142853
|
+
var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142854
|
+
const eq = require_eq();
|
|
142855
|
+
const neq = require_neq();
|
|
142856
|
+
const gt = require_gt();
|
|
142857
|
+
const gte = require_gte();
|
|
142858
|
+
const lt = require_lt();
|
|
142859
|
+
const lte = require_lte();
|
|
142860
|
+
const cmp = (a, op, b, loose) => {
|
|
142861
|
+
switch (op) {
|
|
142862
|
+
case "===":
|
|
142863
|
+
if (typeof a === "object") a = a.version;
|
|
142864
|
+
if (typeof b === "object") b = b.version;
|
|
142865
|
+
return a === b;
|
|
142866
|
+
case "!==":
|
|
142867
|
+
if (typeof a === "object") a = a.version;
|
|
142868
|
+
if (typeof b === "object") b = b.version;
|
|
142869
|
+
return a !== b;
|
|
142870
|
+
case "":
|
|
142871
|
+
case "=":
|
|
142872
|
+
case "==": return eq(a, b, loose);
|
|
142873
|
+
case "!=": return neq(a, b, loose);
|
|
142874
|
+
case ">": return gt(a, b, loose);
|
|
142875
|
+
case ">=": return gte(a, b, loose);
|
|
142876
|
+
case "<": return lt(a, b, loose);
|
|
142877
|
+
case "<=": return lte(a, b, loose);
|
|
142878
|
+
default: throw new TypeError(`Invalid operator: ${op}`);
|
|
142879
|
+
}
|
|
142880
|
+
};
|
|
142881
|
+
module.exports = cmp;
|
|
142882
|
+
}));
|
|
142883
|
+
//#endregion
|
|
142884
|
+
//#region ../../packages/core-node/node_modules/semver/functions/coerce.js
|
|
142885
|
+
var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142886
|
+
const SemVer = require_semver$1();
|
|
142887
|
+
const parse = require_parse();
|
|
142888
|
+
const { safeRe: re, t } = require_re();
|
|
142889
|
+
const coerce = (version, options) => {
|
|
142890
|
+
if (version instanceof SemVer) return version;
|
|
142891
|
+
if (typeof version === "number") version = String(version);
|
|
142892
|
+
if (typeof version !== "string") return null;
|
|
142893
|
+
options = options || {};
|
|
142894
|
+
let match = null;
|
|
142895
|
+
if (!options.rtl) match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
|
|
142896
|
+
else {
|
|
142897
|
+
const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL];
|
|
142898
|
+
let next;
|
|
142899
|
+
while ((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)) {
|
|
142900
|
+
if (!match || next.index + next[0].length !== match.index + match[0].length) match = next;
|
|
142901
|
+
coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
|
142902
|
+
}
|
|
142903
|
+
coerceRtlRegex.lastIndex = -1;
|
|
142904
|
+
}
|
|
142905
|
+
if (match === null) return null;
|
|
142906
|
+
const major = match[2];
|
|
142907
|
+
return parse(`${major}.${match[3] || "0"}.${match[4] || "0"}${options.includePrerelease && match[5] ? `-${match[5]}` : ""}${options.includePrerelease && match[6] ? `+${match[6]}` : ""}`, options);
|
|
142908
|
+
};
|
|
142909
|
+
module.exports = coerce;
|
|
142910
|
+
}));
|
|
142911
|
+
//#endregion
|
|
142912
|
+
//#region ../../packages/core-node/node_modules/semver/internal/lrucache.js
|
|
142913
|
+
var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142914
|
+
var LRUCache = class {
|
|
142915
|
+
constructor() {
|
|
142916
|
+
this.max = 1e3;
|
|
142917
|
+
this.map = /* @__PURE__ */ new Map();
|
|
142918
|
+
}
|
|
142919
|
+
get(key) {
|
|
142920
|
+
const value = this.map.get(key);
|
|
142921
|
+
if (value === void 0) return;
|
|
142922
|
+
else {
|
|
142923
|
+
this.map.delete(key);
|
|
142924
|
+
this.map.set(key, value);
|
|
142925
|
+
return value;
|
|
142926
|
+
}
|
|
142927
|
+
}
|
|
142928
|
+
delete(key) {
|
|
142929
|
+
return this.map.delete(key);
|
|
142930
|
+
}
|
|
142931
|
+
set(key, value) {
|
|
142932
|
+
if (!this.delete(key) && value !== void 0) {
|
|
142933
|
+
if (this.map.size >= this.max) {
|
|
142934
|
+
const firstKey = this.map.keys().next().value;
|
|
142935
|
+
this.delete(firstKey);
|
|
142936
|
+
}
|
|
142937
|
+
this.map.set(key, value);
|
|
142938
|
+
}
|
|
142939
|
+
return this;
|
|
142940
|
+
}
|
|
142941
|
+
};
|
|
142942
|
+
module.exports = LRUCache;
|
|
142943
|
+
}));
|
|
142944
|
+
//#endregion
|
|
142945
|
+
//#region ../../packages/core-node/node_modules/semver/classes/range.js
|
|
142946
|
+
var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142947
|
+
const SPACE_CHARACTERS = /\s+/g;
|
|
142948
|
+
module.exports = class Range {
|
|
142949
|
+
constructor(range, options) {
|
|
142950
|
+
options = parseOptions(options);
|
|
142951
|
+
if (range instanceof Range) if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) return range;
|
|
142952
|
+
else return new Range(range.raw, options);
|
|
142953
|
+
if (range instanceof Comparator) {
|
|
142954
|
+
this.raw = range.value;
|
|
142955
|
+
this.set = [[range]];
|
|
142956
|
+
this.formatted = void 0;
|
|
142957
|
+
return this;
|
|
142958
|
+
}
|
|
142959
|
+
this.options = options;
|
|
142960
|
+
this.loose = !!options.loose;
|
|
142961
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
142962
|
+
this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
|
|
142963
|
+
this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
|
|
142964
|
+
if (!this.set.length) throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
142965
|
+
if (this.set.length > 1) {
|
|
142966
|
+
const first = this.set[0];
|
|
142967
|
+
this.set = this.set.filter((c) => !isNullSet(c[0]));
|
|
142968
|
+
if (this.set.length === 0) this.set = [first];
|
|
142969
|
+
else if (this.set.length > 1) {
|
|
142970
|
+
for (const c of this.set) if (c.length === 1 && isAny(c[0])) {
|
|
142971
|
+
this.set = [c];
|
|
142972
|
+
break;
|
|
142973
|
+
}
|
|
142974
|
+
}
|
|
142975
|
+
}
|
|
142976
|
+
this.formatted = void 0;
|
|
142977
|
+
}
|
|
142978
|
+
get range() {
|
|
142979
|
+
if (this.formatted === void 0) {
|
|
142980
|
+
this.formatted = "";
|
|
142981
|
+
for (let i = 0; i < this.set.length; i++) {
|
|
142982
|
+
if (i > 0) this.formatted += "||";
|
|
142983
|
+
const comps = this.set[i];
|
|
142984
|
+
for (let k = 0; k < comps.length; k++) {
|
|
142985
|
+
if (k > 0) this.formatted += " ";
|
|
142986
|
+
this.formatted += comps[k].toString().trim();
|
|
142987
|
+
}
|
|
142988
|
+
}
|
|
142989
|
+
}
|
|
142990
|
+
return this.formatted;
|
|
142991
|
+
}
|
|
142992
|
+
format() {
|
|
142993
|
+
return this.range;
|
|
142994
|
+
}
|
|
142995
|
+
toString() {
|
|
142996
|
+
return this.range;
|
|
142997
|
+
}
|
|
142998
|
+
parseRange(range) {
|
|
142999
|
+
const memoKey = ((this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE)) + ":" + range;
|
|
143000
|
+
const cached = cache.get(memoKey);
|
|
143001
|
+
if (cached) return cached;
|
|
143002
|
+
const loose = this.options.loose;
|
|
143003
|
+
const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
|
|
143004
|
+
range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
|
|
143005
|
+
debug("hyphen replace", range);
|
|
143006
|
+
range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace);
|
|
143007
|
+
debug("comparator trim", range);
|
|
143008
|
+
range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
|
|
143009
|
+
debug("tilde trim", range);
|
|
143010
|
+
range = range.replace(re[t.CARETTRIM], caretTrimReplace);
|
|
143011
|
+
debug("caret trim", range);
|
|
143012
|
+
let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
|
|
143013
|
+
if (loose) rangeList = rangeList.filter((comp) => {
|
|
143014
|
+
debug("loose invalid filter", comp, this.options);
|
|
143015
|
+
return !!comp.match(re[t.COMPARATORLOOSE]);
|
|
143016
|
+
});
|
|
143017
|
+
debug("range list", rangeList);
|
|
143018
|
+
const rangeMap = /* @__PURE__ */ new Map();
|
|
143019
|
+
const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
|
|
143020
|
+
for (const comp of comparators) {
|
|
143021
|
+
if (isNullSet(comp)) return [comp];
|
|
143022
|
+
rangeMap.set(comp.value, comp);
|
|
143023
|
+
}
|
|
143024
|
+
if (rangeMap.size > 1 && rangeMap.has("")) rangeMap.delete("");
|
|
143025
|
+
const result = [...rangeMap.values()];
|
|
143026
|
+
cache.set(memoKey, result);
|
|
143027
|
+
return result;
|
|
143028
|
+
}
|
|
143029
|
+
intersects(range, options) {
|
|
143030
|
+
if (!(range instanceof Range)) throw new TypeError("a Range is required");
|
|
143031
|
+
return this.set.some((thisComparators) => {
|
|
143032
|
+
return isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => {
|
|
143033
|
+
return isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => {
|
|
143034
|
+
return rangeComparators.every((rangeComparator) => {
|
|
143035
|
+
return thisComparator.intersects(rangeComparator, options);
|
|
143036
|
+
});
|
|
143037
|
+
});
|
|
143038
|
+
});
|
|
143039
|
+
});
|
|
143040
|
+
}
|
|
143041
|
+
test(version) {
|
|
143042
|
+
if (!version) return false;
|
|
143043
|
+
if (typeof version === "string") try {
|
|
143044
|
+
version = new SemVer(version, this.options);
|
|
143045
|
+
} catch (er) {
|
|
143046
|
+
return false;
|
|
143047
|
+
}
|
|
143048
|
+
for (let i = 0; i < this.set.length; i++) if (testSet(this.set[i], version, this.options)) return true;
|
|
143049
|
+
return false;
|
|
143050
|
+
}
|
|
143051
|
+
};
|
|
143052
|
+
const cache = new (require_lrucache())();
|
|
143053
|
+
const parseOptions = require_parse_options();
|
|
143054
|
+
const Comparator = require_comparator();
|
|
143055
|
+
const debug = require_debug();
|
|
143056
|
+
const SemVer = require_semver$1();
|
|
143057
|
+
const { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re();
|
|
143058
|
+
const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants();
|
|
143059
|
+
const isNullSet = (c) => c.value === "<0.0.0-0";
|
|
143060
|
+
const isAny = (c) => c.value === "";
|
|
143061
|
+
const isSatisfiable = (comparators, options) => {
|
|
143062
|
+
let result = true;
|
|
143063
|
+
const remainingComparators = comparators.slice();
|
|
143064
|
+
let testComparator = remainingComparators.pop();
|
|
143065
|
+
while (result && remainingComparators.length) {
|
|
143066
|
+
result = remainingComparators.every((otherComparator) => {
|
|
143067
|
+
return testComparator.intersects(otherComparator, options);
|
|
143068
|
+
});
|
|
143069
|
+
testComparator = remainingComparators.pop();
|
|
143070
|
+
}
|
|
143071
|
+
return result;
|
|
143072
|
+
};
|
|
143073
|
+
const parseComparator = (comp, options) => {
|
|
143074
|
+
comp = comp.replace(re[t.BUILD], "");
|
|
143075
|
+
debug("comp", comp, options);
|
|
143076
|
+
comp = replaceCarets(comp, options);
|
|
143077
|
+
debug("caret", comp);
|
|
143078
|
+
comp = replaceTildes(comp, options);
|
|
143079
|
+
debug("tildes", comp);
|
|
143080
|
+
comp = replaceXRanges(comp, options);
|
|
143081
|
+
debug("xrange", comp);
|
|
143082
|
+
comp = replaceStars(comp, options);
|
|
143083
|
+
debug("stars", comp);
|
|
143084
|
+
return comp;
|
|
143085
|
+
};
|
|
143086
|
+
const isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
|
|
143087
|
+
const replaceTildes = (comp, options) => {
|
|
143088
|
+
return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
|
|
143089
|
+
};
|
|
143090
|
+
const replaceTilde = (comp, options) => {
|
|
143091
|
+
const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
|
|
143092
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
143093
|
+
debug("tilde", comp, _, M, m, p, pr);
|
|
143094
|
+
let ret;
|
|
143095
|
+
if (isX(M)) ret = "";
|
|
143096
|
+
else if (isX(m)) ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
|
|
143097
|
+
else if (isX(p)) ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
|
|
143098
|
+
else if (pr) {
|
|
143099
|
+
debug("replaceTilde pr", pr);
|
|
143100
|
+
ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
143101
|
+
} else ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
|
|
143102
|
+
debug("tilde return", ret);
|
|
143103
|
+
return ret;
|
|
143104
|
+
});
|
|
143105
|
+
};
|
|
143106
|
+
const replaceCarets = (comp, options) => {
|
|
143107
|
+
return comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" ");
|
|
143108
|
+
};
|
|
143109
|
+
const replaceCaret = (comp, options) => {
|
|
143110
|
+
debug("caret", comp, options);
|
|
143111
|
+
const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET];
|
|
143112
|
+
const z = options.includePrerelease ? "-0" : "";
|
|
143113
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
143114
|
+
debug("caret", comp, _, M, m, p, pr);
|
|
143115
|
+
let ret;
|
|
143116
|
+
if (isX(M)) ret = "";
|
|
143117
|
+
else if (isX(m)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
|
|
143118
|
+
else if (isX(p)) if (M === "0") ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
|
|
143119
|
+
else ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
|
|
143120
|
+
else if (pr) {
|
|
143121
|
+
debug("replaceCaret pr", pr);
|
|
143122
|
+
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;
|
|
143123
|
+
else ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
143124
|
+
else ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
|
|
143125
|
+
} else {
|
|
143126
|
+
debug("no pr");
|
|
143127
|
+
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0`;
|
|
143128
|
+
else ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0`;
|
|
143129
|
+
else ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
|
|
143130
|
+
}
|
|
143131
|
+
debug("caret return", ret);
|
|
143132
|
+
return ret;
|
|
143133
|
+
});
|
|
143134
|
+
};
|
|
143135
|
+
const replaceXRanges = (comp, options) => {
|
|
143136
|
+
debug("replaceXRanges", comp, options);
|
|
143137
|
+
return comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ");
|
|
143138
|
+
};
|
|
143139
|
+
const replaceXRange = (comp, options) => {
|
|
143140
|
+
comp = comp.trim();
|
|
143141
|
+
const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
|
|
143142
|
+
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
|
|
143143
|
+
debug("xRange", comp, ret, gtlt, M, m, p, pr);
|
|
143144
|
+
const xM = isX(M);
|
|
143145
|
+
const xm = xM || isX(m);
|
|
143146
|
+
const xp = xm || isX(p);
|
|
143147
|
+
const anyX = xp;
|
|
143148
|
+
if (gtlt === "=" && anyX) gtlt = "";
|
|
143149
|
+
pr = options.includePrerelease ? "-0" : "";
|
|
143150
|
+
if (xM) if (gtlt === ">" || gtlt === "<") ret = "<0.0.0-0";
|
|
143151
|
+
else ret = "*";
|
|
143152
|
+
else if (gtlt && anyX) {
|
|
143153
|
+
if (xm) m = 0;
|
|
143154
|
+
p = 0;
|
|
143155
|
+
if (gtlt === ">") {
|
|
143156
|
+
gtlt = ">=";
|
|
143157
|
+
if (xm) {
|
|
143158
|
+
M = +M + 1;
|
|
143159
|
+
m = 0;
|
|
143160
|
+
p = 0;
|
|
143161
|
+
} else {
|
|
143162
|
+
m = +m + 1;
|
|
143163
|
+
p = 0;
|
|
143164
|
+
}
|
|
143165
|
+
} else if (gtlt === "<=") {
|
|
143166
|
+
gtlt = "<";
|
|
143167
|
+
if (xm) M = +M + 1;
|
|
143168
|
+
else m = +m + 1;
|
|
143169
|
+
}
|
|
143170
|
+
if (gtlt === "<") pr = "-0";
|
|
143171
|
+
ret = `${gtlt + M}.${m}.${p}${pr}`;
|
|
143172
|
+
} else if (xm) ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
|
|
143173
|
+
else if (xp) ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;
|
|
143174
|
+
debug("xRange return", ret);
|
|
143175
|
+
return ret;
|
|
143176
|
+
});
|
|
143177
|
+
};
|
|
143178
|
+
const replaceStars = (comp, options) => {
|
|
143179
|
+
debug("replaceStars", comp, options);
|
|
143180
|
+
return comp.trim().replace(re[t.STAR], "");
|
|
143181
|
+
};
|
|
143182
|
+
const replaceGTE0 = (comp, options) => {
|
|
143183
|
+
debug("replaceGTE0", comp, options);
|
|
143184
|
+
return comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
|
|
143185
|
+
};
|
|
143186
|
+
const hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
|
|
143187
|
+
if (isX(fM)) from = "";
|
|
143188
|
+
else if (isX(fm)) from = `>=${fM}.0.0${incPr ? "-0" : ""}`;
|
|
143189
|
+
else if (isX(fp)) from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}`;
|
|
143190
|
+
else if (fpr) from = `>=${from}`;
|
|
143191
|
+
else from = `>=${from}${incPr ? "-0" : ""}`;
|
|
143192
|
+
if (isX(tM)) to = "";
|
|
143193
|
+
else if (isX(tm)) to = `<${+tM + 1}.0.0-0`;
|
|
143194
|
+
else if (isX(tp)) to = `<${tM}.${+tm + 1}.0-0`;
|
|
143195
|
+
else if (tpr) to = `<=${tM}.${tm}.${tp}-${tpr}`;
|
|
143196
|
+
else if (incPr) to = `<${tM}.${tm}.${+tp + 1}-0`;
|
|
143197
|
+
else to = `<=${to}`;
|
|
143198
|
+
return `${from} ${to}`.trim();
|
|
143199
|
+
};
|
|
143200
|
+
const testSet = (set, version, options) => {
|
|
143201
|
+
for (let i = 0; i < set.length; i++) if (!set[i].test(version)) return false;
|
|
143202
|
+
if (version.prerelease.length && !options.includePrerelease) {
|
|
143203
|
+
for (let i = 0; i < set.length; i++) {
|
|
143204
|
+
debug(set[i].semver);
|
|
143205
|
+
if (set[i].semver === Comparator.ANY) continue;
|
|
143206
|
+
if (set[i].semver.prerelease.length > 0) {
|
|
143207
|
+
const allowed = set[i].semver;
|
|
143208
|
+
if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) return true;
|
|
143209
|
+
}
|
|
143210
|
+
}
|
|
143211
|
+
return false;
|
|
143212
|
+
}
|
|
143213
|
+
return true;
|
|
143214
|
+
};
|
|
143215
|
+
}));
|
|
143216
|
+
//#endregion
|
|
143217
|
+
//#region ../../packages/core-node/node_modules/semver/classes/comparator.js
|
|
143218
|
+
var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143219
|
+
const ANY = Symbol("SemVer ANY");
|
|
143220
|
+
module.exports = class Comparator {
|
|
143221
|
+
static get ANY() {
|
|
143222
|
+
return ANY;
|
|
143223
|
+
}
|
|
143224
|
+
constructor(comp, options) {
|
|
143225
|
+
options = parseOptions(options);
|
|
143226
|
+
if (comp instanceof Comparator) if (comp.loose === !!options.loose) return comp;
|
|
143227
|
+
else comp = comp.value;
|
|
143228
|
+
comp = comp.trim().split(/\s+/).join(" ");
|
|
143229
|
+
debug("comparator", comp, options);
|
|
143230
|
+
this.options = options;
|
|
143231
|
+
this.loose = !!options.loose;
|
|
143232
|
+
this.parse(comp);
|
|
143233
|
+
if (this.semver === ANY) this.value = "";
|
|
143234
|
+
else this.value = this.operator + this.semver.version;
|
|
143235
|
+
debug("comp", this);
|
|
143236
|
+
}
|
|
143237
|
+
parse(comp) {
|
|
143238
|
+
const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR];
|
|
143239
|
+
const m = comp.match(r);
|
|
143240
|
+
if (!m) throw new TypeError(`Invalid comparator: ${comp}`);
|
|
143241
|
+
this.operator = m[1] !== void 0 ? m[1] : "";
|
|
143242
|
+
if (this.operator === "=") this.operator = "";
|
|
143243
|
+
if (!m[2]) this.semver = ANY;
|
|
143244
|
+
else this.semver = new SemVer(m[2], this.options.loose);
|
|
143245
|
+
}
|
|
143246
|
+
toString() {
|
|
143247
|
+
return this.value;
|
|
143248
|
+
}
|
|
143249
|
+
test(version) {
|
|
143250
|
+
debug("Comparator.test", version, this.options.loose);
|
|
143251
|
+
if (this.semver === ANY || version === ANY) return true;
|
|
143252
|
+
if (typeof version === "string") try {
|
|
143253
|
+
version = new SemVer(version, this.options);
|
|
143254
|
+
} catch (er) {
|
|
143255
|
+
return false;
|
|
143256
|
+
}
|
|
143257
|
+
return cmp(version, this.operator, this.semver, this.options);
|
|
143258
|
+
}
|
|
143259
|
+
intersects(comp, options) {
|
|
143260
|
+
if (!(comp instanceof Comparator)) throw new TypeError("a Comparator is required");
|
|
143261
|
+
if (this.operator === "") {
|
|
143262
|
+
if (this.value === "") return true;
|
|
143263
|
+
return new Range(comp.value, options).test(this.value);
|
|
143264
|
+
} else if (comp.operator === "") {
|
|
143265
|
+
if (comp.value === "") return true;
|
|
143266
|
+
return new Range(this.value, options).test(comp.semver);
|
|
143267
|
+
}
|
|
143268
|
+
options = parseOptions(options);
|
|
143269
|
+
if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) return false;
|
|
143270
|
+
if (!options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0"))) return false;
|
|
143271
|
+
if (this.operator.startsWith(">") && comp.operator.startsWith(">")) return true;
|
|
143272
|
+
if (this.operator.startsWith("<") && comp.operator.startsWith("<")) return true;
|
|
143273
|
+
if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) return true;
|
|
143274
|
+
if (cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) return true;
|
|
143275
|
+
if (cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) return true;
|
|
143276
|
+
return false;
|
|
143277
|
+
}
|
|
143278
|
+
};
|
|
143279
|
+
const parseOptions = require_parse_options();
|
|
143280
|
+
const { safeRe: re, t } = require_re();
|
|
143281
|
+
const cmp = require_cmp();
|
|
143282
|
+
const debug = require_debug();
|
|
143283
|
+
const SemVer = require_semver$1();
|
|
143284
|
+
const Range = require_range();
|
|
143285
|
+
}));
|
|
143286
|
+
//#endregion
|
|
143287
|
+
//#region ../../packages/core-node/node_modules/semver/functions/satisfies.js
|
|
143288
|
+
var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143289
|
+
const Range = require_range();
|
|
143290
|
+
const satisfies = (version, range, options) => {
|
|
143291
|
+
try {
|
|
143292
|
+
range = new Range(range, options);
|
|
143293
|
+
} catch (er) {
|
|
143294
|
+
return false;
|
|
143295
|
+
}
|
|
143296
|
+
return range.test(version);
|
|
143297
|
+
};
|
|
143298
|
+
module.exports = satisfies;
|
|
143299
|
+
}));
|
|
143300
|
+
//#endregion
|
|
143301
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/to-comparators.js
|
|
143302
|
+
var require_to_comparators = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143303
|
+
const Range = require_range();
|
|
143304
|
+
const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
143305
|
+
module.exports = toComparators;
|
|
143306
|
+
}));
|
|
143307
|
+
//#endregion
|
|
143308
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/max-satisfying.js
|
|
143309
|
+
var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143310
|
+
const SemVer = require_semver$1();
|
|
143311
|
+
const Range = require_range();
|
|
143312
|
+
const maxSatisfying = (versions, range, options) => {
|
|
143313
|
+
let max = null;
|
|
143314
|
+
let maxSV = null;
|
|
143315
|
+
let rangeObj = null;
|
|
143316
|
+
try {
|
|
143317
|
+
rangeObj = new Range(range, options);
|
|
143318
|
+
} catch (er) {
|
|
143319
|
+
return null;
|
|
143320
|
+
}
|
|
143321
|
+
versions.forEach((v) => {
|
|
143322
|
+
if (rangeObj.test(v)) {
|
|
143323
|
+
if (!max || maxSV.compare(v) === -1) {
|
|
143324
|
+
max = v;
|
|
143325
|
+
maxSV = new SemVer(max, options);
|
|
143326
|
+
}
|
|
143327
|
+
}
|
|
143328
|
+
});
|
|
143329
|
+
return max;
|
|
143330
|
+
};
|
|
143331
|
+
module.exports = maxSatisfying;
|
|
143332
|
+
}));
|
|
143333
|
+
//#endregion
|
|
143334
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/min-satisfying.js
|
|
143335
|
+
var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143336
|
+
const SemVer = require_semver$1();
|
|
143337
|
+
const Range = require_range();
|
|
143338
|
+
const minSatisfying = (versions, range, options) => {
|
|
143339
|
+
let min = null;
|
|
143340
|
+
let minSV = null;
|
|
143341
|
+
let rangeObj = null;
|
|
143342
|
+
try {
|
|
143343
|
+
rangeObj = new Range(range, options);
|
|
143344
|
+
} catch (er) {
|
|
143345
|
+
return null;
|
|
143346
|
+
}
|
|
143347
|
+
versions.forEach((v) => {
|
|
143348
|
+
if (rangeObj.test(v)) {
|
|
143349
|
+
if (!min || minSV.compare(v) === 1) {
|
|
143350
|
+
min = v;
|
|
143351
|
+
minSV = new SemVer(min, options);
|
|
143352
|
+
}
|
|
143353
|
+
}
|
|
143354
|
+
});
|
|
143355
|
+
return min;
|
|
143356
|
+
};
|
|
143357
|
+
module.exports = minSatisfying;
|
|
143358
|
+
}));
|
|
143359
|
+
//#endregion
|
|
143360
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/min-version.js
|
|
143361
|
+
var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143362
|
+
const SemVer = require_semver$1();
|
|
143363
|
+
const Range = require_range();
|
|
143364
|
+
const gt = require_gt();
|
|
143365
|
+
const minVersion = (range, loose) => {
|
|
143366
|
+
range = new Range(range, loose);
|
|
143367
|
+
let minver = new SemVer("0.0.0");
|
|
143368
|
+
if (range.test(minver)) return minver;
|
|
143369
|
+
minver = new SemVer("0.0.0-0");
|
|
143370
|
+
if (range.test(minver)) return minver;
|
|
143371
|
+
minver = null;
|
|
143372
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
143373
|
+
const comparators = range.set[i];
|
|
143374
|
+
let setMin = null;
|
|
143375
|
+
comparators.forEach((comparator) => {
|
|
143376
|
+
const compver = new SemVer(comparator.semver.version);
|
|
143377
|
+
switch (comparator.operator) {
|
|
143378
|
+
case ">":
|
|
143379
|
+
if (compver.prerelease.length === 0) compver.patch++;
|
|
143380
|
+
else compver.prerelease.push(0);
|
|
143381
|
+
compver.raw = compver.format();
|
|
143382
|
+
case "":
|
|
143383
|
+
case ">=":
|
|
143384
|
+
if (!setMin || gt(compver, setMin)) setMin = compver;
|
|
143385
|
+
break;
|
|
143386
|
+
case "<":
|
|
143387
|
+
case "<=": break;
|
|
143388
|
+
default: throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
143389
|
+
}
|
|
143390
|
+
});
|
|
143391
|
+
if (setMin && (!minver || gt(minver, setMin))) minver = setMin;
|
|
143392
|
+
}
|
|
143393
|
+
if (minver && range.test(minver)) return minver;
|
|
143394
|
+
return null;
|
|
143395
|
+
};
|
|
143396
|
+
module.exports = minVersion;
|
|
143397
|
+
}));
|
|
143398
|
+
//#endregion
|
|
143399
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/valid.js
|
|
143400
|
+
var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143401
|
+
const Range = require_range();
|
|
143402
|
+
const validRange = (range, options) => {
|
|
143403
|
+
try {
|
|
143404
|
+
return new Range(range, options).range || "*";
|
|
143405
|
+
} catch (er) {
|
|
143406
|
+
return null;
|
|
143407
|
+
}
|
|
143408
|
+
};
|
|
143409
|
+
module.exports = validRange;
|
|
143410
|
+
}));
|
|
143411
|
+
//#endregion
|
|
143412
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/outside.js
|
|
143413
|
+
var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143414
|
+
const SemVer = require_semver$1();
|
|
143415
|
+
const Comparator = require_comparator();
|
|
143416
|
+
const { ANY } = Comparator;
|
|
143417
|
+
const Range = require_range();
|
|
143418
|
+
const satisfies = require_satisfies();
|
|
143419
|
+
const gt = require_gt();
|
|
143420
|
+
const lt = require_lt();
|
|
143421
|
+
const lte = require_lte();
|
|
143422
|
+
const gte = require_gte();
|
|
143423
|
+
const outside = (version, range, hilo, options) => {
|
|
143424
|
+
version = new SemVer(version, options);
|
|
143425
|
+
range = new Range(range, options);
|
|
143426
|
+
let gtfn, ltefn, ltfn, comp, ecomp;
|
|
143427
|
+
switch (hilo) {
|
|
143428
|
+
case ">":
|
|
143429
|
+
gtfn = gt;
|
|
143430
|
+
ltefn = lte;
|
|
143431
|
+
ltfn = lt;
|
|
143432
|
+
comp = ">";
|
|
143433
|
+
ecomp = ">=";
|
|
143434
|
+
break;
|
|
143435
|
+
case "<":
|
|
143436
|
+
gtfn = lt;
|
|
143437
|
+
ltefn = gte;
|
|
143438
|
+
ltfn = gt;
|
|
143439
|
+
comp = "<";
|
|
143440
|
+
ecomp = "<=";
|
|
143441
|
+
break;
|
|
143442
|
+
default: throw new TypeError("Must provide a hilo val of \"<\" or \">\"");
|
|
143443
|
+
}
|
|
143444
|
+
if (satisfies(version, range, options)) return false;
|
|
143445
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
143446
|
+
const comparators = range.set[i];
|
|
143447
|
+
let high = null;
|
|
143448
|
+
let low = null;
|
|
143449
|
+
comparators.forEach((comparator) => {
|
|
143450
|
+
if (comparator.semver === ANY) comparator = new Comparator(">=0.0.0");
|
|
143451
|
+
high = high || comparator;
|
|
143452
|
+
low = low || comparator;
|
|
143453
|
+
if (gtfn(comparator.semver, high.semver, options)) high = comparator;
|
|
143454
|
+
else if (ltfn(comparator.semver, low.semver, options)) low = comparator;
|
|
143455
|
+
});
|
|
143456
|
+
if (high.operator === comp || high.operator === ecomp) return false;
|
|
143457
|
+
if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) return false;
|
|
143458
|
+
else if (low.operator === ecomp && ltfn(version, low.semver)) return false;
|
|
143459
|
+
}
|
|
143460
|
+
return true;
|
|
143461
|
+
};
|
|
143462
|
+
module.exports = outside;
|
|
143463
|
+
}));
|
|
143464
|
+
//#endregion
|
|
143465
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/gtr.js
|
|
143466
|
+
var require_gtr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143467
|
+
const outside = require_outside();
|
|
143468
|
+
const gtr = (version, range, options) => outside(version, range, ">", options);
|
|
143469
|
+
module.exports = gtr;
|
|
143470
|
+
}));
|
|
143471
|
+
//#endregion
|
|
143472
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/ltr.js
|
|
143473
|
+
var require_ltr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143474
|
+
const outside = require_outside();
|
|
143475
|
+
const ltr = (version, range, options) => outside(version, range, "<", options);
|
|
143476
|
+
module.exports = ltr;
|
|
143477
|
+
}));
|
|
143478
|
+
//#endregion
|
|
143479
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/intersects.js
|
|
143480
|
+
var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143481
|
+
const Range = require_range();
|
|
143482
|
+
const intersects = (r1, r2, options) => {
|
|
143483
|
+
r1 = new Range(r1, options);
|
|
143484
|
+
r2 = new Range(r2, options);
|
|
143485
|
+
return r1.intersects(r2, options);
|
|
143486
|
+
};
|
|
143487
|
+
module.exports = intersects;
|
|
143488
|
+
}));
|
|
143489
|
+
//#endregion
|
|
143490
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/simplify.js
|
|
143491
|
+
var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143492
|
+
const satisfies = require_satisfies();
|
|
143493
|
+
const compare = require_compare();
|
|
143494
|
+
module.exports = (versions, range, options) => {
|
|
143495
|
+
const set = [];
|
|
143496
|
+
let first = null;
|
|
143497
|
+
let prev = null;
|
|
143498
|
+
const v = versions.sort((a, b) => compare(a, b, options));
|
|
143499
|
+
for (const version of v) if (satisfies(version, range, options)) {
|
|
143500
|
+
prev = version;
|
|
143501
|
+
if (!first) first = version;
|
|
143502
|
+
} else {
|
|
143503
|
+
if (prev) set.push([first, prev]);
|
|
143504
|
+
prev = null;
|
|
143505
|
+
first = null;
|
|
143506
|
+
}
|
|
143507
|
+
if (first) set.push([first, null]);
|
|
143508
|
+
const ranges = [];
|
|
143509
|
+
for (const [min, max] of set) if (min === max) ranges.push(min);
|
|
143510
|
+
else if (!max && min === v[0]) ranges.push("*");
|
|
143511
|
+
else if (!max) ranges.push(`>=${min}`);
|
|
143512
|
+
else if (min === v[0]) ranges.push(`<=${max}`);
|
|
143513
|
+
else ranges.push(`${min} - ${max}`);
|
|
143514
|
+
const simplified = ranges.join(" || ");
|
|
143515
|
+
const original = typeof range.raw === "string" ? range.raw : String(range);
|
|
143516
|
+
return simplified.length < original.length ? simplified : range;
|
|
143517
|
+
};
|
|
143518
|
+
}));
|
|
143519
|
+
//#endregion
|
|
143520
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/subset.js
|
|
143521
|
+
var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143522
|
+
const Range = require_range();
|
|
143523
|
+
const Comparator = require_comparator();
|
|
143524
|
+
const { ANY } = Comparator;
|
|
143525
|
+
const satisfies = require_satisfies();
|
|
143526
|
+
const compare = require_compare();
|
|
143527
|
+
const subset = (sub, dom, options = {}) => {
|
|
143528
|
+
if (sub === dom) return true;
|
|
143529
|
+
sub = new Range(sub, options);
|
|
143530
|
+
dom = new Range(dom, options);
|
|
143531
|
+
let sawNonNull = false;
|
|
143532
|
+
OUTER: for (const simpleSub of sub.set) {
|
|
143533
|
+
for (const simpleDom of dom.set) {
|
|
143534
|
+
const isSub = simpleSubset(simpleSub, simpleDom, options);
|
|
143535
|
+
sawNonNull = sawNonNull || isSub !== null;
|
|
143536
|
+
if (isSub) continue OUTER;
|
|
143537
|
+
}
|
|
143538
|
+
if (sawNonNull) return false;
|
|
143539
|
+
}
|
|
143540
|
+
return true;
|
|
143541
|
+
};
|
|
143542
|
+
const minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")];
|
|
143543
|
+
const minimumVersion = [new Comparator(">=0.0.0")];
|
|
143544
|
+
const simpleSubset = (sub, dom, options) => {
|
|
143545
|
+
if (sub === dom) return true;
|
|
143546
|
+
if (sub.length === 1 && sub[0].semver === ANY) if (dom.length === 1 && dom[0].semver === ANY) return true;
|
|
143547
|
+
else if (options.includePrerelease) sub = minimumVersionWithPreRelease;
|
|
143548
|
+
else sub = minimumVersion;
|
|
143549
|
+
if (dom.length === 1 && dom[0].semver === ANY) if (options.includePrerelease) return true;
|
|
143550
|
+
else dom = minimumVersion;
|
|
143551
|
+
const eqSet = /* @__PURE__ */ new Set();
|
|
143552
|
+
let gt, lt;
|
|
143553
|
+
for (const c of sub) if (c.operator === ">" || c.operator === ">=") gt = higherGT(gt, c, options);
|
|
143554
|
+
else if (c.operator === "<" || c.operator === "<=") lt = lowerLT(lt, c, options);
|
|
143555
|
+
else eqSet.add(c.semver);
|
|
143556
|
+
if (eqSet.size > 1) return null;
|
|
143557
|
+
let gtltComp;
|
|
143558
|
+
if (gt && lt) {
|
|
143559
|
+
gtltComp = compare(gt.semver, lt.semver, options);
|
|
143560
|
+
if (gtltComp > 0) return null;
|
|
143561
|
+
else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) return null;
|
|
143562
|
+
}
|
|
143563
|
+
for (const eq of eqSet) {
|
|
143564
|
+
if (gt && !satisfies(eq, String(gt), options)) return null;
|
|
143565
|
+
if (lt && !satisfies(eq, String(lt), options)) return null;
|
|
143566
|
+
for (const c of dom) if (!satisfies(eq, String(c), options)) return false;
|
|
143567
|
+
return true;
|
|
143568
|
+
}
|
|
143569
|
+
let higher, lower;
|
|
143570
|
+
let hasDomLT, hasDomGT;
|
|
143571
|
+
let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;
|
|
143572
|
+
let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;
|
|
143573
|
+
if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0) needDomLTPre = false;
|
|
143574
|
+
for (const c of dom) {
|
|
143575
|
+
hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=";
|
|
143576
|
+
hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=";
|
|
143577
|
+
if (gt) {
|
|
143578
|
+
if (needDomGTPre) {
|
|
143579
|
+
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;
|
|
143580
|
+
}
|
|
143581
|
+
if (c.operator === ">" || c.operator === ">=") {
|
|
143582
|
+
higher = higherGT(gt, c, options);
|
|
143583
|
+
if (higher === c && higher !== gt) return false;
|
|
143584
|
+
} else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options)) return false;
|
|
143585
|
+
}
|
|
143586
|
+
if (lt) {
|
|
143587
|
+
if (needDomLTPre) {
|
|
143588
|
+
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;
|
|
143589
|
+
}
|
|
143590
|
+
if (c.operator === "<" || c.operator === "<=") {
|
|
143591
|
+
lower = lowerLT(lt, c, options);
|
|
143592
|
+
if (lower === c && lower !== lt) return false;
|
|
143593
|
+
} else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options)) return false;
|
|
143594
|
+
}
|
|
143595
|
+
if (!c.operator && (lt || gt) && gtltComp !== 0) return false;
|
|
143596
|
+
}
|
|
143597
|
+
if (gt && hasDomLT && !lt && gtltComp !== 0) return false;
|
|
143598
|
+
if (lt && hasDomGT && !gt && gtltComp !== 0) return false;
|
|
143599
|
+
if (needDomGTPre || needDomLTPre) return false;
|
|
143600
|
+
return true;
|
|
143601
|
+
};
|
|
143602
|
+
const higherGT = (a, b, options) => {
|
|
143603
|
+
if (!a) return b;
|
|
143604
|
+
const comp = compare(a.semver, b.semver, options);
|
|
143605
|
+
return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
|
|
143606
|
+
};
|
|
143607
|
+
const lowerLT = (a, b, options) => {
|
|
143608
|
+
if (!a) return b;
|
|
143609
|
+
const comp = compare(a.semver, b.semver, options);
|
|
143610
|
+
return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
|
|
143611
|
+
};
|
|
143612
|
+
module.exports = subset;
|
|
143613
|
+
}));
|
|
143614
|
+
//#endregion
|
|
143615
|
+
//#region ../../packages/core-node/node_modules/semver/index.js
|
|
143616
|
+
var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143617
|
+
const internalRe = require_re();
|
|
143618
|
+
const constants = require_constants();
|
|
143619
|
+
const SemVer = require_semver$1();
|
|
143620
|
+
const identifiers = require_identifiers();
|
|
143621
|
+
module.exports = {
|
|
143622
|
+
parse: require_parse(),
|
|
143623
|
+
valid: require_valid$1(),
|
|
143624
|
+
clean: require_clean(),
|
|
143625
|
+
inc: require_inc(),
|
|
143626
|
+
diff: require_diff(),
|
|
143627
|
+
major: require_major(),
|
|
143628
|
+
minor: require_minor(),
|
|
143629
|
+
patch: require_patch(),
|
|
143630
|
+
prerelease: require_prerelease(),
|
|
143631
|
+
compare: require_compare(),
|
|
143632
|
+
rcompare: require_rcompare(),
|
|
143633
|
+
compareLoose: require_compare_loose(),
|
|
143634
|
+
compareBuild: require_compare_build(),
|
|
143635
|
+
sort: require_sort(),
|
|
143636
|
+
rsort: require_rsort(),
|
|
143637
|
+
gt: require_gt(),
|
|
143638
|
+
lt: require_lt(),
|
|
143639
|
+
eq: require_eq(),
|
|
143640
|
+
neq: require_neq(),
|
|
143641
|
+
gte: require_gte(),
|
|
143642
|
+
lte: require_lte(),
|
|
143643
|
+
cmp: require_cmp(),
|
|
143644
|
+
coerce: require_coerce(),
|
|
143645
|
+
Comparator: require_comparator(),
|
|
143646
|
+
Range: require_range(),
|
|
143647
|
+
satisfies: require_satisfies(),
|
|
143648
|
+
toComparators: require_to_comparators(),
|
|
143649
|
+
maxSatisfying: require_max_satisfying(),
|
|
143650
|
+
minSatisfying: require_min_satisfying(),
|
|
143651
|
+
minVersion: require_min_version(),
|
|
143652
|
+
validRange: require_valid(),
|
|
143653
|
+
outside: require_outside(),
|
|
143654
|
+
gtr: require_gtr(),
|
|
143655
|
+
ltr: require_ltr(),
|
|
143656
|
+
intersects: require_intersects(),
|
|
143657
|
+
simplifyRange: require_simplify(),
|
|
143658
|
+
subset: require_subset(),
|
|
143659
|
+
SemVer,
|
|
143660
|
+
re: internalRe.re,
|
|
143661
|
+
src: internalRe.src,
|
|
143662
|
+
tokens: internalRe.t,
|
|
143663
|
+
SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
|
|
143664
|
+
RELEASE_TYPES: constants.RELEASE_TYPES,
|
|
143665
|
+
compareIdentifiers: identifiers.compareIdentifiers,
|
|
143666
|
+
rcompareIdentifiers: identifiers.rcompareIdentifiers
|
|
143667
|
+
};
|
|
143668
|
+
}));
|
|
143669
|
+
//#endregion
|
|
140793
143670
|
//#region ../../node_modules/serve-handler/src/glob-slash.js
|
|
140794
143671
|
var require_glob_slash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
140795
143672
|
const path$4 = __require("path");
|
|
@@ -148179,6 +151056,7 @@ var require_error = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
148179
151056
|
stream.pipe(response);
|
|
148180
151057
|
};
|
|
148181
151058
|
})))();
|
|
151059
|
+
var import_semver = /* @__PURE__ */ __toESM(require_semver(), 1);
|
|
148182
151060
|
var import_lib = /* @__PURE__ */ __toESM(require_lib(), 1);
|
|
148183
151061
|
//#endregion
|
|
148184
151062
|
//#region ../../packages/core-node/src/server.ts
|
|
@@ -148255,7 +151133,9 @@ async function fetchPackage(packageName, versionOrRange, options) {
|
|
|
148255
151133
|
const ctx = options.context;
|
|
148256
151134
|
const baseDir = ctx.getPackagesPath(packageName);
|
|
148257
151135
|
let resolvedVersion;
|
|
148258
|
-
|
|
151136
|
+
let resolvedVersionOrRange = versionOrRange;
|
|
151137
|
+
if (resolvedVersionOrRange === "local") resolvedVersionOrRange = "latest";
|
|
151138
|
+
console.log(`[Fetcher] Resolving ${packageName}@${resolvedVersionOrRange || "latest"}...`);
|
|
148259
151139
|
const resolveStart = Date.now();
|
|
148260
151140
|
try {
|
|
148261
151141
|
const cachePath = join(ctx.userDataPath, "cache", "pacote");
|
|
@@ -148266,7 +151146,7 @@ async function fetchPackage(packageName, versionOrRange, options) {
|
|
|
148266
151146
|
}
|
|
148267
151147
|
const packument = await packumentPromise;
|
|
148268
151148
|
const versions = Object.keys(packument.versions);
|
|
148269
|
-
const range =
|
|
151149
|
+
const range = resolvedVersionOrRange || "latest";
|
|
148270
151150
|
const foundVersion = packument["dist-tags"]?.[range] || import_semver.default.maxSatisfying(versions, range);
|
|
148271
151151
|
if (!foundVersion) throw new Error(`Package ${packageName}@${range} not found on npm (available tags: ${Object.keys(packument["dist-tags"] || {}).join(", ")})`);
|
|
148272
151152
|
resolvedVersion = foundVersion;
|
|
@@ -148274,7 +151154,7 @@ async function fetchPackage(packageName, versionOrRange, options) {
|
|
|
148274
151154
|
} catch (error) {
|
|
148275
151155
|
console.warn(`[Fetcher] ${packageName}: remote resolution failed (${Date.now() - resolveStart}ms), trying local fallback...`);
|
|
148276
151156
|
const fallbackStart = Date.now();
|
|
148277
|
-
const fallbackVersion = await tryLocalFallback(
|
|
151157
|
+
const fallbackVersion = await tryLocalFallback(resolvedVersionOrRange, error, baseDir, packageName);
|
|
148278
151158
|
if (fallbackVersion) {
|
|
148279
151159
|
resolvedVersion = fallbackVersion;
|
|
148280
151160
|
console.log(`[Fetcher] ${packageName}: Resolved to local fallback ${resolvedVersion} (${Date.now() - fallbackStart}ms)`);
|
|
@@ -148540,22 +151420,27 @@ async function crawlMonorepoPackages() {
|
|
|
148540
151420
|
}
|
|
148541
151421
|
return cache;
|
|
148542
151422
|
}
|
|
148543
|
-
async function
|
|
151423
|
+
async function tryLocalFallback(versionOrRange, _error, baseDir, logPrefix) {
|
|
148544
151424
|
if (!existsSync(baseDir)) return null;
|
|
148545
151425
|
try {
|
|
148546
|
-
|
|
148547
|
-
|
|
148548
|
-
|
|
148549
|
-
|
|
148550
|
-
|
|
148551
|
-
|
|
148552
|
-
|
|
148553
|
-
|
|
148554
|
-
|
|
148555
|
-
|
|
148556
|
-
|
|
148557
|
-
|
|
148558
|
-
|
|
151426
|
+
const localVersions = (await readdir(baseDir, { withFileTypes: true })).filter((e) => e.isDirectory() || e.isSymbolicLink()).map((e) => e.name).filter((name) => !!import_semver.default.valid(name));
|
|
151427
|
+
if (localVersions.length === 0) return null;
|
|
151428
|
+
const range = versionOrRange || "latest";
|
|
151429
|
+
if (range === "latest") {
|
|
151430
|
+
const latestLocal = localVersions.sort((a, b) => import_semver.default.rcompare(a, b))[0] || null;
|
|
151431
|
+
if (latestLocal) {
|
|
151432
|
+
console.info(`[Fetcher] ${logPrefix}: Using locally cached latest version: ${latestLocal}`);
|
|
151433
|
+
return latestLocal;
|
|
151434
|
+
}
|
|
151435
|
+
} else {
|
|
151436
|
+
const matched = import_semver.default.maxSatisfying(localVersions, range);
|
|
151437
|
+
if (matched) {
|
|
151438
|
+
console.info(`[Fetcher] ${logPrefix}: Using locally cached matching version: ${matched} for range ${range}`);
|
|
151439
|
+
return matched;
|
|
151440
|
+
}
|
|
151441
|
+
}
|
|
151442
|
+
} catch (e) {
|
|
151443
|
+
console.warn(`[Fetcher] ${logPrefix}: Error during local fallback resolution:`, e);
|
|
148559
151444
|
}
|
|
148560
151445
|
return null;
|
|
148561
151446
|
}
|
|
@@ -148581,100 +151466,108 @@ async function resolveEntryPoint(packageDir, packageName) {
|
|
|
148581
151466
|
//#region ../../packages/core-node/src/handler-func.ts
|
|
148582
151467
|
const { join: join$1 } = path;
|
|
148583
151468
|
//#endregion
|
|
148584
|
-
//#region
|
|
148585
|
-
const
|
|
148586
|
-
|
|
148587
|
-
|
|
148588
|
-
|
|
148589
|
-
|
|
148590
|
-
|
|
148591
|
-
|
|
148592
|
-
|
|
148593
|
-
|
|
148594
|
-
|
|
148595
|
-
|
|
148596
|
-
|
|
148597
|
-
control: {
|
|
148598
|
-
type: "path",
|
|
148599
|
-
options: { properties: ["openDirectory"] }
|
|
151469
|
+
//#region ../../packages/core-node/src/handlers/plugins.ts
|
|
151470
|
+
const localPluginsMap = /* @__PURE__ */ new Map();
|
|
151471
|
+
if (isDev && projectRoot) {
|
|
151472
|
+
const pluginsDir = join(projectRoot, "plugins");
|
|
151473
|
+
if (existsSync(pluginsDir)) try {
|
|
151474
|
+
const entries = readdirSync(pluginsDir, { withFileTypes: true });
|
|
151475
|
+
for (const entry of entries) if (entry.isDirectory()) {
|
|
151476
|
+
const pkgPath = join(pluginsDir, entry.name, "package.json");
|
|
151477
|
+
if (existsSync(pkgPath)) try {
|
|
151478
|
+
const pkg = JSON.parse(readFileSync(pkgPath, "utf-8"));
|
|
151479
|
+
if (pkg.name) localPluginsMap.set(pkg.name, join(pluginsDir, entry.name));
|
|
151480
|
+
} catch (e) {
|
|
151481
|
+
console.error(`[Plugins] Failed to parse package.json for ${entry.name}:`, e);
|
|
148600
151482
|
}
|
|
148601
|
-
}),
|
|
148602
|
-
project: createStringParam("", {
|
|
148603
|
-
required: true,
|
|
148604
|
-
label: "Project",
|
|
148605
|
-
description: "This is you Poki game id"
|
|
148606
|
-
}),
|
|
148607
|
-
name: createStringParam("", {
|
|
148608
|
-
required: true,
|
|
148609
|
-
label: "Version name",
|
|
148610
|
-
description: "This is the name of the version"
|
|
148611
|
-
}),
|
|
148612
|
-
notes: createStringParam("", {
|
|
148613
|
-
required: true,
|
|
148614
|
-
label: "Version notes",
|
|
148615
|
-
description: "These are notes you want to specify with your version"
|
|
148616
|
-
})
|
|
148617
|
-
},
|
|
148618
|
-
outputs: {}
|
|
148619
|
-
});
|
|
148620
|
-
const uploadToPokiRunner = createActionRunner(async ({ log, inputs, paths, abortSignal, cwd, context }) => {
|
|
148621
|
-
const { node, thirdparty, pnpm } = paths;
|
|
148622
|
-
const { packageDir: pokiDir } = await fetchPackage("@poki/cli", "0.1.19", {
|
|
148623
|
-
context,
|
|
148624
|
-
installDeps: true
|
|
148625
|
-
});
|
|
148626
|
-
const poki = join(pokiDir, "bin", "index.js");
|
|
148627
|
-
const dist = join(cwd, "dist");
|
|
148628
|
-
await mkdir(dist, { recursive: true });
|
|
148629
|
-
await cp(inputs["input-folder"], dist, { recursive: true });
|
|
148630
|
-
const pokiJsonPath = join(cwd, "poki.json");
|
|
148631
|
-
console.log("pokiJsonPath", pokiJsonPath);
|
|
148632
|
-
await writeFile(pokiJsonPath, JSON.stringify({
|
|
148633
|
-
game_id: inputs.project,
|
|
148634
|
-
build_dir: "dist"
|
|
148635
|
-
}, void 0, 2), "utf-8");
|
|
148636
|
-
log("process.env.MSW_BRIDGE_PORT", process.env.MSW_BRIDGE_PORT);
|
|
148637
|
-
log("process.env.NODE_OPTIONS", process.env.NODE_OPTIONS);
|
|
148638
|
-
await runWithLiveLogs(node, [
|
|
148639
|
-
poki,
|
|
148640
|
-
"upload",
|
|
148641
|
-
"--name",
|
|
148642
|
-
inputs.name,
|
|
148643
|
-
"--notes",
|
|
148644
|
-
inputs.notes
|
|
148645
|
-
], {
|
|
148646
|
-
cwd,
|
|
148647
|
-
env: {
|
|
148648
|
-
...process.env,
|
|
148649
|
-
PATH: `${dirname(node)}${delimiter}${process.env.PATH}`
|
|
148650
|
-
},
|
|
148651
|
-
cancelSignal: abortSignal
|
|
148652
|
-
}, log, {
|
|
148653
|
-
onStderr(data, subprocess) {
|
|
148654
|
-
log(data);
|
|
148655
|
-
},
|
|
148656
|
-
onStdout(data, subprocess) {
|
|
148657
|
-
log(data);
|
|
148658
151483
|
}
|
|
148659
|
-
})
|
|
148660
|
-
|
|
148661
|
-
}
|
|
151484
|
+
} catch (e) {
|
|
151485
|
+
console.error(`[Plugins] Failed to scan local workspace plugins directory:`, e);
|
|
151486
|
+
}
|
|
151487
|
+
}
|
|
151488
|
+
//#endregion
|
|
151489
|
+
//#region ../plugin-core/src/pipelab.ts
|
|
151490
|
+
const createActionRunner = (runner) => runner;
|
|
148662
151491
|
//#endregion
|
|
148663
151492
|
//#region src/index.ts
|
|
148664
|
-
|
|
148665
|
-
|
|
148666
|
-
|
|
148667
|
-
|
|
148668
|
-
|
|
148669
|
-
|
|
148670
|
-
|
|
148671
|
-
|
|
148672
|
-
|
|
148673
|
-
|
|
148674
|
-
|
|
148675
|
-
|
|
148676
|
-
|
|
148677
|
-
|
|
151493
|
+
var src_default = createNodeDefinition({ nodes: [{
|
|
151494
|
+
node: createAction({
|
|
151495
|
+
id: "poki-upload",
|
|
151496
|
+
name: "Upload to Poki.io",
|
|
151497
|
+
description: "",
|
|
151498
|
+
icon: "",
|
|
151499
|
+
displayString: "`Upload ${fmt.param(params['input-folder'], 'primary', 'No path selected')} to ${fmt.param(params['project'], 'primary', 'No project')} poki game (${fmt.param(params['name'], 'primary', 'No version name')})`",
|
|
151500
|
+
meta: {},
|
|
151501
|
+
params: {
|
|
151502
|
+
"input-folder": createPathParam("", {
|
|
151503
|
+
required: true,
|
|
151504
|
+
label: "Folder to Upload",
|
|
151505
|
+
control: {
|
|
151506
|
+
type: "path",
|
|
151507
|
+
options: { properties: ["openDirectory"] }
|
|
151508
|
+
}
|
|
151509
|
+
}),
|
|
151510
|
+
project: createStringParam("", {
|
|
151511
|
+
required: true,
|
|
151512
|
+
label: "Project",
|
|
151513
|
+
description: "This is you Poki game id"
|
|
151514
|
+
}),
|
|
151515
|
+
name: createStringParam("", {
|
|
151516
|
+
required: true,
|
|
151517
|
+
label: "Version name",
|
|
151518
|
+
description: "This is the name of the version"
|
|
151519
|
+
}),
|
|
151520
|
+
notes: createStringParam("", {
|
|
151521
|
+
required: true,
|
|
151522
|
+
label: "Version notes",
|
|
151523
|
+
description: "These are notes you want to specify with your version"
|
|
151524
|
+
})
|
|
151525
|
+
},
|
|
151526
|
+
outputs: {}
|
|
151527
|
+
}),
|
|
151528
|
+
runner: createActionRunner(async ({ log, inputs, paths, abortSignal, cwd, context }) => {
|
|
151529
|
+
const { node, thirdparty, pnpm } = paths;
|
|
151530
|
+
const { packageDir: pokiDir } = await fetchPackage("@poki/cli", "0.1.19", {
|
|
151531
|
+
context,
|
|
151532
|
+
installDeps: true
|
|
151533
|
+
});
|
|
151534
|
+
const poki = join(pokiDir, "bin", "index.js");
|
|
151535
|
+
const dist = join(cwd, "dist");
|
|
151536
|
+
await mkdir(dist, { recursive: true });
|
|
151537
|
+
await cp(inputs["input-folder"], dist, { recursive: true });
|
|
151538
|
+
const pokiJsonPath = join(cwd, "poki.json");
|
|
151539
|
+
console.log("pokiJsonPath", pokiJsonPath);
|
|
151540
|
+
await writeFile(pokiJsonPath, JSON.stringify({
|
|
151541
|
+
game_id: inputs.project,
|
|
151542
|
+
build_dir: "dist"
|
|
151543
|
+
}, void 0, 2), "utf-8");
|
|
151544
|
+
log("process.env.MSW_BRIDGE_PORT", process.env.MSW_BRIDGE_PORT);
|
|
151545
|
+
log("process.env.NODE_OPTIONS", process.env.NODE_OPTIONS);
|
|
151546
|
+
await runWithLiveLogs(node, [
|
|
151547
|
+
poki,
|
|
151548
|
+
"upload",
|
|
151549
|
+
"--name",
|
|
151550
|
+
inputs.name,
|
|
151551
|
+
"--notes",
|
|
151552
|
+
inputs.notes
|
|
151553
|
+
], {
|
|
151554
|
+
cwd,
|
|
151555
|
+
env: {
|
|
151556
|
+
...process.env,
|
|
151557
|
+
PATH: `${dirname(node)}${delimiter}${process.env.PATH}`
|
|
151558
|
+
},
|
|
151559
|
+
cancelSignal: abortSignal
|
|
151560
|
+
}, log, {
|
|
151561
|
+
onStderr(data, subprocess) {
|
|
151562
|
+
log(data);
|
|
151563
|
+
},
|
|
151564
|
+
onStdout(data, subprocess) {
|
|
151565
|
+
log(data);
|
|
151566
|
+
}
|
|
151567
|
+
});
|
|
151568
|
+
log("Uploaded to poki");
|
|
151569
|
+
})
|
|
151570
|
+
}] });
|
|
148678
151571
|
//#endregion
|
|
148679
151572
|
export { src_default as default };
|
|
148680
151573
|
|