@pipelab/plugin-tauri 1.0.0-beta.11 → 1.0.0-beta.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3715 -778
- package/dist/index.mjs +3299 -365
- package/dist/index.mjs.map +1 -1
- package/dist/public/tauri.webp +0 -0
- package/package.json +22 -5
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
|
/**
|
|
@@ -45232,7 +45401,7 @@ function findProjectRoot(startDir) {
|
|
|
45232
45401
|
const projectRoot = findProjectRoot(_dirname);
|
|
45233
45402
|
//#endregion
|
|
45234
45403
|
//#region ../../packages/core-node/node_modules/ws/lib/constants.js
|
|
45235
|
-
var require_constants$
|
|
45404
|
+
var require_constants$9 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
45236
45405
|
const BINARY_TYPES = [
|
|
45237
45406
|
"nodebuffer",
|
|
45238
45407
|
"arraybuffer",
|
|
@@ -45255,7 +45424,7 @@ var require_constants$7 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
45255
45424
|
//#endregion
|
|
45256
45425
|
//#region ../../packages/core-node/node_modules/ws/lib/buffer-util.js
|
|
45257
45426
|
var require_buffer_util = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
45258
|
-
const { EMPTY_BUFFER } = require_constants$
|
|
45427
|
+
const { EMPTY_BUFFER } = require_constants$9();
|
|
45259
45428
|
const FastBuffer = Buffer[Symbol.species];
|
|
45260
45429
|
/**
|
|
45261
45430
|
* Merges an array of buffers into a new buffer.
|
|
@@ -45409,7 +45578,7 @@ var require_permessage_deflate = /* @__PURE__ */ __commonJSMin(((exports, module
|
|
|
45409
45578
|
const zlib$2 = __require("zlib");
|
|
45410
45579
|
const bufferUtil = require_buffer_util();
|
|
45411
45580
|
const Limiter = require_limiter();
|
|
45412
|
-
const { kStatusCode } = require_constants$
|
|
45581
|
+
const { kStatusCode } = require_constants$9();
|
|
45413
45582
|
const FastBuffer = Buffer[Symbol.species];
|
|
45414
45583
|
const TRAILER = Buffer.from([
|
|
45415
45584
|
0,
|
|
@@ -45740,7 +45909,7 @@ var require_permessage_deflate = /* @__PURE__ */ __commonJSMin(((exports, module
|
|
|
45740
45909
|
//#region ../../packages/core-node/node_modules/ws/lib/validation.js
|
|
45741
45910
|
var require_validation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
45742
45911
|
const { isUtf8 } = __require("buffer");
|
|
45743
|
-
const { hasBlob } = require_constants$
|
|
45912
|
+
const { hasBlob } = require_constants$9();
|
|
45744
45913
|
const tokenChars = [
|
|
45745
45914
|
0,
|
|
45746
45915
|
0,
|
|
@@ -45937,7 +46106,7 @@ var require_validation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
45937
46106
|
var require_receiver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
45938
46107
|
const { Writable: Writable$2 } = __require("stream");
|
|
45939
46108
|
const PerMessageDeflate = require_permessage_deflate();
|
|
45940
|
-
const { BINARY_TYPES, EMPTY_BUFFER, kStatusCode, kWebSocket } = require_constants$
|
|
46109
|
+
const { BINARY_TYPES, EMPTY_BUFFER, kStatusCode, kWebSocket } = require_constants$9();
|
|
45941
46110
|
const { concat, toArrayBuffer, unmask } = require_buffer_util();
|
|
45942
46111
|
const { isValidStatusCode, isValidUTF8 } = require_validation();
|
|
45943
46112
|
const FastBuffer = Buffer[Symbol.species];
|
|
@@ -46385,7 +46554,7 @@ var require_sender = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
46385
46554
|
const { Duplex: Duplex$4 } = __require("stream");
|
|
46386
46555
|
const { randomFillSync } = __require("crypto");
|
|
46387
46556
|
const PerMessageDeflate = require_permessage_deflate();
|
|
46388
|
-
const { EMPTY_BUFFER, kWebSocket, NOOP } = require_constants$
|
|
46557
|
+
const { EMPTY_BUFFER, kWebSocket, NOOP } = require_constants$9();
|
|
46389
46558
|
const { isBlob, isValidStatusCode } = require_validation();
|
|
46390
46559
|
const { mask: applyMask, toBuffer } = require_buffer_util();
|
|
46391
46560
|
const kByteLength = Symbol("kByteLength");
|
|
@@ -46873,7 +47042,7 @@ var require_sender = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
46873
47042
|
//#endregion
|
|
46874
47043
|
//#region ../../packages/core-node/node_modules/ws/lib/event-target.js
|
|
46875
47044
|
var require_event_target = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
46876
|
-
const { kForOnEventAttribute, kListener } = require_constants$
|
|
47045
|
+
const { kForOnEventAttribute, kListener } = require_constants$9();
|
|
46877
47046
|
const kCode = Symbol("kCode");
|
|
46878
47047
|
const kData = Symbol("kData");
|
|
46879
47048
|
const kError = Symbol("kError");
|
|
@@ -47240,7 +47409,7 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
47240
47409
|
const Receiver = require_receiver();
|
|
47241
47410
|
const Sender = require_sender();
|
|
47242
47411
|
const { isBlob } = require_validation();
|
|
47243
|
-
const { BINARY_TYPES, EMPTY_BUFFER, GUID, kForOnEventAttribute, kListener, kStatusCode, kWebSocket, NOOP } = require_constants$
|
|
47412
|
+
const { BINARY_TYPES, EMPTY_BUFFER, GUID, kForOnEventAttribute, kListener, kStatusCode, kWebSocket, NOOP } = require_constants$9();
|
|
47244
47413
|
const { EventTarget: { addEventListener, removeEventListener } } = require_event_target();
|
|
47245
47414
|
const { format, parse } = require_extension();
|
|
47246
47415
|
const { toBuffer } = require_buffer_util();
|
|
@@ -48356,7 +48525,7 @@ var require_websocket_server = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
48356
48525
|
const PerMessageDeflate = require_permessage_deflate();
|
|
48357
48526
|
const subprotocol = require_subprotocol();
|
|
48358
48527
|
const WebSocket = require_websocket();
|
|
48359
|
-
const { GUID, kWebSocket } = require_constants$
|
|
48528
|
+
const { GUID, kWebSocket } = require_constants$9();
|
|
48360
48529
|
const keyRegex = /^[+/0-9A-Za-z]{22}==$/;
|
|
48361
48530
|
const RUNNING = 0;
|
|
48362
48531
|
const CLOSING = 1;
|
|
@@ -50033,7 +50202,7 @@ var require_readShebang = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
50033
50202
|
}));
|
|
50034
50203
|
//#endregion
|
|
50035
50204
|
//#region ../../node_modules/cross-spawn/lib/parse.js
|
|
50036
|
-
var require_parse$
|
|
50205
|
+
var require_parse$5 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
50037
50206
|
const path$32 = __require("path");
|
|
50038
50207
|
const resolveCommand = require_resolveCommand();
|
|
50039
50208
|
const escape = require_escape$4();
|
|
@@ -50135,7 +50304,7 @@ var require_enoent = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
50135
50304
|
//#region ../../node_modules/npm-run-path/node_modules/path-key/index.js
|
|
50136
50305
|
var import_cross_spawn = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
50137
50306
|
const cp$1 = __require("child_process");
|
|
50138
|
-
const parse = require_parse$
|
|
50307
|
+
const parse = require_parse$5();
|
|
50139
50308
|
const enoent = require_enoent();
|
|
50140
50309
|
function spawn(command, args, options) {
|
|
50141
50310
|
const parsed = parse(command, args, options);
|
|
@@ -55672,7 +55841,7 @@ while (this[FLUSHCHUNK](this[BUFFERSHIFT]()) && this[BUFFER].length);
|
|
|
55672
55841
|
}));
|
|
55673
55842
|
//#endregion
|
|
55674
55843
|
//#region ../../node_modules/tar/node_modules/minizlib/constants.js
|
|
55675
|
-
var require_constants$
|
|
55844
|
+
var require_constants$8 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
55676
55845
|
const realZlibConstants$1 = __require("zlib").constants || (
|
|
55677
55846
|
/* istanbul ignore next */ { ZLIB_VERNUM: 4736 });
|
|
55678
55847
|
module.exports = Object.freeze(Object.assign(Object.create(null), {
|
|
@@ -56220,7 +56389,7 @@ var require_minizlib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
56220
56389
|
const assert$2 = __require("assert");
|
|
56221
56390
|
const Buffer$8 = __require("buffer").Buffer;
|
|
56222
56391
|
const realZlib$1 = __require("zlib");
|
|
56223
|
-
const constants = exports.constants = require_constants$
|
|
56392
|
+
const constants = exports.constants = require_constants$8();
|
|
56224
56393
|
const Minipass = require_minipass$3();
|
|
56225
56394
|
const OriginalBufferConcat = Buffer$8.concat;
|
|
56226
56395
|
const _superWrite = Symbol("_superWrite");
|
|
@@ -58677,7 +58846,7 @@ var require_fs_minipass = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
58677
58846
|
}));
|
|
58678
58847
|
//#endregion
|
|
58679
58848
|
//#region ../../node_modules/tar/lib/parse.js
|
|
58680
|
-
var require_parse$
|
|
58849
|
+
var require_parse$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
58681
58850
|
const warner = require_warn_mixin();
|
|
58682
58851
|
const Header = require_header();
|
|
58683
58852
|
const EE$10 = __require("events");
|
|
@@ -59025,7 +59194,7 @@ while (this[PROCESSENTRY](this[QUEUE].shift()));
|
|
|
59025
59194
|
//#region ../../node_modules/tar/lib/list.js
|
|
59026
59195
|
var require_list = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
59027
59196
|
const hlo = require_high_level_opt();
|
|
59028
|
-
const Parser = require_parse$
|
|
59197
|
+
const Parser = require_parse$4();
|
|
59029
59198
|
const fs$29 = __require("fs");
|
|
59030
59199
|
const fsm = require_fs_minipass();
|
|
59031
59200
|
const path$28 = __require("path");
|
|
@@ -59910,7 +60079,7 @@ var require_get_write_flag = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
59910
60079
|
//#region ../../node_modules/tar/lib/unpack.js
|
|
59911
60080
|
var require_unpack = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
59912
60081
|
const assert = __require("assert");
|
|
59913
|
-
const Parser = require_parse$
|
|
60082
|
+
const Parser = require_parse$4();
|
|
59914
60083
|
const fs$23 = __require("fs");
|
|
59915
60084
|
const fsm = require_fs_minipass();
|
|
59916
60085
|
const path$23 = __require("path");
|
|
@@ -60568,7 +60737,7 @@ var require_tar$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
60568
60737
|
exports.x = exports.extract = require_extract$1();
|
|
60569
60738
|
exports.Pack = require_pack$1();
|
|
60570
60739
|
exports.Unpack = require_unpack();
|
|
60571
|
-
exports.Parse = require_parse$
|
|
60740
|
+
exports.Parse = require_parse$4();
|
|
60572
60741
|
exports.ReadEntry = require_read_entry();
|
|
60573
60742
|
exports.WriteEntry = require_write_entry();
|
|
60574
60743
|
exports.Header = require_header();
|
|
@@ -71163,7 +71332,7 @@ var require__baseRest = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
71163
71332
|
}));
|
|
71164
71333
|
//#endregion
|
|
71165
71334
|
//#region ../../node_modules/lodash/eq.js
|
|
71166
|
-
var require_eq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
71335
|
+
var require_eq$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
71167
71336
|
/**
|
|
71168
71337
|
* Performs a
|
|
71169
71338
|
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
@@ -71296,7 +71465,7 @@ var require__isIndex = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
71296
71465
|
//#endregion
|
|
71297
71466
|
//#region ../../node_modules/lodash/_isIterateeCall.js
|
|
71298
71467
|
var require__isIterateeCall = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
71299
|
-
var eq = require_eq(), isArrayLike = require_isArrayLike(), isIndex = require__isIndex(), isObject = require_isObject();
|
|
71468
|
+
var eq = require_eq$2(), isArrayLike = require_isArrayLike(), isIndex = require__isIndex(), isObject = require_isObject();
|
|
71300
71469
|
/**
|
|
71301
71470
|
* Checks if the given arguments are from an iteratee call.
|
|
71302
71471
|
*
|
|
@@ -71617,7 +71786,7 @@ var require_keysIn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
71617
71786
|
//#endregion
|
|
71618
71787
|
//#region ../../node_modules/lodash/defaults.js
|
|
71619
71788
|
var require_defaults = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
71620
|
-
var baseRest = require__baseRest(), eq = require_eq(), isIterateeCall = require__isIterateeCall(), keysIn = require_keysIn();
|
|
71789
|
+
var baseRest = require__baseRest(), eq = require_eq$2(), isIterateeCall = require__isIterateeCall(), keysIn = require_keysIn();
|
|
71621
71790
|
/** Used for built-in method references. */
|
|
71622
71791
|
var objectProto = Object.prototype;
|
|
71623
71792
|
/** Used to check objects for own properties. */
|
|
@@ -77239,7 +77408,7 @@ var require__listCacheClear = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
77239
77408
|
//#endregion
|
|
77240
77409
|
//#region ../../node_modules/lodash/_assocIndexOf.js
|
|
77241
77410
|
var require__assocIndexOf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
77242
|
-
var eq = require_eq();
|
|
77411
|
+
var eq = require_eq$2();
|
|
77243
77412
|
/**
|
|
77244
77413
|
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
77245
77414
|
*
|
|
@@ -85171,7 +85340,7 @@ var require_unix_stat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
85171
85340
|
}));
|
|
85172
85341
|
//#endregion
|
|
85173
85342
|
//#region ../../node_modules/compress-commons/lib/archivers/zip/constants.js
|
|
85174
|
-
var require_constants$
|
|
85343
|
+
var require_constants$7 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
85175
85344
|
/**
|
|
85176
85345
|
* node-compress-commons
|
|
85177
85346
|
*
|
|
@@ -85246,7 +85415,7 @@ var require_zip_archive_entry = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
85246
85415
|
var ArchiveEntry = require_archive_entry();
|
|
85247
85416
|
var GeneralPurposeBit = require_general_purpose_bit();
|
|
85248
85417
|
var UnixStat = require_unix_stat();
|
|
85249
|
-
var constants = require_constants$
|
|
85418
|
+
var constants = require_constants$7();
|
|
85250
85419
|
var zipUtil = require_util$3();
|
|
85251
85420
|
var ZipArchiveEntry = module.exports = function(name) {
|
|
85252
85421
|
if (!(this instanceof ZipArchiveEntry)) return new ZipArchiveEntry(name);
|
|
@@ -85880,7 +86049,7 @@ var require_zip_archive_output_stream = /* @__PURE__ */ __commonJSMin(((exports,
|
|
|
85880
86049
|
var ArchiveOutputStream = require_archive_output_stream();
|
|
85881
86050
|
require_zip_archive_entry();
|
|
85882
86051
|
require_general_purpose_bit();
|
|
85883
|
-
var constants = require_constants$
|
|
86052
|
+
var constants = require_constants$7();
|
|
85884
86053
|
require_util$2();
|
|
85885
86054
|
var zipUtil = require_util$3();
|
|
85886
86055
|
var ZipArchiveOutputStream = module.exports = function(options) {
|
|
@@ -88377,7 +88546,7 @@ var require_extract = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
88377
88546
|
}));
|
|
88378
88547
|
//#endregion
|
|
88379
88548
|
//#region ../../node_modules/tar-stream/constants.js
|
|
88380
|
-
var require_constants$
|
|
88549
|
+
var require_constants$6 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
88381
88550
|
const constants = {
|
|
88382
88551
|
S_IFMT: 61440,
|
|
88383
88552
|
S_IFDIR: 16384,
|
|
@@ -88397,7 +88566,7 @@ var require_constants$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
88397
88566
|
var require_pack = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
88398
88567
|
const { Readable, Writable, getStreamError } = require_streamx();
|
|
88399
88568
|
const b4a = require_b4a();
|
|
88400
|
-
const constants = require_constants$
|
|
88569
|
+
const constants = require_constants$6();
|
|
88401
88570
|
const headers = require_headers$1();
|
|
88402
88571
|
const DMODE = 493;
|
|
88403
88572
|
const FMODE = 420;
|
|
@@ -89461,6 +89630,360 @@ var require_update_workspaces = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
89461
89630
|
module.exports = updateWorkspaces;
|
|
89462
89631
|
}));
|
|
89463
89632
|
//#endregion
|
|
89633
|
+
//#region ../../node_modules/semver/internal/debug.js
|
|
89634
|
+
var require_debug$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89635
|
+
module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
89636
|
+
}));
|
|
89637
|
+
//#endregion
|
|
89638
|
+
//#region ../../node_modules/semver/internal/constants.js
|
|
89639
|
+
var require_constants$5 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89640
|
+
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
89641
|
+
const MAX_LENGTH = 256;
|
|
89642
|
+
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
89643
|
+
module.exports = {
|
|
89644
|
+
MAX_LENGTH,
|
|
89645
|
+
MAX_SAFE_COMPONENT_LENGTH: 16,
|
|
89646
|
+
MAX_SAFE_BUILD_LENGTH: MAX_LENGTH - 6,
|
|
89647
|
+
MAX_SAFE_INTEGER,
|
|
89648
|
+
RELEASE_TYPES: [
|
|
89649
|
+
"major",
|
|
89650
|
+
"premajor",
|
|
89651
|
+
"minor",
|
|
89652
|
+
"preminor",
|
|
89653
|
+
"patch",
|
|
89654
|
+
"prepatch",
|
|
89655
|
+
"prerelease"
|
|
89656
|
+
],
|
|
89657
|
+
SEMVER_SPEC_VERSION,
|
|
89658
|
+
FLAG_INCLUDE_PRERELEASE: 1,
|
|
89659
|
+
FLAG_LOOSE: 2
|
|
89660
|
+
};
|
|
89661
|
+
}));
|
|
89662
|
+
//#endregion
|
|
89663
|
+
//#region ../../node_modules/semver/internal/re.js
|
|
89664
|
+
var require_re$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89665
|
+
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants$5();
|
|
89666
|
+
const debug = require_debug$1();
|
|
89667
|
+
exports = module.exports = {};
|
|
89668
|
+
const re = exports.re = [];
|
|
89669
|
+
const safeRe = exports.safeRe = [];
|
|
89670
|
+
const src = exports.src = [];
|
|
89671
|
+
const safeSrc = exports.safeSrc = [];
|
|
89672
|
+
const t = exports.t = {};
|
|
89673
|
+
let R = 0;
|
|
89674
|
+
const LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
89675
|
+
const safeRegexReplacements = [
|
|
89676
|
+
["\\s", 1],
|
|
89677
|
+
["\\d", MAX_LENGTH],
|
|
89678
|
+
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
|
|
89679
|
+
];
|
|
89680
|
+
const makeSafeRegex = (value) => {
|
|
89681
|
+
for (const [token, max] of safeRegexReplacements) value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
|
|
89682
|
+
return value;
|
|
89683
|
+
};
|
|
89684
|
+
const createToken = (name, value, isGlobal) => {
|
|
89685
|
+
const safe = makeSafeRegex(value);
|
|
89686
|
+
const index = R++;
|
|
89687
|
+
debug(name, index, value);
|
|
89688
|
+
t[name] = index;
|
|
89689
|
+
src[index] = value;
|
|
89690
|
+
safeSrc[index] = safe;
|
|
89691
|
+
re[index] = new RegExp(value, isGlobal ? "g" : void 0);
|
|
89692
|
+
safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
89693
|
+
};
|
|
89694
|
+
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
89695
|
+
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
89696
|
+
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
89697
|
+
createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
|
|
89698
|
+
createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
89699
|
+
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
|
|
89700
|
+
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
89701
|
+
createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
89702
|
+
createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
89703
|
+
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
89704
|
+
createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
|
|
89705
|
+
createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
|
|
89706
|
+
createToken("FULL", `^${src[t.FULLPLAIN]}$`);
|
|
89707
|
+
createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
|
|
89708
|
+
createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
|
|
89709
|
+
createToken("GTLT", "((?:<|>)?=?)");
|
|
89710
|
+
createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
|
89711
|
+
createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
|
|
89712
|
+
createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
|
|
89713
|
+
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
|
|
89714
|
+
createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
|
|
89715
|
+
createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
|
|
89716
|
+
createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
|
89717
|
+
createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
89718
|
+
createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
|
|
89719
|
+
createToken("COERCERTL", src[t.COERCE], true);
|
|
89720
|
+
createToken("COERCERTLFULL", src[t.COERCEFULL], true);
|
|
89721
|
+
createToken("LONETILDE", "(?:~>?)");
|
|
89722
|
+
createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
|
|
89723
|
+
exports.tildeTrimReplace = "$1~";
|
|
89724
|
+
createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
|
|
89725
|
+
createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
89726
|
+
createToken("LONECARET", "(?:\\^)");
|
|
89727
|
+
createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
|
|
89728
|
+
exports.caretTrimReplace = "$1^";
|
|
89729
|
+
createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
|
|
89730
|
+
createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
89731
|
+
createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
|
|
89732
|
+
createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
|
|
89733
|
+
createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
|
|
89734
|
+
exports.comparatorTrimReplace = "$1$2$3";
|
|
89735
|
+
createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
|
|
89736
|
+
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
|
|
89737
|
+
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
89738
|
+
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
89739
|
+
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
89740
|
+
}));
|
|
89741
|
+
//#endregion
|
|
89742
|
+
//#region ../../node_modules/semver/internal/parse-options.js
|
|
89743
|
+
var require_parse_options$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89744
|
+
const looseOption = Object.freeze({ loose: true });
|
|
89745
|
+
const emptyOpts = Object.freeze({});
|
|
89746
|
+
const parseOptions = (options) => {
|
|
89747
|
+
if (!options) return emptyOpts;
|
|
89748
|
+
if (typeof options !== "object") return looseOption;
|
|
89749
|
+
return options;
|
|
89750
|
+
};
|
|
89751
|
+
module.exports = parseOptions;
|
|
89752
|
+
}));
|
|
89753
|
+
//#endregion
|
|
89754
|
+
//#region ../../node_modules/semver/internal/identifiers.js
|
|
89755
|
+
var require_identifiers$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89756
|
+
const numeric = /^[0-9]+$/;
|
|
89757
|
+
const compareIdentifiers = (a, b) => {
|
|
89758
|
+
if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
|
|
89759
|
+
const anum = numeric.test(a);
|
|
89760
|
+
const bnum = numeric.test(b);
|
|
89761
|
+
if (anum && bnum) {
|
|
89762
|
+
a = +a;
|
|
89763
|
+
b = +b;
|
|
89764
|
+
}
|
|
89765
|
+
return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
|
|
89766
|
+
};
|
|
89767
|
+
const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
|
|
89768
|
+
module.exports = {
|
|
89769
|
+
compareIdentifiers,
|
|
89770
|
+
rcompareIdentifiers
|
|
89771
|
+
};
|
|
89772
|
+
}));
|
|
89773
|
+
//#endregion
|
|
89774
|
+
//#region ../../node_modules/semver/classes/semver.js
|
|
89775
|
+
var require_semver$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89776
|
+
const debug = require_debug$1();
|
|
89777
|
+
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants$5();
|
|
89778
|
+
const { safeRe: re, t } = require_re$1();
|
|
89779
|
+
const parseOptions = require_parse_options$1();
|
|
89780
|
+
const { compareIdentifiers } = require_identifiers$1();
|
|
89781
|
+
module.exports = class SemVer {
|
|
89782
|
+
constructor(version, options) {
|
|
89783
|
+
options = parseOptions(options);
|
|
89784
|
+
if (version instanceof SemVer) if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) return version;
|
|
89785
|
+
else version = version.version;
|
|
89786
|
+
else if (typeof version !== "string") throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
89787
|
+
if (version.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
|
|
89788
|
+
debug("SemVer", version, options);
|
|
89789
|
+
this.options = options;
|
|
89790
|
+
this.loose = !!options.loose;
|
|
89791
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
89792
|
+
const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
|
|
89793
|
+
if (!m) throw new TypeError(`Invalid Version: ${version}`);
|
|
89794
|
+
this.raw = version;
|
|
89795
|
+
this.major = +m[1];
|
|
89796
|
+
this.minor = +m[2];
|
|
89797
|
+
this.patch = +m[3];
|
|
89798
|
+
if (this.major > MAX_SAFE_INTEGER || this.major < 0) throw new TypeError("Invalid major version");
|
|
89799
|
+
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError("Invalid minor version");
|
|
89800
|
+
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError("Invalid patch version");
|
|
89801
|
+
if (!m[4]) this.prerelease = [];
|
|
89802
|
+
else this.prerelease = m[4].split(".").map((id) => {
|
|
89803
|
+
if (/^[0-9]+$/.test(id)) {
|
|
89804
|
+
const num = +id;
|
|
89805
|
+
if (num >= 0 && num < MAX_SAFE_INTEGER) return num;
|
|
89806
|
+
}
|
|
89807
|
+
return id;
|
|
89808
|
+
});
|
|
89809
|
+
this.build = m[5] ? m[5].split(".") : [];
|
|
89810
|
+
this.format();
|
|
89811
|
+
}
|
|
89812
|
+
format() {
|
|
89813
|
+
this.version = `${this.major}.${this.minor}.${this.patch}`;
|
|
89814
|
+
if (this.prerelease.length) this.version += `-${this.prerelease.join(".")}`;
|
|
89815
|
+
return this.version;
|
|
89816
|
+
}
|
|
89817
|
+
toString() {
|
|
89818
|
+
return this.version;
|
|
89819
|
+
}
|
|
89820
|
+
compare(other) {
|
|
89821
|
+
debug("SemVer.compare", this.version, this.options, other);
|
|
89822
|
+
if (!(other instanceof SemVer)) {
|
|
89823
|
+
if (typeof other === "string" && other === this.version) return 0;
|
|
89824
|
+
other = new SemVer(other, this.options);
|
|
89825
|
+
}
|
|
89826
|
+
if (other.version === this.version) return 0;
|
|
89827
|
+
return this.compareMain(other) || this.comparePre(other);
|
|
89828
|
+
}
|
|
89829
|
+
compareMain(other) {
|
|
89830
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
89831
|
+
if (this.major < other.major) return -1;
|
|
89832
|
+
if (this.major > other.major) return 1;
|
|
89833
|
+
if (this.minor < other.minor) return -1;
|
|
89834
|
+
if (this.minor > other.minor) return 1;
|
|
89835
|
+
if (this.patch < other.patch) return -1;
|
|
89836
|
+
if (this.patch > other.patch) return 1;
|
|
89837
|
+
return 0;
|
|
89838
|
+
}
|
|
89839
|
+
comparePre(other) {
|
|
89840
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
89841
|
+
if (this.prerelease.length && !other.prerelease.length) return -1;
|
|
89842
|
+
else if (!this.prerelease.length && other.prerelease.length) return 1;
|
|
89843
|
+
else if (!this.prerelease.length && !other.prerelease.length) return 0;
|
|
89844
|
+
let i = 0;
|
|
89845
|
+
do {
|
|
89846
|
+
const a = this.prerelease[i];
|
|
89847
|
+
const b = other.prerelease[i];
|
|
89848
|
+
debug("prerelease compare", i, a, b);
|
|
89849
|
+
if (a === void 0 && b === void 0) return 0;
|
|
89850
|
+
else if (b === void 0) return 1;
|
|
89851
|
+
else if (a === void 0) return -1;
|
|
89852
|
+
else if (a === b) continue;
|
|
89853
|
+
else return compareIdentifiers(a, b);
|
|
89854
|
+
} while (++i);
|
|
89855
|
+
}
|
|
89856
|
+
compareBuild(other) {
|
|
89857
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
89858
|
+
let i = 0;
|
|
89859
|
+
do {
|
|
89860
|
+
const a = this.build[i];
|
|
89861
|
+
const b = other.build[i];
|
|
89862
|
+
debug("build compare", i, a, b);
|
|
89863
|
+
if (a === void 0 && b === void 0) return 0;
|
|
89864
|
+
else if (b === void 0) return 1;
|
|
89865
|
+
else if (a === void 0) return -1;
|
|
89866
|
+
else if (a === b) continue;
|
|
89867
|
+
else return compareIdentifiers(a, b);
|
|
89868
|
+
} while (++i);
|
|
89869
|
+
}
|
|
89870
|
+
inc(release, identifier, identifierBase) {
|
|
89871
|
+
if (release.startsWith("pre")) {
|
|
89872
|
+
if (!identifier && identifierBase === false) throw new Error("invalid increment argument: identifier is empty");
|
|
89873
|
+
if (identifier) {
|
|
89874
|
+
const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
|
|
89875
|
+
if (!match || match[1] !== identifier) throw new Error(`invalid identifier: ${identifier}`);
|
|
89876
|
+
}
|
|
89877
|
+
}
|
|
89878
|
+
switch (release) {
|
|
89879
|
+
case "premajor":
|
|
89880
|
+
this.prerelease.length = 0;
|
|
89881
|
+
this.patch = 0;
|
|
89882
|
+
this.minor = 0;
|
|
89883
|
+
this.major++;
|
|
89884
|
+
this.inc("pre", identifier, identifierBase);
|
|
89885
|
+
break;
|
|
89886
|
+
case "preminor":
|
|
89887
|
+
this.prerelease.length = 0;
|
|
89888
|
+
this.patch = 0;
|
|
89889
|
+
this.minor++;
|
|
89890
|
+
this.inc("pre", identifier, identifierBase);
|
|
89891
|
+
break;
|
|
89892
|
+
case "prepatch":
|
|
89893
|
+
this.prerelease.length = 0;
|
|
89894
|
+
this.inc("patch", identifier, identifierBase);
|
|
89895
|
+
this.inc("pre", identifier, identifierBase);
|
|
89896
|
+
break;
|
|
89897
|
+
case "prerelease":
|
|
89898
|
+
if (this.prerelease.length === 0) this.inc("patch", identifier, identifierBase);
|
|
89899
|
+
this.inc("pre", identifier, identifierBase);
|
|
89900
|
+
break;
|
|
89901
|
+
case "release":
|
|
89902
|
+
if (this.prerelease.length === 0) throw new Error(`version ${this.raw} is not a prerelease`);
|
|
89903
|
+
this.prerelease.length = 0;
|
|
89904
|
+
break;
|
|
89905
|
+
case "major":
|
|
89906
|
+
if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) this.major++;
|
|
89907
|
+
this.minor = 0;
|
|
89908
|
+
this.patch = 0;
|
|
89909
|
+
this.prerelease = [];
|
|
89910
|
+
break;
|
|
89911
|
+
case "minor":
|
|
89912
|
+
if (this.patch !== 0 || this.prerelease.length === 0) this.minor++;
|
|
89913
|
+
this.patch = 0;
|
|
89914
|
+
this.prerelease = [];
|
|
89915
|
+
break;
|
|
89916
|
+
case "patch":
|
|
89917
|
+
if (this.prerelease.length === 0) this.patch++;
|
|
89918
|
+
this.prerelease = [];
|
|
89919
|
+
break;
|
|
89920
|
+
case "pre": {
|
|
89921
|
+
const base = Number(identifierBase) ? 1 : 0;
|
|
89922
|
+
if (this.prerelease.length === 0) this.prerelease = [base];
|
|
89923
|
+
else {
|
|
89924
|
+
let i = this.prerelease.length;
|
|
89925
|
+
while (--i >= 0) if (typeof this.prerelease[i] === "number") {
|
|
89926
|
+
this.prerelease[i]++;
|
|
89927
|
+
i = -2;
|
|
89928
|
+
}
|
|
89929
|
+
if (i === -1) {
|
|
89930
|
+
if (identifier === this.prerelease.join(".") && identifierBase === false) throw new Error("invalid increment argument: identifier already exists");
|
|
89931
|
+
this.prerelease.push(base);
|
|
89932
|
+
}
|
|
89933
|
+
}
|
|
89934
|
+
if (identifier) {
|
|
89935
|
+
let prerelease = [identifier, base];
|
|
89936
|
+
if (identifierBase === false) prerelease = [identifier];
|
|
89937
|
+
if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
|
|
89938
|
+
if (isNaN(this.prerelease[1])) this.prerelease = prerelease;
|
|
89939
|
+
} else this.prerelease = prerelease;
|
|
89940
|
+
}
|
|
89941
|
+
break;
|
|
89942
|
+
}
|
|
89943
|
+
default: throw new Error(`invalid increment argument: ${release}`);
|
|
89944
|
+
}
|
|
89945
|
+
this.raw = this.format();
|
|
89946
|
+
if (this.build.length) this.raw += `+${this.build.join(".")}`;
|
|
89947
|
+
return this;
|
|
89948
|
+
}
|
|
89949
|
+
};
|
|
89950
|
+
}));
|
|
89951
|
+
//#endregion
|
|
89952
|
+
//#region ../../node_modules/semver/functions/parse.js
|
|
89953
|
+
var require_parse$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89954
|
+
const SemVer = require_semver$3();
|
|
89955
|
+
const parse = (version, options, throwErrors = false) => {
|
|
89956
|
+
if (version instanceof SemVer) return version;
|
|
89957
|
+
try {
|
|
89958
|
+
return new SemVer(version, options);
|
|
89959
|
+
} catch (er) {
|
|
89960
|
+
if (!throwErrors) return null;
|
|
89961
|
+
throw er;
|
|
89962
|
+
}
|
|
89963
|
+
};
|
|
89964
|
+
module.exports = parse;
|
|
89965
|
+
}));
|
|
89966
|
+
//#endregion
|
|
89967
|
+
//#region ../../node_modules/semver/functions/valid.js
|
|
89968
|
+
var require_valid$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89969
|
+
const parse = require_parse$3();
|
|
89970
|
+
const valid = (version, options) => {
|
|
89971
|
+
const v = parse(version, options);
|
|
89972
|
+
return v ? v.version : null;
|
|
89973
|
+
};
|
|
89974
|
+
module.exports = valid;
|
|
89975
|
+
}));
|
|
89976
|
+
//#endregion
|
|
89977
|
+
//#region ../../node_modules/semver/functions/clean.js
|
|
89978
|
+
var require_clean$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89979
|
+
const parse = require_parse$3();
|
|
89980
|
+
const clean = (version, options) => {
|
|
89981
|
+
const s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
89982
|
+
return s ? s.version : null;
|
|
89983
|
+
};
|
|
89984
|
+
module.exports = clean;
|
|
89985
|
+
}));
|
|
89986
|
+
//#endregion
|
|
89464
89987
|
//#region ../../node_modules/proc-log/lib/index.js
|
|
89465
89988
|
var require_lib$29 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89466
89989
|
module.exports = {
|
|
@@ -94959,7 +95482,7 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
94959
95482
|
}));
|
|
94960
95483
|
//#endregion
|
|
94961
95484
|
//#region ../../node_modules/@npmcli/package-json/node_modules/spdx-expression-parse/parse.js
|
|
94962
|
-
var require_parse$
|
|
95485
|
+
var require_parse$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
94963
95486
|
module.exports = function(tokens) {
|
|
94964
95487
|
var index = 0;
|
|
94965
95488
|
function hasMore() {
|
|
@@ -95050,7 +95573,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
95050
95573
|
//#region ../../node_modules/@npmcli/package-json/node_modules/spdx-expression-parse/index.js
|
|
95051
95574
|
var require_spdx_expression_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
95052
95575
|
var scan = require_scan();
|
|
95053
|
-
var parse = require_parse$
|
|
95576
|
+
var parse = require_parse$2();
|
|
95054
95577
|
module.exports = function(source) {
|
|
95055
95578
|
return parse(scan(source));
|
|
95056
95579
|
};
|
|
@@ -96258,9 +96781,1026 @@ var require_spawn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
96258
96781
|
};
|
|
96259
96782
|
}));
|
|
96260
96783
|
//#endregion
|
|
96784
|
+
//#region ../../node_modules/semver/functions/inc.js
|
|
96785
|
+
var require_inc$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96786
|
+
const SemVer = require_semver$3();
|
|
96787
|
+
const inc = (version, release, options, identifier, identifierBase) => {
|
|
96788
|
+
if (typeof options === "string") {
|
|
96789
|
+
identifierBase = identifier;
|
|
96790
|
+
identifier = options;
|
|
96791
|
+
options = void 0;
|
|
96792
|
+
}
|
|
96793
|
+
try {
|
|
96794
|
+
return new SemVer(version instanceof SemVer ? version.version : version, options).inc(release, identifier, identifierBase).version;
|
|
96795
|
+
} catch (er) {
|
|
96796
|
+
return null;
|
|
96797
|
+
}
|
|
96798
|
+
};
|
|
96799
|
+
module.exports = inc;
|
|
96800
|
+
}));
|
|
96801
|
+
//#endregion
|
|
96802
|
+
//#region ../../node_modules/semver/functions/diff.js
|
|
96803
|
+
var require_diff$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96804
|
+
const parse = require_parse$3();
|
|
96805
|
+
const diff = (version1, version2) => {
|
|
96806
|
+
const v1 = parse(version1, null, true);
|
|
96807
|
+
const v2 = parse(version2, null, true);
|
|
96808
|
+
const comparison = v1.compare(v2);
|
|
96809
|
+
if (comparison === 0) return null;
|
|
96810
|
+
const v1Higher = comparison > 0;
|
|
96811
|
+
const highVersion = v1Higher ? v1 : v2;
|
|
96812
|
+
const lowVersion = v1Higher ? v2 : v1;
|
|
96813
|
+
const highHasPre = !!highVersion.prerelease.length;
|
|
96814
|
+
if (!!lowVersion.prerelease.length && !highHasPre) {
|
|
96815
|
+
if (!lowVersion.patch && !lowVersion.minor) return "major";
|
|
96816
|
+
if (lowVersion.compareMain(highVersion) === 0) {
|
|
96817
|
+
if (lowVersion.minor && !lowVersion.patch) return "minor";
|
|
96818
|
+
return "patch";
|
|
96819
|
+
}
|
|
96820
|
+
}
|
|
96821
|
+
const prefix = highHasPre ? "pre" : "";
|
|
96822
|
+
if (v1.major !== v2.major) return prefix + "major";
|
|
96823
|
+
if (v1.minor !== v2.minor) return prefix + "minor";
|
|
96824
|
+
if (v1.patch !== v2.patch) return prefix + "patch";
|
|
96825
|
+
return "prerelease";
|
|
96826
|
+
};
|
|
96827
|
+
module.exports = diff;
|
|
96828
|
+
}));
|
|
96829
|
+
//#endregion
|
|
96830
|
+
//#region ../../node_modules/semver/functions/major.js
|
|
96831
|
+
var require_major$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96832
|
+
const SemVer = require_semver$3();
|
|
96833
|
+
const major = (a, loose) => new SemVer(a, loose).major;
|
|
96834
|
+
module.exports = major;
|
|
96835
|
+
}));
|
|
96836
|
+
//#endregion
|
|
96837
|
+
//#region ../../node_modules/semver/functions/minor.js
|
|
96838
|
+
var require_minor$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96839
|
+
const SemVer = require_semver$3();
|
|
96840
|
+
const minor = (a, loose) => new SemVer(a, loose).minor;
|
|
96841
|
+
module.exports = minor;
|
|
96842
|
+
}));
|
|
96843
|
+
//#endregion
|
|
96844
|
+
//#region ../../node_modules/semver/functions/patch.js
|
|
96845
|
+
var require_patch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96846
|
+
const SemVer = require_semver$3();
|
|
96847
|
+
const patch = (a, loose) => new SemVer(a, loose).patch;
|
|
96848
|
+
module.exports = patch;
|
|
96849
|
+
}));
|
|
96850
|
+
//#endregion
|
|
96851
|
+
//#region ../../node_modules/semver/functions/prerelease.js
|
|
96852
|
+
var require_prerelease$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96853
|
+
const parse = require_parse$3();
|
|
96854
|
+
const prerelease = (version, options) => {
|
|
96855
|
+
const parsed = parse(version, options);
|
|
96856
|
+
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
96857
|
+
};
|
|
96858
|
+
module.exports = prerelease;
|
|
96859
|
+
}));
|
|
96860
|
+
//#endregion
|
|
96861
|
+
//#region ../../node_modules/semver/functions/compare.js
|
|
96862
|
+
var require_compare$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96863
|
+
const SemVer = require_semver$3();
|
|
96864
|
+
const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
96865
|
+
module.exports = compare;
|
|
96866
|
+
}));
|
|
96867
|
+
//#endregion
|
|
96868
|
+
//#region ../../node_modules/semver/functions/rcompare.js
|
|
96869
|
+
var require_rcompare$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96870
|
+
const compare = require_compare$1();
|
|
96871
|
+
const rcompare = (a, b, loose) => compare(b, a, loose);
|
|
96872
|
+
module.exports = rcompare;
|
|
96873
|
+
}));
|
|
96874
|
+
//#endregion
|
|
96875
|
+
//#region ../../node_modules/semver/functions/compare-loose.js
|
|
96876
|
+
var require_compare_loose$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96877
|
+
const compare = require_compare$1();
|
|
96878
|
+
const compareLoose = (a, b) => compare(a, b, true);
|
|
96879
|
+
module.exports = compareLoose;
|
|
96880
|
+
}));
|
|
96881
|
+
//#endregion
|
|
96882
|
+
//#region ../../node_modules/semver/functions/compare-build.js
|
|
96883
|
+
var require_compare_build$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96884
|
+
const SemVer = require_semver$3();
|
|
96885
|
+
const compareBuild = (a, b, loose) => {
|
|
96886
|
+
const versionA = new SemVer(a, loose);
|
|
96887
|
+
const versionB = new SemVer(b, loose);
|
|
96888
|
+
return versionA.compare(versionB) || versionA.compareBuild(versionB);
|
|
96889
|
+
};
|
|
96890
|
+
module.exports = compareBuild;
|
|
96891
|
+
}));
|
|
96892
|
+
//#endregion
|
|
96893
|
+
//#region ../../node_modules/semver/functions/sort.js
|
|
96894
|
+
var require_sort$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96895
|
+
const compareBuild = require_compare_build$1();
|
|
96896
|
+
const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
96897
|
+
module.exports = sort;
|
|
96898
|
+
}));
|
|
96899
|
+
//#endregion
|
|
96900
|
+
//#region ../../node_modules/semver/functions/rsort.js
|
|
96901
|
+
var require_rsort$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96902
|
+
const compareBuild = require_compare_build$1();
|
|
96903
|
+
const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
96904
|
+
module.exports = rsort;
|
|
96905
|
+
}));
|
|
96906
|
+
//#endregion
|
|
96907
|
+
//#region ../../node_modules/semver/functions/gt.js
|
|
96908
|
+
var require_gt$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96909
|
+
const compare = require_compare$1();
|
|
96910
|
+
const gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
96911
|
+
module.exports = gt;
|
|
96912
|
+
}));
|
|
96913
|
+
//#endregion
|
|
96914
|
+
//#region ../../node_modules/semver/functions/lt.js
|
|
96915
|
+
var require_lt$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96916
|
+
const compare = require_compare$1();
|
|
96917
|
+
const lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
96918
|
+
module.exports = lt;
|
|
96919
|
+
}));
|
|
96920
|
+
//#endregion
|
|
96921
|
+
//#region ../../node_modules/semver/functions/eq.js
|
|
96922
|
+
var require_eq$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96923
|
+
const compare = require_compare$1();
|
|
96924
|
+
const eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
96925
|
+
module.exports = eq;
|
|
96926
|
+
}));
|
|
96927
|
+
//#endregion
|
|
96928
|
+
//#region ../../node_modules/semver/functions/neq.js
|
|
96929
|
+
var require_neq$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96930
|
+
const compare = require_compare$1();
|
|
96931
|
+
const neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
96932
|
+
module.exports = neq;
|
|
96933
|
+
}));
|
|
96934
|
+
//#endregion
|
|
96935
|
+
//#region ../../node_modules/semver/functions/gte.js
|
|
96936
|
+
var require_gte$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96937
|
+
const compare = require_compare$1();
|
|
96938
|
+
const gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
96939
|
+
module.exports = gte;
|
|
96940
|
+
}));
|
|
96941
|
+
//#endregion
|
|
96942
|
+
//#region ../../node_modules/semver/functions/lte.js
|
|
96943
|
+
var require_lte$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96944
|
+
const compare = require_compare$1();
|
|
96945
|
+
const lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
96946
|
+
module.exports = lte;
|
|
96947
|
+
}));
|
|
96948
|
+
//#endregion
|
|
96949
|
+
//#region ../../node_modules/semver/functions/cmp.js
|
|
96950
|
+
var require_cmp$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96951
|
+
const eq = require_eq$1();
|
|
96952
|
+
const neq = require_neq$1();
|
|
96953
|
+
const gt = require_gt$1();
|
|
96954
|
+
const gte = require_gte$1();
|
|
96955
|
+
const lt = require_lt$1();
|
|
96956
|
+
const lte = require_lte$1();
|
|
96957
|
+
const cmp = (a, op, b, loose) => {
|
|
96958
|
+
switch (op) {
|
|
96959
|
+
case "===":
|
|
96960
|
+
if (typeof a === "object") a = a.version;
|
|
96961
|
+
if (typeof b === "object") b = b.version;
|
|
96962
|
+
return a === b;
|
|
96963
|
+
case "!==":
|
|
96964
|
+
if (typeof a === "object") a = a.version;
|
|
96965
|
+
if (typeof b === "object") b = b.version;
|
|
96966
|
+
return a !== b;
|
|
96967
|
+
case "":
|
|
96968
|
+
case "=":
|
|
96969
|
+
case "==": return eq(a, b, loose);
|
|
96970
|
+
case "!=": return neq(a, b, loose);
|
|
96971
|
+
case ">": return gt(a, b, loose);
|
|
96972
|
+
case ">=": return gte(a, b, loose);
|
|
96973
|
+
case "<": return lt(a, b, loose);
|
|
96974
|
+
case "<=": return lte(a, b, loose);
|
|
96975
|
+
default: throw new TypeError(`Invalid operator: ${op}`);
|
|
96976
|
+
}
|
|
96977
|
+
};
|
|
96978
|
+
module.exports = cmp;
|
|
96979
|
+
}));
|
|
96980
|
+
//#endregion
|
|
96981
|
+
//#region ../../node_modules/semver/functions/coerce.js
|
|
96982
|
+
var require_coerce$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96983
|
+
const SemVer = require_semver$3();
|
|
96984
|
+
const parse = require_parse$3();
|
|
96985
|
+
const { safeRe: re, t } = require_re$1();
|
|
96986
|
+
const coerce = (version, options) => {
|
|
96987
|
+
if (version instanceof SemVer) return version;
|
|
96988
|
+
if (typeof version === "number") version = String(version);
|
|
96989
|
+
if (typeof version !== "string") return null;
|
|
96990
|
+
options = options || {};
|
|
96991
|
+
let match = null;
|
|
96992
|
+
if (!options.rtl) match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
|
|
96993
|
+
else {
|
|
96994
|
+
const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL];
|
|
96995
|
+
let next;
|
|
96996
|
+
while ((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)) {
|
|
96997
|
+
if (!match || next.index + next[0].length !== match.index + match[0].length) match = next;
|
|
96998
|
+
coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
|
96999
|
+
}
|
|
97000
|
+
coerceRtlRegex.lastIndex = -1;
|
|
97001
|
+
}
|
|
97002
|
+
if (match === null) return null;
|
|
97003
|
+
const major = match[2];
|
|
97004
|
+
return parse(`${major}.${match[3] || "0"}.${match[4] || "0"}${options.includePrerelease && match[5] ? `-${match[5]}` : ""}${options.includePrerelease && match[6] ? `+${match[6]}` : ""}`, options);
|
|
97005
|
+
};
|
|
97006
|
+
module.exports = coerce;
|
|
97007
|
+
}));
|
|
97008
|
+
//#endregion
|
|
97009
|
+
//#region ../../node_modules/semver/functions/truncate.js
|
|
97010
|
+
var require_truncate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97011
|
+
const parse = require_parse$3();
|
|
97012
|
+
const constants = require_constants$5();
|
|
97013
|
+
const SemVer = require_semver$3();
|
|
97014
|
+
const truncate = (version, truncation, options) => {
|
|
97015
|
+
if (!constants.RELEASE_TYPES.includes(truncation)) return null;
|
|
97016
|
+
const clonedVersion = cloneInputVersion(version, options);
|
|
97017
|
+
return clonedVersion && doTruncation(clonedVersion, truncation);
|
|
97018
|
+
};
|
|
97019
|
+
const cloneInputVersion = (version, options) => {
|
|
97020
|
+
return parse(version instanceof SemVer ? version.version : version, options);
|
|
97021
|
+
};
|
|
97022
|
+
const doTruncation = (version, truncation) => {
|
|
97023
|
+
if (isPrerelease(truncation)) return version.version;
|
|
97024
|
+
version.prerelease = [];
|
|
97025
|
+
switch (truncation) {
|
|
97026
|
+
case "major":
|
|
97027
|
+
version.minor = 0;
|
|
97028
|
+
version.patch = 0;
|
|
97029
|
+
break;
|
|
97030
|
+
case "minor":
|
|
97031
|
+
version.patch = 0;
|
|
97032
|
+
break;
|
|
97033
|
+
}
|
|
97034
|
+
return version.format();
|
|
97035
|
+
};
|
|
97036
|
+
const isPrerelease = (type) => {
|
|
97037
|
+
return type.startsWith("pre");
|
|
97038
|
+
};
|
|
97039
|
+
module.exports = truncate;
|
|
97040
|
+
}));
|
|
97041
|
+
//#endregion
|
|
97042
|
+
//#region ../../node_modules/semver/internal/lrucache.js
|
|
97043
|
+
var require_lrucache$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97044
|
+
var LRUCache = class {
|
|
97045
|
+
constructor() {
|
|
97046
|
+
this.max = 1e3;
|
|
97047
|
+
this.map = /* @__PURE__ */ new Map();
|
|
97048
|
+
}
|
|
97049
|
+
get(key) {
|
|
97050
|
+
const value = this.map.get(key);
|
|
97051
|
+
if (value === void 0) return;
|
|
97052
|
+
else {
|
|
97053
|
+
this.map.delete(key);
|
|
97054
|
+
this.map.set(key, value);
|
|
97055
|
+
return value;
|
|
97056
|
+
}
|
|
97057
|
+
}
|
|
97058
|
+
delete(key) {
|
|
97059
|
+
return this.map.delete(key);
|
|
97060
|
+
}
|
|
97061
|
+
set(key, value) {
|
|
97062
|
+
if (!this.delete(key) && value !== void 0) {
|
|
97063
|
+
if (this.map.size >= this.max) {
|
|
97064
|
+
const firstKey = this.map.keys().next().value;
|
|
97065
|
+
this.delete(firstKey);
|
|
97066
|
+
}
|
|
97067
|
+
this.map.set(key, value);
|
|
97068
|
+
}
|
|
97069
|
+
return this;
|
|
97070
|
+
}
|
|
97071
|
+
};
|
|
97072
|
+
module.exports = LRUCache;
|
|
97073
|
+
}));
|
|
97074
|
+
//#endregion
|
|
97075
|
+
//#region ../../node_modules/semver/classes/range.js
|
|
97076
|
+
var require_range$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97077
|
+
const SPACE_CHARACTERS = /\s+/g;
|
|
97078
|
+
module.exports = class Range {
|
|
97079
|
+
constructor(range, options) {
|
|
97080
|
+
options = parseOptions(options);
|
|
97081
|
+
if (range instanceof Range) if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) return range;
|
|
97082
|
+
else return new Range(range.raw, options);
|
|
97083
|
+
if (range instanceof Comparator) {
|
|
97084
|
+
this.raw = range.value;
|
|
97085
|
+
this.set = [[range]];
|
|
97086
|
+
this.formatted = void 0;
|
|
97087
|
+
return this;
|
|
97088
|
+
}
|
|
97089
|
+
this.options = options;
|
|
97090
|
+
this.loose = !!options.loose;
|
|
97091
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
97092
|
+
this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
|
|
97093
|
+
this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
|
|
97094
|
+
if (!this.set.length) throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
97095
|
+
if (this.set.length > 1) {
|
|
97096
|
+
const first = this.set[0];
|
|
97097
|
+
this.set = this.set.filter((c) => !isNullSet(c[0]));
|
|
97098
|
+
if (this.set.length === 0) this.set = [first];
|
|
97099
|
+
else if (this.set.length > 1) {
|
|
97100
|
+
for (const c of this.set) if (c.length === 1 && isAny(c[0])) {
|
|
97101
|
+
this.set = [c];
|
|
97102
|
+
break;
|
|
97103
|
+
}
|
|
97104
|
+
}
|
|
97105
|
+
}
|
|
97106
|
+
this.formatted = void 0;
|
|
97107
|
+
}
|
|
97108
|
+
get range() {
|
|
97109
|
+
if (this.formatted === void 0) {
|
|
97110
|
+
this.formatted = "";
|
|
97111
|
+
for (let i = 0; i < this.set.length; i++) {
|
|
97112
|
+
if (i > 0) this.formatted += "||";
|
|
97113
|
+
const comps = this.set[i];
|
|
97114
|
+
for (let k = 0; k < comps.length; k++) {
|
|
97115
|
+
if (k > 0) this.formatted += " ";
|
|
97116
|
+
this.formatted += comps[k].toString().trim();
|
|
97117
|
+
}
|
|
97118
|
+
}
|
|
97119
|
+
}
|
|
97120
|
+
return this.formatted;
|
|
97121
|
+
}
|
|
97122
|
+
format() {
|
|
97123
|
+
return this.range;
|
|
97124
|
+
}
|
|
97125
|
+
toString() {
|
|
97126
|
+
return this.range;
|
|
97127
|
+
}
|
|
97128
|
+
parseRange(range) {
|
|
97129
|
+
const memoKey = ((this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE)) + ":" + range;
|
|
97130
|
+
const cached = cache.get(memoKey);
|
|
97131
|
+
if (cached) return cached;
|
|
97132
|
+
const loose = this.options.loose;
|
|
97133
|
+
const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
|
|
97134
|
+
range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
|
|
97135
|
+
debug("hyphen replace", range);
|
|
97136
|
+
range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace);
|
|
97137
|
+
debug("comparator trim", range);
|
|
97138
|
+
range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
|
|
97139
|
+
debug("tilde trim", range);
|
|
97140
|
+
range = range.replace(re[t.CARETTRIM], caretTrimReplace);
|
|
97141
|
+
debug("caret trim", range);
|
|
97142
|
+
let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
|
|
97143
|
+
if (loose) rangeList = rangeList.filter((comp) => {
|
|
97144
|
+
debug("loose invalid filter", comp, this.options);
|
|
97145
|
+
return !!comp.match(re[t.COMPARATORLOOSE]);
|
|
97146
|
+
});
|
|
97147
|
+
debug("range list", rangeList);
|
|
97148
|
+
const rangeMap = /* @__PURE__ */ new Map();
|
|
97149
|
+
const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
|
|
97150
|
+
for (const comp of comparators) {
|
|
97151
|
+
if (isNullSet(comp)) return [comp];
|
|
97152
|
+
rangeMap.set(comp.value, comp);
|
|
97153
|
+
}
|
|
97154
|
+
if (rangeMap.size > 1 && rangeMap.has("")) rangeMap.delete("");
|
|
97155
|
+
const result = [...rangeMap.values()];
|
|
97156
|
+
cache.set(memoKey, result);
|
|
97157
|
+
return result;
|
|
97158
|
+
}
|
|
97159
|
+
intersects(range, options) {
|
|
97160
|
+
if (!(range instanceof Range)) throw new TypeError("a Range is required");
|
|
97161
|
+
return this.set.some((thisComparators) => {
|
|
97162
|
+
return isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => {
|
|
97163
|
+
return isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => {
|
|
97164
|
+
return rangeComparators.every((rangeComparator) => {
|
|
97165
|
+
return thisComparator.intersects(rangeComparator, options);
|
|
97166
|
+
});
|
|
97167
|
+
});
|
|
97168
|
+
});
|
|
97169
|
+
});
|
|
97170
|
+
}
|
|
97171
|
+
test(version) {
|
|
97172
|
+
if (!version) return false;
|
|
97173
|
+
if (typeof version === "string") try {
|
|
97174
|
+
version = new SemVer(version, this.options);
|
|
97175
|
+
} catch (er) {
|
|
97176
|
+
return false;
|
|
97177
|
+
}
|
|
97178
|
+
for (let i = 0; i < this.set.length; i++) if (testSet(this.set[i], version, this.options)) return true;
|
|
97179
|
+
return false;
|
|
97180
|
+
}
|
|
97181
|
+
};
|
|
97182
|
+
const cache = new (require_lrucache$1())();
|
|
97183
|
+
const parseOptions = require_parse_options$1();
|
|
97184
|
+
const Comparator = require_comparator$1();
|
|
97185
|
+
const debug = require_debug$1();
|
|
97186
|
+
const SemVer = require_semver$3();
|
|
97187
|
+
const { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re$1();
|
|
97188
|
+
const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants$5();
|
|
97189
|
+
const isNullSet = (c) => c.value === "<0.0.0-0";
|
|
97190
|
+
const isAny = (c) => c.value === "";
|
|
97191
|
+
const isSatisfiable = (comparators, options) => {
|
|
97192
|
+
let result = true;
|
|
97193
|
+
const remainingComparators = comparators.slice();
|
|
97194
|
+
let testComparator = remainingComparators.pop();
|
|
97195
|
+
while (result && remainingComparators.length) {
|
|
97196
|
+
result = remainingComparators.every((otherComparator) => {
|
|
97197
|
+
return testComparator.intersects(otherComparator, options);
|
|
97198
|
+
});
|
|
97199
|
+
testComparator = remainingComparators.pop();
|
|
97200
|
+
}
|
|
97201
|
+
return result;
|
|
97202
|
+
};
|
|
97203
|
+
const parseComparator = (comp, options) => {
|
|
97204
|
+
comp = comp.replace(re[t.BUILD], "");
|
|
97205
|
+
debug("comp", comp, options);
|
|
97206
|
+
comp = replaceCarets(comp, options);
|
|
97207
|
+
debug("caret", comp);
|
|
97208
|
+
comp = replaceTildes(comp, options);
|
|
97209
|
+
debug("tildes", comp);
|
|
97210
|
+
comp = replaceXRanges(comp, options);
|
|
97211
|
+
debug("xrange", comp);
|
|
97212
|
+
comp = replaceStars(comp, options);
|
|
97213
|
+
debug("stars", comp);
|
|
97214
|
+
return comp;
|
|
97215
|
+
};
|
|
97216
|
+
const isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
|
|
97217
|
+
const replaceTildes = (comp, options) => {
|
|
97218
|
+
return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
|
|
97219
|
+
};
|
|
97220
|
+
const replaceTilde = (comp, options) => {
|
|
97221
|
+
const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
|
|
97222
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
97223
|
+
debug("tilde", comp, _, M, m, p, pr);
|
|
97224
|
+
let ret;
|
|
97225
|
+
if (isX(M)) ret = "";
|
|
97226
|
+
else if (isX(m)) ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
|
|
97227
|
+
else if (isX(p)) ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
|
|
97228
|
+
else if (pr) {
|
|
97229
|
+
debug("replaceTilde pr", pr);
|
|
97230
|
+
ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
97231
|
+
} else ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
|
|
97232
|
+
debug("tilde return", ret);
|
|
97233
|
+
return ret;
|
|
97234
|
+
});
|
|
97235
|
+
};
|
|
97236
|
+
const replaceCarets = (comp, options) => {
|
|
97237
|
+
return comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" ");
|
|
97238
|
+
};
|
|
97239
|
+
const replaceCaret = (comp, options) => {
|
|
97240
|
+
debug("caret", comp, options);
|
|
97241
|
+
const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET];
|
|
97242
|
+
const z = options.includePrerelease ? "-0" : "";
|
|
97243
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
97244
|
+
debug("caret", comp, _, M, m, p, pr);
|
|
97245
|
+
let ret;
|
|
97246
|
+
if (isX(M)) ret = "";
|
|
97247
|
+
else if (isX(m)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
|
|
97248
|
+
else if (isX(p)) if (M === "0") ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
|
|
97249
|
+
else ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
|
|
97250
|
+
else if (pr) {
|
|
97251
|
+
debug("replaceCaret pr", pr);
|
|
97252
|
+
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;
|
|
97253
|
+
else ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
97254
|
+
else ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
|
|
97255
|
+
} else {
|
|
97256
|
+
debug("no pr");
|
|
97257
|
+
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0`;
|
|
97258
|
+
else ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0`;
|
|
97259
|
+
else ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
|
|
97260
|
+
}
|
|
97261
|
+
debug("caret return", ret);
|
|
97262
|
+
return ret;
|
|
97263
|
+
});
|
|
97264
|
+
};
|
|
97265
|
+
const replaceXRanges = (comp, options) => {
|
|
97266
|
+
debug("replaceXRanges", comp, options);
|
|
97267
|
+
return comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ");
|
|
97268
|
+
};
|
|
97269
|
+
const replaceXRange = (comp, options) => {
|
|
97270
|
+
comp = comp.trim();
|
|
97271
|
+
const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
|
|
97272
|
+
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
|
|
97273
|
+
debug("xRange", comp, ret, gtlt, M, m, p, pr);
|
|
97274
|
+
const xM = isX(M);
|
|
97275
|
+
const xm = xM || isX(m);
|
|
97276
|
+
const xp = xm || isX(p);
|
|
97277
|
+
const anyX = xp;
|
|
97278
|
+
if (gtlt === "=" && anyX) gtlt = "";
|
|
97279
|
+
pr = options.includePrerelease ? "-0" : "";
|
|
97280
|
+
if (xM) if (gtlt === ">" || gtlt === "<") ret = "<0.0.0-0";
|
|
97281
|
+
else ret = "*";
|
|
97282
|
+
else if (gtlt && anyX) {
|
|
97283
|
+
if (xm) m = 0;
|
|
97284
|
+
p = 0;
|
|
97285
|
+
if (gtlt === ">") {
|
|
97286
|
+
gtlt = ">=";
|
|
97287
|
+
if (xm) {
|
|
97288
|
+
M = +M + 1;
|
|
97289
|
+
m = 0;
|
|
97290
|
+
p = 0;
|
|
97291
|
+
} else {
|
|
97292
|
+
m = +m + 1;
|
|
97293
|
+
p = 0;
|
|
97294
|
+
}
|
|
97295
|
+
} else if (gtlt === "<=") {
|
|
97296
|
+
gtlt = "<";
|
|
97297
|
+
if (xm) M = +M + 1;
|
|
97298
|
+
else m = +m + 1;
|
|
97299
|
+
}
|
|
97300
|
+
if (gtlt === "<") pr = "-0";
|
|
97301
|
+
ret = `${gtlt + M}.${m}.${p}${pr}`;
|
|
97302
|
+
} else if (xm) ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
|
|
97303
|
+
else if (xp) ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;
|
|
97304
|
+
debug("xRange return", ret);
|
|
97305
|
+
return ret;
|
|
97306
|
+
});
|
|
97307
|
+
};
|
|
97308
|
+
const replaceStars = (comp, options) => {
|
|
97309
|
+
debug("replaceStars", comp, options);
|
|
97310
|
+
return comp.trim().replace(re[t.STAR], "");
|
|
97311
|
+
};
|
|
97312
|
+
const replaceGTE0 = (comp, options) => {
|
|
97313
|
+
debug("replaceGTE0", comp, options);
|
|
97314
|
+
return comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
|
|
97315
|
+
};
|
|
97316
|
+
const hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
|
|
97317
|
+
if (isX(fM)) from = "";
|
|
97318
|
+
else if (isX(fm)) from = `>=${fM}.0.0${incPr ? "-0" : ""}`;
|
|
97319
|
+
else if (isX(fp)) from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}`;
|
|
97320
|
+
else if (fpr) from = `>=${from}`;
|
|
97321
|
+
else from = `>=${from}${incPr ? "-0" : ""}`;
|
|
97322
|
+
if (isX(tM)) to = "";
|
|
97323
|
+
else if (isX(tm)) to = `<${+tM + 1}.0.0-0`;
|
|
97324
|
+
else if (isX(tp)) to = `<${tM}.${+tm + 1}.0-0`;
|
|
97325
|
+
else if (tpr) to = `<=${tM}.${tm}.${tp}-${tpr}`;
|
|
97326
|
+
else if (incPr) to = `<${tM}.${tm}.${+tp + 1}-0`;
|
|
97327
|
+
else to = `<=${to}`;
|
|
97328
|
+
return `${from} ${to}`.trim();
|
|
97329
|
+
};
|
|
97330
|
+
const testSet = (set, version, options) => {
|
|
97331
|
+
for (let i = 0; i < set.length; i++) if (!set[i].test(version)) return false;
|
|
97332
|
+
if (version.prerelease.length && !options.includePrerelease) {
|
|
97333
|
+
for (let i = 0; i < set.length; i++) {
|
|
97334
|
+
debug(set[i].semver);
|
|
97335
|
+
if (set[i].semver === Comparator.ANY) continue;
|
|
97336
|
+
if (set[i].semver.prerelease.length > 0) {
|
|
97337
|
+
const allowed = set[i].semver;
|
|
97338
|
+
if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) return true;
|
|
97339
|
+
}
|
|
97340
|
+
}
|
|
97341
|
+
return false;
|
|
97342
|
+
}
|
|
97343
|
+
return true;
|
|
97344
|
+
};
|
|
97345
|
+
}));
|
|
97346
|
+
//#endregion
|
|
97347
|
+
//#region ../../node_modules/semver/classes/comparator.js
|
|
97348
|
+
var require_comparator$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97349
|
+
const ANY = Symbol("SemVer ANY");
|
|
97350
|
+
module.exports = class Comparator {
|
|
97351
|
+
static get ANY() {
|
|
97352
|
+
return ANY;
|
|
97353
|
+
}
|
|
97354
|
+
constructor(comp, options) {
|
|
97355
|
+
options = parseOptions(options);
|
|
97356
|
+
if (comp instanceof Comparator) if (comp.loose === !!options.loose) return comp;
|
|
97357
|
+
else comp = comp.value;
|
|
97358
|
+
comp = comp.trim().split(/\s+/).join(" ");
|
|
97359
|
+
debug("comparator", comp, options);
|
|
97360
|
+
this.options = options;
|
|
97361
|
+
this.loose = !!options.loose;
|
|
97362
|
+
this.parse(comp);
|
|
97363
|
+
if (this.semver === ANY) this.value = "";
|
|
97364
|
+
else this.value = this.operator + this.semver.version;
|
|
97365
|
+
debug("comp", this);
|
|
97366
|
+
}
|
|
97367
|
+
parse(comp) {
|
|
97368
|
+
const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR];
|
|
97369
|
+
const m = comp.match(r);
|
|
97370
|
+
if (!m) throw new TypeError(`Invalid comparator: ${comp}`);
|
|
97371
|
+
this.operator = m[1] !== void 0 ? m[1] : "";
|
|
97372
|
+
if (this.operator === "=") this.operator = "";
|
|
97373
|
+
if (!m[2]) this.semver = ANY;
|
|
97374
|
+
else this.semver = new SemVer(m[2], this.options.loose);
|
|
97375
|
+
}
|
|
97376
|
+
toString() {
|
|
97377
|
+
return this.value;
|
|
97378
|
+
}
|
|
97379
|
+
test(version) {
|
|
97380
|
+
debug("Comparator.test", version, this.options.loose);
|
|
97381
|
+
if (this.semver === ANY || version === ANY) return true;
|
|
97382
|
+
if (typeof version === "string") try {
|
|
97383
|
+
version = new SemVer(version, this.options);
|
|
97384
|
+
} catch (er) {
|
|
97385
|
+
return false;
|
|
97386
|
+
}
|
|
97387
|
+
return cmp(version, this.operator, this.semver, this.options);
|
|
97388
|
+
}
|
|
97389
|
+
intersects(comp, options) {
|
|
97390
|
+
if (!(comp instanceof Comparator)) throw new TypeError("a Comparator is required");
|
|
97391
|
+
if (this.operator === "") {
|
|
97392
|
+
if (this.value === "") return true;
|
|
97393
|
+
return new Range(comp.value, options).test(this.value);
|
|
97394
|
+
} else if (comp.operator === "") {
|
|
97395
|
+
if (comp.value === "") return true;
|
|
97396
|
+
return new Range(this.value, options).test(comp.semver);
|
|
97397
|
+
}
|
|
97398
|
+
options = parseOptions(options);
|
|
97399
|
+
if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) return false;
|
|
97400
|
+
if (!options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0"))) return false;
|
|
97401
|
+
if (this.operator.startsWith(">") && comp.operator.startsWith(">")) return true;
|
|
97402
|
+
if (this.operator.startsWith("<") && comp.operator.startsWith("<")) return true;
|
|
97403
|
+
if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) return true;
|
|
97404
|
+
if (cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) return true;
|
|
97405
|
+
if (cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) return true;
|
|
97406
|
+
return false;
|
|
97407
|
+
}
|
|
97408
|
+
};
|
|
97409
|
+
const parseOptions = require_parse_options$1();
|
|
97410
|
+
const { safeRe: re, t } = require_re$1();
|
|
97411
|
+
const cmp = require_cmp$1();
|
|
97412
|
+
const debug = require_debug$1();
|
|
97413
|
+
const SemVer = require_semver$3();
|
|
97414
|
+
const Range = require_range$1();
|
|
97415
|
+
}));
|
|
97416
|
+
//#endregion
|
|
97417
|
+
//#region ../../node_modules/semver/functions/satisfies.js
|
|
97418
|
+
var require_satisfies$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97419
|
+
const Range = require_range$1();
|
|
97420
|
+
const satisfies = (version, range, options) => {
|
|
97421
|
+
try {
|
|
97422
|
+
range = new Range(range, options);
|
|
97423
|
+
} catch (er) {
|
|
97424
|
+
return false;
|
|
97425
|
+
}
|
|
97426
|
+
return range.test(version);
|
|
97427
|
+
};
|
|
97428
|
+
module.exports = satisfies;
|
|
97429
|
+
}));
|
|
97430
|
+
//#endregion
|
|
97431
|
+
//#region ../../node_modules/semver/ranges/to-comparators.js
|
|
97432
|
+
var require_to_comparators$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97433
|
+
const Range = require_range$1();
|
|
97434
|
+
const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
97435
|
+
module.exports = toComparators;
|
|
97436
|
+
}));
|
|
97437
|
+
//#endregion
|
|
97438
|
+
//#region ../../node_modules/semver/ranges/max-satisfying.js
|
|
97439
|
+
var require_max_satisfying$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97440
|
+
const SemVer = require_semver$3();
|
|
97441
|
+
const Range = require_range$1();
|
|
97442
|
+
const maxSatisfying = (versions, range, options) => {
|
|
97443
|
+
let max = null;
|
|
97444
|
+
let maxSV = null;
|
|
97445
|
+
let rangeObj = null;
|
|
97446
|
+
try {
|
|
97447
|
+
rangeObj = new Range(range, options);
|
|
97448
|
+
} catch (er) {
|
|
97449
|
+
return null;
|
|
97450
|
+
}
|
|
97451
|
+
versions.forEach((v) => {
|
|
97452
|
+
if (rangeObj.test(v)) {
|
|
97453
|
+
if (!max || maxSV.compare(v) === -1) {
|
|
97454
|
+
max = v;
|
|
97455
|
+
maxSV = new SemVer(max, options);
|
|
97456
|
+
}
|
|
97457
|
+
}
|
|
97458
|
+
});
|
|
97459
|
+
return max;
|
|
97460
|
+
};
|
|
97461
|
+
module.exports = maxSatisfying;
|
|
97462
|
+
}));
|
|
97463
|
+
//#endregion
|
|
97464
|
+
//#region ../../node_modules/semver/ranges/min-satisfying.js
|
|
97465
|
+
var require_min_satisfying$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97466
|
+
const SemVer = require_semver$3();
|
|
97467
|
+
const Range = require_range$1();
|
|
97468
|
+
const minSatisfying = (versions, range, options) => {
|
|
97469
|
+
let min = null;
|
|
97470
|
+
let minSV = null;
|
|
97471
|
+
let rangeObj = null;
|
|
97472
|
+
try {
|
|
97473
|
+
rangeObj = new Range(range, options);
|
|
97474
|
+
} catch (er) {
|
|
97475
|
+
return null;
|
|
97476
|
+
}
|
|
97477
|
+
versions.forEach((v) => {
|
|
97478
|
+
if (rangeObj.test(v)) {
|
|
97479
|
+
if (!min || minSV.compare(v) === 1) {
|
|
97480
|
+
min = v;
|
|
97481
|
+
minSV = new SemVer(min, options);
|
|
97482
|
+
}
|
|
97483
|
+
}
|
|
97484
|
+
});
|
|
97485
|
+
return min;
|
|
97486
|
+
};
|
|
97487
|
+
module.exports = minSatisfying;
|
|
97488
|
+
}));
|
|
97489
|
+
//#endregion
|
|
97490
|
+
//#region ../../node_modules/semver/ranges/min-version.js
|
|
97491
|
+
var require_min_version$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97492
|
+
const SemVer = require_semver$3();
|
|
97493
|
+
const Range = require_range$1();
|
|
97494
|
+
const gt = require_gt$1();
|
|
97495
|
+
const minVersion = (range, loose) => {
|
|
97496
|
+
range = new Range(range, loose);
|
|
97497
|
+
let minver = new SemVer("0.0.0");
|
|
97498
|
+
if (range.test(minver)) return minver;
|
|
97499
|
+
minver = new SemVer("0.0.0-0");
|
|
97500
|
+
if (range.test(minver)) return minver;
|
|
97501
|
+
minver = null;
|
|
97502
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
97503
|
+
const comparators = range.set[i];
|
|
97504
|
+
let setMin = null;
|
|
97505
|
+
comparators.forEach((comparator) => {
|
|
97506
|
+
const compver = new SemVer(comparator.semver.version);
|
|
97507
|
+
switch (comparator.operator) {
|
|
97508
|
+
case ">":
|
|
97509
|
+
if (compver.prerelease.length === 0) compver.patch++;
|
|
97510
|
+
else compver.prerelease.push(0);
|
|
97511
|
+
compver.raw = compver.format();
|
|
97512
|
+
case "":
|
|
97513
|
+
case ">=":
|
|
97514
|
+
if (!setMin || gt(compver, setMin)) setMin = compver;
|
|
97515
|
+
break;
|
|
97516
|
+
case "<":
|
|
97517
|
+
case "<=": break;
|
|
97518
|
+
default: throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
97519
|
+
}
|
|
97520
|
+
});
|
|
97521
|
+
if (setMin && (!minver || gt(minver, setMin))) minver = setMin;
|
|
97522
|
+
}
|
|
97523
|
+
if (minver && range.test(minver)) return minver;
|
|
97524
|
+
return null;
|
|
97525
|
+
};
|
|
97526
|
+
module.exports = minVersion;
|
|
97527
|
+
}));
|
|
97528
|
+
//#endregion
|
|
97529
|
+
//#region ../../node_modules/semver/ranges/valid.js
|
|
97530
|
+
var require_valid$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97531
|
+
const Range = require_range$1();
|
|
97532
|
+
const validRange = (range, options) => {
|
|
97533
|
+
try {
|
|
97534
|
+
return new Range(range, options).range || "*";
|
|
97535
|
+
} catch (er) {
|
|
97536
|
+
return null;
|
|
97537
|
+
}
|
|
97538
|
+
};
|
|
97539
|
+
module.exports = validRange;
|
|
97540
|
+
}));
|
|
97541
|
+
//#endregion
|
|
97542
|
+
//#region ../../node_modules/semver/ranges/outside.js
|
|
97543
|
+
var require_outside$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97544
|
+
const SemVer = require_semver$3();
|
|
97545
|
+
const Comparator = require_comparator$1();
|
|
97546
|
+
const { ANY } = Comparator;
|
|
97547
|
+
const Range = require_range$1();
|
|
97548
|
+
const satisfies = require_satisfies$1();
|
|
97549
|
+
const gt = require_gt$1();
|
|
97550
|
+
const lt = require_lt$1();
|
|
97551
|
+
const lte = require_lte$1();
|
|
97552
|
+
const gte = require_gte$1();
|
|
97553
|
+
const outside = (version, range, hilo, options) => {
|
|
97554
|
+
version = new SemVer(version, options);
|
|
97555
|
+
range = new Range(range, options);
|
|
97556
|
+
let gtfn, ltefn, ltfn, comp, ecomp;
|
|
97557
|
+
switch (hilo) {
|
|
97558
|
+
case ">":
|
|
97559
|
+
gtfn = gt;
|
|
97560
|
+
ltefn = lte;
|
|
97561
|
+
ltfn = lt;
|
|
97562
|
+
comp = ">";
|
|
97563
|
+
ecomp = ">=";
|
|
97564
|
+
break;
|
|
97565
|
+
case "<":
|
|
97566
|
+
gtfn = lt;
|
|
97567
|
+
ltefn = gte;
|
|
97568
|
+
ltfn = gt;
|
|
97569
|
+
comp = "<";
|
|
97570
|
+
ecomp = "<=";
|
|
97571
|
+
break;
|
|
97572
|
+
default: throw new TypeError("Must provide a hilo val of \"<\" or \">\"");
|
|
97573
|
+
}
|
|
97574
|
+
if (satisfies(version, range, options)) return false;
|
|
97575
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
97576
|
+
const comparators = range.set[i];
|
|
97577
|
+
let high = null;
|
|
97578
|
+
let low = null;
|
|
97579
|
+
comparators.forEach((comparator) => {
|
|
97580
|
+
if (comparator.semver === ANY) comparator = new Comparator(">=0.0.0");
|
|
97581
|
+
high = high || comparator;
|
|
97582
|
+
low = low || comparator;
|
|
97583
|
+
if (gtfn(comparator.semver, high.semver, options)) high = comparator;
|
|
97584
|
+
else if (ltfn(comparator.semver, low.semver, options)) low = comparator;
|
|
97585
|
+
});
|
|
97586
|
+
if (high.operator === comp || high.operator === ecomp) return false;
|
|
97587
|
+
if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) return false;
|
|
97588
|
+
else if (low.operator === ecomp && ltfn(version, low.semver)) return false;
|
|
97589
|
+
}
|
|
97590
|
+
return true;
|
|
97591
|
+
};
|
|
97592
|
+
module.exports = outside;
|
|
97593
|
+
}));
|
|
97594
|
+
//#endregion
|
|
97595
|
+
//#region ../../node_modules/semver/ranges/gtr.js
|
|
97596
|
+
var require_gtr$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97597
|
+
const outside = require_outside$1();
|
|
97598
|
+
const gtr = (version, range, options) => outside(version, range, ">", options);
|
|
97599
|
+
module.exports = gtr;
|
|
97600
|
+
}));
|
|
97601
|
+
//#endregion
|
|
97602
|
+
//#region ../../node_modules/semver/ranges/ltr.js
|
|
97603
|
+
var require_ltr$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97604
|
+
const outside = require_outside$1();
|
|
97605
|
+
const ltr = (version, range, options) => outside(version, range, "<", options);
|
|
97606
|
+
module.exports = ltr;
|
|
97607
|
+
}));
|
|
97608
|
+
//#endregion
|
|
97609
|
+
//#region ../../node_modules/semver/ranges/intersects.js
|
|
97610
|
+
var require_intersects$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97611
|
+
const Range = require_range$1();
|
|
97612
|
+
const intersects = (r1, r2, options) => {
|
|
97613
|
+
r1 = new Range(r1, options);
|
|
97614
|
+
r2 = new Range(r2, options);
|
|
97615
|
+
return r1.intersects(r2, options);
|
|
97616
|
+
};
|
|
97617
|
+
module.exports = intersects;
|
|
97618
|
+
}));
|
|
97619
|
+
//#endregion
|
|
97620
|
+
//#region ../../node_modules/semver/ranges/simplify.js
|
|
97621
|
+
var require_simplify$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97622
|
+
const satisfies = require_satisfies$1();
|
|
97623
|
+
const compare = require_compare$1();
|
|
97624
|
+
module.exports = (versions, range, options) => {
|
|
97625
|
+
const set = [];
|
|
97626
|
+
let first = null;
|
|
97627
|
+
let prev = null;
|
|
97628
|
+
const v = versions.sort((a, b) => compare(a, b, options));
|
|
97629
|
+
for (const version of v) if (satisfies(version, range, options)) {
|
|
97630
|
+
prev = version;
|
|
97631
|
+
if (!first) first = version;
|
|
97632
|
+
} else {
|
|
97633
|
+
if (prev) set.push([first, prev]);
|
|
97634
|
+
prev = null;
|
|
97635
|
+
first = null;
|
|
97636
|
+
}
|
|
97637
|
+
if (first) set.push([first, null]);
|
|
97638
|
+
const ranges = [];
|
|
97639
|
+
for (const [min, max] of set) if (min === max) ranges.push(min);
|
|
97640
|
+
else if (!max && min === v[0]) ranges.push("*");
|
|
97641
|
+
else if (!max) ranges.push(`>=${min}`);
|
|
97642
|
+
else if (min === v[0]) ranges.push(`<=${max}`);
|
|
97643
|
+
else ranges.push(`${min} - ${max}`);
|
|
97644
|
+
const simplified = ranges.join(" || ");
|
|
97645
|
+
const original = typeof range.raw === "string" ? range.raw : String(range);
|
|
97646
|
+
return simplified.length < original.length ? simplified : range;
|
|
97647
|
+
};
|
|
97648
|
+
}));
|
|
97649
|
+
//#endregion
|
|
97650
|
+
//#region ../../node_modules/semver/ranges/subset.js
|
|
97651
|
+
var require_subset$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97652
|
+
const Range = require_range$1();
|
|
97653
|
+
const Comparator = require_comparator$1();
|
|
97654
|
+
const { ANY } = Comparator;
|
|
97655
|
+
const satisfies = require_satisfies$1();
|
|
97656
|
+
const compare = require_compare$1();
|
|
97657
|
+
const subset = (sub, dom, options = {}) => {
|
|
97658
|
+
if (sub === dom) return true;
|
|
97659
|
+
sub = new Range(sub, options);
|
|
97660
|
+
dom = new Range(dom, options);
|
|
97661
|
+
let sawNonNull = false;
|
|
97662
|
+
OUTER: for (const simpleSub of sub.set) {
|
|
97663
|
+
for (const simpleDom of dom.set) {
|
|
97664
|
+
const isSub = simpleSubset(simpleSub, simpleDom, options);
|
|
97665
|
+
sawNonNull = sawNonNull || isSub !== null;
|
|
97666
|
+
if (isSub) continue OUTER;
|
|
97667
|
+
}
|
|
97668
|
+
if (sawNonNull) return false;
|
|
97669
|
+
}
|
|
97670
|
+
return true;
|
|
97671
|
+
};
|
|
97672
|
+
const minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")];
|
|
97673
|
+
const minimumVersion = [new Comparator(">=0.0.0")];
|
|
97674
|
+
const simpleSubset = (sub, dom, options) => {
|
|
97675
|
+
if (sub === dom) return true;
|
|
97676
|
+
if (sub.length === 1 && sub[0].semver === ANY) if (dom.length === 1 && dom[0].semver === ANY) return true;
|
|
97677
|
+
else if (options.includePrerelease) sub = minimumVersionWithPreRelease;
|
|
97678
|
+
else sub = minimumVersion;
|
|
97679
|
+
if (dom.length === 1 && dom[0].semver === ANY) if (options.includePrerelease) return true;
|
|
97680
|
+
else dom = minimumVersion;
|
|
97681
|
+
const eqSet = /* @__PURE__ */ new Set();
|
|
97682
|
+
let gt, lt;
|
|
97683
|
+
for (const c of sub) if (c.operator === ">" || c.operator === ">=") gt = higherGT(gt, c, options);
|
|
97684
|
+
else if (c.operator === "<" || c.operator === "<=") lt = lowerLT(lt, c, options);
|
|
97685
|
+
else eqSet.add(c.semver);
|
|
97686
|
+
if (eqSet.size > 1) return null;
|
|
97687
|
+
let gtltComp;
|
|
97688
|
+
if (gt && lt) {
|
|
97689
|
+
gtltComp = compare(gt.semver, lt.semver, options);
|
|
97690
|
+
if (gtltComp > 0) return null;
|
|
97691
|
+
else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) return null;
|
|
97692
|
+
}
|
|
97693
|
+
for (const eq of eqSet) {
|
|
97694
|
+
if (gt && !satisfies(eq, String(gt), options)) return null;
|
|
97695
|
+
if (lt && !satisfies(eq, String(lt), options)) return null;
|
|
97696
|
+
for (const c of dom) if (!satisfies(eq, String(c), options)) return false;
|
|
97697
|
+
return true;
|
|
97698
|
+
}
|
|
97699
|
+
let higher, lower;
|
|
97700
|
+
let hasDomLT, hasDomGT;
|
|
97701
|
+
let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;
|
|
97702
|
+
let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;
|
|
97703
|
+
if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0) needDomLTPre = false;
|
|
97704
|
+
for (const c of dom) {
|
|
97705
|
+
hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=";
|
|
97706
|
+
hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=";
|
|
97707
|
+
if (gt) {
|
|
97708
|
+
if (needDomGTPre) {
|
|
97709
|
+
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;
|
|
97710
|
+
}
|
|
97711
|
+
if (c.operator === ">" || c.operator === ">=") {
|
|
97712
|
+
higher = higherGT(gt, c, options);
|
|
97713
|
+
if (higher === c && higher !== gt) return false;
|
|
97714
|
+
} else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options)) return false;
|
|
97715
|
+
}
|
|
97716
|
+
if (lt) {
|
|
97717
|
+
if (needDomLTPre) {
|
|
97718
|
+
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;
|
|
97719
|
+
}
|
|
97720
|
+
if (c.operator === "<" || c.operator === "<=") {
|
|
97721
|
+
lower = lowerLT(lt, c, options);
|
|
97722
|
+
if (lower === c && lower !== lt) return false;
|
|
97723
|
+
} else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options)) return false;
|
|
97724
|
+
}
|
|
97725
|
+
if (!c.operator && (lt || gt) && gtltComp !== 0) return false;
|
|
97726
|
+
}
|
|
97727
|
+
if (gt && hasDomLT && !lt && gtltComp !== 0) return false;
|
|
97728
|
+
if (lt && hasDomGT && !gt && gtltComp !== 0) return false;
|
|
97729
|
+
if (needDomGTPre || needDomLTPre) return false;
|
|
97730
|
+
return true;
|
|
97731
|
+
};
|
|
97732
|
+
const higherGT = (a, b, options) => {
|
|
97733
|
+
if (!a) return b;
|
|
97734
|
+
const comp = compare(a.semver, b.semver, options);
|
|
97735
|
+
return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
|
|
97736
|
+
};
|
|
97737
|
+
const lowerLT = (a, b, options) => {
|
|
97738
|
+
if (!a) return b;
|
|
97739
|
+
const comp = compare(a.semver, b.semver, options);
|
|
97740
|
+
return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
|
|
97741
|
+
};
|
|
97742
|
+
module.exports = subset;
|
|
97743
|
+
}));
|
|
97744
|
+
//#endregion
|
|
97745
|
+
//#region ../../node_modules/semver/index.js
|
|
97746
|
+
var require_semver$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97747
|
+
const internalRe = require_re$1();
|
|
97748
|
+
const constants = require_constants$5();
|
|
97749
|
+
const SemVer = require_semver$3();
|
|
97750
|
+
const identifiers = require_identifiers$1();
|
|
97751
|
+
module.exports = {
|
|
97752
|
+
parse: require_parse$3(),
|
|
97753
|
+
valid: require_valid$3(),
|
|
97754
|
+
clean: require_clean$1(),
|
|
97755
|
+
inc: require_inc$1(),
|
|
97756
|
+
diff: require_diff$1(),
|
|
97757
|
+
major: require_major$1(),
|
|
97758
|
+
minor: require_minor$1(),
|
|
97759
|
+
patch: require_patch$1(),
|
|
97760
|
+
prerelease: require_prerelease$1(),
|
|
97761
|
+
compare: require_compare$1(),
|
|
97762
|
+
rcompare: require_rcompare$1(),
|
|
97763
|
+
compareLoose: require_compare_loose$1(),
|
|
97764
|
+
compareBuild: require_compare_build$1(),
|
|
97765
|
+
sort: require_sort$2(),
|
|
97766
|
+
rsort: require_rsort$1(),
|
|
97767
|
+
gt: require_gt$1(),
|
|
97768
|
+
lt: require_lt$1(),
|
|
97769
|
+
eq: require_eq$1(),
|
|
97770
|
+
neq: require_neq$1(),
|
|
97771
|
+
gte: require_gte$1(),
|
|
97772
|
+
lte: require_lte$1(),
|
|
97773
|
+
cmp: require_cmp$1(),
|
|
97774
|
+
coerce: require_coerce$1(),
|
|
97775
|
+
truncate: require_truncate(),
|
|
97776
|
+
Comparator: require_comparator$1(),
|
|
97777
|
+
Range: require_range$1(),
|
|
97778
|
+
satisfies: require_satisfies$1(),
|
|
97779
|
+
toComparators: require_to_comparators$1(),
|
|
97780
|
+
maxSatisfying: require_max_satisfying$1(),
|
|
97781
|
+
minSatisfying: require_min_satisfying$1(),
|
|
97782
|
+
minVersion: require_min_version$1(),
|
|
97783
|
+
validRange: require_valid$2(),
|
|
97784
|
+
outside: require_outside$1(),
|
|
97785
|
+
gtr: require_gtr$1(),
|
|
97786
|
+
ltr: require_ltr$1(),
|
|
97787
|
+
intersects: require_intersects$1(),
|
|
97788
|
+
simplifyRange: require_simplify$1(),
|
|
97789
|
+
subset: require_subset$1(),
|
|
97790
|
+
SemVer,
|
|
97791
|
+
re: internalRe.re,
|
|
97792
|
+
src: internalRe.src,
|
|
97793
|
+
tokens: internalRe.t,
|
|
97794
|
+
SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
|
|
97795
|
+
RELEASE_TYPES: constants.RELEASE_TYPES,
|
|
97796
|
+
compareIdentifiers: identifiers.compareIdentifiers,
|
|
97797
|
+
rcompareIdentifiers: identifiers.rcompareIdentifiers
|
|
97798
|
+
};
|
|
97799
|
+
}));
|
|
97800
|
+
//#endregion
|
|
96261
97801
|
//#region ../../node_modules/@npmcli/git/lib/lines-to-revs.js
|
|
96262
97802
|
var require_lines_to_revs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96263
|
-
const semver = require_semver();
|
|
97803
|
+
const semver = require_semver$2();
|
|
96264
97804
|
module.exports = (lines) => finish(lines.reduce(linesToRevsReducer, {
|
|
96265
97805
|
versions: {},
|
|
96266
97806
|
"dist-tags": {},
|
|
@@ -96527,7 +98067,7 @@ var require_npa = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
96527
98067
|
const path$17 = isWindows ? __require("node:path/win32") : __require("node:path");
|
|
96528
98068
|
const { homedir: homedir$2 } = __require("node:os");
|
|
96529
98069
|
const HostedGit = require_lib$28();
|
|
96530
|
-
const semver = require_semver();
|
|
98070
|
+
const semver = require_semver$2();
|
|
96531
98071
|
const validatePackageName = require_lib$23();
|
|
96532
98072
|
const { log } = require_lib$29();
|
|
96533
98073
|
const hasSlashes = isWindows ? /\\|[/]/ : /[/]/;
|
|
@@ -96900,8 +98440,8 @@ var require_current_env = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
96900
98440
|
//#endregion
|
|
96901
98441
|
//#region ../../node_modules/npm-install-checks/lib/dev-engines.js
|
|
96902
98442
|
var require_dev_engines = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96903
|
-
const satisfies = require_satisfies();
|
|
96904
|
-
const validRange = require_valid();
|
|
98443
|
+
const satisfies = require_satisfies$1();
|
|
98444
|
+
const validRange = require_valid$2();
|
|
96905
98445
|
const recognizedOnFail = [
|
|
96906
98446
|
"ignore",
|
|
96907
98447
|
"warn",
|
|
@@ -96981,7 +98521,7 @@ var require_dev_engines = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
96981
98521
|
//#endregion
|
|
96982
98522
|
//#region ../../node_modules/npm-install-checks/lib/index.js
|
|
96983
98523
|
var require_lib$22 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96984
|
-
const semver = require_semver();
|
|
98524
|
+
const semver = require_semver$2();
|
|
96985
98525
|
const currentEnv = require_current_env();
|
|
96986
98526
|
const { checkDevEngines } = require_dev_engines();
|
|
96987
98527
|
const checkEngine = (target, npmVer, nodeVer, force = false) => {
|
|
@@ -97090,7 +98630,7 @@ var require_lib$21 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
97090
98630
|
//#region ../../node_modules/npm-pick-manifest/lib/index.js
|
|
97091
98631
|
var require_lib$20 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97092
98632
|
const npa = require_npa();
|
|
97093
|
-
const semver = require_semver();
|
|
98633
|
+
const semver = require_semver$2();
|
|
97094
98634
|
const { checkEngine } = require_lib$22();
|
|
97095
98635
|
const normalizeBin = require_lib$21();
|
|
97096
98636
|
const engineOk = (manifest, npmVersion, nodeVersion) => {
|
|
@@ -97384,8 +98924,8 @@ var require_lib$19 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
97384
98924
|
//#endregion
|
|
97385
98925
|
//#region ../../node_modules/@npmcli/package-json/lib/normalize.js
|
|
97386
98926
|
var require_normalize = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97387
|
-
const valid = require_valid$
|
|
97388
|
-
const clean = require_clean();
|
|
98927
|
+
const valid = require_valid$3();
|
|
98928
|
+
const clean = require_clean$1();
|
|
97389
98929
|
const fs$13 = __require("node:fs/promises");
|
|
97390
98930
|
const path$15 = __require("node:path");
|
|
97391
98931
|
const { log } = require_lib$29();
|
|
@@ -97816,7 +99356,7 @@ var require_read_package = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
97816
99356
|
}));
|
|
97817
99357
|
//#endregion
|
|
97818
99358
|
//#region ../../node_modules/@npmcli/package-json/lib/sort.js
|
|
97819
|
-
var require_sort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
99359
|
+
var require_sort$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97820
99360
|
/**
|
|
97821
99361
|
* arbitrary sort order for package.json largely pulled from:
|
|
97822
99362
|
* https://github.com/keithamus/sort-package-json/blob/main/defaultRules.md
|
|
@@ -97884,7 +99424,7 @@ var require_lib$18 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
97884
99424
|
const updateWorkspaces = require_update_workspaces();
|
|
97885
99425
|
const { normalize, syncNormalize } = require_normalize();
|
|
97886
99426
|
const { read, parse } = require_read_package();
|
|
97887
|
-
const { packageSort } = require_sort();
|
|
99427
|
+
const { packageSort } = require_sort$1();
|
|
97888
99428
|
const knownSteps = new Set([
|
|
97889
99429
|
updateDeps,
|
|
97890
99430
|
updateScripts,
|
|
@@ -99030,7 +100570,7 @@ var require_get_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
99030
100570
|
//#endregion
|
|
99031
100571
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/common/node.js
|
|
99032
100572
|
var require_node$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
99033
|
-
const semver = require_semver();
|
|
100573
|
+
const semver = require_semver$2();
|
|
99034
100574
|
const satisfies = (range) => {
|
|
99035
100575
|
return semver.satisfies(process.version, range, { includePrerelease: true });
|
|
99036
100576
|
};
|
|
@@ -111564,7 +113104,7 @@ var require_errors$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
111564
113104
|
}));
|
|
111565
113105
|
//#endregion
|
|
111566
113106
|
//#region ../../node_modules/minizlib/dist/commonjs/constants.js
|
|
111567
|
-
var require_constants$
|
|
113107
|
+
var require_constants$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
111568
113108
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
111569
113109
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
111570
113110
|
};
|
|
@@ -111735,8 +113275,8 @@ var require_commonjs$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
111735
113275
|
const buffer_1$1 = __require("buffer");
|
|
111736
113276
|
const minipass_1 = require_commonjs$10();
|
|
111737
113277
|
const realZlib = __importStar(__require("zlib"));
|
|
111738
|
-
const constants_js_1 = require_constants$
|
|
111739
|
-
var constants_js_2 = require_constants$
|
|
113278
|
+
const constants_js_1 = require_constants$4();
|
|
113279
|
+
var constants_js_2 = require_constants$4();
|
|
111740
113280
|
Object.defineProperty(exports, "constants", {
|
|
111741
113281
|
enumerable: true,
|
|
111742
113282
|
get: function() {
|
|
@@ -126378,7 +127918,7 @@ var require_smartbuffer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
126378
127918
|
}));
|
|
126379
127919
|
//#endregion
|
|
126380
127920
|
//#region ../../node_modules/socks/build/common/constants.js
|
|
126381
|
-
var require_constants$
|
|
127921
|
+
var require_constants$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
126382
127922
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
126383
127923
|
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;
|
|
126384
127924
|
exports.DEFAULT_TIMEOUT = 3e4;
|
|
@@ -126544,7 +128084,7 @@ var require_common = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
126544
128084
|
}));
|
|
126545
128085
|
//#endregion
|
|
126546
128086
|
//#region ../../node_modules/ip-address/dist/v4/constants.js
|
|
126547
|
-
var require_constants$
|
|
128087
|
+
var require_constants$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
126548
128088
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
126549
128089
|
exports.RE_SUBNET_STRING = exports.RE_ADDRESS = exports.GROUPS = exports.BITS = void 0;
|
|
126550
128090
|
exports.BITS = 32;
|
|
@@ -126603,7 +128143,7 @@ var require_ipv4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
126603
128143
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
126604
128144
|
exports.Address4 = void 0;
|
|
126605
128145
|
const common = __importStar(require_common());
|
|
126606
|
-
const constants = __importStar(require_constants$
|
|
128146
|
+
const constants = __importStar(require_constants$2());
|
|
126607
128147
|
const address_error_1 = require_address_error();
|
|
126608
128148
|
exports.Address4 = class Address4 {
|
|
126609
128149
|
constructor(address) {
|
|
@@ -126897,7 +128437,7 @@ var require_ipv4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
126897
128437
|
}));
|
|
126898
128438
|
//#endregion
|
|
126899
128439
|
//#region ../../node_modules/ip-address/dist/v6/constants.js
|
|
126900
|
-
var require_constants = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
128440
|
+
var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
126901
128441
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
126902
128442
|
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;
|
|
126903
128443
|
exports.BITS = 128;
|
|
@@ -127053,7 +128593,7 @@ var require_regular_expressions = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
127053
128593
|
exports.padGroup = padGroup;
|
|
127054
128594
|
exports.simpleRegularExpression = simpleRegularExpression;
|
|
127055
128595
|
exports.possibleElisions = possibleElisions;
|
|
127056
|
-
const v6 = __importStar(require_constants());
|
|
128596
|
+
const v6 = __importStar(require_constants$1());
|
|
127057
128597
|
function groupPossibilities(possibilities) {
|
|
127058
128598
|
return `(${possibilities.join("|")})`;
|
|
127059
128599
|
}
|
|
@@ -127128,8 +128668,8 @@ var require_ipv6 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
127128
128668
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
127129
128669
|
exports.Address6 = void 0;
|
|
127130
128670
|
const common = __importStar(require_common());
|
|
127131
|
-
const constants4 = __importStar(require_constants$
|
|
127132
|
-
const constants6 = __importStar(require_constants());
|
|
128671
|
+
const constants4 = __importStar(require_constants$2());
|
|
128672
|
+
const constants6 = __importStar(require_constants$1());
|
|
127133
128673
|
const helpers = __importStar(require_helpers$1());
|
|
127134
128674
|
const ipv4_1 = require_ipv4();
|
|
127135
128675
|
const regular_expressions_1 = require_regular_expressions();
|
|
@@ -127949,7 +129489,7 @@ var require_helpers = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
127949
129489
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
127950
129490
|
exports.ipToBuffer = exports.int32ToIpv4 = exports.ipv4ToInt32 = exports.validateSocksClientChainOptions = exports.validateSocksClientOptions = void 0;
|
|
127951
129491
|
const util_1 = require_util$1();
|
|
127952
|
-
const constants_1 = require_constants$
|
|
129492
|
+
const constants_1 = require_constants$3();
|
|
127953
129493
|
const stream = __require("stream");
|
|
127954
129494
|
const ip_address_1 = require_ip_address();
|
|
127955
129495
|
const net$3 = __require("net");
|
|
@@ -128114,7 +129654,7 @@ var require_socksclient = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
128114
129654
|
const events_1 = __require("events");
|
|
128115
129655
|
const net$2 = __require("net");
|
|
128116
129656
|
const smart_buffer_1 = require_smartbuffer();
|
|
128117
|
-
const constants_1 = require_constants$
|
|
129657
|
+
const constants_1 = require_constants$3();
|
|
128118
129658
|
const helpers_1 = require_helpers();
|
|
128119
129659
|
const receivebuffer_1 = require_receivebuffer();
|
|
128120
129660
|
const util_1 = require_util$1();
|
|
@@ -132363,7 +133903,7 @@ var require_length = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
132363
133903
|
}));
|
|
132364
133904
|
//#endregion
|
|
132365
133905
|
//#region ../../node_modules/@sigstore/core/dist/asn1/parse.js
|
|
132366
|
-
var require_parse = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
133906
|
+
var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
132367
133907
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
132368
133908
|
exports.parseInteger = parseInteger;
|
|
132369
133909
|
exports.parseStringASCII = parseStringASCII;
|
|
@@ -132509,7 +134049,7 @@ var require_obj = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
132509
134049
|
const stream_1 = require_stream();
|
|
132510
134050
|
const error_1 = require_error$8();
|
|
132511
134051
|
const length_1 = require_length();
|
|
132512
|
-
const parse_1 = require_parse();
|
|
134052
|
+
const parse_1 = require_parse$1();
|
|
132513
134053
|
const tag_1 = require_tag();
|
|
132514
134054
|
var ASN1Obj = class {
|
|
132515
134055
|
tag;
|
|
@@ -140825,6 +142365,1343 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
140825
142365
|
};
|
|
140826
142366
|
}));
|
|
140827
142367
|
//#endregion
|
|
142368
|
+
//#region ../../packages/core-node/node_modules/semver/internal/constants.js
|
|
142369
|
+
var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142370
|
+
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
142371
|
+
const MAX_LENGTH = 256;
|
|
142372
|
+
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
142373
|
+
module.exports = {
|
|
142374
|
+
MAX_LENGTH,
|
|
142375
|
+
MAX_SAFE_COMPONENT_LENGTH: 16,
|
|
142376
|
+
MAX_SAFE_BUILD_LENGTH: MAX_LENGTH - 6,
|
|
142377
|
+
MAX_SAFE_INTEGER,
|
|
142378
|
+
RELEASE_TYPES: [
|
|
142379
|
+
"major",
|
|
142380
|
+
"premajor",
|
|
142381
|
+
"minor",
|
|
142382
|
+
"preminor",
|
|
142383
|
+
"patch",
|
|
142384
|
+
"prepatch",
|
|
142385
|
+
"prerelease"
|
|
142386
|
+
],
|
|
142387
|
+
SEMVER_SPEC_VERSION,
|
|
142388
|
+
FLAG_INCLUDE_PRERELEASE: 1,
|
|
142389
|
+
FLAG_LOOSE: 2
|
|
142390
|
+
};
|
|
142391
|
+
}));
|
|
142392
|
+
//#endregion
|
|
142393
|
+
//#region ../../packages/core-node/node_modules/semver/internal/debug.js
|
|
142394
|
+
var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142395
|
+
module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
142396
|
+
}));
|
|
142397
|
+
//#endregion
|
|
142398
|
+
//#region ../../packages/core-node/node_modules/semver/internal/re.js
|
|
142399
|
+
var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142400
|
+
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
|
|
142401
|
+
const debug = require_debug();
|
|
142402
|
+
exports = module.exports = {};
|
|
142403
|
+
const re = exports.re = [];
|
|
142404
|
+
const safeRe = exports.safeRe = [];
|
|
142405
|
+
const src = exports.src = [];
|
|
142406
|
+
const safeSrc = exports.safeSrc = [];
|
|
142407
|
+
const t = exports.t = {};
|
|
142408
|
+
let R = 0;
|
|
142409
|
+
const LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
142410
|
+
const safeRegexReplacements = [
|
|
142411
|
+
["\\s", 1],
|
|
142412
|
+
["\\d", MAX_LENGTH],
|
|
142413
|
+
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
|
|
142414
|
+
];
|
|
142415
|
+
const makeSafeRegex = (value) => {
|
|
142416
|
+
for (const [token, max] of safeRegexReplacements) value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
|
|
142417
|
+
return value;
|
|
142418
|
+
};
|
|
142419
|
+
const createToken = (name, value, isGlobal) => {
|
|
142420
|
+
const safe = makeSafeRegex(value);
|
|
142421
|
+
const index = R++;
|
|
142422
|
+
debug(name, index, value);
|
|
142423
|
+
t[name] = index;
|
|
142424
|
+
src[index] = value;
|
|
142425
|
+
safeSrc[index] = safe;
|
|
142426
|
+
re[index] = new RegExp(value, isGlobal ? "g" : void 0);
|
|
142427
|
+
safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
142428
|
+
};
|
|
142429
|
+
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
142430
|
+
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
142431
|
+
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
142432
|
+
createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
|
|
142433
|
+
createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
142434
|
+
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
|
|
142435
|
+
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
142436
|
+
createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
142437
|
+
createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
142438
|
+
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
142439
|
+
createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
|
|
142440
|
+
createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
|
|
142441
|
+
createToken("FULL", `^${src[t.FULLPLAIN]}$`);
|
|
142442
|
+
createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
|
|
142443
|
+
createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
|
|
142444
|
+
createToken("GTLT", "((?:<|>)?=?)");
|
|
142445
|
+
createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
|
142446
|
+
createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
|
|
142447
|
+
createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
|
|
142448
|
+
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
|
|
142449
|
+
createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
|
|
142450
|
+
createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
|
|
142451
|
+
createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
|
142452
|
+
createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
142453
|
+
createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
|
|
142454
|
+
createToken("COERCERTL", src[t.COERCE], true);
|
|
142455
|
+
createToken("COERCERTLFULL", src[t.COERCEFULL], true);
|
|
142456
|
+
createToken("LONETILDE", "(?:~>?)");
|
|
142457
|
+
createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
|
|
142458
|
+
exports.tildeTrimReplace = "$1~";
|
|
142459
|
+
createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
|
|
142460
|
+
createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
142461
|
+
createToken("LONECARET", "(?:\\^)");
|
|
142462
|
+
createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
|
|
142463
|
+
exports.caretTrimReplace = "$1^";
|
|
142464
|
+
createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
|
|
142465
|
+
createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
142466
|
+
createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
|
|
142467
|
+
createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
|
|
142468
|
+
createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
|
|
142469
|
+
exports.comparatorTrimReplace = "$1$2$3";
|
|
142470
|
+
createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
|
|
142471
|
+
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
|
|
142472
|
+
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
142473
|
+
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
142474
|
+
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
142475
|
+
}));
|
|
142476
|
+
//#endregion
|
|
142477
|
+
//#region ../../packages/core-node/node_modules/semver/internal/parse-options.js
|
|
142478
|
+
var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142479
|
+
const looseOption = Object.freeze({ loose: true });
|
|
142480
|
+
const emptyOpts = Object.freeze({});
|
|
142481
|
+
const parseOptions = (options) => {
|
|
142482
|
+
if (!options) return emptyOpts;
|
|
142483
|
+
if (typeof options !== "object") return looseOption;
|
|
142484
|
+
return options;
|
|
142485
|
+
};
|
|
142486
|
+
module.exports = parseOptions;
|
|
142487
|
+
}));
|
|
142488
|
+
//#endregion
|
|
142489
|
+
//#region ../../packages/core-node/node_modules/semver/internal/identifiers.js
|
|
142490
|
+
var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142491
|
+
const numeric = /^[0-9]+$/;
|
|
142492
|
+
const compareIdentifiers = (a, b) => {
|
|
142493
|
+
if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
|
|
142494
|
+
const anum = numeric.test(a);
|
|
142495
|
+
const bnum = numeric.test(b);
|
|
142496
|
+
if (anum && bnum) {
|
|
142497
|
+
a = +a;
|
|
142498
|
+
b = +b;
|
|
142499
|
+
}
|
|
142500
|
+
return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
|
|
142501
|
+
};
|
|
142502
|
+
const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
|
|
142503
|
+
module.exports = {
|
|
142504
|
+
compareIdentifiers,
|
|
142505
|
+
rcompareIdentifiers
|
|
142506
|
+
};
|
|
142507
|
+
}));
|
|
142508
|
+
//#endregion
|
|
142509
|
+
//#region ../../packages/core-node/node_modules/semver/classes/semver.js
|
|
142510
|
+
var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142511
|
+
const debug = require_debug();
|
|
142512
|
+
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
142513
|
+
const { safeRe: re, t } = require_re();
|
|
142514
|
+
const parseOptions = require_parse_options();
|
|
142515
|
+
const { compareIdentifiers } = require_identifiers();
|
|
142516
|
+
module.exports = class SemVer {
|
|
142517
|
+
constructor(version, options) {
|
|
142518
|
+
options = parseOptions(options);
|
|
142519
|
+
if (version instanceof SemVer) if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) return version;
|
|
142520
|
+
else version = version.version;
|
|
142521
|
+
else if (typeof version !== "string") throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
142522
|
+
if (version.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
|
|
142523
|
+
debug("SemVer", version, options);
|
|
142524
|
+
this.options = options;
|
|
142525
|
+
this.loose = !!options.loose;
|
|
142526
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
142527
|
+
const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
|
|
142528
|
+
if (!m) throw new TypeError(`Invalid Version: ${version}`);
|
|
142529
|
+
this.raw = version;
|
|
142530
|
+
this.major = +m[1];
|
|
142531
|
+
this.minor = +m[2];
|
|
142532
|
+
this.patch = +m[3];
|
|
142533
|
+
if (this.major > MAX_SAFE_INTEGER || this.major < 0) throw new TypeError("Invalid major version");
|
|
142534
|
+
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError("Invalid minor version");
|
|
142535
|
+
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError("Invalid patch version");
|
|
142536
|
+
if (!m[4]) this.prerelease = [];
|
|
142537
|
+
else this.prerelease = m[4].split(".").map((id) => {
|
|
142538
|
+
if (/^[0-9]+$/.test(id)) {
|
|
142539
|
+
const num = +id;
|
|
142540
|
+
if (num >= 0 && num < MAX_SAFE_INTEGER) return num;
|
|
142541
|
+
}
|
|
142542
|
+
return id;
|
|
142543
|
+
});
|
|
142544
|
+
this.build = m[5] ? m[5].split(".") : [];
|
|
142545
|
+
this.format();
|
|
142546
|
+
}
|
|
142547
|
+
format() {
|
|
142548
|
+
this.version = `${this.major}.${this.minor}.${this.patch}`;
|
|
142549
|
+
if (this.prerelease.length) this.version += `-${this.prerelease.join(".")}`;
|
|
142550
|
+
return this.version;
|
|
142551
|
+
}
|
|
142552
|
+
toString() {
|
|
142553
|
+
return this.version;
|
|
142554
|
+
}
|
|
142555
|
+
compare(other) {
|
|
142556
|
+
debug("SemVer.compare", this.version, this.options, other);
|
|
142557
|
+
if (!(other instanceof SemVer)) {
|
|
142558
|
+
if (typeof other === "string" && other === this.version) return 0;
|
|
142559
|
+
other = new SemVer(other, this.options);
|
|
142560
|
+
}
|
|
142561
|
+
if (other.version === this.version) return 0;
|
|
142562
|
+
return this.compareMain(other) || this.comparePre(other);
|
|
142563
|
+
}
|
|
142564
|
+
compareMain(other) {
|
|
142565
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
142566
|
+
if (this.major < other.major) return -1;
|
|
142567
|
+
if (this.major > other.major) return 1;
|
|
142568
|
+
if (this.minor < other.minor) return -1;
|
|
142569
|
+
if (this.minor > other.minor) return 1;
|
|
142570
|
+
if (this.patch < other.patch) return -1;
|
|
142571
|
+
if (this.patch > other.patch) return 1;
|
|
142572
|
+
return 0;
|
|
142573
|
+
}
|
|
142574
|
+
comparePre(other) {
|
|
142575
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
142576
|
+
if (this.prerelease.length && !other.prerelease.length) return -1;
|
|
142577
|
+
else if (!this.prerelease.length && other.prerelease.length) return 1;
|
|
142578
|
+
else if (!this.prerelease.length && !other.prerelease.length) return 0;
|
|
142579
|
+
let i = 0;
|
|
142580
|
+
do {
|
|
142581
|
+
const a = this.prerelease[i];
|
|
142582
|
+
const b = other.prerelease[i];
|
|
142583
|
+
debug("prerelease compare", i, a, b);
|
|
142584
|
+
if (a === void 0 && b === void 0) return 0;
|
|
142585
|
+
else if (b === void 0) return 1;
|
|
142586
|
+
else if (a === void 0) return -1;
|
|
142587
|
+
else if (a === b) continue;
|
|
142588
|
+
else return compareIdentifiers(a, b);
|
|
142589
|
+
} while (++i);
|
|
142590
|
+
}
|
|
142591
|
+
compareBuild(other) {
|
|
142592
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
142593
|
+
let i = 0;
|
|
142594
|
+
do {
|
|
142595
|
+
const a = this.build[i];
|
|
142596
|
+
const b = other.build[i];
|
|
142597
|
+
debug("build compare", i, a, b);
|
|
142598
|
+
if (a === void 0 && b === void 0) return 0;
|
|
142599
|
+
else if (b === void 0) return 1;
|
|
142600
|
+
else if (a === void 0) return -1;
|
|
142601
|
+
else if (a === b) continue;
|
|
142602
|
+
else return compareIdentifiers(a, b);
|
|
142603
|
+
} while (++i);
|
|
142604
|
+
}
|
|
142605
|
+
inc(release, identifier, identifierBase) {
|
|
142606
|
+
if (release.startsWith("pre")) {
|
|
142607
|
+
if (!identifier && identifierBase === false) throw new Error("invalid increment argument: identifier is empty");
|
|
142608
|
+
if (identifier) {
|
|
142609
|
+
const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
|
|
142610
|
+
if (!match || match[1] !== identifier) throw new Error(`invalid identifier: ${identifier}`);
|
|
142611
|
+
}
|
|
142612
|
+
}
|
|
142613
|
+
switch (release) {
|
|
142614
|
+
case "premajor":
|
|
142615
|
+
this.prerelease.length = 0;
|
|
142616
|
+
this.patch = 0;
|
|
142617
|
+
this.minor = 0;
|
|
142618
|
+
this.major++;
|
|
142619
|
+
this.inc("pre", identifier, identifierBase);
|
|
142620
|
+
break;
|
|
142621
|
+
case "preminor":
|
|
142622
|
+
this.prerelease.length = 0;
|
|
142623
|
+
this.patch = 0;
|
|
142624
|
+
this.minor++;
|
|
142625
|
+
this.inc("pre", identifier, identifierBase);
|
|
142626
|
+
break;
|
|
142627
|
+
case "prepatch":
|
|
142628
|
+
this.prerelease.length = 0;
|
|
142629
|
+
this.inc("patch", identifier, identifierBase);
|
|
142630
|
+
this.inc("pre", identifier, identifierBase);
|
|
142631
|
+
break;
|
|
142632
|
+
case "prerelease":
|
|
142633
|
+
if (this.prerelease.length === 0) this.inc("patch", identifier, identifierBase);
|
|
142634
|
+
this.inc("pre", identifier, identifierBase);
|
|
142635
|
+
break;
|
|
142636
|
+
case "release":
|
|
142637
|
+
if (this.prerelease.length === 0) throw new Error(`version ${this.raw} is not a prerelease`);
|
|
142638
|
+
this.prerelease.length = 0;
|
|
142639
|
+
break;
|
|
142640
|
+
case "major":
|
|
142641
|
+
if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) this.major++;
|
|
142642
|
+
this.minor = 0;
|
|
142643
|
+
this.patch = 0;
|
|
142644
|
+
this.prerelease = [];
|
|
142645
|
+
break;
|
|
142646
|
+
case "minor":
|
|
142647
|
+
if (this.patch !== 0 || this.prerelease.length === 0) this.minor++;
|
|
142648
|
+
this.patch = 0;
|
|
142649
|
+
this.prerelease = [];
|
|
142650
|
+
break;
|
|
142651
|
+
case "patch":
|
|
142652
|
+
if (this.prerelease.length === 0) this.patch++;
|
|
142653
|
+
this.prerelease = [];
|
|
142654
|
+
break;
|
|
142655
|
+
case "pre": {
|
|
142656
|
+
const base = Number(identifierBase) ? 1 : 0;
|
|
142657
|
+
if (this.prerelease.length === 0) this.prerelease = [base];
|
|
142658
|
+
else {
|
|
142659
|
+
let i = this.prerelease.length;
|
|
142660
|
+
while (--i >= 0) if (typeof this.prerelease[i] === "number") {
|
|
142661
|
+
this.prerelease[i]++;
|
|
142662
|
+
i = -2;
|
|
142663
|
+
}
|
|
142664
|
+
if (i === -1) {
|
|
142665
|
+
if (identifier === this.prerelease.join(".") && identifierBase === false) throw new Error("invalid increment argument: identifier already exists");
|
|
142666
|
+
this.prerelease.push(base);
|
|
142667
|
+
}
|
|
142668
|
+
}
|
|
142669
|
+
if (identifier) {
|
|
142670
|
+
let prerelease = [identifier, base];
|
|
142671
|
+
if (identifierBase === false) prerelease = [identifier];
|
|
142672
|
+
if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
|
|
142673
|
+
if (isNaN(this.prerelease[1])) this.prerelease = prerelease;
|
|
142674
|
+
} else this.prerelease = prerelease;
|
|
142675
|
+
}
|
|
142676
|
+
break;
|
|
142677
|
+
}
|
|
142678
|
+
default: throw new Error(`invalid increment argument: ${release}`);
|
|
142679
|
+
}
|
|
142680
|
+
this.raw = this.format();
|
|
142681
|
+
if (this.build.length) this.raw += `+${this.build.join(".")}`;
|
|
142682
|
+
return this;
|
|
142683
|
+
}
|
|
142684
|
+
};
|
|
142685
|
+
}));
|
|
142686
|
+
//#endregion
|
|
142687
|
+
//#region ../../packages/core-node/node_modules/semver/functions/parse.js
|
|
142688
|
+
var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142689
|
+
const SemVer = require_semver$1();
|
|
142690
|
+
const parse = (version, options, throwErrors = false) => {
|
|
142691
|
+
if (version instanceof SemVer) return version;
|
|
142692
|
+
try {
|
|
142693
|
+
return new SemVer(version, options);
|
|
142694
|
+
} catch (er) {
|
|
142695
|
+
if (!throwErrors) return null;
|
|
142696
|
+
throw er;
|
|
142697
|
+
}
|
|
142698
|
+
};
|
|
142699
|
+
module.exports = parse;
|
|
142700
|
+
}));
|
|
142701
|
+
//#endregion
|
|
142702
|
+
//#region ../../packages/core-node/node_modules/semver/functions/valid.js
|
|
142703
|
+
var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142704
|
+
const parse = require_parse();
|
|
142705
|
+
const valid = (version, options) => {
|
|
142706
|
+
const v = parse(version, options);
|
|
142707
|
+
return v ? v.version : null;
|
|
142708
|
+
};
|
|
142709
|
+
module.exports = valid;
|
|
142710
|
+
}));
|
|
142711
|
+
//#endregion
|
|
142712
|
+
//#region ../../packages/core-node/node_modules/semver/functions/clean.js
|
|
142713
|
+
var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142714
|
+
const parse = require_parse();
|
|
142715
|
+
const clean = (version, options) => {
|
|
142716
|
+
const s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
142717
|
+
return s ? s.version : null;
|
|
142718
|
+
};
|
|
142719
|
+
module.exports = clean;
|
|
142720
|
+
}));
|
|
142721
|
+
//#endregion
|
|
142722
|
+
//#region ../../packages/core-node/node_modules/semver/functions/inc.js
|
|
142723
|
+
var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142724
|
+
const SemVer = require_semver$1();
|
|
142725
|
+
const inc = (version, release, options, identifier, identifierBase) => {
|
|
142726
|
+
if (typeof options === "string") {
|
|
142727
|
+
identifierBase = identifier;
|
|
142728
|
+
identifier = options;
|
|
142729
|
+
options = void 0;
|
|
142730
|
+
}
|
|
142731
|
+
try {
|
|
142732
|
+
return new SemVer(version instanceof SemVer ? version.version : version, options).inc(release, identifier, identifierBase).version;
|
|
142733
|
+
} catch (er) {
|
|
142734
|
+
return null;
|
|
142735
|
+
}
|
|
142736
|
+
};
|
|
142737
|
+
module.exports = inc;
|
|
142738
|
+
}));
|
|
142739
|
+
//#endregion
|
|
142740
|
+
//#region ../../packages/core-node/node_modules/semver/functions/diff.js
|
|
142741
|
+
var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142742
|
+
const parse = require_parse();
|
|
142743
|
+
const diff = (version1, version2) => {
|
|
142744
|
+
const v1 = parse(version1, null, true);
|
|
142745
|
+
const v2 = parse(version2, null, true);
|
|
142746
|
+
const comparison = v1.compare(v2);
|
|
142747
|
+
if (comparison === 0) return null;
|
|
142748
|
+
const v1Higher = comparison > 0;
|
|
142749
|
+
const highVersion = v1Higher ? v1 : v2;
|
|
142750
|
+
const lowVersion = v1Higher ? v2 : v1;
|
|
142751
|
+
const highHasPre = !!highVersion.prerelease.length;
|
|
142752
|
+
if (!!lowVersion.prerelease.length && !highHasPre) {
|
|
142753
|
+
if (!lowVersion.patch && !lowVersion.minor) return "major";
|
|
142754
|
+
if (lowVersion.compareMain(highVersion) === 0) {
|
|
142755
|
+
if (lowVersion.minor && !lowVersion.patch) return "minor";
|
|
142756
|
+
return "patch";
|
|
142757
|
+
}
|
|
142758
|
+
}
|
|
142759
|
+
const prefix = highHasPre ? "pre" : "";
|
|
142760
|
+
if (v1.major !== v2.major) return prefix + "major";
|
|
142761
|
+
if (v1.minor !== v2.minor) return prefix + "minor";
|
|
142762
|
+
if (v1.patch !== v2.patch) return prefix + "patch";
|
|
142763
|
+
return "prerelease";
|
|
142764
|
+
};
|
|
142765
|
+
module.exports = diff;
|
|
142766
|
+
}));
|
|
142767
|
+
//#endregion
|
|
142768
|
+
//#region ../../packages/core-node/node_modules/semver/functions/major.js
|
|
142769
|
+
var require_major = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142770
|
+
const SemVer = require_semver$1();
|
|
142771
|
+
const major = (a, loose) => new SemVer(a, loose).major;
|
|
142772
|
+
module.exports = major;
|
|
142773
|
+
}));
|
|
142774
|
+
//#endregion
|
|
142775
|
+
//#region ../../packages/core-node/node_modules/semver/functions/minor.js
|
|
142776
|
+
var require_minor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142777
|
+
const SemVer = require_semver$1();
|
|
142778
|
+
const minor = (a, loose) => new SemVer(a, loose).minor;
|
|
142779
|
+
module.exports = minor;
|
|
142780
|
+
}));
|
|
142781
|
+
//#endregion
|
|
142782
|
+
//#region ../../packages/core-node/node_modules/semver/functions/patch.js
|
|
142783
|
+
var require_patch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142784
|
+
const SemVer = require_semver$1();
|
|
142785
|
+
const patch = (a, loose) => new SemVer(a, loose).patch;
|
|
142786
|
+
module.exports = patch;
|
|
142787
|
+
}));
|
|
142788
|
+
//#endregion
|
|
142789
|
+
//#region ../../packages/core-node/node_modules/semver/functions/prerelease.js
|
|
142790
|
+
var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142791
|
+
const parse = require_parse();
|
|
142792
|
+
const prerelease = (version, options) => {
|
|
142793
|
+
const parsed = parse(version, options);
|
|
142794
|
+
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
142795
|
+
};
|
|
142796
|
+
module.exports = prerelease;
|
|
142797
|
+
}));
|
|
142798
|
+
//#endregion
|
|
142799
|
+
//#region ../../packages/core-node/node_modules/semver/functions/compare.js
|
|
142800
|
+
var require_compare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142801
|
+
const SemVer = require_semver$1();
|
|
142802
|
+
const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
142803
|
+
module.exports = compare;
|
|
142804
|
+
}));
|
|
142805
|
+
//#endregion
|
|
142806
|
+
//#region ../../packages/core-node/node_modules/semver/functions/rcompare.js
|
|
142807
|
+
var require_rcompare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142808
|
+
const compare = require_compare();
|
|
142809
|
+
const rcompare = (a, b, loose) => compare(b, a, loose);
|
|
142810
|
+
module.exports = rcompare;
|
|
142811
|
+
}));
|
|
142812
|
+
//#endregion
|
|
142813
|
+
//#region ../../packages/core-node/node_modules/semver/functions/compare-loose.js
|
|
142814
|
+
var require_compare_loose = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142815
|
+
const compare = require_compare();
|
|
142816
|
+
const compareLoose = (a, b) => compare(a, b, true);
|
|
142817
|
+
module.exports = compareLoose;
|
|
142818
|
+
}));
|
|
142819
|
+
//#endregion
|
|
142820
|
+
//#region ../../packages/core-node/node_modules/semver/functions/compare-build.js
|
|
142821
|
+
var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142822
|
+
const SemVer = require_semver$1();
|
|
142823
|
+
const compareBuild = (a, b, loose) => {
|
|
142824
|
+
const versionA = new SemVer(a, loose);
|
|
142825
|
+
const versionB = new SemVer(b, loose);
|
|
142826
|
+
return versionA.compare(versionB) || versionA.compareBuild(versionB);
|
|
142827
|
+
};
|
|
142828
|
+
module.exports = compareBuild;
|
|
142829
|
+
}));
|
|
142830
|
+
//#endregion
|
|
142831
|
+
//#region ../../packages/core-node/node_modules/semver/functions/sort.js
|
|
142832
|
+
var require_sort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142833
|
+
const compareBuild = require_compare_build();
|
|
142834
|
+
const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
142835
|
+
module.exports = sort;
|
|
142836
|
+
}));
|
|
142837
|
+
//#endregion
|
|
142838
|
+
//#region ../../packages/core-node/node_modules/semver/functions/rsort.js
|
|
142839
|
+
var require_rsort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142840
|
+
const compareBuild = require_compare_build();
|
|
142841
|
+
const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
142842
|
+
module.exports = rsort;
|
|
142843
|
+
}));
|
|
142844
|
+
//#endregion
|
|
142845
|
+
//#region ../../packages/core-node/node_modules/semver/functions/gt.js
|
|
142846
|
+
var require_gt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142847
|
+
const compare = require_compare();
|
|
142848
|
+
const gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
142849
|
+
module.exports = gt;
|
|
142850
|
+
}));
|
|
142851
|
+
//#endregion
|
|
142852
|
+
//#region ../../packages/core-node/node_modules/semver/functions/lt.js
|
|
142853
|
+
var require_lt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142854
|
+
const compare = require_compare();
|
|
142855
|
+
const lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
142856
|
+
module.exports = lt;
|
|
142857
|
+
}));
|
|
142858
|
+
//#endregion
|
|
142859
|
+
//#region ../../packages/core-node/node_modules/semver/functions/eq.js
|
|
142860
|
+
var require_eq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142861
|
+
const compare = require_compare();
|
|
142862
|
+
const eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
142863
|
+
module.exports = eq;
|
|
142864
|
+
}));
|
|
142865
|
+
//#endregion
|
|
142866
|
+
//#region ../../packages/core-node/node_modules/semver/functions/neq.js
|
|
142867
|
+
var require_neq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142868
|
+
const compare = require_compare();
|
|
142869
|
+
const neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
142870
|
+
module.exports = neq;
|
|
142871
|
+
}));
|
|
142872
|
+
//#endregion
|
|
142873
|
+
//#region ../../packages/core-node/node_modules/semver/functions/gte.js
|
|
142874
|
+
var require_gte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142875
|
+
const compare = require_compare();
|
|
142876
|
+
const gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
142877
|
+
module.exports = gte;
|
|
142878
|
+
}));
|
|
142879
|
+
//#endregion
|
|
142880
|
+
//#region ../../packages/core-node/node_modules/semver/functions/lte.js
|
|
142881
|
+
var require_lte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142882
|
+
const compare = require_compare();
|
|
142883
|
+
const lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
142884
|
+
module.exports = lte;
|
|
142885
|
+
}));
|
|
142886
|
+
//#endregion
|
|
142887
|
+
//#region ../../packages/core-node/node_modules/semver/functions/cmp.js
|
|
142888
|
+
var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142889
|
+
const eq = require_eq();
|
|
142890
|
+
const neq = require_neq();
|
|
142891
|
+
const gt = require_gt();
|
|
142892
|
+
const gte = require_gte();
|
|
142893
|
+
const lt = require_lt();
|
|
142894
|
+
const lte = require_lte();
|
|
142895
|
+
const cmp = (a, op, b, loose) => {
|
|
142896
|
+
switch (op) {
|
|
142897
|
+
case "===":
|
|
142898
|
+
if (typeof a === "object") a = a.version;
|
|
142899
|
+
if (typeof b === "object") b = b.version;
|
|
142900
|
+
return a === b;
|
|
142901
|
+
case "!==":
|
|
142902
|
+
if (typeof a === "object") a = a.version;
|
|
142903
|
+
if (typeof b === "object") b = b.version;
|
|
142904
|
+
return a !== b;
|
|
142905
|
+
case "":
|
|
142906
|
+
case "=":
|
|
142907
|
+
case "==": return eq(a, b, loose);
|
|
142908
|
+
case "!=": return neq(a, b, loose);
|
|
142909
|
+
case ">": return gt(a, b, loose);
|
|
142910
|
+
case ">=": return gte(a, b, loose);
|
|
142911
|
+
case "<": return lt(a, b, loose);
|
|
142912
|
+
case "<=": return lte(a, b, loose);
|
|
142913
|
+
default: throw new TypeError(`Invalid operator: ${op}`);
|
|
142914
|
+
}
|
|
142915
|
+
};
|
|
142916
|
+
module.exports = cmp;
|
|
142917
|
+
}));
|
|
142918
|
+
//#endregion
|
|
142919
|
+
//#region ../../packages/core-node/node_modules/semver/functions/coerce.js
|
|
142920
|
+
var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142921
|
+
const SemVer = require_semver$1();
|
|
142922
|
+
const parse = require_parse();
|
|
142923
|
+
const { safeRe: re, t } = require_re();
|
|
142924
|
+
const coerce = (version, options) => {
|
|
142925
|
+
if (version instanceof SemVer) return version;
|
|
142926
|
+
if (typeof version === "number") version = String(version);
|
|
142927
|
+
if (typeof version !== "string") return null;
|
|
142928
|
+
options = options || {};
|
|
142929
|
+
let match = null;
|
|
142930
|
+
if (!options.rtl) match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
|
|
142931
|
+
else {
|
|
142932
|
+
const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL];
|
|
142933
|
+
let next;
|
|
142934
|
+
while ((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)) {
|
|
142935
|
+
if (!match || next.index + next[0].length !== match.index + match[0].length) match = next;
|
|
142936
|
+
coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
|
142937
|
+
}
|
|
142938
|
+
coerceRtlRegex.lastIndex = -1;
|
|
142939
|
+
}
|
|
142940
|
+
if (match === null) return null;
|
|
142941
|
+
const major = match[2];
|
|
142942
|
+
return parse(`${major}.${match[3] || "0"}.${match[4] || "0"}${options.includePrerelease && match[5] ? `-${match[5]}` : ""}${options.includePrerelease && match[6] ? `+${match[6]}` : ""}`, options);
|
|
142943
|
+
};
|
|
142944
|
+
module.exports = coerce;
|
|
142945
|
+
}));
|
|
142946
|
+
//#endregion
|
|
142947
|
+
//#region ../../packages/core-node/node_modules/semver/internal/lrucache.js
|
|
142948
|
+
var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142949
|
+
var LRUCache = class {
|
|
142950
|
+
constructor() {
|
|
142951
|
+
this.max = 1e3;
|
|
142952
|
+
this.map = /* @__PURE__ */ new Map();
|
|
142953
|
+
}
|
|
142954
|
+
get(key) {
|
|
142955
|
+
const value = this.map.get(key);
|
|
142956
|
+
if (value === void 0) return;
|
|
142957
|
+
else {
|
|
142958
|
+
this.map.delete(key);
|
|
142959
|
+
this.map.set(key, value);
|
|
142960
|
+
return value;
|
|
142961
|
+
}
|
|
142962
|
+
}
|
|
142963
|
+
delete(key) {
|
|
142964
|
+
return this.map.delete(key);
|
|
142965
|
+
}
|
|
142966
|
+
set(key, value) {
|
|
142967
|
+
if (!this.delete(key) && value !== void 0) {
|
|
142968
|
+
if (this.map.size >= this.max) {
|
|
142969
|
+
const firstKey = this.map.keys().next().value;
|
|
142970
|
+
this.delete(firstKey);
|
|
142971
|
+
}
|
|
142972
|
+
this.map.set(key, value);
|
|
142973
|
+
}
|
|
142974
|
+
return this;
|
|
142975
|
+
}
|
|
142976
|
+
};
|
|
142977
|
+
module.exports = LRUCache;
|
|
142978
|
+
}));
|
|
142979
|
+
//#endregion
|
|
142980
|
+
//#region ../../packages/core-node/node_modules/semver/classes/range.js
|
|
142981
|
+
var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142982
|
+
const SPACE_CHARACTERS = /\s+/g;
|
|
142983
|
+
module.exports = class Range {
|
|
142984
|
+
constructor(range, options) {
|
|
142985
|
+
options = parseOptions(options);
|
|
142986
|
+
if (range instanceof Range) if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) return range;
|
|
142987
|
+
else return new Range(range.raw, options);
|
|
142988
|
+
if (range instanceof Comparator) {
|
|
142989
|
+
this.raw = range.value;
|
|
142990
|
+
this.set = [[range]];
|
|
142991
|
+
this.formatted = void 0;
|
|
142992
|
+
return this;
|
|
142993
|
+
}
|
|
142994
|
+
this.options = options;
|
|
142995
|
+
this.loose = !!options.loose;
|
|
142996
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
142997
|
+
this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
|
|
142998
|
+
this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
|
|
142999
|
+
if (!this.set.length) throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
143000
|
+
if (this.set.length > 1) {
|
|
143001
|
+
const first = this.set[0];
|
|
143002
|
+
this.set = this.set.filter((c) => !isNullSet(c[0]));
|
|
143003
|
+
if (this.set.length === 0) this.set = [first];
|
|
143004
|
+
else if (this.set.length > 1) {
|
|
143005
|
+
for (const c of this.set) if (c.length === 1 && isAny(c[0])) {
|
|
143006
|
+
this.set = [c];
|
|
143007
|
+
break;
|
|
143008
|
+
}
|
|
143009
|
+
}
|
|
143010
|
+
}
|
|
143011
|
+
this.formatted = void 0;
|
|
143012
|
+
}
|
|
143013
|
+
get range() {
|
|
143014
|
+
if (this.formatted === void 0) {
|
|
143015
|
+
this.formatted = "";
|
|
143016
|
+
for (let i = 0; i < this.set.length; i++) {
|
|
143017
|
+
if (i > 0) this.formatted += "||";
|
|
143018
|
+
const comps = this.set[i];
|
|
143019
|
+
for (let k = 0; k < comps.length; k++) {
|
|
143020
|
+
if (k > 0) this.formatted += " ";
|
|
143021
|
+
this.formatted += comps[k].toString().trim();
|
|
143022
|
+
}
|
|
143023
|
+
}
|
|
143024
|
+
}
|
|
143025
|
+
return this.formatted;
|
|
143026
|
+
}
|
|
143027
|
+
format() {
|
|
143028
|
+
return this.range;
|
|
143029
|
+
}
|
|
143030
|
+
toString() {
|
|
143031
|
+
return this.range;
|
|
143032
|
+
}
|
|
143033
|
+
parseRange(range) {
|
|
143034
|
+
const memoKey = ((this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE)) + ":" + range;
|
|
143035
|
+
const cached = cache.get(memoKey);
|
|
143036
|
+
if (cached) return cached;
|
|
143037
|
+
const loose = this.options.loose;
|
|
143038
|
+
const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
|
|
143039
|
+
range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
|
|
143040
|
+
debug("hyphen replace", range);
|
|
143041
|
+
range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace);
|
|
143042
|
+
debug("comparator trim", range);
|
|
143043
|
+
range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
|
|
143044
|
+
debug("tilde trim", range);
|
|
143045
|
+
range = range.replace(re[t.CARETTRIM], caretTrimReplace);
|
|
143046
|
+
debug("caret trim", range);
|
|
143047
|
+
let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
|
|
143048
|
+
if (loose) rangeList = rangeList.filter((comp) => {
|
|
143049
|
+
debug("loose invalid filter", comp, this.options);
|
|
143050
|
+
return !!comp.match(re[t.COMPARATORLOOSE]);
|
|
143051
|
+
});
|
|
143052
|
+
debug("range list", rangeList);
|
|
143053
|
+
const rangeMap = /* @__PURE__ */ new Map();
|
|
143054
|
+
const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
|
|
143055
|
+
for (const comp of comparators) {
|
|
143056
|
+
if (isNullSet(comp)) return [comp];
|
|
143057
|
+
rangeMap.set(comp.value, comp);
|
|
143058
|
+
}
|
|
143059
|
+
if (rangeMap.size > 1 && rangeMap.has("")) rangeMap.delete("");
|
|
143060
|
+
const result = [...rangeMap.values()];
|
|
143061
|
+
cache.set(memoKey, result);
|
|
143062
|
+
return result;
|
|
143063
|
+
}
|
|
143064
|
+
intersects(range, options) {
|
|
143065
|
+
if (!(range instanceof Range)) throw new TypeError("a Range is required");
|
|
143066
|
+
return this.set.some((thisComparators) => {
|
|
143067
|
+
return isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => {
|
|
143068
|
+
return isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => {
|
|
143069
|
+
return rangeComparators.every((rangeComparator) => {
|
|
143070
|
+
return thisComparator.intersects(rangeComparator, options);
|
|
143071
|
+
});
|
|
143072
|
+
});
|
|
143073
|
+
});
|
|
143074
|
+
});
|
|
143075
|
+
}
|
|
143076
|
+
test(version) {
|
|
143077
|
+
if (!version) return false;
|
|
143078
|
+
if (typeof version === "string") try {
|
|
143079
|
+
version = new SemVer(version, this.options);
|
|
143080
|
+
} catch (er) {
|
|
143081
|
+
return false;
|
|
143082
|
+
}
|
|
143083
|
+
for (let i = 0; i < this.set.length; i++) if (testSet(this.set[i], version, this.options)) return true;
|
|
143084
|
+
return false;
|
|
143085
|
+
}
|
|
143086
|
+
};
|
|
143087
|
+
const cache = new (require_lrucache())();
|
|
143088
|
+
const parseOptions = require_parse_options();
|
|
143089
|
+
const Comparator = require_comparator();
|
|
143090
|
+
const debug = require_debug();
|
|
143091
|
+
const SemVer = require_semver$1();
|
|
143092
|
+
const { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re();
|
|
143093
|
+
const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants();
|
|
143094
|
+
const isNullSet = (c) => c.value === "<0.0.0-0";
|
|
143095
|
+
const isAny = (c) => c.value === "";
|
|
143096
|
+
const isSatisfiable = (comparators, options) => {
|
|
143097
|
+
let result = true;
|
|
143098
|
+
const remainingComparators = comparators.slice();
|
|
143099
|
+
let testComparator = remainingComparators.pop();
|
|
143100
|
+
while (result && remainingComparators.length) {
|
|
143101
|
+
result = remainingComparators.every((otherComparator) => {
|
|
143102
|
+
return testComparator.intersects(otherComparator, options);
|
|
143103
|
+
});
|
|
143104
|
+
testComparator = remainingComparators.pop();
|
|
143105
|
+
}
|
|
143106
|
+
return result;
|
|
143107
|
+
};
|
|
143108
|
+
const parseComparator = (comp, options) => {
|
|
143109
|
+
comp = comp.replace(re[t.BUILD], "");
|
|
143110
|
+
debug("comp", comp, options);
|
|
143111
|
+
comp = replaceCarets(comp, options);
|
|
143112
|
+
debug("caret", comp);
|
|
143113
|
+
comp = replaceTildes(comp, options);
|
|
143114
|
+
debug("tildes", comp);
|
|
143115
|
+
comp = replaceXRanges(comp, options);
|
|
143116
|
+
debug("xrange", comp);
|
|
143117
|
+
comp = replaceStars(comp, options);
|
|
143118
|
+
debug("stars", comp);
|
|
143119
|
+
return comp;
|
|
143120
|
+
};
|
|
143121
|
+
const isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
|
|
143122
|
+
const replaceTildes = (comp, options) => {
|
|
143123
|
+
return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
|
|
143124
|
+
};
|
|
143125
|
+
const replaceTilde = (comp, options) => {
|
|
143126
|
+
const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
|
|
143127
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
143128
|
+
debug("tilde", comp, _, M, m, p, pr);
|
|
143129
|
+
let ret;
|
|
143130
|
+
if (isX(M)) ret = "";
|
|
143131
|
+
else if (isX(m)) ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
|
|
143132
|
+
else if (isX(p)) ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
|
|
143133
|
+
else if (pr) {
|
|
143134
|
+
debug("replaceTilde pr", pr);
|
|
143135
|
+
ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
143136
|
+
} else ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
|
|
143137
|
+
debug("tilde return", ret);
|
|
143138
|
+
return ret;
|
|
143139
|
+
});
|
|
143140
|
+
};
|
|
143141
|
+
const replaceCarets = (comp, options) => {
|
|
143142
|
+
return comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" ");
|
|
143143
|
+
};
|
|
143144
|
+
const replaceCaret = (comp, options) => {
|
|
143145
|
+
debug("caret", comp, options);
|
|
143146
|
+
const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET];
|
|
143147
|
+
const z = options.includePrerelease ? "-0" : "";
|
|
143148
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
143149
|
+
debug("caret", comp, _, M, m, p, pr);
|
|
143150
|
+
let ret;
|
|
143151
|
+
if (isX(M)) ret = "";
|
|
143152
|
+
else if (isX(m)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
|
|
143153
|
+
else if (isX(p)) if (M === "0") ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
|
|
143154
|
+
else ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
|
|
143155
|
+
else if (pr) {
|
|
143156
|
+
debug("replaceCaret pr", pr);
|
|
143157
|
+
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;
|
|
143158
|
+
else ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
143159
|
+
else ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
|
|
143160
|
+
} else {
|
|
143161
|
+
debug("no pr");
|
|
143162
|
+
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0`;
|
|
143163
|
+
else ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0`;
|
|
143164
|
+
else ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
|
|
143165
|
+
}
|
|
143166
|
+
debug("caret return", ret);
|
|
143167
|
+
return ret;
|
|
143168
|
+
});
|
|
143169
|
+
};
|
|
143170
|
+
const replaceXRanges = (comp, options) => {
|
|
143171
|
+
debug("replaceXRanges", comp, options);
|
|
143172
|
+
return comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ");
|
|
143173
|
+
};
|
|
143174
|
+
const replaceXRange = (comp, options) => {
|
|
143175
|
+
comp = comp.trim();
|
|
143176
|
+
const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
|
|
143177
|
+
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
|
|
143178
|
+
debug("xRange", comp, ret, gtlt, M, m, p, pr);
|
|
143179
|
+
const xM = isX(M);
|
|
143180
|
+
const xm = xM || isX(m);
|
|
143181
|
+
const xp = xm || isX(p);
|
|
143182
|
+
const anyX = xp;
|
|
143183
|
+
if (gtlt === "=" && anyX) gtlt = "";
|
|
143184
|
+
pr = options.includePrerelease ? "-0" : "";
|
|
143185
|
+
if (xM) if (gtlt === ">" || gtlt === "<") ret = "<0.0.0-0";
|
|
143186
|
+
else ret = "*";
|
|
143187
|
+
else if (gtlt && anyX) {
|
|
143188
|
+
if (xm) m = 0;
|
|
143189
|
+
p = 0;
|
|
143190
|
+
if (gtlt === ">") {
|
|
143191
|
+
gtlt = ">=";
|
|
143192
|
+
if (xm) {
|
|
143193
|
+
M = +M + 1;
|
|
143194
|
+
m = 0;
|
|
143195
|
+
p = 0;
|
|
143196
|
+
} else {
|
|
143197
|
+
m = +m + 1;
|
|
143198
|
+
p = 0;
|
|
143199
|
+
}
|
|
143200
|
+
} else if (gtlt === "<=") {
|
|
143201
|
+
gtlt = "<";
|
|
143202
|
+
if (xm) M = +M + 1;
|
|
143203
|
+
else m = +m + 1;
|
|
143204
|
+
}
|
|
143205
|
+
if (gtlt === "<") pr = "-0";
|
|
143206
|
+
ret = `${gtlt + M}.${m}.${p}${pr}`;
|
|
143207
|
+
} else if (xm) ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
|
|
143208
|
+
else if (xp) ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;
|
|
143209
|
+
debug("xRange return", ret);
|
|
143210
|
+
return ret;
|
|
143211
|
+
});
|
|
143212
|
+
};
|
|
143213
|
+
const replaceStars = (comp, options) => {
|
|
143214
|
+
debug("replaceStars", comp, options);
|
|
143215
|
+
return comp.trim().replace(re[t.STAR], "");
|
|
143216
|
+
};
|
|
143217
|
+
const replaceGTE0 = (comp, options) => {
|
|
143218
|
+
debug("replaceGTE0", comp, options);
|
|
143219
|
+
return comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
|
|
143220
|
+
};
|
|
143221
|
+
const hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
|
|
143222
|
+
if (isX(fM)) from = "";
|
|
143223
|
+
else if (isX(fm)) from = `>=${fM}.0.0${incPr ? "-0" : ""}`;
|
|
143224
|
+
else if (isX(fp)) from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}`;
|
|
143225
|
+
else if (fpr) from = `>=${from}`;
|
|
143226
|
+
else from = `>=${from}${incPr ? "-0" : ""}`;
|
|
143227
|
+
if (isX(tM)) to = "";
|
|
143228
|
+
else if (isX(tm)) to = `<${+tM + 1}.0.0-0`;
|
|
143229
|
+
else if (isX(tp)) to = `<${tM}.${+tm + 1}.0-0`;
|
|
143230
|
+
else if (tpr) to = `<=${tM}.${tm}.${tp}-${tpr}`;
|
|
143231
|
+
else if (incPr) to = `<${tM}.${tm}.${+tp + 1}-0`;
|
|
143232
|
+
else to = `<=${to}`;
|
|
143233
|
+
return `${from} ${to}`.trim();
|
|
143234
|
+
};
|
|
143235
|
+
const testSet = (set, version, options) => {
|
|
143236
|
+
for (let i = 0; i < set.length; i++) if (!set[i].test(version)) return false;
|
|
143237
|
+
if (version.prerelease.length && !options.includePrerelease) {
|
|
143238
|
+
for (let i = 0; i < set.length; i++) {
|
|
143239
|
+
debug(set[i].semver);
|
|
143240
|
+
if (set[i].semver === Comparator.ANY) continue;
|
|
143241
|
+
if (set[i].semver.prerelease.length > 0) {
|
|
143242
|
+
const allowed = set[i].semver;
|
|
143243
|
+
if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) return true;
|
|
143244
|
+
}
|
|
143245
|
+
}
|
|
143246
|
+
return false;
|
|
143247
|
+
}
|
|
143248
|
+
return true;
|
|
143249
|
+
};
|
|
143250
|
+
}));
|
|
143251
|
+
//#endregion
|
|
143252
|
+
//#region ../../packages/core-node/node_modules/semver/classes/comparator.js
|
|
143253
|
+
var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143254
|
+
const ANY = Symbol("SemVer ANY");
|
|
143255
|
+
module.exports = class Comparator {
|
|
143256
|
+
static get ANY() {
|
|
143257
|
+
return ANY;
|
|
143258
|
+
}
|
|
143259
|
+
constructor(comp, options) {
|
|
143260
|
+
options = parseOptions(options);
|
|
143261
|
+
if (comp instanceof Comparator) if (comp.loose === !!options.loose) return comp;
|
|
143262
|
+
else comp = comp.value;
|
|
143263
|
+
comp = comp.trim().split(/\s+/).join(" ");
|
|
143264
|
+
debug("comparator", comp, options);
|
|
143265
|
+
this.options = options;
|
|
143266
|
+
this.loose = !!options.loose;
|
|
143267
|
+
this.parse(comp);
|
|
143268
|
+
if (this.semver === ANY) this.value = "";
|
|
143269
|
+
else this.value = this.operator + this.semver.version;
|
|
143270
|
+
debug("comp", this);
|
|
143271
|
+
}
|
|
143272
|
+
parse(comp) {
|
|
143273
|
+
const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR];
|
|
143274
|
+
const m = comp.match(r);
|
|
143275
|
+
if (!m) throw new TypeError(`Invalid comparator: ${comp}`);
|
|
143276
|
+
this.operator = m[1] !== void 0 ? m[1] : "";
|
|
143277
|
+
if (this.operator === "=") this.operator = "";
|
|
143278
|
+
if (!m[2]) this.semver = ANY;
|
|
143279
|
+
else this.semver = new SemVer(m[2], this.options.loose);
|
|
143280
|
+
}
|
|
143281
|
+
toString() {
|
|
143282
|
+
return this.value;
|
|
143283
|
+
}
|
|
143284
|
+
test(version) {
|
|
143285
|
+
debug("Comparator.test", version, this.options.loose);
|
|
143286
|
+
if (this.semver === ANY || version === ANY) return true;
|
|
143287
|
+
if (typeof version === "string") try {
|
|
143288
|
+
version = new SemVer(version, this.options);
|
|
143289
|
+
} catch (er) {
|
|
143290
|
+
return false;
|
|
143291
|
+
}
|
|
143292
|
+
return cmp(version, this.operator, this.semver, this.options);
|
|
143293
|
+
}
|
|
143294
|
+
intersects(comp, options) {
|
|
143295
|
+
if (!(comp instanceof Comparator)) throw new TypeError("a Comparator is required");
|
|
143296
|
+
if (this.operator === "") {
|
|
143297
|
+
if (this.value === "") return true;
|
|
143298
|
+
return new Range(comp.value, options).test(this.value);
|
|
143299
|
+
} else if (comp.operator === "") {
|
|
143300
|
+
if (comp.value === "") return true;
|
|
143301
|
+
return new Range(this.value, options).test(comp.semver);
|
|
143302
|
+
}
|
|
143303
|
+
options = parseOptions(options);
|
|
143304
|
+
if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) return false;
|
|
143305
|
+
if (!options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0"))) return false;
|
|
143306
|
+
if (this.operator.startsWith(">") && comp.operator.startsWith(">")) return true;
|
|
143307
|
+
if (this.operator.startsWith("<") && comp.operator.startsWith("<")) return true;
|
|
143308
|
+
if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) return true;
|
|
143309
|
+
if (cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) return true;
|
|
143310
|
+
if (cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) return true;
|
|
143311
|
+
return false;
|
|
143312
|
+
}
|
|
143313
|
+
};
|
|
143314
|
+
const parseOptions = require_parse_options();
|
|
143315
|
+
const { safeRe: re, t } = require_re();
|
|
143316
|
+
const cmp = require_cmp();
|
|
143317
|
+
const debug = require_debug();
|
|
143318
|
+
const SemVer = require_semver$1();
|
|
143319
|
+
const Range = require_range();
|
|
143320
|
+
}));
|
|
143321
|
+
//#endregion
|
|
143322
|
+
//#region ../../packages/core-node/node_modules/semver/functions/satisfies.js
|
|
143323
|
+
var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143324
|
+
const Range = require_range();
|
|
143325
|
+
const satisfies = (version, range, options) => {
|
|
143326
|
+
try {
|
|
143327
|
+
range = new Range(range, options);
|
|
143328
|
+
} catch (er) {
|
|
143329
|
+
return false;
|
|
143330
|
+
}
|
|
143331
|
+
return range.test(version);
|
|
143332
|
+
};
|
|
143333
|
+
module.exports = satisfies;
|
|
143334
|
+
}));
|
|
143335
|
+
//#endregion
|
|
143336
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/to-comparators.js
|
|
143337
|
+
var require_to_comparators = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143338
|
+
const Range = require_range();
|
|
143339
|
+
const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
143340
|
+
module.exports = toComparators;
|
|
143341
|
+
}));
|
|
143342
|
+
//#endregion
|
|
143343
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/max-satisfying.js
|
|
143344
|
+
var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143345
|
+
const SemVer = require_semver$1();
|
|
143346
|
+
const Range = require_range();
|
|
143347
|
+
const maxSatisfying = (versions, range, options) => {
|
|
143348
|
+
let max = null;
|
|
143349
|
+
let maxSV = null;
|
|
143350
|
+
let rangeObj = null;
|
|
143351
|
+
try {
|
|
143352
|
+
rangeObj = new Range(range, options);
|
|
143353
|
+
} catch (er) {
|
|
143354
|
+
return null;
|
|
143355
|
+
}
|
|
143356
|
+
versions.forEach((v) => {
|
|
143357
|
+
if (rangeObj.test(v)) {
|
|
143358
|
+
if (!max || maxSV.compare(v) === -1) {
|
|
143359
|
+
max = v;
|
|
143360
|
+
maxSV = new SemVer(max, options);
|
|
143361
|
+
}
|
|
143362
|
+
}
|
|
143363
|
+
});
|
|
143364
|
+
return max;
|
|
143365
|
+
};
|
|
143366
|
+
module.exports = maxSatisfying;
|
|
143367
|
+
}));
|
|
143368
|
+
//#endregion
|
|
143369
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/min-satisfying.js
|
|
143370
|
+
var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143371
|
+
const SemVer = require_semver$1();
|
|
143372
|
+
const Range = require_range();
|
|
143373
|
+
const minSatisfying = (versions, range, options) => {
|
|
143374
|
+
let min = null;
|
|
143375
|
+
let minSV = null;
|
|
143376
|
+
let rangeObj = null;
|
|
143377
|
+
try {
|
|
143378
|
+
rangeObj = new Range(range, options);
|
|
143379
|
+
} catch (er) {
|
|
143380
|
+
return null;
|
|
143381
|
+
}
|
|
143382
|
+
versions.forEach((v) => {
|
|
143383
|
+
if (rangeObj.test(v)) {
|
|
143384
|
+
if (!min || minSV.compare(v) === 1) {
|
|
143385
|
+
min = v;
|
|
143386
|
+
minSV = new SemVer(min, options);
|
|
143387
|
+
}
|
|
143388
|
+
}
|
|
143389
|
+
});
|
|
143390
|
+
return min;
|
|
143391
|
+
};
|
|
143392
|
+
module.exports = minSatisfying;
|
|
143393
|
+
}));
|
|
143394
|
+
//#endregion
|
|
143395
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/min-version.js
|
|
143396
|
+
var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143397
|
+
const SemVer = require_semver$1();
|
|
143398
|
+
const Range = require_range();
|
|
143399
|
+
const gt = require_gt();
|
|
143400
|
+
const minVersion = (range, loose) => {
|
|
143401
|
+
range = new Range(range, loose);
|
|
143402
|
+
let minver = new SemVer("0.0.0");
|
|
143403
|
+
if (range.test(minver)) return minver;
|
|
143404
|
+
minver = new SemVer("0.0.0-0");
|
|
143405
|
+
if (range.test(minver)) return minver;
|
|
143406
|
+
minver = null;
|
|
143407
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
143408
|
+
const comparators = range.set[i];
|
|
143409
|
+
let setMin = null;
|
|
143410
|
+
comparators.forEach((comparator) => {
|
|
143411
|
+
const compver = new SemVer(comparator.semver.version);
|
|
143412
|
+
switch (comparator.operator) {
|
|
143413
|
+
case ">":
|
|
143414
|
+
if (compver.prerelease.length === 0) compver.patch++;
|
|
143415
|
+
else compver.prerelease.push(0);
|
|
143416
|
+
compver.raw = compver.format();
|
|
143417
|
+
case "":
|
|
143418
|
+
case ">=":
|
|
143419
|
+
if (!setMin || gt(compver, setMin)) setMin = compver;
|
|
143420
|
+
break;
|
|
143421
|
+
case "<":
|
|
143422
|
+
case "<=": break;
|
|
143423
|
+
default: throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
143424
|
+
}
|
|
143425
|
+
});
|
|
143426
|
+
if (setMin && (!minver || gt(minver, setMin))) minver = setMin;
|
|
143427
|
+
}
|
|
143428
|
+
if (minver && range.test(minver)) return minver;
|
|
143429
|
+
return null;
|
|
143430
|
+
};
|
|
143431
|
+
module.exports = minVersion;
|
|
143432
|
+
}));
|
|
143433
|
+
//#endregion
|
|
143434
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/valid.js
|
|
143435
|
+
var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143436
|
+
const Range = require_range();
|
|
143437
|
+
const validRange = (range, options) => {
|
|
143438
|
+
try {
|
|
143439
|
+
return new Range(range, options).range || "*";
|
|
143440
|
+
} catch (er) {
|
|
143441
|
+
return null;
|
|
143442
|
+
}
|
|
143443
|
+
};
|
|
143444
|
+
module.exports = validRange;
|
|
143445
|
+
}));
|
|
143446
|
+
//#endregion
|
|
143447
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/outside.js
|
|
143448
|
+
var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143449
|
+
const SemVer = require_semver$1();
|
|
143450
|
+
const Comparator = require_comparator();
|
|
143451
|
+
const { ANY } = Comparator;
|
|
143452
|
+
const Range = require_range();
|
|
143453
|
+
const satisfies = require_satisfies();
|
|
143454
|
+
const gt = require_gt();
|
|
143455
|
+
const lt = require_lt();
|
|
143456
|
+
const lte = require_lte();
|
|
143457
|
+
const gte = require_gte();
|
|
143458
|
+
const outside = (version, range, hilo, options) => {
|
|
143459
|
+
version = new SemVer(version, options);
|
|
143460
|
+
range = new Range(range, options);
|
|
143461
|
+
let gtfn, ltefn, ltfn, comp, ecomp;
|
|
143462
|
+
switch (hilo) {
|
|
143463
|
+
case ">":
|
|
143464
|
+
gtfn = gt;
|
|
143465
|
+
ltefn = lte;
|
|
143466
|
+
ltfn = lt;
|
|
143467
|
+
comp = ">";
|
|
143468
|
+
ecomp = ">=";
|
|
143469
|
+
break;
|
|
143470
|
+
case "<":
|
|
143471
|
+
gtfn = lt;
|
|
143472
|
+
ltefn = gte;
|
|
143473
|
+
ltfn = gt;
|
|
143474
|
+
comp = "<";
|
|
143475
|
+
ecomp = "<=";
|
|
143476
|
+
break;
|
|
143477
|
+
default: throw new TypeError("Must provide a hilo val of \"<\" or \">\"");
|
|
143478
|
+
}
|
|
143479
|
+
if (satisfies(version, range, options)) return false;
|
|
143480
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
143481
|
+
const comparators = range.set[i];
|
|
143482
|
+
let high = null;
|
|
143483
|
+
let low = null;
|
|
143484
|
+
comparators.forEach((comparator) => {
|
|
143485
|
+
if (comparator.semver === ANY) comparator = new Comparator(">=0.0.0");
|
|
143486
|
+
high = high || comparator;
|
|
143487
|
+
low = low || comparator;
|
|
143488
|
+
if (gtfn(comparator.semver, high.semver, options)) high = comparator;
|
|
143489
|
+
else if (ltfn(comparator.semver, low.semver, options)) low = comparator;
|
|
143490
|
+
});
|
|
143491
|
+
if (high.operator === comp || high.operator === ecomp) return false;
|
|
143492
|
+
if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) return false;
|
|
143493
|
+
else if (low.operator === ecomp && ltfn(version, low.semver)) return false;
|
|
143494
|
+
}
|
|
143495
|
+
return true;
|
|
143496
|
+
};
|
|
143497
|
+
module.exports = outside;
|
|
143498
|
+
}));
|
|
143499
|
+
//#endregion
|
|
143500
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/gtr.js
|
|
143501
|
+
var require_gtr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143502
|
+
const outside = require_outside();
|
|
143503
|
+
const gtr = (version, range, options) => outside(version, range, ">", options);
|
|
143504
|
+
module.exports = gtr;
|
|
143505
|
+
}));
|
|
143506
|
+
//#endregion
|
|
143507
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/ltr.js
|
|
143508
|
+
var require_ltr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143509
|
+
const outside = require_outside();
|
|
143510
|
+
const ltr = (version, range, options) => outside(version, range, "<", options);
|
|
143511
|
+
module.exports = ltr;
|
|
143512
|
+
}));
|
|
143513
|
+
//#endregion
|
|
143514
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/intersects.js
|
|
143515
|
+
var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143516
|
+
const Range = require_range();
|
|
143517
|
+
const intersects = (r1, r2, options) => {
|
|
143518
|
+
r1 = new Range(r1, options);
|
|
143519
|
+
r2 = new Range(r2, options);
|
|
143520
|
+
return r1.intersects(r2, options);
|
|
143521
|
+
};
|
|
143522
|
+
module.exports = intersects;
|
|
143523
|
+
}));
|
|
143524
|
+
//#endregion
|
|
143525
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/simplify.js
|
|
143526
|
+
var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143527
|
+
const satisfies = require_satisfies();
|
|
143528
|
+
const compare = require_compare();
|
|
143529
|
+
module.exports = (versions, range, options) => {
|
|
143530
|
+
const set = [];
|
|
143531
|
+
let first = null;
|
|
143532
|
+
let prev = null;
|
|
143533
|
+
const v = versions.sort((a, b) => compare(a, b, options));
|
|
143534
|
+
for (const version of v) if (satisfies(version, range, options)) {
|
|
143535
|
+
prev = version;
|
|
143536
|
+
if (!first) first = version;
|
|
143537
|
+
} else {
|
|
143538
|
+
if (prev) set.push([first, prev]);
|
|
143539
|
+
prev = null;
|
|
143540
|
+
first = null;
|
|
143541
|
+
}
|
|
143542
|
+
if (first) set.push([first, null]);
|
|
143543
|
+
const ranges = [];
|
|
143544
|
+
for (const [min, max] of set) if (min === max) ranges.push(min);
|
|
143545
|
+
else if (!max && min === v[0]) ranges.push("*");
|
|
143546
|
+
else if (!max) ranges.push(`>=${min}`);
|
|
143547
|
+
else if (min === v[0]) ranges.push(`<=${max}`);
|
|
143548
|
+
else ranges.push(`${min} - ${max}`);
|
|
143549
|
+
const simplified = ranges.join(" || ");
|
|
143550
|
+
const original = typeof range.raw === "string" ? range.raw : String(range);
|
|
143551
|
+
return simplified.length < original.length ? simplified : range;
|
|
143552
|
+
};
|
|
143553
|
+
}));
|
|
143554
|
+
//#endregion
|
|
143555
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/subset.js
|
|
143556
|
+
var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143557
|
+
const Range = require_range();
|
|
143558
|
+
const Comparator = require_comparator();
|
|
143559
|
+
const { ANY } = Comparator;
|
|
143560
|
+
const satisfies = require_satisfies();
|
|
143561
|
+
const compare = require_compare();
|
|
143562
|
+
const subset = (sub, dom, options = {}) => {
|
|
143563
|
+
if (sub === dom) return true;
|
|
143564
|
+
sub = new Range(sub, options);
|
|
143565
|
+
dom = new Range(dom, options);
|
|
143566
|
+
let sawNonNull = false;
|
|
143567
|
+
OUTER: for (const simpleSub of sub.set) {
|
|
143568
|
+
for (const simpleDom of dom.set) {
|
|
143569
|
+
const isSub = simpleSubset(simpleSub, simpleDom, options);
|
|
143570
|
+
sawNonNull = sawNonNull || isSub !== null;
|
|
143571
|
+
if (isSub) continue OUTER;
|
|
143572
|
+
}
|
|
143573
|
+
if (sawNonNull) return false;
|
|
143574
|
+
}
|
|
143575
|
+
return true;
|
|
143576
|
+
};
|
|
143577
|
+
const minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")];
|
|
143578
|
+
const minimumVersion = [new Comparator(">=0.0.0")];
|
|
143579
|
+
const simpleSubset = (sub, dom, options) => {
|
|
143580
|
+
if (sub === dom) return true;
|
|
143581
|
+
if (sub.length === 1 && sub[0].semver === ANY) if (dom.length === 1 && dom[0].semver === ANY) return true;
|
|
143582
|
+
else if (options.includePrerelease) sub = minimumVersionWithPreRelease;
|
|
143583
|
+
else sub = minimumVersion;
|
|
143584
|
+
if (dom.length === 1 && dom[0].semver === ANY) if (options.includePrerelease) return true;
|
|
143585
|
+
else dom = minimumVersion;
|
|
143586
|
+
const eqSet = /* @__PURE__ */ new Set();
|
|
143587
|
+
let gt, lt;
|
|
143588
|
+
for (const c of sub) if (c.operator === ">" || c.operator === ">=") gt = higherGT(gt, c, options);
|
|
143589
|
+
else if (c.operator === "<" || c.operator === "<=") lt = lowerLT(lt, c, options);
|
|
143590
|
+
else eqSet.add(c.semver);
|
|
143591
|
+
if (eqSet.size > 1) return null;
|
|
143592
|
+
let gtltComp;
|
|
143593
|
+
if (gt && lt) {
|
|
143594
|
+
gtltComp = compare(gt.semver, lt.semver, options);
|
|
143595
|
+
if (gtltComp > 0) return null;
|
|
143596
|
+
else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) return null;
|
|
143597
|
+
}
|
|
143598
|
+
for (const eq of eqSet) {
|
|
143599
|
+
if (gt && !satisfies(eq, String(gt), options)) return null;
|
|
143600
|
+
if (lt && !satisfies(eq, String(lt), options)) return null;
|
|
143601
|
+
for (const c of dom) if (!satisfies(eq, String(c), options)) return false;
|
|
143602
|
+
return true;
|
|
143603
|
+
}
|
|
143604
|
+
let higher, lower;
|
|
143605
|
+
let hasDomLT, hasDomGT;
|
|
143606
|
+
let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;
|
|
143607
|
+
let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;
|
|
143608
|
+
if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0) needDomLTPre = false;
|
|
143609
|
+
for (const c of dom) {
|
|
143610
|
+
hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=";
|
|
143611
|
+
hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=";
|
|
143612
|
+
if (gt) {
|
|
143613
|
+
if (needDomGTPre) {
|
|
143614
|
+
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;
|
|
143615
|
+
}
|
|
143616
|
+
if (c.operator === ">" || c.operator === ">=") {
|
|
143617
|
+
higher = higherGT(gt, c, options);
|
|
143618
|
+
if (higher === c && higher !== gt) return false;
|
|
143619
|
+
} else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options)) return false;
|
|
143620
|
+
}
|
|
143621
|
+
if (lt) {
|
|
143622
|
+
if (needDomLTPre) {
|
|
143623
|
+
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;
|
|
143624
|
+
}
|
|
143625
|
+
if (c.operator === "<" || c.operator === "<=") {
|
|
143626
|
+
lower = lowerLT(lt, c, options);
|
|
143627
|
+
if (lower === c && lower !== lt) return false;
|
|
143628
|
+
} else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options)) return false;
|
|
143629
|
+
}
|
|
143630
|
+
if (!c.operator && (lt || gt) && gtltComp !== 0) return false;
|
|
143631
|
+
}
|
|
143632
|
+
if (gt && hasDomLT && !lt && gtltComp !== 0) return false;
|
|
143633
|
+
if (lt && hasDomGT && !gt && gtltComp !== 0) return false;
|
|
143634
|
+
if (needDomGTPre || needDomLTPre) return false;
|
|
143635
|
+
return true;
|
|
143636
|
+
};
|
|
143637
|
+
const higherGT = (a, b, options) => {
|
|
143638
|
+
if (!a) return b;
|
|
143639
|
+
const comp = compare(a.semver, b.semver, options);
|
|
143640
|
+
return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
|
|
143641
|
+
};
|
|
143642
|
+
const lowerLT = (a, b, options) => {
|
|
143643
|
+
if (!a) return b;
|
|
143644
|
+
const comp = compare(a.semver, b.semver, options);
|
|
143645
|
+
return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
|
|
143646
|
+
};
|
|
143647
|
+
module.exports = subset;
|
|
143648
|
+
}));
|
|
143649
|
+
//#endregion
|
|
143650
|
+
//#region ../../packages/core-node/node_modules/semver/index.js
|
|
143651
|
+
var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143652
|
+
const internalRe = require_re();
|
|
143653
|
+
const constants = require_constants();
|
|
143654
|
+
const SemVer = require_semver$1();
|
|
143655
|
+
const identifiers = require_identifiers();
|
|
143656
|
+
module.exports = {
|
|
143657
|
+
parse: require_parse(),
|
|
143658
|
+
valid: require_valid$1(),
|
|
143659
|
+
clean: require_clean(),
|
|
143660
|
+
inc: require_inc(),
|
|
143661
|
+
diff: require_diff(),
|
|
143662
|
+
major: require_major(),
|
|
143663
|
+
minor: require_minor(),
|
|
143664
|
+
patch: require_patch(),
|
|
143665
|
+
prerelease: require_prerelease(),
|
|
143666
|
+
compare: require_compare(),
|
|
143667
|
+
rcompare: require_rcompare(),
|
|
143668
|
+
compareLoose: require_compare_loose(),
|
|
143669
|
+
compareBuild: require_compare_build(),
|
|
143670
|
+
sort: require_sort(),
|
|
143671
|
+
rsort: require_rsort(),
|
|
143672
|
+
gt: require_gt(),
|
|
143673
|
+
lt: require_lt(),
|
|
143674
|
+
eq: require_eq(),
|
|
143675
|
+
neq: require_neq(),
|
|
143676
|
+
gte: require_gte(),
|
|
143677
|
+
lte: require_lte(),
|
|
143678
|
+
cmp: require_cmp(),
|
|
143679
|
+
coerce: require_coerce(),
|
|
143680
|
+
Comparator: require_comparator(),
|
|
143681
|
+
Range: require_range(),
|
|
143682
|
+
satisfies: require_satisfies(),
|
|
143683
|
+
toComparators: require_to_comparators(),
|
|
143684
|
+
maxSatisfying: require_max_satisfying(),
|
|
143685
|
+
minSatisfying: require_min_satisfying(),
|
|
143686
|
+
minVersion: require_min_version(),
|
|
143687
|
+
validRange: require_valid(),
|
|
143688
|
+
outside: require_outside(),
|
|
143689
|
+
gtr: require_gtr(),
|
|
143690
|
+
ltr: require_ltr(),
|
|
143691
|
+
intersects: require_intersects(),
|
|
143692
|
+
simplifyRange: require_simplify(),
|
|
143693
|
+
subset: require_subset(),
|
|
143694
|
+
SemVer,
|
|
143695
|
+
re: internalRe.re,
|
|
143696
|
+
src: internalRe.src,
|
|
143697
|
+
tokens: internalRe.t,
|
|
143698
|
+
SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
|
|
143699
|
+
RELEASE_TYPES: constants.RELEASE_TYPES,
|
|
143700
|
+
compareIdentifiers: identifiers.compareIdentifiers,
|
|
143701
|
+
rcompareIdentifiers: identifiers.rcompareIdentifiers
|
|
143702
|
+
};
|
|
143703
|
+
}));
|
|
143704
|
+
//#endregion
|
|
140828
143705
|
//#region ../../node_modules/serve-handler/src/glob-slash.js
|
|
140829
143706
|
var require_glob_slash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
140830
143707
|
const path$4 = __require("path");
|
|
@@ -148214,6 +151091,7 @@ var require_error = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
148214
151091
|
stream.pipe(response);
|
|
148215
151092
|
};
|
|
148216
151093
|
})))();
|
|
151094
|
+
var import_semver = /* @__PURE__ */ __toESM(require_semver(), 1);
|
|
148217
151095
|
var import_lib = /* @__PURE__ */ __toESM(require_lib(), 1);
|
|
148218
151096
|
//#endregion
|
|
148219
151097
|
//#region ../../packages/core-node/src/server.ts
|
|
@@ -148273,11 +151151,13 @@ async function withLock(key, fn) {
|
|
|
148273
151151
|
* Centralized in core-node to avoid circular dependencies.
|
|
148274
151152
|
*/
|
|
148275
151153
|
async function fetchPackage(packageName, versionOrRange, options) {
|
|
151154
|
+
const start = Date.now();
|
|
148276
151155
|
if (isDev && projectRoot && process.env.PIPELAB_FORCE_NPM !== "true") {
|
|
148277
151156
|
if (packageName.startsWith("@pipelab/")) {
|
|
151157
|
+
const localStart = Date.now();
|
|
148278
151158
|
const local = await tryResolveMonorepoPackage(packageName);
|
|
148279
151159
|
if (local) {
|
|
148280
|
-
console.log(`[Fetcher] ${packageName}: Resolved to local source at ${local.packageDir}`);
|
|
151160
|
+
console.log(`[Fetcher] ${packageName}: Resolved to local source at ${local.packageDir} (${Date.now() - localStart}ms)`);
|
|
148281
151161
|
return {
|
|
148282
151162
|
...local,
|
|
148283
151163
|
resolvedVersion: "workspace"
|
|
@@ -148288,7 +151168,10 @@ async function fetchPackage(packageName, versionOrRange, options) {
|
|
|
148288
151168
|
const ctx = options.context;
|
|
148289
151169
|
const baseDir = ctx.getPackagesPath(packageName);
|
|
148290
151170
|
let resolvedVersion;
|
|
148291
|
-
|
|
151171
|
+
let resolvedVersionOrRange = versionOrRange;
|
|
151172
|
+
if (resolvedVersionOrRange === "local") resolvedVersionOrRange = "latest";
|
|
151173
|
+
console.log(`[Fetcher] Resolving ${packageName}@${resolvedVersionOrRange || "latest"}...`);
|
|
151174
|
+
const resolveStart = Date.now();
|
|
148292
151175
|
try {
|
|
148293
151176
|
const cachePath = join(ctx.userDataPath, "cache", "pacote");
|
|
148294
151177
|
let packumentPromise = packumentRequests.get(packageName);
|
|
@@ -148298,26 +151181,36 @@ async function fetchPackage(packageName, versionOrRange, options) {
|
|
|
148298
151181
|
}
|
|
148299
151182
|
const packument = await packumentPromise;
|
|
148300
151183
|
const versions = Object.keys(packument.versions);
|
|
148301
|
-
const range =
|
|
151184
|
+
const range = resolvedVersionOrRange || "latest";
|
|
148302
151185
|
const foundVersion = packument["dist-tags"]?.[range] || import_semver.default.maxSatisfying(versions, range);
|
|
148303
151186
|
if (!foundVersion) throw new Error(`Package ${packageName}@${range} not found on npm (available tags: ${Object.keys(packument["dist-tags"] || {}).join(", ")})`);
|
|
148304
151187
|
resolvedVersion = foundVersion;
|
|
148305
|
-
console.log(`[Fetcher] ${packageName}: Resolved to v${resolvedVersion} via npm`);
|
|
151188
|
+
console.log(`[Fetcher] ${packageName}: Resolved to v${resolvedVersion} via npm (${Date.now() - resolveStart}ms)`);
|
|
148306
151189
|
} catch (error) {
|
|
148307
|
-
console.warn(`[Fetcher] ${packageName}: remote resolution failed, trying local fallback...`);
|
|
148308
|
-
const
|
|
148309
|
-
|
|
148310
|
-
|
|
151190
|
+
console.warn(`[Fetcher] ${packageName}: remote resolution failed (${Date.now() - resolveStart}ms), trying local fallback...`);
|
|
151191
|
+
const fallbackStart = Date.now();
|
|
151192
|
+
const fallbackVersion = await tryLocalFallback(resolvedVersionOrRange, error, baseDir, packageName);
|
|
151193
|
+
if (fallbackVersion) {
|
|
151194
|
+
resolvedVersion = fallbackVersion;
|
|
151195
|
+
console.log(`[Fetcher] ${packageName}: Resolved to local fallback ${resolvedVersion} (${Date.now() - fallbackStart}ms)`);
|
|
151196
|
+
} else throw error;
|
|
148311
151197
|
}
|
|
148312
151198
|
const cachePath = join(ctx.userDataPath, "cache", "pacote");
|
|
148313
151199
|
const packageDir = join(baseDir, resolvedVersion);
|
|
148314
|
-
|
|
148315
|
-
|
|
148316
|
-
|
|
148317
|
-
|
|
151200
|
+
const checkStart = Date.now();
|
|
151201
|
+
const isInstalled = options?.installDeps ? isPackageComplete(packageDir) && isDependenciesInstalledSync(packageDir) : isPackageComplete(packageDir);
|
|
151202
|
+
const checkDuration = Date.now() - checkStart;
|
|
151203
|
+
if (isInstalled) {
|
|
151204
|
+
console.log(`[Fetcher] ${packageName}@${resolvedVersion}: Already installed (check took ${checkDuration}ms, fetchPackage took ${Date.now() - start}ms)`);
|
|
151205
|
+
return {
|
|
151206
|
+
packageDir,
|
|
151207
|
+
resolvedVersion
|
|
151208
|
+
};
|
|
151209
|
+
}
|
|
148318
151210
|
return withLock(`package:${packageName}:${resolvedVersion}`, async () => {
|
|
148319
151211
|
if (!isPackageComplete(packageDir)) {
|
|
148320
151212
|
console.log(`[Fetcher] ${packageName}@${resolvedVersion}: Downloading to ${packageDir}...`);
|
|
151213
|
+
const downloadStart = Date.now();
|
|
148321
151214
|
const tempDir = join(baseDir, `.tmp-${resolvedVersion}-${Math.random().toString(36).slice(2)}`);
|
|
148322
151215
|
await mkdir(tempDir, { recursive: true });
|
|
148323
151216
|
try {
|
|
@@ -148333,6 +151226,7 @@ async function fetchPackage(packageName, versionOrRange, options) {
|
|
|
148333
151226
|
if (isPackageComplete(packageDir)) console.log(`[Fetcher] Destination ${packageDir} already exists and is valid.`);
|
|
148334
151227
|
else throw err;
|
|
148335
151228
|
}
|
|
151229
|
+
console.log(`[Fetcher] ${packageName}@${resolvedVersion}: Downloaded and extracted in ${Date.now() - downloadStart}ms`);
|
|
148336
151230
|
} catch (err) {
|
|
148337
151231
|
await rm(tempDir, {
|
|
148338
151232
|
recursive: true,
|
|
@@ -148341,8 +151235,15 @@ async function fetchPackage(packageName, versionOrRange, options) {
|
|
|
148341
151235
|
throw err;
|
|
148342
151236
|
}
|
|
148343
151237
|
}
|
|
151238
|
+
const entryStart = Date.now();
|
|
148344
151239
|
const entryPoint = await resolveEntryPoint(packageDir, packageName);
|
|
148345
|
-
|
|
151240
|
+
console.log(`[Fetcher] ${packageName}@${resolvedVersion}: Resolved entry point in ${Date.now() - entryStart}ms`);
|
|
151241
|
+
if (options?.installDeps) {
|
|
151242
|
+
const depsStart = Date.now();
|
|
151243
|
+
await installDependencies(packageDir, packageName, options);
|
|
151244
|
+
console.log(`[Fetcher] ${packageName}@${resolvedVersion}: Installed dependencies in ${Date.now() - depsStart}ms`);
|
|
151245
|
+
}
|
|
151246
|
+
console.log(`[Fetcher] ${packageName}@${resolvedVersion}: FetchPackage complete in ${Date.now() - start}ms`);
|
|
148346
151247
|
return {
|
|
148347
151248
|
packageDir,
|
|
148348
151249
|
resolvedVersion,
|
|
@@ -148381,10 +151282,14 @@ async function runPnpm(cwd, options) {
|
|
|
148381
151282
|
* Installs a specific version of Node.js if not already present.
|
|
148382
151283
|
*/
|
|
148383
151284
|
async function ensureNodeJS(context, version = DEFAULT_NODE_VERSION) {
|
|
151285
|
+
const checkStart = Date.now();
|
|
148384
151286
|
const isWindows = process.platform === "win32";
|
|
148385
151287
|
const nodeDir = context.getThirdPartyPath("node", version);
|
|
148386
151288
|
const finalNodePath = join(nodeDir, isWindows ? "node.exe" : "bin/node");
|
|
148387
|
-
if (isNodeJSComplete(finalNodePath))
|
|
151289
|
+
if (isNodeJSComplete(finalNodePath)) {
|
|
151290
|
+
console.log(`[Environment] Node.js check took ${Date.now() - checkStart}ms (found at ${finalNodePath})`);
|
|
151291
|
+
return finalNodePath;
|
|
151292
|
+
}
|
|
148388
151293
|
return withLock(`node:${version}`, async () => {
|
|
148389
151294
|
if (isNodeJSComplete(finalNodePath)) return finalNodePath;
|
|
148390
151295
|
const arch = process.arch === "x64" ? "x64" : process.arch === "arm64" ? "arm64" : "x86";
|
|
@@ -148396,9 +151301,12 @@ async function ensureNodeJS(context, version = DEFAULT_NODE_VERSION) {
|
|
|
148396
151301
|
const archivePath = join(tempDir, fileName);
|
|
148397
151302
|
sendStartupProgress(`Downloading Node.js v${version}...`);
|
|
148398
151303
|
console.log(`Downloading Node.js from ${downloadUrl}...`);
|
|
151304
|
+
const dlStart = Date.now();
|
|
148399
151305
|
await downloadFile(downloadUrl, archivePath);
|
|
151306
|
+
console.log(`[Environment] Node.js download took ${Date.now() - dlStart}ms`);
|
|
148400
151307
|
sendStartupProgress(`Extracting Node.js v${version}...`);
|
|
148401
151308
|
console.log(`Extracting Node.js to ${tempDir}...`);
|
|
151309
|
+
const extStart = Date.now();
|
|
148402
151310
|
const extractTempDir = join(tempDir, "extracted");
|
|
148403
151311
|
await mkdir(extractTempDir, { recursive: true });
|
|
148404
151312
|
if (extension === "zip") await extractZip(archivePath, extractTempDir);
|
|
@@ -148423,6 +151331,7 @@ async function ensureNodeJS(context, version = DEFAULT_NODE_VERSION) {
|
|
|
148423
151331
|
if (isNodeJSComplete(finalNodePath)) console.log(`[Fetcher] Node.js directory already exists and is valid.`);
|
|
148424
151332
|
else throw err;
|
|
148425
151333
|
}
|
|
151334
|
+
console.log(`[Environment] Node.js extraction took ${Date.now() - extStart}ms`);
|
|
148426
151335
|
} finally {
|
|
148427
151336
|
await rm(tempNodeDir, {
|
|
148428
151337
|
recursive: true,
|
|
@@ -148433,6 +151342,7 @@ async function ensureNodeJS(context, version = DEFAULT_NODE_VERSION) {
|
|
|
148433
151342
|
force: true
|
|
148434
151343
|
}).catch(() => {});
|
|
148435
151344
|
}
|
|
151345
|
+
console.log(`[Environment] Node.js set up complete in ${Date.now() - checkStart}ms`);
|
|
148436
151346
|
return finalNodePath;
|
|
148437
151347
|
});
|
|
148438
151348
|
}
|
|
@@ -148440,16 +151350,22 @@ async function ensureNodeJS(context, version = DEFAULT_NODE_VERSION) {
|
|
|
148440
151350
|
* Installs the PNPM package from npm if not already present.
|
|
148441
151351
|
*/
|
|
148442
151352
|
async function ensurePNPM(context, version = DEFAULT_PNPM_VERSION) {
|
|
151353
|
+
const checkStart = Date.now();
|
|
148443
151354
|
const pnpmPath = join(context.getPackagesPath("pnpm", version), "bin", "pnpm.cjs");
|
|
148444
|
-
if (existsSync(pnpmPath))
|
|
151355
|
+
if (existsSync(pnpmPath)) {
|
|
151356
|
+
console.log(`[Environment] PNPM check took ${Date.now() - checkStart}ms (found at ${pnpmPath})`);
|
|
151357
|
+
return pnpmPath;
|
|
151358
|
+
}
|
|
148445
151359
|
return withLock(`pnpm:${version}`, async () => {
|
|
148446
151360
|
if (existsSync(pnpmPath)) return pnpmPath;
|
|
148447
151361
|
sendStartupProgress(`Checking PNPM v${version}...`);
|
|
148448
151362
|
const { packageDir } = await fetchPackage("pnpm", version, { context });
|
|
151363
|
+
console.log(`[Environment] PNPM set up complete in ${Date.now() - checkStart}ms`);
|
|
148449
151364
|
return join(packageDir, "bin", "pnpm.cjs");
|
|
148450
151365
|
});
|
|
148451
151366
|
}
|
|
148452
151367
|
async function installDependencies(packageDir, packageName, options) {
|
|
151368
|
+
const start = Date.now();
|
|
148453
151369
|
const nodeModulesPath = join(packageDir, "node_modules");
|
|
148454
151370
|
if (isDependenciesInstalledSync(packageDir)) {
|
|
148455
151371
|
console.log(`[Fetcher] ${packageName}: Dependencies already installed, skipping.`);
|
|
@@ -148460,18 +151376,21 @@ async function installDependencies(packageDir, packageName, options) {
|
|
|
148460
151376
|
try {
|
|
148461
151377
|
await cp(join(packageDir, "package.json"), join(tempDir, "package.json"));
|
|
148462
151378
|
console.log(`[Fetcher] ${packageName}: Ensuring dependencies are installed...`);
|
|
151379
|
+
const pnpmStart = Date.now();
|
|
148463
151380
|
const { all } = await runPnpm(tempDir, {
|
|
148464
151381
|
signal: options.signal,
|
|
148465
151382
|
context: options.context
|
|
148466
151383
|
});
|
|
151384
|
+
console.log(`[Fetcher] ${packageName}: pnpm install command took ${Date.now() - pnpmStart}ms`);
|
|
148467
151385
|
if (all) console.log(`[Fetcher] ${packageName}: Installation trace:\n${all}`);
|
|
148468
151386
|
const tempNodeModules = join(tempDir, "node_modules");
|
|
148469
151387
|
if (existsSync(nodeModulesPath)) await rm(nodeModulesPath, {
|
|
148470
151388
|
recursive: true,
|
|
148471
151389
|
force: true
|
|
148472
151390
|
}).catch(() => {});
|
|
151391
|
+
const renameStart = Date.now();
|
|
148473
151392
|
await rename(tempNodeModules, nodeModulesPath);
|
|
148474
|
-
console.log(`[Fetcher] ${packageName}: Dependencies installed successfully.`);
|
|
151393
|
+
console.log(`[Fetcher] ${packageName}: Dependencies installed successfully (rename took ${Date.now() - renameStart}ms, total installDependencies took ${Date.now() - start}ms).`);
|
|
148475
151394
|
} catch (err) {
|
|
148476
151395
|
console.error(`[Fetcher] ${packageName}: CRITICAL ERROR during dependency installation: ${err.message}`);
|
|
148477
151396
|
if (err.all) console.error(`[Fetcher] ${packageName}: Error details:\n${err.all}`);
|
|
@@ -148544,22 +151463,27 @@ async function crawlMonorepoPackages() {
|
|
|
148544
151463
|
}
|
|
148545
151464
|
return cache;
|
|
148546
151465
|
}
|
|
148547
|
-
async function
|
|
151466
|
+
async function tryLocalFallback(versionOrRange, _error, baseDir, logPrefix) {
|
|
148548
151467
|
if (!existsSync(baseDir)) return null;
|
|
148549
151468
|
try {
|
|
148550
|
-
|
|
148551
|
-
|
|
148552
|
-
|
|
148553
|
-
|
|
148554
|
-
|
|
148555
|
-
|
|
148556
|
-
|
|
148557
|
-
|
|
148558
|
-
|
|
148559
|
-
|
|
148560
|
-
|
|
148561
|
-
|
|
148562
|
-
|
|
151469
|
+
const localVersions = (await readdir(baseDir, { withFileTypes: true })).filter((e) => e.isDirectory() || e.isSymbolicLink()).map((e) => e.name).filter((name) => !!import_semver.default.valid(name));
|
|
151470
|
+
if (localVersions.length === 0) return null;
|
|
151471
|
+
const range = versionOrRange || "latest";
|
|
151472
|
+
if (range === "latest") {
|
|
151473
|
+
const latestLocal = localVersions.sort((a, b) => import_semver.default.rcompare(a, b))[0] || null;
|
|
151474
|
+
if (latestLocal) {
|
|
151475
|
+
console.info(`[Fetcher] ${logPrefix}: Using locally cached latest version: ${latestLocal}`);
|
|
151476
|
+
return latestLocal;
|
|
151477
|
+
}
|
|
151478
|
+
} else {
|
|
151479
|
+
const matched = import_semver.default.maxSatisfying(localVersions, range);
|
|
151480
|
+
if (matched) {
|
|
151481
|
+
console.info(`[Fetcher] ${logPrefix}: Using locally cached matching version: ${matched} for range ${range}`);
|
|
151482
|
+
return matched;
|
|
151483
|
+
}
|
|
151484
|
+
}
|
|
151485
|
+
} catch (e) {
|
|
151486
|
+
console.warn(`[Fetcher] ${logPrefix}: Error during local fallback resolution:`, e);
|
|
148563
151487
|
}
|
|
148564
151488
|
return null;
|
|
148565
151489
|
}
|
|
@@ -148585,6 +151509,26 @@ async function resolveEntryPoint(packageDir, packageName) {
|
|
|
148585
151509
|
//#region ../../packages/core-node/src/handler-func.ts
|
|
148586
151510
|
const { join: join$1 } = path;
|
|
148587
151511
|
//#endregion
|
|
151512
|
+
//#region ../../packages/core-node/src/handlers/plugins.ts
|
|
151513
|
+
const localPluginsMap = /* @__PURE__ */ new Map();
|
|
151514
|
+
if (isDev && projectRoot) {
|
|
151515
|
+
const pluginsDir = join(projectRoot, "plugins");
|
|
151516
|
+
if (existsSync(pluginsDir)) try {
|
|
151517
|
+
const entries = readdirSync(pluginsDir, { withFileTypes: true });
|
|
151518
|
+
for (const entry of entries) if (entry.isDirectory()) {
|
|
151519
|
+
const pkgPath = join(pluginsDir, entry.name, "package.json");
|
|
151520
|
+
if (existsSync(pkgPath)) try {
|
|
151521
|
+
const pkg = JSON.parse(readFileSync(pkgPath, "utf-8"));
|
|
151522
|
+
if (pkg.name) localPluginsMap.set(pkg.name, join(pluginsDir, entry.name));
|
|
151523
|
+
} catch (e) {
|
|
151524
|
+
console.error(`[Plugins] Failed to parse package.json for ${entry.name}:`, e);
|
|
151525
|
+
}
|
|
151526
|
+
}
|
|
151527
|
+
} catch (e) {
|
|
151528
|
+
console.error(`[Plugins] Failed to scan local workspace plugins directory:`, e);
|
|
151529
|
+
}
|
|
151530
|
+
}
|
|
151531
|
+
//#endregion
|
|
148588
151532
|
//#region ../plugin-core/src/pipelab.ts
|
|
148589
151533
|
const createActionRunner = (runner) => runner;
|
|
148590
151534
|
//#endregion
|
|
@@ -154466,34 +157410,24 @@ const packageV2Runner = createActionRunner(async (options) => {
|
|
|
154466
157410
|
});
|
|
154467
157411
|
//#endregion
|
|
154468
157412
|
//#region src/index.ts
|
|
154469
|
-
|
|
154470
|
-
|
|
154471
|
-
|
|
154472
|
-
|
|
154473
|
-
id: "tauri",
|
|
154474
|
-
icon: {
|
|
154475
|
-
type: "image",
|
|
154476
|
-
image: icon
|
|
157413
|
+
var src_default = createNodeDefinition({ nodes: [
|
|
157414
|
+
{
|
|
157415
|
+
node: createMakeProps(IDMake, "Create Installer", "Create a distributable installer for your chosen platform", "", "`Build package for ${fmt.param(params['input-folder'], 'primary', 'Input folder not set')}`"),
|
|
157416
|
+
runner: makeRunner
|
|
154477
157417
|
},
|
|
154478
|
-
|
|
154479
|
-
{
|
|
154480
|
-
|
|
154481
|
-
|
|
154482
|
-
|
|
154483
|
-
{
|
|
154484
|
-
|
|
154485
|
-
|
|
154486
|
-
|
|
154487
|
-
|
|
154488
|
-
|
|
154489
|
-
|
|
154490
|
-
|
|
154491
|
-
{
|
|
154492
|
-
node: props,
|
|
154493
|
-
runner: configureRunner
|
|
154494
|
-
}
|
|
154495
|
-
]
|
|
154496
|
-
});
|
|
157418
|
+
{
|
|
157419
|
+
node: createPackageV2Props(IDPackageV2, "Package app with configuration", "Gather all necessary files and prepare your app for distribution, creating a platform-specific bundle.", "", "`Package app from ${fmt.param(params['input-folder'], 'primary', 'Input folder not set')}`", false, false, void 0, false, false),
|
|
157420
|
+
runner: packageV2Runner
|
|
157421
|
+
},
|
|
157422
|
+
{
|
|
157423
|
+
node: createPreviewProps(IDPreview, "Preview app", "Package and preview your app from an URL", "", "`Preview app from ${fmt.param(params['input-url'], 'primary', 'Input folder not set')}`"),
|
|
157424
|
+
runner: previewRunner
|
|
157425
|
+
},
|
|
157426
|
+
{
|
|
157427
|
+
node: props,
|
|
157428
|
+
runner: configureRunner
|
|
157429
|
+
}
|
|
157430
|
+
] });
|
|
154497
157431
|
//#endregion
|
|
154498
157432
|
export { src_default as default };
|
|
154499
157433
|
|