@pipelab/plugin-netlify 1.0.0-beta.12 → 1.0.0-beta.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/netlify-icon.webp +0 -0
- package/dist/index.cjs +3712 -816
- package/dist/index.mjs +3296 -403
- package/dist/index.mjs.map +1 -1
- package/package.json +21 -3
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
|
/**
|
|
@@ -45223,7 +45392,7 @@ function findProjectRoot(startDir) {
|
|
|
45223
45392
|
const projectRoot = findProjectRoot(_dirname);
|
|
45224
45393
|
//#endregion
|
|
45225
45394
|
//#region ../../packages/core-node/node_modules/ws/lib/constants.js
|
|
45226
|
-
var require_constants$
|
|
45395
|
+
var require_constants$9 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
45227
45396
|
const BINARY_TYPES = [
|
|
45228
45397
|
"nodebuffer",
|
|
45229
45398
|
"arraybuffer",
|
|
@@ -45246,7 +45415,7 @@ var require_constants$7 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
45246
45415
|
//#endregion
|
|
45247
45416
|
//#region ../../packages/core-node/node_modules/ws/lib/buffer-util.js
|
|
45248
45417
|
var require_buffer_util = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
45249
|
-
const { EMPTY_BUFFER } = require_constants$
|
|
45418
|
+
const { EMPTY_BUFFER } = require_constants$9();
|
|
45250
45419
|
const FastBuffer = Buffer[Symbol.species];
|
|
45251
45420
|
/**
|
|
45252
45421
|
* Merges an array of buffers into a new buffer.
|
|
@@ -45400,7 +45569,7 @@ var require_permessage_deflate = /* @__PURE__ */ __commonJSMin(((exports, module
|
|
|
45400
45569
|
const zlib$2 = __require("zlib");
|
|
45401
45570
|
const bufferUtil = require_buffer_util();
|
|
45402
45571
|
const Limiter = require_limiter();
|
|
45403
|
-
const { kStatusCode } = require_constants$
|
|
45572
|
+
const { kStatusCode } = require_constants$9();
|
|
45404
45573
|
const FastBuffer = Buffer[Symbol.species];
|
|
45405
45574
|
const TRAILER = Buffer.from([
|
|
45406
45575
|
0,
|
|
@@ -45731,7 +45900,7 @@ var require_permessage_deflate = /* @__PURE__ */ __commonJSMin(((exports, module
|
|
|
45731
45900
|
//#region ../../packages/core-node/node_modules/ws/lib/validation.js
|
|
45732
45901
|
var require_validation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
45733
45902
|
const { isUtf8 } = __require("buffer");
|
|
45734
|
-
const { hasBlob } = require_constants$
|
|
45903
|
+
const { hasBlob } = require_constants$9();
|
|
45735
45904
|
const tokenChars = [
|
|
45736
45905
|
0,
|
|
45737
45906
|
0,
|
|
@@ -45928,7 +46097,7 @@ var require_validation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
45928
46097
|
var require_receiver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
45929
46098
|
const { Writable: Writable$2 } = __require("stream");
|
|
45930
46099
|
const PerMessageDeflate = require_permessage_deflate();
|
|
45931
|
-
const { BINARY_TYPES, EMPTY_BUFFER, kStatusCode, kWebSocket } = require_constants$
|
|
46100
|
+
const { BINARY_TYPES, EMPTY_BUFFER, kStatusCode, kWebSocket } = require_constants$9();
|
|
45932
46101
|
const { concat, toArrayBuffer, unmask } = require_buffer_util();
|
|
45933
46102
|
const { isValidStatusCode, isValidUTF8 } = require_validation();
|
|
45934
46103
|
const FastBuffer = Buffer[Symbol.species];
|
|
@@ -46376,7 +46545,7 @@ var require_sender = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
46376
46545
|
const { Duplex: Duplex$4 } = __require("stream");
|
|
46377
46546
|
const { randomFillSync } = __require("crypto");
|
|
46378
46547
|
const PerMessageDeflate = require_permessage_deflate();
|
|
46379
|
-
const { EMPTY_BUFFER, kWebSocket, NOOP } = require_constants$
|
|
46548
|
+
const { EMPTY_BUFFER, kWebSocket, NOOP } = require_constants$9();
|
|
46380
46549
|
const { isBlob, isValidStatusCode } = require_validation();
|
|
46381
46550
|
const { mask: applyMask, toBuffer } = require_buffer_util();
|
|
46382
46551
|
const kByteLength = Symbol("kByteLength");
|
|
@@ -46864,7 +47033,7 @@ var require_sender = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
46864
47033
|
//#endregion
|
|
46865
47034
|
//#region ../../packages/core-node/node_modules/ws/lib/event-target.js
|
|
46866
47035
|
var require_event_target = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
46867
|
-
const { kForOnEventAttribute, kListener } = require_constants$
|
|
47036
|
+
const { kForOnEventAttribute, kListener } = require_constants$9();
|
|
46868
47037
|
const kCode = Symbol("kCode");
|
|
46869
47038
|
const kData = Symbol("kData");
|
|
46870
47039
|
const kError = Symbol("kError");
|
|
@@ -47231,7 +47400,7 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
47231
47400
|
const Receiver = require_receiver();
|
|
47232
47401
|
const Sender = require_sender();
|
|
47233
47402
|
const { isBlob } = require_validation();
|
|
47234
|
-
const { BINARY_TYPES, EMPTY_BUFFER, GUID, kForOnEventAttribute, kListener, kStatusCode, kWebSocket, NOOP } = require_constants$
|
|
47403
|
+
const { BINARY_TYPES, EMPTY_BUFFER, GUID, kForOnEventAttribute, kListener, kStatusCode, kWebSocket, NOOP } = require_constants$9();
|
|
47235
47404
|
const { EventTarget: { addEventListener, removeEventListener } } = require_event_target();
|
|
47236
47405
|
const { format, parse } = require_extension();
|
|
47237
47406
|
const { toBuffer } = require_buffer_util();
|
|
@@ -48347,7 +48516,7 @@ var require_websocket_server = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
48347
48516
|
const PerMessageDeflate = require_permessage_deflate();
|
|
48348
48517
|
const subprotocol = require_subprotocol();
|
|
48349
48518
|
const WebSocket = require_websocket();
|
|
48350
|
-
const { GUID, kWebSocket } = require_constants$
|
|
48519
|
+
const { GUID, kWebSocket } = require_constants$9();
|
|
48351
48520
|
const keyRegex = /^[+/0-9A-Za-z]{22}==$/;
|
|
48352
48521
|
const RUNNING = 0;
|
|
48353
48522
|
const CLOSING = 1;
|
|
@@ -50012,7 +50181,7 @@ var require_readShebang = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
50012
50181
|
}));
|
|
50013
50182
|
//#endregion
|
|
50014
50183
|
//#region ../../node_modules/cross-spawn/lib/parse.js
|
|
50015
|
-
var require_parse$
|
|
50184
|
+
var require_parse$5 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
50016
50185
|
const path$32 = __require("path");
|
|
50017
50186
|
const resolveCommand = require_resolveCommand();
|
|
50018
50187
|
const escape = require_escape$4();
|
|
@@ -50114,7 +50283,7 @@ var require_enoent = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
50114
50283
|
//#region ../../node_modules/npm-run-path/node_modules/path-key/index.js
|
|
50115
50284
|
var import_cross_spawn = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
50116
50285
|
const cp$1 = __require("child_process");
|
|
50117
|
-
const parse = require_parse$
|
|
50286
|
+
const parse = require_parse$5();
|
|
50118
50287
|
const enoent = require_enoent();
|
|
50119
50288
|
function spawn(command, args, options) {
|
|
50120
50289
|
const parsed = parse(command, args, options);
|
|
@@ -55651,7 +55820,7 @@ while (this[FLUSHCHUNK](this[BUFFERSHIFT]()) && this[BUFFER].length);
|
|
|
55651
55820
|
}));
|
|
55652
55821
|
//#endregion
|
|
55653
55822
|
//#region ../../node_modules/tar/node_modules/minizlib/constants.js
|
|
55654
|
-
var require_constants$
|
|
55823
|
+
var require_constants$8 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
55655
55824
|
const realZlibConstants$1 = __require("zlib").constants || (
|
|
55656
55825
|
/* istanbul ignore next */ { ZLIB_VERNUM: 4736 });
|
|
55657
55826
|
module.exports = Object.freeze(Object.assign(Object.create(null), {
|
|
@@ -56199,7 +56368,7 @@ var require_minizlib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
56199
56368
|
const assert$2 = __require("assert");
|
|
56200
56369
|
const Buffer$8 = __require("buffer").Buffer;
|
|
56201
56370
|
const realZlib$1 = __require("zlib");
|
|
56202
|
-
const constants = exports.constants = require_constants$
|
|
56371
|
+
const constants = exports.constants = require_constants$8();
|
|
56203
56372
|
const Minipass = require_minipass$3();
|
|
56204
56373
|
const OriginalBufferConcat = Buffer$8.concat;
|
|
56205
56374
|
const _superWrite = Symbol("_superWrite");
|
|
@@ -58656,7 +58825,7 @@ var require_fs_minipass = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
58656
58825
|
}));
|
|
58657
58826
|
//#endregion
|
|
58658
58827
|
//#region ../../node_modules/tar/lib/parse.js
|
|
58659
|
-
var require_parse$
|
|
58828
|
+
var require_parse$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
58660
58829
|
const warner = require_warn_mixin();
|
|
58661
58830
|
const Header = require_header();
|
|
58662
58831
|
const EE$10 = __require("events");
|
|
@@ -59004,7 +59173,7 @@ while (this[PROCESSENTRY](this[QUEUE].shift()));
|
|
|
59004
59173
|
//#region ../../node_modules/tar/lib/list.js
|
|
59005
59174
|
var require_list = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
59006
59175
|
const hlo = require_high_level_opt();
|
|
59007
|
-
const Parser = require_parse$
|
|
59176
|
+
const Parser = require_parse$4();
|
|
59008
59177
|
const fs$29 = __require("fs");
|
|
59009
59178
|
const fsm = require_fs_minipass();
|
|
59010
59179
|
const path$28 = __require("path");
|
|
@@ -59889,7 +60058,7 @@ var require_get_write_flag = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
59889
60058
|
//#region ../../node_modules/tar/lib/unpack.js
|
|
59890
60059
|
var require_unpack = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
59891
60060
|
const assert = __require("assert");
|
|
59892
|
-
const Parser = require_parse$
|
|
60061
|
+
const Parser = require_parse$4();
|
|
59893
60062
|
const fs$23 = __require("fs");
|
|
59894
60063
|
const fsm = require_fs_minipass();
|
|
59895
60064
|
const path$23 = __require("path");
|
|
@@ -60547,7 +60716,7 @@ var require_tar$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
60547
60716
|
exports.x = exports.extract = require_extract$1();
|
|
60548
60717
|
exports.Pack = require_pack$1();
|
|
60549
60718
|
exports.Unpack = require_unpack();
|
|
60550
|
-
exports.Parse = require_parse$
|
|
60719
|
+
exports.Parse = require_parse$4();
|
|
60551
60720
|
exports.ReadEntry = require_read_entry();
|
|
60552
60721
|
exports.WriteEntry = require_write_entry();
|
|
60553
60722
|
exports.Header = require_header();
|
|
@@ -71142,7 +71311,7 @@ var require__baseRest = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
71142
71311
|
}));
|
|
71143
71312
|
//#endregion
|
|
71144
71313
|
//#region ../../node_modules/lodash/eq.js
|
|
71145
|
-
var require_eq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
71314
|
+
var require_eq$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
71146
71315
|
/**
|
|
71147
71316
|
* Performs a
|
|
71148
71317
|
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
@@ -71275,7 +71444,7 @@ var require__isIndex = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
71275
71444
|
//#endregion
|
|
71276
71445
|
//#region ../../node_modules/lodash/_isIterateeCall.js
|
|
71277
71446
|
var require__isIterateeCall = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
71278
|
-
var eq = require_eq(), isArrayLike = require_isArrayLike(), isIndex = require__isIndex(), isObject = require_isObject();
|
|
71447
|
+
var eq = require_eq$2(), isArrayLike = require_isArrayLike(), isIndex = require__isIndex(), isObject = require_isObject();
|
|
71279
71448
|
/**
|
|
71280
71449
|
* Checks if the given arguments are from an iteratee call.
|
|
71281
71450
|
*
|
|
@@ -71596,7 +71765,7 @@ var require_keysIn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
71596
71765
|
//#endregion
|
|
71597
71766
|
//#region ../../node_modules/lodash/defaults.js
|
|
71598
71767
|
var require_defaults = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
71599
|
-
var baseRest = require__baseRest(), eq = require_eq(), isIterateeCall = require__isIterateeCall(), keysIn = require_keysIn();
|
|
71768
|
+
var baseRest = require__baseRest(), eq = require_eq$2(), isIterateeCall = require__isIterateeCall(), keysIn = require_keysIn();
|
|
71600
71769
|
/** Used for built-in method references. */
|
|
71601
71770
|
var objectProto = Object.prototype;
|
|
71602
71771
|
/** Used to check objects for own properties. */
|
|
@@ -77218,7 +77387,7 @@ var require__listCacheClear = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
77218
77387
|
//#endregion
|
|
77219
77388
|
//#region ../../node_modules/lodash/_assocIndexOf.js
|
|
77220
77389
|
var require__assocIndexOf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
77221
|
-
var eq = require_eq();
|
|
77390
|
+
var eq = require_eq$2();
|
|
77222
77391
|
/**
|
|
77223
77392
|
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
77224
77393
|
*
|
|
@@ -85150,7 +85319,7 @@ var require_unix_stat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
85150
85319
|
}));
|
|
85151
85320
|
//#endregion
|
|
85152
85321
|
//#region ../../node_modules/compress-commons/lib/archivers/zip/constants.js
|
|
85153
|
-
var require_constants$
|
|
85322
|
+
var require_constants$7 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
85154
85323
|
/**
|
|
85155
85324
|
* node-compress-commons
|
|
85156
85325
|
*
|
|
@@ -85225,7 +85394,7 @@ var require_zip_archive_entry = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
85225
85394
|
var ArchiveEntry = require_archive_entry();
|
|
85226
85395
|
var GeneralPurposeBit = require_general_purpose_bit();
|
|
85227
85396
|
var UnixStat = require_unix_stat();
|
|
85228
|
-
var constants = require_constants$
|
|
85397
|
+
var constants = require_constants$7();
|
|
85229
85398
|
var zipUtil = require_util$3();
|
|
85230
85399
|
var ZipArchiveEntry = module.exports = function(name) {
|
|
85231
85400
|
if (!(this instanceof ZipArchiveEntry)) return new ZipArchiveEntry(name);
|
|
@@ -85859,7 +86028,7 @@ var require_zip_archive_output_stream = /* @__PURE__ */ __commonJSMin(((exports,
|
|
|
85859
86028
|
var ArchiveOutputStream = require_archive_output_stream();
|
|
85860
86029
|
require_zip_archive_entry();
|
|
85861
86030
|
require_general_purpose_bit();
|
|
85862
|
-
var constants = require_constants$
|
|
86031
|
+
var constants = require_constants$7();
|
|
85863
86032
|
require_util$2();
|
|
85864
86033
|
var zipUtil = require_util$3();
|
|
85865
86034
|
var ZipArchiveOutputStream = module.exports = function(options) {
|
|
@@ -88356,7 +88525,7 @@ var require_extract = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
88356
88525
|
}));
|
|
88357
88526
|
//#endregion
|
|
88358
88527
|
//#region ../../node_modules/tar-stream/constants.js
|
|
88359
|
-
var require_constants$
|
|
88528
|
+
var require_constants$6 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
88360
88529
|
const constants = {
|
|
88361
88530
|
S_IFMT: 61440,
|
|
88362
88531
|
S_IFDIR: 16384,
|
|
@@ -88376,7 +88545,7 @@ var require_constants$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
88376
88545
|
var require_pack = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
88377
88546
|
const { Readable, Writable, getStreamError } = require_streamx();
|
|
88378
88547
|
const b4a = require_b4a();
|
|
88379
|
-
const constants = require_constants$
|
|
88548
|
+
const constants = require_constants$6();
|
|
88380
88549
|
const headers = require_headers$1();
|
|
88381
88550
|
const DMODE = 493;
|
|
88382
88551
|
const FMODE = 420;
|
|
@@ -89410,6 +89579,360 @@ var require_update_workspaces = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
89410
89579
|
module.exports = updateWorkspaces;
|
|
89411
89580
|
}));
|
|
89412
89581
|
//#endregion
|
|
89582
|
+
//#region ../../node_modules/semver/internal/debug.js
|
|
89583
|
+
var require_debug$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89584
|
+
module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
89585
|
+
}));
|
|
89586
|
+
//#endregion
|
|
89587
|
+
//#region ../../node_modules/semver/internal/constants.js
|
|
89588
|
+
var require_constants$5 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89589
|
+
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
89590
|
+
const MAX_LENGTH = 256;
|
|
89591
|
+
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
89592
|
+
module.exports = {
|
|
89593
|
+
MAX_LENGTH,
|
|
89594
|
+
MAX_SAFE_COMPONENT_LENGTH: 16,
|
|
89595
|
+
MAX_SAFE_BUILD_LENGTH: MAX_LENGTH - 6,
|
|
89596
|
+
MAX_SAFE_INTEGER,
|
|
89597
|
+
RELEASE_TYPES: [
|
|
89598
|
+
"major",
|
|
89599
|
+
"premajor",
|
|
89600
|
+
"minor",
|
|
89601
|
+
"preminor",
|
|
89602
|
+
"patch",
|
|
89603
|
+
"prepatch",
|
|
89604
|
+
"prerelease"
|
|
89605
|
+
],
|
|
89606
|
+
SEMVER_SPEC_VERSION,
|
|
89607
|
+
FLAG_INCLUDE_PRERELEASE: 1,
|
|
89608
|
+
FLAG_LOOSE: 2
|
|
89609
|
+
};
|
|
89610
|
+
}));
|
|
89611
|
+
//#endregion
|
|
89612
|
+
//#region ../../node_modules/semver/internal/re.js
|
|
89613
|
+
var require_re$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89614
|
+
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants$5();
|
|
89615
|
+
const debug = require_debug$1();
|
|
89616
|
+
exports = module.exports = {};
|
|
89617
|
+
const re = exports.re = [];
|
|
89618
|
+
const safeRe = exports.safeRe = [];
|
|
89619
|
+
const src = exports.src = [];
|
|
89620
|
+
const safeSrc = exports.safeSrc = [];
|
|
89621
|
+
const t = exports.t = {};
|
|
89622
|
+
let R = 0;
|
|
89623
|
+
const LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
89624
|
+
const safeRegexReplacements = [
|
|
89625
|
+
["\\s", 1],
|
|
89626
|
+
["\\d", MAX_LENGTH],
|
|
89627
|
+
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
|
|
89628
|
+
];
|
|
89629
|
+
const makeSafeRegex = (value) => {
|
|
89630
|
+
for (const [token, max] of safeRegexReplacements) value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
|
|
89631
|
+
return value;
|
|
89632
|
+
};
|
|
89633
|
+
const createToken = (name, value, isGlobal) => {
|
|
89634
|
+
const safe = makeSafeRegex(value);
|
|
89635
|
+
const index = R++;
|
|
89636
|
+
debug(name, index, value);
|
|
89637
|
+
t[name] = index;
|
|
89638
|
+
src[index] = value;
|
|
89639
|
+
safeSrc[index] = safe;
|
|
89640
|
+
re[index] = new RegExp(value, isGlobal ? "g" : void 0);
|
|
89641
|
+
safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
89642
|
+
};
|
|
89643
|
+
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
89644
|
+
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
89645
|
+
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
89646
|
+
createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
|
|
89647
|
+
createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
89648
|
+
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
|
|
89649
|
+
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
89650
|
+
createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
89651
|
+
createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
89652
|
+
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
89653
|
+
createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
|
|
89654
|
+
createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
|
|
89655
|
+
createToken("FULL", `^${src[t.FULLPLAIN]}$`);
|
|
89656
|
+
createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
|
|
89657
|
+
createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
|
|
89658
|
+
createToken("GTLT", "((?:<|>)?=?)");
|
|
89659
|
+
createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
|
89660
|
+
createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
|
|
89661
|
+
createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
|
|
89662
|
+
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
|
|
89663
|
+
createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
|
|
89664
|
+
createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
|
|
89665
|
+
createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
|
89666
|
+
createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
89667
|
+
createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
|
|
89668
|
+
createToken("COERCERTL", src[t.COERCE], true);
|
|
89669
|
+
createToken("COERCERTLFULL", src[t.COERCEFULL], true);
|
|
89670
|
+
createToken("LONETILDE", "(?:~>?)");
|
|
89671
|
+
createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
|
|
89672
|
+
exports.tildeTrimReplace = "$1~";
|
|
89673
|
+
createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
|
|
89674
|
+
createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
89675
|
+
createToken("LONECARET", "(?:\\^)");
|
|
89676
|
+
createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
|
|
89677
|
+
exports.caretTrimReplace = "$1^";
|
|
89678
|
+
createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
|
|
89679
|
+
createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
89680
|
+
createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
|
|
89681
|
+
createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
|
|
89682
|
+
createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
|
|
89683
|
+
exports.comparatorTrimReplace = "$1$2$3";
|
|
89684
|
+
createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
|
|
89685
|
+
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
|
|
89686
|
+
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
89687
|
+
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
89688
|
+
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
89689
|
+
}));
|
|
89690
|
+
//#endregion
|
|
89691
|
+
//#region ../../node_modules/semver/internal/parse-options.js
|
|
89692
|
+
var require_parse_options$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89693
|
+
const looseOption = Object.freeze({ loose: true });
|
|
89694
|
+
const emptyOpts = Object.freeze({});
|
|
89695
|
+
const parseOptions = (options) => {
|
|
89696
|
+
if (!options) return emptyOpts;
|
|
89697
|
+
if (typeof options !== "object") return looseOption;
|
|
89698
|
+
return options;
|
|
89699
|
+
};
|
|
89700
|
+
module.exports = parseOptions;
|
|
89701
|
+
}));
|
|
89702
|
+
//#endregion
|
|
89703
|
+
//#region ../../node_modules/semver/internal/identifiers.js
|
|
89704
|
+
var require_identifiers$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89705
|
+
const numeric = /^[0-9]+$/;
|
|
89706
|
+
const compareIdentifiers = (a, b) => {
|
|
89707
|
+
if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
|
|
89708
|
+
const anum = numeric.test(a);
|
|
89709
|
+
const bnum = numeric.test(b);
|
|
89710
|
+
if (anum && bnum) {
|
|
89711
|
+
a = +a;
|
|
89712
|
+
b = +b;
|
|
89713
|
+
}
|
|
89714
|
+
return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
|
|
89715
|
+
};
|
|
89716
|
+
const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
|
|
89717
|
+
module.exports = {
|
|
89718
|
+
compareIdentifiers,
|
|
89719
|
+
rcompareIdentifiers
|
|
89720
|
+
};
|
|
89721
|
+
}));
|
|
89722
|
+
//#endregion
|
|
89723
|
+
//#region ../../node_modules/semver/classes/semver.js
|
|
89724
|
+
var require_semver$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89725
|
+
const debug = require_debug$1();
|
|
89726
|
+
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants$5();
|
|
89727
|
+
const { safeRe: re, t } = require_re$1();
|
|
89728
|
+
const parseOptions = require_parse_options$1();
|
|
89729
|
+
const { compareIdentifiers } = require_identifiers$1();
|
|
89730
|
+
module.exports = class SemVer {
|
|
89731
|
+
constructor(version, options) {
|
|
89732
|
+
options = parseOptions(options);
|
|
89733
|
+
if (version instanceof SemVer) if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) return version;
|
|
89734
|
+
else version = version.version;
|
|
89735
|
+
else if (typeof version !== "string") throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
89736
|
+
if (version.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
|
|
89737
|
+
debug("SemVer", version, options);
|
|
89738
|
+
this.options = options;
|
|
89739
|
+
this.loose = !!options.loose;
|
|
89740
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
89741
|
+
const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
|
|
89742
|
+
if (!m) throw new TypeError(`Invalid Version: ${version}`);
|
|
89743
|
+
this.raw = version;
|
|
89744
|
+
this.major = +m[1];
|
|
89745
|
+
this.minor = +m[2];
|
|
89746
|
+
this.patch = +m[3];
|
|
89747
|
+
if (this.major > MAX_SAFE_INTEGER || this.major < 0) throw new TypeError("Invalid major version");
|
|
89748
|
+
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError("Invalid minor version");
|
|
89749
|
+
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError("Invalid patch version");
|
|
89750
|
+
if (!m[4]) this.prerelease = [];
|
|
89751
|
+
else this.prerelease = m[4].split(".").map((id) => {
|
|
89752
|
+
if (/^[0-9]+$/.test(id)) {
|
|
89753
|
+
const num = +id;
|
|
89754
|
+
if (num >= 0 && num < MAX_SAFE_INTEGER) return num;
|
|
89755
|
+
}
|
|
89756
|
+
return id;
|
|
89757
|
+
});
|
|
89758
|
+
this.build = m[5] ? m[5].split(".") : [];
|
|
89759
|
+
this.format();
|
|
89760
|
+
}
|
|
89761
|
+
format() {
|
|
89762
|
+
this.version = `${this.major}.${this.minor}.${this.patch}`;
|
|
89763
|
+
if (this.prerelease.length) this.version += `-${this.prerelease.join(".")}`;
|
|
89764
|
+
return this.version;
|
|
89765
|
+
}
|
|
89766
|
+
toString() {
|
|
89767
|
+
return this.version;
|
|
89768
|
+
}
|
|
89769
|
+
compare(other) {
|
|
89770
|
+
debug("SemVer.compare", this.version, this.options, other);
|
|
89771
|
+
if (!(other instanceof SemVer)) {
|
|
89772
|
+
if (typeof other === "string" && other === this.version) return 0;
|
|
89773
|
+
other = new SemVer(other, this.options);
|
|
89774
|
+
}
|
|
89775
|
+
if (other.version === this.version) return 0;
|
|
89776
|
+
return this.compareMain(other) || this.comparePre(other);
|
|
89777
|
+
}
|
|
89778
|
+
compareMain(other) {
|
|
89779
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
89780
|
+
if (this.major < other.major) return -1;
|
|
89781
|
+
if (this.major > other.major) return 1;
|
|
89782
|
+
if (this.minor < other.minor) return -1;
|
|
89783
|
+
if (this.minor > other.minor) return 1;
|
|
89784
|
+
if (this.patch < other.patch) return -1;
|
|
89785
|
+
if (this.patch > other.patch) return 1;
|
|
89786
|
+
return 0;
|
|
89787
|
+
}
|
|
89788
|
+
comparePre(other) {
|
|
89789
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
89790
|
+
if (this.prerelease.length && !other.prerelease.length) return -1;
|
|
89791
|
+
else if (!this.prerelease.length && other.prerelease.length) return 1;
|
|
89792
|
+
else if (!this.prerelease.length && !other.prerelease.length) return 0;
|
|
89793
|
+
let i = 0;
|
|
89794
|
+
do {
|
|
89795
|
+
const a = this.prerelease[i];
|
|
89796
|
+
const b = other.prerelease[i];
|
|
89797
|
+
debug("prerelease compare", i, a, b);
|
|
89798
|
+
if (a === void 0 && b === void 0) return 0;
|
|
89799
|
+
else if (b === void 0) return 1;
|
|
89800
|
+
else if (a === void 0) return -1;
|
|
89801
|
+
else if (a === b) continue;
|
|
89802
|
+
else return compareIdentifiers(a, b);
|
|
89803
|
+
} while (++i);
|
|
89804
|
+
}
|
|
89805
|
+
compareBuild(other) {
|
|
89806
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
89807
|
+
let i = 0;
|
|
89808
|
+
do {
|
|
89809
|
+
const a = this.build[i];
|
|
89810
|
+
const b = other.build[i];
|
|
89811
|
+
debug("build compare", i, a, b);
|
|
89812
|
+
if (a === void 0 && b === void 0) return 0;
|
|
89813
|
+
else if (b === void 0) return 1;
|
|
89814
|
+
else if (a === void 0) return -1;
|
|
89815
|
+
else if (a === b) continue;
|
|
89816
|
+
else return compareIdentifiers(a, b);
|
|
89817
|
+
} while (++i);
|
|
89818
|
+
}
|
|
89819
|
+
inc(release, identifier, identifierBase) {
|
|
89820
|
+
if (release.startsWith("pre")) {
|
|
89821
|
+
if (!identifier && identifierBase === false) throw new Error("invalid increment argument: identifier is empty");
|
|
89822
|
+
if (identifier) {
|
|
89823
|
+
const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
|
|
89824
|
+
if (!match || match[1] !== identifier) throw new Error(`invalid identifier: ${identifier}`);
|
|
89825
|
+
}
|
|
89826
|
+
}
|
|
89827
|
+
switch (release) {
|
|
89828
|
+
case "premajor":
|
|
89829
|
+
this.prerelease.length = 0;
|
|
89830
|
+
this.patch = 0;
|
|
89831
|
+
this.minor = 0;
|
|
89832
|
+
this.major++;
|
|
89833
|
+
this.inc("pre", identifier, identifierBase);
|
|
89834
|
+
break;
|
|
89835
|
+
case "preminor":
|
|
89836
|
+
this.prerelease.length = 0;
|
|
89837
|
+
this.patch = 0;
|
|
89838
|
+
this.minor++;
|
|
89839
|
+
this.inc("pre", identifier, identifierBase);
|
|
89840
|
+
break;
|
|
89841
|
+
case "prepatch":
|
|
89842
|
+
this.prerelease.length = 0;
|
|
89843
|
+
this.inc("patch", identifier, identifierBase);
|
|
89844
|
+
this.inc("pre", identifier, identifierBase);
|
|
89845
|
+
break;
|
|
89846
|
+
case "prerelease":
|
|
89847
|
+
if (this.prerelease.length === 0) this.inc("patch", identifier, identifierBase);
|
|
89848
|
+
this.inc("pre", identifier, identifierBase);
|
|
89849
|
+
break;
|
|
89850
|
+
case "release":
|
|
89851
|
+
if (this.prerelease.length === 0) throw new Error(`version ${this.raw} is not a prerelease`);
|
|
89852
|
+
this.prerelease.length = 0;
|
|
89853
|
+
break;
|
|
89854
|
+
case "major":
|
|
89855
|
+
if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) this.major++;
|
|
89856
|
+
this.minor = 0;
|
|
89857
|
+
this.patch = 0;
|
|
89858
|
+
this.prerelease = [];
|
|
89859
|
+
break;
|
|
89860
|
+
case "minor":
|
|
89861
|
+
if (this.patch !== 0 || this.prerelease.length === 0) this.minor++;
|
|
89862
|
+
this.patch = 0;
|
|
89863
|
+
this.prerelease = [];
|
|
89864
|
+
break;
|
|
89865
|
+
case "patch":
|
|
89866
|
+
if (this.prerelease.length === 0) this.patch++;
|
|
89867
|
+
this.prerelease = [];
|
|
89868
|
+
break;
|
|
89869
|
+
case "pre": {
|
|
89870
|
+
const base = Number(identifierBase) ? 1 : 0;
|
|
89871
|
+
if (this.prerelease.length === 0) this.prerelease = [base];
|
|
89872
|
+
else {
|
|
89873
|
+
let i = this.prerelease.length;
|
|
89874
|
+
while (--i >= 0) if (typeof this.prerelease[i] === "number") {
|
|
89875
|
+
this.prerelease[i]++;
|
|
89876
|
+
i = -2;
|
|
89877
|
+
}
|
|
89878
|
+
if (i === -1) {
|
|
89879
|
+
if (identifier === this.prerelease.join(".") && identifierBase === false) throw new Error("invalid increment argument: identifier already exists");
|
|
89880
|
+
this.prerelease.push(base);
|
|
89881
|
+
}
|
|
89882
|
+
}
|
|
89883
|
+
if (identifier) {
|
|
89884
|
+
let prerelease = [identifier, base];
|
|
89885
|
+
if (identifierBase === false) prerelease = [identifier];
|
|
89886
|
+
if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
|
|
89887
|
+
if (isNaN(this.prerelease[1])) this.prerelease = prerelease;
|
|
89888
|
+
} else this.prerelease = prerelease;
|
|
89889
|
+
}
|
|
89890
|
+
break;
|
|
89891
|
+
}
|
|
89892
|
+
default: throw new Error(`invalid increment argument: ${release}`);
|
|
89893
|
+
}
|
|
89894
|
+
this.raw = this.format();
|
|
89895
|
+
if (this.build.length) this.raw += `+${this.build.join(".")}`;
|
|
89896
|
+
return this;
|
|
89897
|
+
}
|
|
89898
|
+
};
|
|
89899
|
+
}));
|
|
89900
|
+
//#endregion
|
|
89901
|
+
//#region ../../node_modules/semver/functions/parse.js
|
|
89902
|
+
var require_parse$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89903
|
+
const SemVer = require_semver$3();
|
|
89904
|
+
const parse = (version, options, throwErrors = false) => {
|
|
89905
|
+
if (version instanceof SemVer) return version;
|
|
89906
|
+
try {
|
|
89907
|
+
return new SemVer(version, options);
|
|
89908
|
+
} catch (er) {
|
|
89909
|
+
if (!throwErrors) return null;
|
|
89910
|
+
throw er;
|
|
89911
|
+
}
|
|
89912
|
+
};
|
|
89913
|
+
module.exports = parse;
|
|
89914
|
+
}));
|
|
89915
|
+
//#endregion
|
|
89916
|
+
//#region ../../node_modules/semver/functions/valid.js
|
|
89917
|
+
var require_valid$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89918
|
+
const parse = require_parse$3();
|
|
89919
|
+
const valid = (version, options) => {
|
|
89920
|
+
const v = parse(version, options);
|
|
89921
|
+
return v ? v.version : null;
|
|
89922
|
+
};
|
|
89923
|
+
module.exports = valid;
|
|
89924
|
+
}));
|
|
89925
|
+
//#endregion
|
|
89926
|
+
//#region ../../node_modules/semver/functions/clean.js
|
|
89927
|
+
var require_clean$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89928
|
+
const parse = require_parse$3();
|
|
89929
|
+
const clean = (version, options) => {
|
|
89930
|
+
const s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
89931
|
+
return s ? s.version : null;
|
|
89932
|
+
};
|
|
89933
|
+
module.exports = clean;
|
|
89934
|
+
}));
|
|
89935
|
+
//#endregion
|
|
89413
89936
|
//#region ../../node_modules/proc-log/lib/index.js
|
|
89414
89937
|
var require_lib$29 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89415
89938
|
module.exports = {
|
|
@@ -94908,7 +95431,7 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
94908
95431
|
}));
|
|
94909
95432
|
//#endregion
|
|
94910
95433
|
//#region ../../node_modules/@npmcli/package-json/node_modules/spdx-expression-parse/parse.js
|
|
94911
|
-
var require_parse$
|
|
95434
|
+
var require_parse$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
94912
95435
|
module.exports = function(tokens) {
|
|
94913
95436
|
var index = 0;
|
|
94914
95437
|
function hasMore() {
|
|
@@ -94999,7 +95522,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
94999
95522
|
//#region ../../node_modules/@npmcli/package-json/node_modules/spdx-expression-parse/index.js
|
|
95000
95523
|
var require_spdx_expression_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
95001
95524
|
var scan = require_scan();
|
|
95002
|
-
var parse = require_parse$
|
|
95525
|
+
var parse = require_parse$2();
|
|
95003
95526
|
module.exports = function(source) {
|
|
95004
95527
|
return parse(scan(source));
|
|
95005
95528
|
};
|
|
@@ -96207,9 +96730,1026 @@ var require_spawn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
96207
96730
|
};
|
|
96208
96731
|
}));
|
|
96209
96732
|
//#endregion
|
|
96733
|
+
//#region ../../node_modules/semver/functions/inc.js
|
|
96734
|
+
var require_inc$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96735
|
+
const SemVer = require_semver$3();
|
|
96736
|
+
const inc = (version, release, options, identifier, identifierBase) => {
|
|
96737
|
+
if (typeof options === "string") {
|
|
96738
|
+
identifierBase = identifier;
|
|
96739
|
+
identifier = options;
|
|
96740
|
+
options = void 0;
|
|
96741
|
+
}
|
|
96742
|
+
try {
|
|
96743
|
+
return new SemVer(version instanceof SemVer ? version.version : version, options).inc(release, identifier, identifierBase).version;
|
|
96744
|
+
} catch (er) {
|
|
96745
|
+
return null;
|
|
96746
|
+
}
|
|
96747
|
+
};
|
|
96748
|
+
module.exports = inc;
|
|
96749
|
+
}));
|
|
96750
|
+
//#endregion
|
|
96751
|
+
//#region ../../node_modules/semver/functions/diff.js
|
|
96752
|
+
var require_diff$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96753
|
+
const parse = require_parse$3();
|
|
96754
|
+
const diff = (version1, version2) => {
|
|
96755
|
+
const v1 = parse(version1, null, true);
|
|
96756
|
+
const v2 = parse(version2, null, true);
|
|
96757
|
+
const comparison = v1.compare(v2);
|
|
96758
|
+
if (comparison === 0) return null;
|
|
96759
|
+
const v1Higher = comparison > 0;
|
|
96760
|
+
const highVersion = v1Higher ? v1 : v2;
|
|
96761
|
+
const lowVersion = v1Higher ? v2 : v1;
|
|
96762
|
+
const highHasPre = !!highVersion.prerelease.length;
|
|
96763
|
+
if (!!lowVersion.prerelease.length && !highHasPre) {
|
|
96764
|
+
if (!lowVersion.patch && !lowVersion.minor) return "major";
|
|
96765
|
+
if (lowVersion.compareMain(highVersion) === 0) {
|
|
96766
|
+
if (lowVersion.minor && !lowVersion.patch) return "minor";
|
|
96767
|
+
return "patch";
|
|
96768
|
+
}
|
|
96769
|
+
}
|
|
96770
|
+
const prefix = highHasPre ? "pre" : "";
|
|
96771
|
+
if (v1.major !== v2.major) return prefix + "major";
|
|
96772
|
+
if (v1.minor !== v2.minor) return prefix + "minor";
|
|
96773
|
+
if (v1.patch !== v2.patch) return prefix + "patch";
|
|
96774
|
+
return "prerelease";
|
|
96775
|
+
};
|
|
96776
|
+
module.exports = diff;
|
|
96777
|
+
}));
|
|
96778
|
+
//#endregion
|
|
96779
|
+
//#region ../../node_modules/semver/functions/major.js
|
|
96780
|
+
var require_major$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96781
|
+
const SemVer = require_semver$3();
|
|
96782
|
+
const major = (a, loose) => new SemVer(a, loose).major;
|
|
96783
|
+
module.exports = major;
|
|
96784
|
+
}));
|
|
96785
|
+
//#endregion
|
|
96786
|
+
//#region ../../node_modules/semver/functions/minor.js
|
|
96787
|
+
var require_minor$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96788
|
+
const SemVer = require_semver$3();
|
|
96789
|
+
const minor = (a, loose) => new SemVer(a, loose).minor;
|
|
96790
|
+
module.exports = minor;
|
|
96791
|
+
}));
|
|
96792
|
+
//#endregion
|
|
96793
|
+
//#region ../../node_modules/semver/functions/patch.js
|
|
96794
|
+
var require_patch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96795
|
+
const SemVer = require_semver$3();
|
|
96796
|
+
const patch = (a, loose) => new SemVer(a, loose).patch;
|
|
96797
|
+
module.exports = patch;
|
|
96798
|
+
}));
|
|
96799
|
+
//#endregion
|
|
96800
|
+
//#region ../../node_modules/semver/functions/prerelease.js
|
|
96801
|
+
var require_prerelease$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96802
|
+
const parse = require_parse$3();
|
|
96803
|
+
const prerelease = (version, options) => {
|
|
96804
|
+
const parsed = parse(version, options);
|
|
96805
|
+
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
96806
|
+
};
|
|
96807
|
+
module.exports = prerelease;
|
|
96808
|
+
}));
|
|
96809
|
+
//#endregion
|
|
96810
|
+
//#region ../../node_modules/semver/functions/compare.js
|
|
96811
|
+
var require_compare$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96812
|
+
const SemVer = require_semver$3();
|
|
96813
|
+
const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
96814
|
+
module.exports = compare;
|
|
96815
|
+
}));
|
|
96816
|
+
//#endregion
|
|
96817
|
+
//#region ../../node_modules/semver/functions/rcompare.js
|
|
96818
|
+
var require_rcompare$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96819
|
+
const compare = require_compare$1();
|
|
96820
|
+
const rcompare = (a, b, loose) => compare(b, a, loose);
|
|
96821
|
+
module.exports = rcompare;
|
|
96822
|
+
}));
|
|
96823
|
+
//#endregion
|
|
96824
|
+
//#region ../../node_modules/semver/functions/compare-loose.js
|
|
96825
|
+
var require_compare_loose$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96826
|
+
const compare = require_compare$1();
|
|
96827
|
+
const compareLoose = (a, b) => compare(a, b, true);
|
|
96828
|
+
module.exports = compareLoose;
|
|
96829
|
+
}));
|
|
96830
|
+
//#endregion
|
|
96831
|
+
//#region ../../node_modules/semver/functions/compare-build.js
|
|
96832
|
+
var require_compare_build$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96833
|
+
const SemVer = require_semver$3();
|
|
96834
|
+
const compareBuild = (a, b, loose) => {
|
|
96835
|
+
const versionA = new SemVer(a, loose);
|
|
96836
|
+
const versionB = new SemVer(b, loose);
|
|
96837
|
+
return versionA.compare(versionB) || versionA.compareBuild(versionB);
|
|
96838
|
+
};
|
|
96839
|
+
module.exports = compareBuild;
|
|
96840
|
+
}));
|
|
96841
|
+
//#endregion
|
|
96842
|
+
//#region ../../node_modules/semver/functions/sort.js
|
|
96843
|
+
var require_sort$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96844
|
+
const compareBuild = require_compare_build$1();
|
|
96845
|
+
const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
96846
|
+
module.exports = sort;
|
|
96847
|
+
}));
|
|
96848
|
+
//#endregion
|
|
96849
|
+
//#region ../../node_modules/semver/functions/rsort.js
|
|
96850
|
+
var require_rsort$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96851
|
+
const compareBuild = require_compare_build$1();
|
|
96852
|
+
const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
96853
|
+
module.exports = rsort;
|
|
96854
|
+
}));
|
|
96855
|
+
//#endregion
|
|
96856
|
+
//#region ../../node_modules/semver/functions/gt.js
|
|
96857
|
+
var require_gt$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96858
|
+
const compare = require_compare$1();
|
|
96859
|
+
const gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
96860
|
+
module.exports = gt;
|
|
96861
|
+
}));
|
|
96862
|
+
//#endregion
|
|
96863
|
+
//#region ../../node_modules/semver/functions/lt.js
|
|
96864
|
+
var require_lt$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96865
|
+
const compare = require_compare$1();
|
|
96866
|
+
const lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
96867
|
+
module.exports = lt;
|
|
96868
|
+
}));
|
|
96869
|
+
//#endregion
|
|
96870
|
+
//#region ../../node_modules/semver/functions/eq.js
|
|
96871
|
+
var require_eq$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96872
|
+
const compare = require_compare$1();
|
|
96873
|
+
const eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
96874
|
+
module.exports = eq;
|
|
96875
|
+
}));
|
|
96876
|
+
//#endregion
|
|
96877
|
+
//#region ../../node_modules/semver/functions/neq.js
|
|
96878
|
+
var require_neq$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96879
|
+
const compare = require_compare$1();
|
|
96880
|
+
const neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
96881
|
+
module.exports = neq;
|
|
96882
|
+
}));
|
|
96883
|
+
//#endregion
|
|
96884
|
+
//#region ../../node_modules/semver/functions/gte.js
|
|
96885
|
+
var require_gte$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96886
|
+
const compare = require_compare$1();
|
|
96887
|
+
const gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
96888
|
+
module.exports = gte;
|
|
96889
|
+
}));
|
|
96890
|
+
//#endregion
|
|
96891
|
+
//#region ../../node_modules/semver/functions/lte.js
|
|
96892
|
+
var require_lte$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96893
|
+
const compare = require_compare$1();
|
|
96894
|
+
const lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
96895
|
+
module.exports = lte;
|
|
96896
|
+
}));
|
|
96897
|
+
//#endregion
|
|
96898
|
+
//#region ../../node_modules/semver/functions/cmp.js
|
|
96899
|
+
var require_cmp$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96900
|
+
const eq = require_eq$1();
|
|
96901
|
+
const neq = require_neq$1();
|
|
96902
|
+
const gt = require_gt$1();
|
|
96903
|
+
const gte = require_gte$1();
|
|
96904
|
+
const lt = require_lt$1();
|
|
96905
|
+
const lte = require_lte$1();
|
|
96906
|
+
const cmp = (a, op, b, loose) => {
|
|
96907
|
+
switch (op) {
|
|
96908
|
+
case "===":
|
|
96909
|
+
if (typeof a === "object") a = a.version;
|
|
96910
|
+
if (typeof b === "object") b = b.version;
|
|
96911
|
+
return a === b;
|
|
96912
|
+
case "!==":
|
|
96913
|
+
if (typeof a === "object") a = a.version;
|
|
96914
|
+
if (typeof b === "object") b = b.version;
|
|
96915
|
+
return a !== b;
|
|
96916
|
+
case "":
|
|
96917
|
+
case "=":
|
|
96918
|
+
case "==": return eq(a, b, loose);
|
|
96919
|
+
case "!=": return neq(a, b, loose);
|
|
96920
|
+
case ">": return gt(a, b, loose);
|
|
96921
|
+
case ">=": return gte(a, b, loose);
|
|
96922
|
+
case "<": return lt(a, b, loose);
|
|
96923
|
+
case "<=": return lte(a, b, loose);
|
|
96924
|
+
default: throw new TypeError(`Invalid operator: ${op}`);
|
|
96925
|
+
}
|
|
96926
|
+
};
|
|
96927
|
+
module.exports = cmp;
|
|
96928
|
+
}));
|
|
96929
|
+
//#endregion
|
|
96930
|
+
//#region ../../node_modules/semver/functions/coerce.js
|
|
96931
|
+
var require_coerce$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96932
|
+
const SemVer = require_semver$3();
|
|
96933
|
+
const parse = require_parse$3();
|
|
96934
|
+
const { safeRe: re, t } = require_re$1();
|
|
96935
|
+
const coerce = (version, options) => {
|
|
96936
|
+
if (version instanceof SemVer) return version;
|
|
96937
|
+
if (typeof version === "number") version = String(version);
|
|
96938
|
+
if (typeof version !== "string") return null;
|
|
96939
|
+
options = options || {};
|
|
96940
|
+
let match = null;
|
|
96941
|
+
if (!options.rtl) match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
|
|
96942
|
+
else {
|
|
96943
|
+
const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL];
|
|
96944
|
+
let next;
|
|
96945
|
+
while ((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)) {
|
|
96946
|
+
if (!match || next.index + next[0].length !== match.index + match[0].length) match = next;
|
|
96947
|
+
coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
|
96948
|
+
}
|
|
96949
|
+
coerceRtlRegex.lastIndex = -1;
|
|
96950
|
+
}
|
|
96951
|
+
if (match === null) return null;
|
|
96952
|
+
const major = match[2];
|
|
96953
|
+
return parse(`${major}.${match[3] || "0"}.${match[4] || "0"}${options.includePrerelease && match[5] ? `-${match[5]}` : ""}${options.includePrerelease && match[6] ? `+${match[6]}` : ""}`, options);
|
|
96954
|
+
};
|
|
96955
|
+
module.exports = coerce;
|
|
96956
|
+
}));
|
|
96957
|
+
//#endregion
|
|
96958
|
+
//#region ../../node_modules/semver/functions/truncate.js
|
|
96959
|
+
var require_truncate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96960
|
+
const parse = require_parse$3();
|
|
96961
|
+
const constants = require_constants$5();
|
|
96962
|
+
const SemVer = require_semver$3();
|
|
96963
|
+
const truncate = (version, truncation, options) => {
|
|
96964
|
+
if (!constants.RELEASE_TYPES.includes(truncation)) return null;
|
|
96965
|
+
const clonedVersion = cloneInputVersion(version, options);
|
|
96966
|
+
return clonedVersion && doTruncation(clonedVersion, truncation);
|
|
96967
|
+
};
|
|
96968
|
+
const cloneInputVersion = (version, options) => {
|
|
96969
|
+
return parse(version instanceof SemVer ? version.version : version, options);
|
|
96970
|
+
};
|
|
96971
|
+
const doTruncation = (version, truncation) => {
|
|
96972
|
+
if (isPrerelease(truncation)) return version.version;
|
|
96973
|
+
version.prerelease = [];
|
|
96974
|
+
switch (truncation) {
|
|
96975
|
+
case "major":
|
|
96976
|
+
version.minor = 0;
|
|
96977
|
+
version.patch = 0;
|
|
96978
|
+
break;
|
|
96979
|
+
case "minor":
|
|
96980
|
+
version.patch = 0;
|
|
96981
|
+
break;
|
|
96982
|
+
}
|
|
96983
|
+
return version.format();
|
|
96984
|
+
};
|
|
96985
|
+
const isPrerelease = (type) => {
|
|
96986
|
+
return type.startsWith("pre");
|
|
96987
|
+
};
|
|
96988
|
+
module.exports = truncate;
|
|
96989
|
+
}));
|
|
96990
|
+
//#endregion
|
|
96991
|
+
//#region ../../node_modules/semver/internal/lrucache.js
|
|
96992
|
+
var require_lrucache$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96993
|
+
var LRUCache = class {
|
|
96994
|
+
constructor() {
|
|
96995
|
+
this.max = 1e3;
|
|
96996
|
+
this.map = /* @__PURE__ */ new Map();
|
|
96997
|
+
}
|
|
96998
|
+
get(key) {
|
|
96999
|
+
const value = this.map.get(key);
|
|
97000
|
+
if (value === void 0) return;
|
|
97001
|
+
else {
|
|
97002
|
+
this.map.delete(key);
|
|
97003
|
+
this.map.set(key, value);
|
|
97004
|
+
return value;
|
|
97005
|
+
}
|
|
97006
|
+
}
|
|
97007
|
+
delete(key) {
|
|
97008
|
+
return this.map.delete(key);
|
|
97009
|
+
}
|
|
97010
|
+
set(key, value) {
|
|
97011
|
+
if (!this.delete(key) && value !== void 0) {
|
|
97012
|
+
if (this.map.size >= this.max) {
|
|
97013
|
+
const firstKey = this.map.keys().next().value;
|
|
97014
|
+
this.delete(firstKey);
|
|
97015
|
+
}
|
|
97016
|
+
this.map.set(key, value);
|
|
97017
|
+
}
|
|
97018
|
+
return this;
|
|
97019
|
+
}
|
|
97020
|
+
};
|
|
97021
|
+
module.exports = LRUCache;
|
|
97022
|
+
}));
|
|
97023
|
+
//#endregion
|
|
97024
|
+
//#region ../../node_modules/semver/classes/range.js
|
|
97025
|
+
var require_range$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97026
|
+
const SPACE_CHARACTERS = /\s+/g;
|
|
97027
|
+
module.exports = class Range {
|
|
97028
|
+
constructor(range, options) {
|
|
97029
|
+
options = parseOptions(options);
|
|
97030
|
+
if (range instanceof Range) if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) return range;
|
|
97031
|
+
else return new Range(range.raw, options);
|
|
97032
|
+
if (range instanceof Comparator) {
|
|
97033
|
+
this.raw = range.value;
|
|
97034
|
+
this.set = [[range]];
|
|
97035
|
+
this.formatted = void 0;
|
|
97036
|
+
return this;
|
|
97037
|
+
}
|
|
97038
|
+
this.options = options;
|
|
97039
|
+
this.loose = !!options.loose;
|
|
97040
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
97041
|
+
this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
|
|
97042
|
+
this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
|
|
97043
|
+
if (!this.set.length) throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
97044
|
+
if (this.set.length > 1) {
|
|
97045
|
+
const first = this.set[0];
|
|
97046
|
+
this.set = this.set.filter((c) => !isNullSet(c[0]));
|
|
97047
|
+
if (this.set.length === 0) this.set = [first];
|
|
97048
|
+
else if (this.set.length > 1) {
|
|
97049
|
+
for (const c of this.set) if (c.length === 1 && isAny(c[0])) {
|
|
97050
|
+
this.set = [c];
|
|
97051
|
+
break;
|
|
97052
|
+
}
|
|
97053
|
+
}
|
|
97054
|
+
}
|
|
97055
|
+
this.formatted = void 0;
|
|
97056
|
+
}
|
|
97057
|
+
get range() {
|
|
97058
|
+
if (this.formatted === void 0) {
|
|
97059
|
+
this.formatted = "";
|
|
97060
|
+
for (let i = 0; i < this.set.length; i++) {
|
|
97061
|
+
if (i > 0) this.formatted += "||";
|
|
97062
|
+
const comps = this.set[i];
|
|
97063
|
+
for (let k = 0; k < comps.length; k++) {
|
|
97064
|
+
if (k > 0) this.formatted += " ";
|
|
97065
|
+
this.formatted += comps[k].toString().trim();
|
|
97066
|
+
}
|
|
97067
|
+
}
|
|
97068
|
+
}
|
|
97069
|
+
return this.formatted;
|
|
97070
|
+
}
|
|
97071
|
+
format() {
|
|
97072
|
+
return this.range;
|
|
97073
|
+
}
|
|
97074
|
+
toString() {
|
|
97075
|
+
return this.range;
|
|
97076
|
+
}
|
|
97077
|
+
parseRange(range) {
|
|
97078
|
+
const memoKey = ((this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE)) + ":" + range;
|
|
97079
|
+
const cached = cache.get(memoKey);
|
|
97080
|
+
if (cached) return cached;
|
|
97081
|
+
const loose = this.options.loose;
|
|
97082
|
+
const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
|
|
97083
|
+
range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
|
|
97084
|
+
debug("hyphen replace", range);
|
|
97085
|
+
range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace);
|
|
97086
|
+
debug("comparator trim", range);
|
|
97087
|
+
range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
|
|
97088
|
+
debug("tilde trim", range);
|
|
97089
|
+
range = range.replace(re[t.CARETTRIM], caretTrimReplace);
|
|
97090
|
+
debug("caret trim", range);
|
|
97091
|
+
let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
|
|
97092
|
+
if (loose) rangeList = rangeList.filter((comp) => {
|
|
97093
|
+
debug("loose invalid filter", comp, this.options);
|
|
97094
|
+
return !!comp.match(re[t.COMPARATORLOOSE]);
|
|
97095
|
+
});
|
|
97096
|
+
debug("range list", rangeList);
|
|
97097
|
+
const rangeMap = /* @__PURE__ */ new Map();
|
|
97098
|
+
const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
|
|
97099
|
+
for (const comp of comparators) {
|
|
97100
|
+
if (isNullSet(comp)) return [comp];
|
|
97101
|
+
rangeMap.set(comp.value, comp);
|
|
97102
|
+
}
|
|
97103
|
+
if (rangeMap.size > 1 && rangeMap.has("")) rangeMap.delete("");
|
|
97104
|
+
const result = [...rangeMap.values()];
|
|
97105
|
+
cache.set(memoKey, result);
|
|
97106
|
+
return result;
|
|
97107
|
+
}
|
|
97108
|
+
intersects(range, options) {
|
|
97109
|
+
if (!(range instanceof Range)) throw new TypeError("a Range is required");
|
|
97110
|
+
return this.set.some((thisComparators) => {
|
|
97111
|
+
return isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => {
|
|
97112
|
+
return isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => {
|
|
97113
|
+
return rangeComparators.every((rangeComparator) => {
|
|
97114
|
+
return thisComparator.intersects(rangeComparator, options);
|
|
97115
|
+
});
|
|
97116
|
+
});
|
|
97117
|
+
});
|
|
97118
|
+
});
|
|
97119
|
+
}
|
|
97120
|
+
test(version) {
|
|
97121
|
+
if (!version) return false;
|
|
97122
|
+
if (typeof version === "string") try {
|
|
97123
|
+
version = new SemVer(version, this.options);
|
|
97124
|
+
} catch (er) {
|
|
97125
|
+
return false;
|
|
97126
|
+
}
|
|
97127
|
+
for (let i = 0; i < this.set.length; i++) if (testSet(this.set[i], version, this.options)) return true;
|
|
97128
|
+
return false;
|
|
97129
|
+
}
|
|
97130
|
+
};
|
|
97131
|
+
const cache = new (require_lrucache$1())();
|
|
97132
|
+
const parseOptions = require_parse_options$1();
|
|
97133
|
+
const Comparator = require_comparator$1();
|
|
97134
|
+
const debug = require_debug$1();
|
|
97135
|
+
const SemVer = require_semver$3();
|
|
97136
|
+
const { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re$1();
|
|
97137
|
+
const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants$5();
|
|
97138
|
+
const isNullSet = (c) => c.value === "<0.0.0-0";
|
|
97139
|
+
const isAny = (c) => c.value === "";
|
|
97140
|
+
const isSatisfiable = (comparators, options) => {
|
|
97141
|
+
let result = true;
|
|
97142
|
+
const remainingComparators = comparators.slice();
|
|
97143
|
+
let testComparator = remainingComparators.pop();
|
|
97144
|
+
while (result && remainingComparators.length) {
|
|
97145
|
+
result = remainingComparators.every((otherComparator) => {
|
|
97146
|
+
return testComparator.intersects(otherComparator, options);
|
|
97147
|
+
});
|
|
97148
|
+
testComparator = remainingComparators.pop();
|
|
97149
|
+
}
|
|
97150
|
+
return result;
|
|
97151
|
+
};
|
|
97152
|
+
const parseComparator = (comp, options) => {
|
|
97153
|
+
comp = comp.replace(re[t.BUILD], "");
|
|
97154
|
+
debug("comp", comp, options);
|
|
97155
|
+
comp = replaceCarets(comp, options);
|
|
97156
|
+
debug("caret", comp);
|
|
97157
|
+
comp = replaceTildes(comp, options);
|
|
97158
|
+
debug("tildes", comp);
|
|
97159
|
+
comp = replaceXRanges(comp, options);
|
|
97160
|
+
debug("xrange", comp);
|
|
97161
|
+
comp = replaceStars(comp, options);
|
|
97162
|
+
debug("stars", comp);
|
|
97163
|
+
return comp;
|
|
97164
|
+
};
|
|
97165
|
+
const isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
|
|
97166
|
+
const replaceTildes = (comp, options) => {
|
|
97167
|
+
return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
|
|
97168
|
+
};
|
|
97169
|
+
const replaceTilde = (comp, options) => {
|
|
97170
|
+
const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
|
|
97171
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
97172
|
+
debug("tilde", comp, _, M, m, p, pr);
|
|
97173
|
+
let ret;
|
|
97174
|
+
if (isX(M)) ret = "";
|
|
97175
|
+
else if (isX(m)) ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
|
|
97176
|
+
else if (isX(p)) ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
|
|
97177
|
+
else if (pr) {
|
|
97178
|
+
debug("replaceTilde pr", pr);
|
|
97179
|
+
ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
97180
|
+
} else ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
|
|
97181
|
+
debug("tilde return", ret);
|
|
97182
|
+
return ret;
|
|
97183
|
+
});
|
|
97184
|
+
};
|
|
97185
|
+
const replaceCarets = (comp, options) => {
|
|
97186
|
+
return comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" ");
|
|
97187
|
+
};
|
|
97188
|
+
const replaceCaret = (comp, options) => {
|
|
97189
|
+
debug("caret", comp, options);
|
|
97190
|
+
const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET];
|
|
97191
|
+
const z = options.includePrerelease ? "-0" : "";
|
|
97192
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
97193
|
+
debug("caret", comp, _, M, m, p, pr);
|
|
97194
|
+
let ret;
|
|
97195
|
+
if (isX(M)) ret = "";
|
|
97196
|
+
else if (isX(m)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
|
|
97197
|
+
else if (isX(p)) if (M === "0") ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
|
|
97198
|
+
else ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
|
|
97199
|
+
else if (pr) {
|
|
97200
|
+
debug("replaceCaret pr", pr);
|
|
97201
|
+
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;
|
|
97202
|
+
else ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
97203
|
+
else ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
|
|
97204
|
+
} else {
|
|
97205
|
+
debug("no pr");
|
|
97206
|
+
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0`;
|
|
97207
|
+
else ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0`;
|
|
97208
|
+
else ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
|
|
97209
|
+
}
|
|
97210
|
+
debug("caret return", ret);
|
|
97211
|
+
return ret;
|
|
97212
|
+
});
|
|
97213
|
+
};
|
|
97214
|
+
const replaceXRanges = (comp, options) => {
|
|
97215
|
+
debug("replaceXRanges", comp, options);
|
|
97216
|
+
return comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ");
|
|
97217
|
+
};
|
|
97218
|
+
const replaceXRange = (comp, options) => {
|
|
97219
|
+
comp = comp.trim();
|
|
97220
|
+
const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
|
|
97221
|
+
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
|
|
97222
|
+
debug("xRange", comp, ret, gtlt, M, m, p, pr);
|
|
97223
|
+
const xM = isX(M);
|
|
97224
|
+
const xm = xM || isX(m);
|
|
97225
|
+
const xp = xm || isX(p);
|
|
97226
|
+
const anyX = xp;
|
|
97227
|
+
if (gtlt === "=" && anyX) gtlt = "";
|
|
97228
|
+
pr = options.includePrerelease ? "-0" : "";
|
|
97229
|
+
if (xM) if (gtlt === ">" || gtlt === "<") ret = "<0.0.0-0";
|
|
97230
|
+
else ret = "*";
|
|
97231
|
+
else if (gtlt && anyX) {
|
|
97232
|
+
if (xm) m = 0;
|
|
97233
|
+
p = 0;
|
|
97234
|
+
if (gtlt === ">") {
|
|
97235
|
+
gtlt = ">=";
|
|
97236
|
+
if (xm) {
|
|
97237
|
+
M = +M + 1;
|
|
97238
|
+
m = 0;
|
|
97239
|
+
p = 0;
|
|
97240
|
+
} else {
|
|
97241
|
+
m = +m + 1;
|
|
97242
|
+
p = 0;
|
|
97243
|
+
}
|
|
97244
|
+
} else if (gtlt === "<=") {
|
|
97245
|
+
gtlt = "<";
|
|
97246
|
+
if (xm) M = +M + 1;
|
|
97247
|
+
else m = +m + 1;
|
|
97248
|
+
}
|
|
97249
|
+
if (gtlt === "<") pr = "-0";
|
|
97250
|
+
ret = `${gtlt + M}.${m}.${p}${pr}`;
|
|
97251
|
+
} else if (xm) ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
|
|
97252
|
+
else if (xp) ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;
|
|
97253
|
+
debug("xRange return", ret);
|
|
97254
|
+
return ret;
|
|
97255
|
+
});
|
|
97256
|
+
};
|
|
97257
|
+
const replaceStars = (comp, options) => {
|
|
97258
|
+
debug("replaceStars", comp, options);
|
|
97259
|
+
return comp.trim().replace(re[t.STAR], "");
|
|
97260
|
+
};
|
|
97261
|
+
const replaceGTE0 = (comp, options) => {
|
|
97262
|
+
debug("replaceGTE0", comp, options);
|
|
97263
|
+
return comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
|
|
97264
|
+
};
|
|
97265
|
+
const hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
|
|
97266
|
+
if (isX(fM)) from = "";
|
|
97267
|
+
else if (isX(fm)) from = `>=${fM}.0.0${incPr ? "-0" : ""}`;
|
|
97268
|
+
else if (isX(fp)) from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}`;
|
|
97269
|
+
else if (fpr) from = `>=${from}`;
|
|
97270
|
+
else from = `>=${from}${incPr ? "-0" : ""}`;
|
|
97271
|
+
if (isX(tM)) to = "";
|
|
97272
|
+
else if (isX(tm)) to = `<${+tM + 1}.0.0-0`;
|
|
97273
|
+
else if (isX(tp)) to = `<${tM}.${+tm + 1}.0-0`;
|
|
97274
|
+
else if (tpr) to = `<=${tM}.${tm}.${tp}-${tpr}`;
|
|
97275
|
+
else if (incPr) to = `<${tM}.${tm}.${+tp + 1}-0`;
|
|
97276
|
+
else to = `<=${to}`;
|
|
97277
|
+
return `${from} ${to}`.trim();
|
|
97278
|
+
};
|
|
97279
|
+
const testSet = (set, version, options) => {
|
|
97280
|
+
for (let i = 0; i < set.length; i++) if (!set[i].test(version)) return false;
|
|
97281
|
+
if (version.prerelease.length && !options.includePrerelease) {
|
|
97282
|
+
for (let i = 0; i < set.length; i++) {
|
|
97283
|
+
debug(set[i].semver);
|
|
97284
|
+
if (set[i].semver === Comparator.ANY) continue;
|
|
97285
|
+
if (set[i].semver.prerelease.length > 0) {
|
|
97286
|
+
const allowed = set[i].semver;
|
|
97287
|
+
if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) return true;
|
|
97288
|
+
}
|
|
97289
|
+
}
|
|
97290
|
+
return false;
|
|
97291
|
+
}
|
|
97292
|
+
return true;
|
|
97293
|
+
};
|
|
97294
|
+
}));
|
|
97295
|
+
//#endregion
|
|
97296
|
+
//#region ../../node_modules/semver/classes/comparator.js
|
|
97297
|
+
var require_comparator$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97298
|
+
const ANY = Symbol("SemVer ANY");
|
|
97299
|
+
module.exports = class Comparator {
|
|
97300
|
+
static get ANY() {
|
|
97301
|
+
return ANY;
|
|
97302
|
+
}
|
|
97303
|
+
constructor(comp, options) {
|
|
97304
|
+
options = parseOptions(options);
|
|
97305
|
+
if (comp instanceof Comparator) if (comp.loose === !!options.loose) return comp;
|
|
97306
|
+
else comp = comp.value;
|
|
97307
|
+
comp = comp.trim().split(/\s+/).join(" ");
|
|
97308
|
+
debug("comparator", comp, options);
|
|
97309
|
+
this.options = options;
|
|
97310
|
+
this.loose = !!options.loose;
|
|
97311
|
+
this.parse(comp);
|
|
97312
|
+
if (this.semver === ANY) this.value = "";
|
|
97313
|
+
else this.value = this.operator + this.semver.version;
|
|
97314
|
+
debug("comp", this);
|
|
97315
|
+
}
|
|
97316
|
+
parse(comp) {
|
|
97317
|
+
const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR];
|
|
97318
|
+
const m = comp.match(r);
|
|
97319
|
+
if (!m) throw new TypeError(`Invalid comparator: ${comp}`);
|
|
97320
|
+
this.operator = m[1] !== void 0 ? m[1] : "";
|
|
97321
|
+
if (this.operator === "=") this.operator = "";
|
|
97322
|
+
if (!m[2]) this.semver = ANY;
|
|
97323
|
+
else this.semver = new SemVer(m[2], this.options.loose);
|
|
97324
|
+
}
|
|
97325
|
+
toString() {
|
|
97326
|
+
return this.value;
|
|
97327
|
+
}
|
|
97328
|
+
test(version) {
|
|
97329
|
+
debug("Comparator.test", version, this.options.loose);
|
|
97330
|
+
if (this.semver === ANY || version === ANY) return true;
|
|
97331
|
+
if (typeof version === "string") try {
|
|
97332
|
+
version = new SemVer(version, this.options);
|
|
97333
|
+
} catch (er) {
|
|
97334
|
+
return false;
|
|
97335
|
+
}
|
|
97336
|
+
return cmp(version, this.operator, this.semver, this.options);
|
|
97337
|
+
}
|
|
97338
|
+
intersects(comp, options) {
|
|
97339
|
+
if (!(comp instanceof Comparator)) throw new TypeError("a Comparator is required");
|
|
97340
|
+
if (this.operator === "") {
|
|
97341
|
+
if (this.value === "") return true;
|
|
97342
|
+
return new Range(comp.value, options).test(this.value);
|
|
97343
|
+
} else if (comp.operator === "") {
|
|
97344
|
+
if (comp.value === "") return true;
|
|
97345
|
+
return new Range(this.value, options).test(comp.semver);
|
|
97346
|
+
}
|
|
97347
|
+
options = parseOptions(options);
|
|
97348
|
+
if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) return false;
|
|
97349
|
+
if (!options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0"))) return false;
|
|
97350
|
+
if (this.operator.startsWith(">") && comp.operator.startsWith(">")) return true;
|
|
97351
|
+
if (this.operator.startsWith("<") && comp.operator.startsWith("<")) return true;
|
|
97352
|
+
if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) return true;
|
|
97353
|
+
if (cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) return true;
|
|
97354
|
+
if (cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) return true;
|
|
97355
|
+
return false;
|
|
97356
|
+
}
|
|
97357
|
+
};
|
|
97358
|
+
const parseOptions = require_parse_options$1();
|
|
97359
|
+
const { safeRe: re, t } = require_re$1();
|
|
97360
|
+
const cmp = require_cmp$1();
|
|
97361
|
+
const debug = require_debug$1();
|
|
97362
|
+
const SemVer = require_semver$3();
|
|
97363
|
+
const Range = require_range$1();
|
|
97364
|
+
}));
|
|
97365
|
+
//#endregion
|
|
97366
|
+
//#region ../../node_modules/semver/functions/satisfies.js
|
|
97367
|
+
var require_satisfies$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97368
|
+
const Range = require_range$1();
|
|
97369
|
+
const satisfies = (version, range, options) => {
|
|
97370
|
+
try {
|
|
97371
|
+
range = new Range(range, options);
|
|
97372
|
+
} catch (er) {
|
|
97373
|
+
return false;
|
|
97374
|
+
}
|
|
97375
|
+
return range.test(version);
|
|
97376
|
+
};
|
|
97377
|
+
module.exports = satisfies;
|
|
97378
|
+
}));
|
|
97379
|
+
//#endregion
|
|
97380
|
+
//#region ../../node_modules/semver/ranges/to-comparators.js
|
|
97381
|
+
var require_to_comparators$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97382
|
+
const Range = require_range$1();
|
|
97383
|
+
const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
97384
|
+
module.exports = toComparators;
|
|
97385
|
+
}));
|
|
97386
|
+
//#endregion
|
|
97387
|
+
//#region ../../node_modules/semver/ranges/max-satisfying.js
|
|
97388
|
+
var require_max_satisfying$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97389
|
+
const SemVer = require_semver$3();
|
|
97390
|
+
const Range = require_range$1();
|
|
97391
|
+
const maxSatisfying = (versions, range, options) => {
|
|
97392
|
+
let max = null;
|
|
97393
|
+
let maxSV = null;
|
|
97394
|
+
let rangeObj = null;
|
|
97395
|
+
try {
|
|
97396
|
+
rangeObj = new Range(range, options);
|
|
97397
|
+
} catch (er) {
|
|
97398
|
+
return null;
|
|
97399
|
+
}
|
|
97400
|
+
versions.forEach((v) => {
|
|
97401
|
+
if (rangeObj.test(v)) {
|
|
97402
|
+
if (!max || maxSV.compare(v) === -1) {
|
|
97403
|
+
max = v;
|
|
97404
|
+
maxSV = new SemVer(max, options);
|
|
97405
|
+
}
|
|
97406
|
+
}
|
|
97407
|
+
});
|
|
97408
|
+
return max;
|
|
97409
|
+
};
|
|
97410
|
+
module.exports = maxSatisfying;
|
|
97411
|
+
}));
|
|
97412
|
+
//#endregion
|
|
97413
|
+
//#region ../../node_modules/semver/ranges/min-satisfying.js
|
|
97414
|
+
var require_min_satisfying$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97415
|
+
const SemVer = require_semver$3();
|
|
97416
|
+
const Range = require_range$1();
|
|
97417
|
+
const minSatisfying = (versions, range, options) => {
|
|
97418
|
+
let min = null;
|
|
97419
|
+
let minSV = null;
|
|
97420
|
+
let rangeObj = null;
|
|
97421
|
+
try {
|
|
97422
|
+
rangeObj = new Range(range, options);
|
|
97423
|
+
} catch (er) {
|
|
97424
|
+
return null;
|
|
97425
|
+
}
|
|
97426
|
+
versions.forEach((v) => {
|
|
97427
|
+
if (rangeObj.test(v)) {
|
|
97428
|
+
if (!min || minSV.compare(v) === 1) {
|
|
97429
|
+
min = v;
|
|
97430
|
+
minSV = new SemVer(min, options);
|
|
97431
|
+
}
|
|
97432
|
+
}
|
|
97433
|
+
});
|
|
97434
|
+
return min;
|
|
97435
|
+
};
|
|
97436
|
+
module.exports = minSatisfying;
|
|
97437
|
+
}));
|
|
97438
|
+
//#endregion
|
|
97439
|
+
//#region ../../node_modules/semver/ranges/min-version.js
|
|
97440
|
+
var require_min_version$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97441
|
+
const SemVer = require_semver$3();
|
|
97442
|
+
const Range = require_range$1();
|
|
97443
|
+
const gt = require_gt$1();
|
|
97444
|
+
const minVersion = (range, loose) => {
|
|
97445
|
+
range = new Range(range, loose);
|
|
97446
|
+
let minver = new SemVer("0.0.0");
|
|
97447
|
+
if (range.test(minver)) return minver;
|
|
97448
|
+
minver = new SemVer("0.0.0-0");
|
|
97449
|
+
if (range.test(minver)) return minver;
|
|
97450
|
+
minver = null;
|
|
97451
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
97452
|
+
const comparators = range.set[i];
|
|
97453
|
+
let setMin = null;
|
|
97454
|
+
comparators.forEach((comparator) => {
|
|
97455
|
+
const compver = new SemVer(comparator.semver.version);
|
|
97456
|
+
switch (comparator.operator) {
|
|
97457
|
+
case ">":
|
|
97458
|
+
if (compver.prerelease.length === 0) compver.patch++;
|
|
97459
|
+
else compver.prerelease.push(0);
|
|
97460
|
+
compver.raw = compver.format();
|
|
97461
|
+
case "":
|
|
97462
|
+
case ">=":
|
|
97463
|
+
if (!setMin || gt(compver, setMin)) setMin = compver;
|
|
97464
|
+
break;
|
|
97465
|
+
case "<":
|
|
97466
|
+
case "<=": break;
|
|
97467
|
+
default: throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
97468
|
+
}
|
|
97469
|
+
});
|
|
97470
|
+
if (setMin && (!minver || gt(minver, setMin))) minver = setMin;
|
|
97471
|
+
}
|
|
97472
|
+
if (minver && range.test(minver)) return minver;
|
|
97473
|
+
return null;
|
|
97474
|
+
};
|
|
97475
|
+
module.exports = minVersion;
|
|
97476
|
+
}));
|
|
97477
|
+
//#endregion
|
|
97478
|
+
//#region ../../node_modules/semver/ranges/valid.js
|
|
97479
|
+
var require_valid$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97480
|
+
const Range = require_range$1();
|
|
97481
|
+
const validRange = (range, options) => {
|
|
97482
|
+
try {
|
|
97483
|
+
return new Range(range, options).range || "*";
|
|
97484
|
+
} catch (er) {
|
|
97485
|
+
return null;
|
|
97486
|
+
}
|
|
97487
|
+
};
|
|
97488
|
+
module.exports = validRange;
|
|
97489
|
+
}));
|
|
97490
|
+
//#endregion
|
|
97491
|
+
//#region ../../node_modules/semver/ranges/outside.js
|
|
97492
|
+
var require_outside$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97493
|
+
const SemVer = require_semver$3();
|
|
97494
|
+
const Comparator = require_comparator$1();
|
|
97495
|
+
const { ANY } = Comparator;
|
|
97496
|
+
const Range = require_range$1();
|
|
97497
|
+
const satisfies = require_satisfies$1();
|
|
97498
|
+
const gt = require_gt$1();
|
|
97499
|
+
const lt = require_lt$1();
|
|
97500
|
+
const lte = require_lte$1();
|
|
97501
|
+
const gte = require_gte$1();
|
|
97502
|
+
const outside = (version, range, hilo, options) => {
|
|
97503
|
+
version = new SemVer(version, options);
|
|
97504
|
+
range = new Range(range, options);
|
|
97505
|
+
let gtfn, ltefn, ltfn, comp, ecomp;
|
|
97506
|
+
switch (hilo) {
|
|
97507
|
+
case ">":
|
|
97508
|
+
gtfn = gt;
|
|
97509
|
+
ltefn = lte;
|
|
97510
|
+
ltfn = lt;
|
|
97511
|
+
comp = ">";
|
|
97512
|
+
ecomp = ">=";
|
|
97513
|
+
break;
|
|
97514
|
+
case "<":
|
|
97515
|
+
gtfn = lt;
|
|
97516
|
+
ltefn = gte;
|
|
97517
|
+
ltfn = gt;
|
|
97518
|
+
comp = "<";
|
|
97519
|
+
ecomp = "<=";
|
|
97520
|
+
break;
|
|
97521
|
+
default: throw new TypeError("Must provide a hilo val of \"<\" or \">\"");
|
|
97522
|
+
}
|
|
97523
|
+
if (satisfies(version, range, options)) return false;
|
|
97524
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
97525
|
+
const comparators = range.set[i];
|
|
97526
|
+
let high = null;
|
|
97527
|
+
let low = null;
|
|
97528
|
+
comparators.forEach((comparator) => {
|
|
97529
|
+
if (comparator.semver === ANY) comparator = new Comparator(">=0.0.0");
|
|
97530
|
+
high = high || comparator;
|
|
97531
|
+
low = low || comparator;
|
|
97532
|
+
if (gtfn(comparator.semver, high.semver, options)) high = comparator;
|
|
97533
|
+
else if (ltfn(comparator.semver, low.semver, options)) low = comparator;
|
|
97534
|
+
});
|
|
97535
|
+
if (high.operator === comp || high.operator === ecomp) return false;
|
|
97536
|
+
if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) return false;
|
|
97537
|
+
else if (low.operator === ecomp && ltfn(version, low.semver)) return false;
|
|
97538
|
+
}
|
|
97539
|
+
return true;
|
|
97540
|
+
};
|
|
97541
|
+
module.exports = outside;
|
|
97542
|
+
}));
|
|
97543
|
+
//#endregion
|
|
97544
|
+
//#region ../../node_modules/semver/ranges/gtr.js
|
|
97545
|
+
var require_gtr$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97546
|
+
const outside = require_outside$1();
|
|
97547
|
+
const gtr = (version, range, options) => outside(version, range, ">", options);
|
|
97548
|
+
module.exports = gtr;
|
|
97549
|
+
}));
|
|
97550
|
+
//#endregion
|
|
97551
|
+
//#region ../../node_modules/semver/ranges/ltr.js
|
|
97552
|
+
var require_ltr$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97553
|
+
const outside = require_outside$1();
|
|
97554
|
+
const ltr = (version, range, options) => outside(version, range, "<", options);
|
|
97555
|
+
module.exports = ltr;
|
|
97556
|
+
}));
|
|
97557
|
+
//#endregion
|
|
97558
|
+
//#region ../../node_modules/semver/ranges/intersects.js
|
|
97559
|
+
var require_intersects$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97560
|
+
const Range = require_range$1();
|
|
97561
|
+
const intersects = (r1, r2, options) => {
|
|
97562
|
+
r1 = new Range(r1, options);
|
|
97563
|
+
r2 = new Range(r2, options);
|
|
97564
|
+
return r1.intersects(r2, options);
|
|
97565
|
+
};
|
|
97566
|
+
module.exports = intersects;
|
|
97567
|
+
}));
|
|
97568
|
+
//#endregion
|
|
97569
|
+
//#region ../../node_modules/semver/ranges/simplify.js
|
|
97570
|
+
var require_simplify$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97571
|
+
const satisfies = require_satisfies$1();
|
|
97572
|
+
const compare = require_compare$1();
|
|
97573
|
+
module.exports = (versions, range, options) => {
|
|
97574
|
+
const set = [];
|
|
97575
|
+
let first = null;
|
|
97576
|
+
let prev = null;
|
|
97577
|
+
const v = versions.sort((a, b) => compare(a, b, options));
|
|
97578
|
+
for (const version of v) if (satisfies(version, range, options)) {
|
|
97579
|
+
prev = version;
|
|
97580
|
+
if (!first) first = version;
|
|
97581
|
+
} else {
|
|
97582
|
+
if (prev) set.push([first, prev]);
|
|
97583
|
+
prev = null;
|
|
97584
|
+
first = null;
|
|
97585
|
+
}
|
|
97586
|
+
if (first) set.push([first, null]);
|
|
97587
|
+
const ranges = [];
|
|
97588
|
+
for (const [min, max] of set) if (min === max) ranges.push(min);
|
|
97589
|
+
else if (!max && min === v[0]) ranges.push("*");
|
|
97590
|
+
else if (!max) ranges.push(`>=${min}`);
|
|
97591
|
+
else if (min === v[0]) ranges.push(`<=${max}`);
|
|
97592
|
+
else ranges.push(`${min} - ${max}`);
|
|
97593
|
+
const simplified = ranges.join(" || ");
|
|
97594
|
+
const original = typeof range.raw === "string" ? range.raw : String(range);
|
|
97595
|
+
return simplified.length < original.length ? simplified : range;
|
|
97596
|
+
};
|
|
97597
|
+
}));
|
|
97598
|
+
//#endregion
|
|
97599
|
+
//#region ../../node_modules/semver/ranges/subset.js
|
|
97600
|
+
var require_subset$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97601
|
+
const Range = require_range$1();
|
|
97602
|
+
const Comparator = require_comparator$1();
|
|
97603
|
+
const { ANY } = Comparator;
|
|
97604
|
+
const satisfies = require_satisfies$1();
|
|
97605
|
+
const compare = require_compare$1();
|
|
97606
|
+
const subset = (sub, dom, options = {}) => {
|
|
97607
|
+
if (sub === dom) return true;
|
|
97608
|
+
sub = new Range(sub, options);
|
|
97609
|
+
dom = new Range(dom, options);
|
|
97610
|
+
let sawNonNull = false;
|
|
97611
|
+
OUTER: for (const simpleSub of sub.set) {
|
|
97612
|
+
for (const simpleDom of dom.set) {
|
|
97613
|
+
const isSub = simpleSubset(simpleSub, simpleDom, options);
|
|
97614
|
+
sawNonNull = sawNonNull || isSub !== null;
|
|
97615
|
+
if (isSub) continue OUTER;
|
|
97616
|
+
}
|
|
97617
|
+
if (sawNonNull) return false;
|
|
97618
|
+
}
|
|
97619
|
+
return true;
|
|
97620
|
+
};
|
|
97621
|
+
const minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")];
|
|
97622
|
+
const minimumVersion = [new Comparator(">=0.0.0")];
|
|
97623
|
+
const simpleSubset = (sub, dom, options) => {
|
|
97624
|
+
if (sub === dom) return true;
|
|
97625
|
+
if (sub.length === 1 && sub[0].semver === ANY) if (dom.length === 1 && dom[0].semver === ANY) return true;
|
|
97626
|
+
else if (options.includePrerelease) sub = minimumVersionWithPreRelease;
|
|
97627
|
+
else sub = minimumVersion;
|
|
97628
|
+
if (dom.length === 1 && dom[0].semver === ANY) if (options.includePrerelease) return true;
|
|
97629
|
+
else dom = minimumVersion;
|
|
97630
|
+
const eqSet = /* @__PURE__ */ new Set();
|
|
97631
|
+
let gt, lt;
|
|
97632
|
+
for (const c of sub) if (c.operator === ">" || c.operator === ">=") gt = higherGT(gt, c, options);
|
|
97633
|
+
else if (c.operator === "<" || c.operator === "<=") lt = lowerLT(lt, c, options);
|
|
97634
|
+
else eqSet.add(c.semver);
|
|
97635
|
+
if (eqSet.size > 1) return null;
|
|
97636
|
+
let gtltComp;
|
|
97637
|
+
if (gt && lt) {
|
|
97638
|
+
gtltComp = compare(gt.semver, lt.semver, options);
|
|
97639
|
+
if (gtltComp > 0) return null;
|
|
97640
|
+
else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) return null;
|
|
97641
|
+
}
|
|
97642
|
+
for (const eq of eqSet) {
|
|
97643
|
+
if (gt && !satisfies(eq, String(gt), options)) return null;
|
|
97644
|
+
if (lt && !satisfies(eq, String(lt), options)) return null;
|
|
97645
|
+
for (const c of dom) if (!satisfies(eq, String(c), options)) return false;
|
|
97646
|
+
return true;
|
|
97647
|
+
}
|
|
97648
|
+
let higher, lower;
|
|
97649
|
+
let hasDomLT, hasDomGT;
|
|
97650
|
+
let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;
|
|
97651
|
+
let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;
|
|
97652
|
+
if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0) needDomLTPre = false;
|
|
97653
|
+
for (const c of dom) {
|
|
97654
|
+
hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=";
|
|
97655
|
+
hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=";
|
|
97656
|
+
if (gt) {
|
|
97657
|
+
if (needDomGTPre) {
|
|
97658
|
+
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;
|
|
97659
|
+
}
|
|
97660
|
+
if (c.operator === ">" || c.operator === ">=") {
|
|
97661
|
+
higher = higherGT(gt, c, options);
|
|
97662
|
+
if (higher === c && higher !== gt) return false;
|
|
97663
|
+
} else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options)) return false;
|
|
97664
|
+
}
|
|
97665
|
+
if (lt) {
|
|
97666
|
+
if (needDomLTPre) {
|
|
97667
|
+
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;
|
|
97668
|
+
}
|
|
97669
|
+
if (c.operator === "<" || c.operator === "<=") {
|
|
97670
|
+
lower = lowerLT(lt, c, options);
|
|
97671
|
+
if (lower === c && lower !== lt) return false;
|
|
97672
|
+
} else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options)) return false;
|
|
97673
|
+
}
|
|
97674
|
+
if (!c.operator && (lt || gt) && gtltComp !== 0) return false;
|
|
97675
|
+
}
|
|
97676
|
+
if (gt && hasDomLT && !lt && gtltComp !== 0) return false;
|
|
97677
|
+
if (lt && hasDomGT && !gt && gtltComp !== 0) return false;
|
|
97678
|
+
if (needDomGTPre || needDomLTPre) return false;
|
|
97679
|
+
return true;
|
|
97680
|
+
};
|
|
97681
|
+
const higherGT = (a, b, options) => {
|
|
97682
|
+
if (!a) return b;
|
|
97683
|
+
const comp = compare(a.semver, b.semver, options);
|
|
97684
|
+
return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
|
|
97685
|
+
};
|
|
97686
|
+
const lowerLT = (a, b, options) => {
|
|
97687
|
+
if (!a) return b;
|
|
97688
|
+
const comp = compare(a.semver, b.semver, options);
|
|
97689
|
+
return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
|
|
97690
|
+
};
|
|
97691
|
+
module.exports = subset;
|
|
97692
|
+
}));
|
|
97693
|
+
//#endregion
|
|
97694
|
+
//#region ../../node_modules/semver/index.js
|
|
97695
|
+
var require_semver$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97696
|
+
const internalRe = require_re$1();
|
|
97697
|
+
const constants = require_constants$5();
|
|
97698
|
+
const SemVer = require_semver$3();
|
|
97699
|
+
const identifiers = require_identifiers$1();
|
|
97700
|
+
module.exports = {
|
|
97701
|
+
parse: require_parse$3(),
|
|
97702
|
+
valid: require_valid$3(),
|
|
97703
|
+
clean: require_clean$1(),
|
|
97704
|
+
inc: require_inc$1(),
|
|
97705
|
+
diff: require_diff$1(),
|
|
97706
|
+
major: require_major$1(),
|
|
97707
|
+
minor: require_minor$1(),
|
|
97708
|
+
patch: require_patch$1(),
|
|
97709
|
+
prerelease: require_prerelease$1(),
|
|
97710
|
+
compare: require_compare$1(),
|
|
97711
|
+
rcompare: require_rcompare$1(),
|
|
97712
|
+
compareLoose: require_compare_loose$1(),
|
|
97713
|
+
compareBuild: require_compare_build$1(),
|
|
97714
|
+
sort: require_sort$2(),
|
|
97715
|
+
rsort: require_rsort$1(),
|
|
97716
|
+
gt: require_gt$1(),
|
|
97717
|
+
lt: require_lt$1(),
|
|
97718
|
+
eq: require_eq$1(),
|
|
97719
|
+
neq: require_neq$1(),
|
|
97720
|
+
gte: require_gte$1(),
|
|
97721
|
+
lte: require_lte$1(),
|
|
97722
|
+
cmp: require_cmp$1(),
|
|
97723
|
+
coerce: require_coerce$1(),
|
|
97724
|
+
truncate: require_truncate(),
|
|
97725
|
+
Comparator: require_comparator$1(),
|
|
97726
|
+
Range: require_range$1(),
|
|
97727
|
+
satisfies: require_satisfies$1(),
|
|
97728
|
+
toComparators: require_to_comparators$1(),
|
|
97729
|
+
maxSatisfying: require_max_satisfying$1(),
|
|
97730
|
+
minSatisfying: require_min_satisfying$1(),
|
|
97731
|
+
minVersion: require_min_version$1(),
|
|
97732
|
+
validRange: require_valid$2(),
|
|
97733
|
+
outside: require_outside$1(),
|
|
97734
|
+
gtr: require_gtr$1(),
|
|
97735
|
+
ltr: require_ltr$1(),
|
|
97736
|
+
intersects: require_intersects$1(),
|
|
97737
|
+
simplifyRange: require_simplify$1(),
|
|
97738
|
+
subset: require_subset$1(),
|
|
97739
|
+
SemVer,
|
|
97740
|
+
re: internalRe.re,
|
|
97741
|
+
src: internalRe.src,
|
|
97742
|
+
tokens: internalRe.t,
|
|
97743
|
+
SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
|
|
97744
|
+
RELEASE_TYPES: constants.RELEASE_TYPES,
|
|
97745
|
+
compareIdentifiers: identifiers.compareIdentifiers,
|
|
97746
|
+
rcompareIdentifiers: identifiers.rcompareIdentifiers
|
|
97747
|
+
};
|
|
97748
|
+
}));
|
|
97749
|
+
//#endregion
|
|
96210
97750
|
//#region ../../node_modules/@npmcli/git/lib/lines-to-revs.js
|
|
96211
97751
|
var require_lines_to_revs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96212
|
-
const semver = require_semver();
|
|
97752
|
+
const semver = require_semver$2();
|
|
96213
97753
|
module.exports = (lines) => finish(lines.reduce(linesToRevsReducer, {
|
|
96214
97754
|
versions: {},
|
|
96215
97755
|
"dist-tags": {},
|
|
@@ -96476,7 +98016,7 @@ var require_npa = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
96476
98016
|
const path$17 = isWindows ? __require("node:path/win32") : __require("node:path");
|
|
96477
98017
|
const { homedir: homedir$1 } = __require("node:os");
|
|
96478
98018
|
const HostedGit = require_lib$28();
|
|
96479
|
-
const semver = require_semver();
|
|
98019
|
+
const semver = require_semver$2();
|
|
96480
98020
|
const validatePackageName = require_lib$23();
|
|
96481
98021
|
const { log } = require_lib$29();
|
|
96482
98022
|
const hasSlashes = isWindows ? /\\|[/]/ : /[/]/;
|
|
@@ -96849,8 +98389,8 @@ var require_current_env = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
96849
98389
|
//#endregion
|
|
96850
98390
|
//#region ../../node_modules/npm-install-checks/lib/dev-engines.js
|
|
96851
98391
|
var require_dev_engines = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96852
|
-
const satisfies = require_satisfies();
|
|
96853
|
-
const validRange = require_valid();
|
|
98392
|
+
const satisfies = require_satisfies$1();
|
|
98393
|
+
const validRange = require_valid$2();
|
|
96854
98394
|
const recognizedOnFail = [
|
|
96855
98395
|
"ignore",
|
|
96856
98396
|
"warn",
|
|
@@ -96930,7 +98470,7 @@ var require_dev_engines = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
96930
98470
|
//#endregion
|
|
96931
98471
|
//#region ../../node_modules/npm-install-checks/lib/index.js
|
|
96932
98472
|
var require_lib$22 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96933
|
-
const semver = require_semver();
|
|
98473
|
+
const semver = require_semver$2();
|
|
96934
98474
|
const currentEnv = require_current_env();
|
|
96935
98475
|
const { checkDevEngines } = require_dev_engines();
|
|
96936
98476
|
const checkEngine = (target, npmVer, nodeVer, force = false) => {
|
|
@@ -97039,7 +98579,7 @@ var require_lib$21 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
97039
98579
|
//#region ../../node_modules/npm-pick-manifest/lib/index.js
|
|
97040
98580
|
var require_lib$20 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97041
98581
|
const npa = require_npa();
|
|
97042
|
-
const semver = require_semver();
|
|
98582
|
+
const semver = require_semver$2();
|
|
97043
98583
|
const { checkEngine } = require_lib$22();
|
|
97044
98584
|
const normalizeBin = require_lib$21();
|
|
97045
98585
|
const engineOk = (manifest, npmVersion, nodeVersion) => {
|
|
@@ -97333,8 +98873,8 @@ var require_lib$19 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
97333
98873
|
//#endregion
|
|
97334
98874
|
//#region ../../node_modules/@npmcli/package-json/lib/normalize.js
|
|
97335
98875
|
var require_normalize = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97336
|
-
const valid = require_valid$
|
|
97337
|
-
const clean = require_clean();
|
|
98876
|
+
const valid = require_valid$3();
|
|
98877
|
+
const clean = require_clean$1();
|
|
97338
98878
|
const fs$13 = __require("node:fs/promises");
|
|
97339
98879
|
const path$15 = __require("node:path");
|
|
97340
98880
|
const { log } = require_lib$29();
|
|
@@ -97765,7 +99305,7 @@ var require_read_package = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
97765
99305
|
}));
|
|
97766
99306
|
//#endregion
|
|
97767
99307
|
//#region ../../node_modules/@npmcli/package-json/lib/sort.js
|
|
97768
|
-
var require_sort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
99308
|
+
var require_sort$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97769
99309
|
/**
|
|
97770
99310
|
* arbitrary sort order for package.json largely pulled from:
|
|
97771
99311
|
* https://github.com/keithamus/sort-package-json/blob/main/defaultRules.md
|
|
@@ -97833,7 +99373,7 @@ var require_lib$18 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
97833
99373
|
const updateWorkspaces = require_update_workspaces();
|
|
97834
99374
|
const { normalize, syncNormalize } = require_normalize();
|
|
97835
99375
|
const { read, parse } = require_read_package();
|
|
97836
|
-
const { packageSort } = require_sort();
|
|
99376
|
+
const { packageSort } = require_sort$1();
|
|
97837
99377
|
const knownSteps = new Set([
|
|
97838
99378
|
updateDeps,
|
|
97839
99379
|
updateScripts,
|
|
@@ -98979,7 +100519,7 @@ var require_get_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
98979
100519
|
//#endregion
|
|
98980
100520
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/common/node.js
|
|
98981
100521
|
var require_node$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
98982
|
-
const semver = require_semver();
|
|
100522
|
+
const semver = require_semver$2();
|
|
98983
100523
|
const satisfies = (range) => {
|
|
98984
100524
|
return semver.satisfies(process.version, range, { includePrerelease: true });
|
|
98985
100525
|
};
|
|
@@ -111513,7 +113053,7 @@ var require_errors$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
111513
113053
|
}));
|
|
111514
113054
|
//#endregion
|
|
111515
113055
|
//#region ../../node_modules/minizlib/dist/commonjs/constants.js
|
|
111516
|
-
var require_constants$
|
|
113056
|
+
var require_constants$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
111517
113057
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
111518
113058
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
111519
113059
|
};
|
|
@@ -111684,8 +113224,8 @@ var require_commonjs$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
111684
113224
|
const buffer_1$1 = __require("buffer");
|
|
111685
113225
|
const minipass_1 = require_commonjs$10();
|
|
111686
113226
|
const realZlib = __importStar(__require("zlib"));
|
|
111687
|
-
const constants_js_1 = require_constants$
|
|
111688
|
-
var constants_js_2 = require_constants$
|
|
113227
|
+
const constants_js_1 = require_constants$4();
|
|
113228
|
+
var constants_js_2 = require_constants$4();
|
|
111689
113229
|
Object.defineProperty(exports, "constants", {
|
|
111690
113230
|
enumerable: true,
|
|
111691
113231
|
get: function() {
|
|
@@ -126327,7 +127867,7 @@ var require_smartbuffer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
126327
127867
|
}));
|
|
126328
127868
|
//#endregion
|
|
126329
127869
|
//#region ../../node_modules/socks/build/common/constants.js
|
|
126330
|
-
var require_constants$
|
|
127870
|
+
var require_constants$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
126331
127871
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
126332
127872
|
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;
|
|
126333
127873
|
exports.DEFAULT_TIMEOUT = 3e4;
|
|
@@ -126493,7 +128033,7 @@ var require_common = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
126493
128033
|
}));
|
|
126494
128034
|
//#endregion
|
|
126495
128035
|
//#region ../../node_modules/ip-address/dist/v4/constants.js
|
|
126496
|
-
var require_constants$
|
|
128036
|
+
var require_constants$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
126497
128037
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
126498
128038
|
exports.RE_SUBNET_STRING = exports.RE_ADDRESS = exports.GROUPS = exports.BITS = void 0;
|
|
126499
128039
|
exports.BITS = 32;
|
|
@@ -126552,7 +128092,7 @@ var require_ipv4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
126552
128092
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
126553
128093
|
exports.Address4 = void 0;
|
|
126554
128094
|
const common = __importStar(require_common());
|
|
126555
|
-
const constants = __importStar(require_constants$
|
|
128095
|
+
const constants = __importStar(require_constants$2());
|
|
126556
128096
|
const address_error_1 = require_address_error();
|
|
126557
128097
|
exports.Address4 = class Address4 {
|
|
126558
128098
|
constructor(address) {
|
|
@@ -126846,7 +128386,7 @@ var require_ipv4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
126846
128386
|
}));
|
|
126847
128387
|
//#endregion
|
|
126848
128388
|
//#region ../../node_modules/ip-address/dist/v6/constants.js
|
|
126849
|
-
var require_constants = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
128389
|
+
var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
126850
128390
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
126851
128391
|
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;
|
|
126852
128392
|
exports.BITS = 128;
|
|
@@ -127002,7 +128542,7 @@ var require_regular_expressions = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
127002
128542
|
exports.padGroup = padGroup;
|
|
127003
128543
|
exports.simpleRegularExpression = simpleRegularExpression;
|
|
127004
128544
|
exports.possibleElisions = possibleElisions;
|
|
127005
|
-
const v6 = __importStar(require_constants());
|
|
128545
|
+
const v6 = __importStar(require_constants$1());
|
|
127006
128546
|
function groupPossibilities(possibilities) {
|
|
127007
128547
|
return `(${possibilities.join("|")})`;
|
|
127008
128548
|
}
|
|
@@ -127077,8 +128617,8 @@ var require_ipv6 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
127077
128617
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
127078
128618
|
exports.Address6 = void 0;
|
|
127079
128619
|
const common = __importStar(require_common());
|
|
127080
|
-
const constants4 = __importStar(require_constants$
|
|
127081
|
-
const constants6 = __importStar(require_constants());
|
|
128620
|
+
const constants4 = __importStar(require_constants$2());
|
|
128621
|
+
const constants6 = __importStar(require_constants$1());
|
|
127082
128622
|
const helpers = __importStar(require_helpers$1());
|
|
127083
128623
|
const ipv4_1 = require_ipv4();
|
|
127084
128624
|
const regular_expressions_1 = require_regular_expressions();
|
|
@@ -127898,7 +129438,7 @@ var require_helpers = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
127898
129438
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
127899
129439
|
exports.ipToBuffer = exports.int32ToIpv4 = exports.ipv4ToInt32 = exports.validateSocksClientChainOptions = exports.validateSocksClientOptions = void 0;
|
|
127900
129440
|
const util_1 = require_util$1();
|
|
127901
|
-
const constants_1 = require_constants$
|
|
129441
|
+
const constants_1 = require_constants$3();
|
|
127902
129442
|
const stream = __require("stream");
|
|
127903
129443
|
const ip_address_1 = require_ip_address();
|
|
127904
129444
|
const net$3 = __require("net");
|
|
@@ -128063,7 +129603,7 @@ var require_socksclient = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
128063
129603
|
const events_1 = __require("events");
|
|
128064
129604
|
const net$2 = __require("net");
|
|
128065
129605
|
const smart_buffer_1 = require_smartbuffer();
|
|
128066
|
-
const constants_1 = require_constants$
|
|
129606
|
+
const constants_1 = require_constants$3();
|
|
128067
129607
|
const helpers_1 = require_helpers();
|
|
128068
129608
|
const receivebuffer_1 = require_receivebuffer();
|
|
128069
129609
|
const util_1 = require_util$1();
|
|
@@ -132312,7 +133852,7 @@ var require_length = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
132312
133852
|
}));
|
|
132313
133853
|
//#endregion
|
|
132314
133854
|
//#region ../../node_modules/@sigstore/core/dist/asn1/parse.js
|
|
132315
|
-
var require_parse = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
133855
|
+
var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
132316
133856
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
132317
133857
|
exports.parseInteger = parseInteger;
|
|
132318
133858
|
exports.parseStringASCII = parseStringASCII;
|
|
@@ -132458,7 +133998,7 @@ var require_obj = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
132458
133998
|
const stream_1 = require_stream();
|
|
132459
133999
|
const error_1 = require_error$8();
|
|
132460
134000
|
const length_1 = require_length();
|
|
132461
|
-
const parse_1 = require_parse();
|
|
134001
|
+
const parse_1 = require_parse$1();
|
|
132462
134002
|
const tag_1 = require_tag();
|
|
132463
134003
|
var ASN1Obj = class {
|
|
132464
134004
|
tag;
|
|
@@ -140774,6 +142314,1343 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
140774
142314
|
};
|
|
140775
142315
|
}));
|
|
140776
142316
|
//#endregion
|
|
142317
|
+
//#region ../../packages/core-node/node_modules/semver/internal/constants.js
|
|
142318
|
+
var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142319
|
+
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
142320
|
+
const MAX_LENGTH = 256;
|
|
142321
|
+
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
142322
|
+
module.exports = {
|
|
142323
|
+
MAX_LENGTH,
|
|
142324
|
+
MAX_SAFE_COMPONENT_LENGTH: 16,
|
|
142325
|
+
MAX_SAFE_BUILD_LENGTH: MAX_LENGTH - 6,
|
|
142326
|
+
MAX_SAFE_INTEGER,
|
|
142327
|
+
RELEASE_TYPES: [
|
|
142328
|
+
"major",
|
|
142329
|
+
"premajor",
|
|
142330
|
+
"minor",
|
|
142331
|
+
"preminor",
|
|
142332
|
+
"patch",
|
|
142333
|
+
"prepatch",
|
|
142334
|
+
"prerelease"
|
|
142335
|
+
],
|
|
142336
|
+
SEMVER_SPEC_VERSION,
|
|
142337
|
+
FLAG_INCLUDE_PRERELEASE: 1,
|
|
142338
|
+
FLAG_LOOSE: 2
|
|
142339
|
+
};
|
|
142340
|
+
}));
|
|
142341
|
+
//#endregion
|
|
142342
|
+
//#region ../../packages/core-node/node_modules/semver/internal/debug.js
|
|
142343
|
+
var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142344
|
+
module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
142345
|
+
}));
|
|
142346
|
+
//#endregion
|
|
142347
|
+
//#region ../../packages/core-node/node_modules/semver/internal/re.js
|
|
142348
|
+
var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142349
|
+
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
|
|
142350
|
+
const debug = require_debug();
|
|
142351
|
+
exports = module.exports = {};
|
|
142352
|
+
const re = exports.re = [];
|
|
142353
|
+
const safeRe = exports.safeRe = [];
|
|
142354
|
+
const src = exports.src = [];
|
|
142355
|
+
const safeSrc = exports.safeSrc = [];
|
|
142356
|
+
const t = exports.t = {};
|
|
142357
|
+
let R = 0;
|
|
142358
|
+
const LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
142359
|
+
const safeRegexReplacements = [
|
|
142360
|
+
["\\s", 1],
|
|
142361
|
+
["\\d", MAX_LENGTH],
|
|
142362
|
+
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
|
|
142363
|
+
];
|
|
142364
|
+
const makeSafeRegex = (value) => {
|
|
142365
|
+
for (const [token, max] of safeRegexReplacements) value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
|
|
142366
|
+
return value;
|
|
142367
|
+
};
|
|
142368
|
+
const createToken = (name, value, isGlobal) => {
|
|
142369
|
+
const safe = makeSafeRegex(value);
|
|
142370
|
+
const index = R++;
|
|
142371
|
+
debug(name, index, value);
|
|
142372
|
+
t[name] = index;
|
|
142373
|
+
src[index] = value;
|
|
142374
|
+
safeSrc[index] = safe;
|
|
142375
|
+
re[index] = new RegExp(value, isGlobal ? "g" : void 0);
|
|
142376
|
+
safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
142377
|
+
};
|
|
142378
|
+
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
142379
|
+
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
142380
|
+
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
142381
|
+
createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
|
|
142382
|
+
createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
142383
|
+
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
|
|
142384
|
+
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
142385
|
+
createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
142386
|
+
createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
142387
|
+
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
142388
|
+
createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
|
|
142389
|
+
createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
|
|
142390
|
+
createToken("FULL", `^${src[t.FULLPLAIN]}$`);
|
|
142391
|
+
createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
|
|
142392
|
+
createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
|
|
142393
|
+
createToken("GTLT", "((?:<|>)?=?)");
|
|
142394
|
+
createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
|
142395
|
+
createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
|
|
142396
|
+
createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
|
|
142397
|
+
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
|
|
142398
|
+
createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
|
|
142399
|
+
createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
|
|
142400
|
+
createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
|
142401
|
+
createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
142402
|
+
createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
|
|
142403
|
+
createToken("COERCERTL", src[t.COERCE], true);
|
|
142404
|
+
createToken("COERCERTLFULL", src[t.COERCEFULL], true);
|
|
142405
|
+
createToken("LONETILDE", "(?:~>?)");
|
|
142406
|
+
createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
|
|
142407
|
+
exports.tildeTrimReplace = "$1~";
|
|
142408
|
+
createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
|
|
142409
|
+
createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
142410
|
+
createToken("LONECARET", "(?:\\^)");
|
|
142411
|
+
createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
|
|
142412
|
+
exports.caretTrimReplace = "$1^";
|
|
142413
|
+
createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
|
|
142414
|
+
createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
142415
|
+
createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
|
|
142416
|
+
createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
|
|
142417
|
+
createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
|
|
142418
|
+
exports.comparatorTrimReplace = "$1$2$3";
|
|
142419
|
+
createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
|
|
142420
|
+
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
|
|
142421
|
+
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
142422
|
+
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
142423
|
+
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
142424
|
+
}));
|
|
142425
|
+
//#endregion
|
|
142426
|
+
//#region ../../packages/core-node/node_modules/semver/internal/parse-options.js
|
|
142427
|
+
var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142428
|
+
const looseOption = Object.freeze({ loose: true });
|
|
142429
|
+
const emptyOpts = Object.freeze({});
|
|
142430
|
+
const parseOptions = (options) => {
|
|
142431
|
+
if (!options) return emptyOpts;
|
|
142432
|
+
if (typeof options !== "object") return looseOption;
|
|
142433
|
+
return options;
|
|
142434
|
+
};
|
|
142435
|
+
module.exports = parseOptions;
|
|
142436
|
+
}));
|
|
142437
|
+
//#endregion
|
|
142438
|
+
//#region ../../packages/core-node/node_modules/semver/internal/identifiers.js
|
|
142439
|
+
var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142440
|
+
const numeric = /^[0-9]+$/;
|
|
142441
|
+
const compareIdentifiers = (a, b) => {
|
|
142442
|
+
if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
|
|
142443
|
+
const anum = numeric.test(a);
|
|
142444
|
+
const bnum = numeric.test(b);
|
|
142445
|
+
if (anum && bnum) {
|
|
142446
|
+
a = +a;
|
|
142447
|
+
b = +b;
|
|
142448
|
+
}
|
|
142449
|
+
return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
|
|
142450
|
+
};
|
|
142451
|
+
const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
|
|
142452
|
+
module.exports = {
|
|
142453
|
+
compareIdentifiers,
|
|
142454
|
+
rcompareIdentifiers
|
|
142455
|
+
};
|
|
142456
|
+
}));
|
|
142457
|
+
//#endregion
|
|
142458
|
+
//#region ../../packages/core-node/node_modules/semver/classes/semver.js
|
|
142459
|
+
var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142460
|
+
const debug = require_debug();
|
|
142461
|
+
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
142462
|
+
const { safeRe: re, t } = require_re();
|
|
142463
|
+
const parseOptions = require_parse_options();
|
|
142464
|
+
const { compareIdentifiers } = require_identifiers();
|
|
142465
|
+
module.exports = class SemVer {
|
|
142466
|
+
constructor(version, options) {
|
|
142467
|
+
options = parseOptions(options);
|
|
142468
|
+
if (version instanceof SemVer) if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) return version;
|
|
142469
|
+
else version = version.version;
|
|
142470
|
+
else if (typeof version !== "string") throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
142471
|
+
if (version.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
|
|
142472
|
+
debug("SemVer", version, options);
|
|
142473
|
+
this.options = options;
|
|
142474
|
+
this.loose = !!options.loose;
|
|
142475
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
142476
|
+
const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
|
|
142477
|
+
if (!m) throw new TypeError(`Invalid Version: ${version}`);
|
|
142478
|
+
this.raw = version;
|
|
142479
|
+
this.major = +m[1];
|
|
142480
|
+
this.minor = +m[2];
|
|
142481
|
+
this.patch = +m[3];
|
|
142482
|
+
if (this.major > MAX_SAFE_INTEGER || this.major < 0) throw new TypeError("Invalid major version");
|
|
142483
|
+
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError("Invalid minor version");
|
|
142484
|
+
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError("Invalid patch version");
|
|
142485
|
+
if (!m[4]) this.prerelease = [];
|
|
142486
|
+
else this.prerelease = m[4].split(".").map((id) => {
|
|
142487
|
+
if (/^[0-9]+$/.test(id)) {
|
|
142488
|
+
const num = +id;
|
|
142489
|
+
if (num >= 0 && num < MAX_SAFE_INTEGER) return num;
|
|
142490
|
+
}
|
|
142491
|
+
return id;
|
|
142492
|
+
});
|
|
142493
|
+
this.build = m[5] ? m[5].split(".") : [];
|
|
142494
|
+
this.format();
|
|
142495
|
+
}
|
|
142496
|
+
format() {
|
|
142497
|
+
this.version = `${this.major}.${this.minor}.${this.patch}`;
|
|
142498
|
+
if (this.prerelease.length) this.version += `-${this.prerelease.join(".")}`;
|
|
142499
|
+
return this.version;
|
|
142500
|
+
}
|
|
142501
|
+
toString() {
|
|
142502
|
+
return this.version;
|
|
142503
|
+
}
|
|
142504
|
+
compare(other) {
|
|
142505
|
+
debug("SemVer.compare", this.version, this.options, other);
|
|
142506
|
+
if (!(other instanceof SemVer)) {
|
|
142507
|
+
if (typeof other === "string" && other === this.version) return 0;
|
|
142508
|
+
other = new SemVer(other, this.options);
|
|
142509
|
+
}
|
|
142510
|
+
if (other.version === this.version) return 0;
|
|
142511
|
+
return this.compareMain(other) || this.comparePre(other);
|
|
142512
|
+
}
|
|
142513
|
+
compareMain(other) {
|
|
142514
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
142515
|
+
if (this.major < other.major) return -1;
|
|
142516
|
+
if (this.major > other.major) return 1;
|
|
142517
|
+
if (this.minor < other.minor) return -1;
|
|
142518
|
+
if (this.minor > other.minor) return 1;
|
|
142519
|
+
if (this.patch < other.patch) return -1;
|
|
142520
|
+
if (this.patch > other.patch) return 1;
|
|
142521
|
+
return 0;
|
|
142522
|
+
}
|
|
142523
|
+
comparePre(other) {
|
|
142524
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
142525
|
+
if (this.prerelease.length && !other.prerelease.length) return -1;
|
|
142526
|
+
else if (!this.prerelease.length && other.prerelease.length) return 1;
|
|
142527
|
+
else if (!this.prerelease.length && !other.prerelease.length) return 0;
|
|
142528
|
+
let i = 0;
|
|
142529
|
+
do {
|
|
142530
|
+
const a = this.prerelease[i];
|
|
142531
|
+
const b = other.prerelease[i];
|
|
142532
|
+
debug("prerelease compare", i, a, b);
|
|
142533
|
+
if (a === void 0 && b === void 0) return 0;
|
|
142534
|
+
else if (b === void 0) return 1;
|
|
142535
|
+
else if (a === void 0) return -1;
|
|
142536
|
+
else if (a === b) continue;
|
|
142537
|
+
else return compareIdentifiers(a, b);
|
|
142538
|
+
} while (++i);
|
|
142539
|
+
}
|
|
142540
|
+
compareBuild(other) {
|
|
142541
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
142542
|
+
let i = 0;
|
|
142543
|
+
do {
|
|
142544
|
+
const a = this.build[i];
|
|
142545
|
+
const b = other.build[i];
|
|
142546
|
+
debug("build compare", i, a, b);
|
|
142547
|
+
if (a === void 0 && b === void 0) return 0;
|
|
142548
|
+
else if (b === void 0) return 1;
|
|
142549
|
+
else if (a === void 0) return -1;
|
|
142550
|
+
else if (a === b) continue;
|
|
142551
|
+
else return compareIdentifiers(a, b);
|
|
142552
|
+
} while (++i);
|
|
142553
|
+
}
|
|
142554
|
+
inc(release, identifier, identifierBase) {
|
|
142555
|
+
if (release.startsWith("pre")) {
|
|
142556
|
+
if (!identifier && identifierBase === false) throw new Error("invalid increment argument: identifier is empty");
|
|
142557
|
+
if (identifier) {
|
|
142558
|
+
const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
|
|
142559
|
+
if (!match || match[1] !== identifier) throw new Error(`invalid identifier: ${identifier}`);
|
|
142560
|
+
}
|
|
142561
|
+
}
|
|
142562
|
+
switch (release) {
|
|
142563
|
+
case "premajor":
|
|
142564
|
+
this.prerelease.length = 0;
|
|
142565
|
+
this.patch = 0;
|
|
142566
|
+
this.minor = 0;
|
|
142567
|
+
this.major++;
|
|
142568
|
+
this.inc("pre", identifier, identifierBase);
|
|
142569
|
+
break;
|
|
142570
|
+
case "preminor":
|
|
142571
|
+
this.prerelease.length = 0;
|
|
142572
|
+
this.patch = 0;
|
|
142573
|
+
this.minor++;
|
|
142574
|
+
this.inc("pre", identifier, identifierBase);
|
|
142575
|
+
break;
|
|
142576
|
+
case "prepatch":
|
|
142577
|
+
this.prerelease.length = 0;
|
|
142578
|
+
this.inc("patch", identifier, identifierBase);
|
|
142579
|
+
this.inc("pre", identifier, identifierBase);
|
|
142580
|
+
break;
|
|
142581
|
+
case "prerelease":
|
|
142582
|
+
if (this.prerelease.length === 0) this.inc("patch", identifier, identifierBase);
|
|
142583
|
+
this.inc("pre", identifier, identifierBase);
|
|
142584
|
+
break;
|
|
142585
|
+
case "release":
|
|
142586
|
+
if (this.prerelease.length === 0) throw new Error(`version ${this.raw} is not a prerelease`);
|
|
142587
|
+
this.prerelease.length = 0;
|
|
142588
|
+
break;
|
|
142589
|
+
case "major":
|
|
142590
|
+
if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) this.major++;
|
|
142591
|
+
this.minor = 0;
|
|
142592
|
+
this.patch = 0;
|
|
142593
|
+
this.prerelease = [];
|
|
142594
|
+
break;
|
|
142595
|
+
case "minor":
|
|
142596
|
+
if (this.patch !== 0 || this.prerelease.length === 0) this.minor++;
|
|
142597
|
+
this.patch = 0;
|
|
142598
|
+
this.prerelease = [];
|
|
142599
|
+
break;
|
|
142600
|
+
case "patch":
|
|
142601
|
+
if (this.prerelease.length === 0) this.patch++;
|
|
142602
|
+
this.prerelease = [];
|
|
142603
|
+
break;
|
|
142604
|
+
case "pre": {
|
|
142605
|
+
const base = Number(identifierBase) ? 1 : 0;
|
|
142606
|
+
if (this.prerelease.length === 0) this.prerelease = [base];
|
|
142607
|
+
else {
|
|
142608
|
+
let i = this.prerelease.length;
|
|
142609
|
+
while (--i >= 0) if (typeof this.prerelease[i] === "number") {
|
|
142610
|
+
this.prerelease[i]++;
|
|
142611
|
+
i = -2;
|
|
142612
|
+
}
|
|
142613
|
+
if (i === -1) {
|
|
142614
|
+
if (identifier === this.prerelease.join(".") && identifierBase === false) throw new Error("invalid increment argument: identifier already exists");
|
|
142615
|
+
this.prerelease.push(base);
|
|
142616
|
+
}
|
|
142617
|
+
}
|
|
142618
|
+
if (identifier) {
|
|
142619
|
+
let prerelease = [identifier, base];
|
|
142620
|
+
if (identifierBase === false) prerelease = [identifier];
|
|
142621
|
+
if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
|
|
142622
|
+
if (isNaN(this.prerelease[1])) this.prerelease = prerelease;
|
|
142623
|
+
} else this.prerelease = prerelease;
|
|
142624
|
+
}
|
|
142625
|
+
break;
|
|
142626
|
+
}
|
|
142627
|
+
default: throw new Error(`invalid increment argument: ${release}`);
|
|
142628
|
+
}
|
|
142629
|
+
this.raw = this.format();
|
|
142630
|
+
if (this.build.length) this.raw += `+${this.build.join(".")}`;
|
|
142631
|
+
return this;
|
|
142632
|
+
}
|
|
142633
|
+
};
|
|
142634
|
+
}));
|
|
142635
|
+
//#endregion
|
|
142636
|
+
//#region ../../packages/core-node/node_modules/semver/functions/parse.js
|
|
142637
|
+
var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142638
|
+
const SemVer = require_semver$1();
|
|
142639
|
+
const parse = (version, options, throwErrors = false) => {
|
|
142640
|
+
if (version instanceof SemVer) return version;
|
|
142641
|
+
try {
|
|
142642
|
+
return new SemVer(version, options);
|
|
142643
|
+
} catch (er) {
|
|
142644
|
+
if (!throwErrors) return null;
|
|
142645
|
+
throw er;
|
|
142646
|
+
}
|
|
142647
|
+
};
|
|
142648
|
+
module.exports = parse;
|
|
142649
|
+
}));
|
|
142650
|
+
//#endregion
|
|
142651
|
+
//#region ../../packages/core-node/node_modules/semver/functions/valid.js
|
|
142652
|
+
var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142653
|
+
const parse = require_parse();
|
|
142654
|
+
const valid = (version, options) => {
|
|
142655
|
+
const v = parse(version, options);
|
|
142656
|
+
return v ? v.version : null;
|
|
142657
|
+
};
|
|
142658
|
+
module.exports = valid;
|
|
142659
|
+
}));
|
|
142660
|
+
//#endregion
|
|
142661
|
+
//#region ../../packages/core-node/node_modules/semver/functions/clean.js
|
|
142662
|
+
var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142663
|
+
const parse = require_parse();
|
|
142664
|
+
const clean = (version, options) => {
|
|
142665
|
+
const s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
142666
|
+
return s ? s.version : null;
|
|
142667
|
+
};
|
|
142668
|
+
module.exports = clean;
|
|
142669
|
+
}));
|
|
142670
|
+
//#endregion
|
|
142671
|
+
//#region ../../packages/core-node/node_modules/semver/functions/inc.js
|
|
142672
|
+
var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142673
|
+
const SemVer = require_semver$1();
|
|
142674
|
+
const inc = (version, release, options, identifier, identifierBase) => {
|
|
142675
|
+
if (typeof options === "string") {
|
|
142676
|
+
identifierBase = identifier;
|
|
142677
|
+
identifier = options;
|
|
142678
|
+
options = void 0;
|
|
142679
|
+
}
|
|
142680
|
+
try {
|
|
142681
|
+
return new SemVer(version instanceof SemVer ? version.version : version, options).inc(release, identifier, identifierBase).version;
|
|
142682
|
+
} catch (er) {
|
|
142683
|
+
return null;
|
|
142684
|
+
}
|
|
142685
|
+
};
|
|
142686
|
+
module.exports = inc;
|
|
142687
|
+
}));
|
|
142688
|
+
//#endregion
|
|
142689
|
+
//#region ../../packages/core-node/node_modules/semver/functions/diff.js
|
|
142690
|
+
var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142691
|
+
const parse = require_parse();
|
|
142692
|
+
const diff = (version1, version2) => {
|
|
142693
|
+
const v1 = parse(version1, null, true);
|
|
142694
|
+
const v2 = parse(version2, null, true);
|
|
142695
|
+
const comparison = v1.compare(v2);
|
|
142696
|
+
if (comparison === 0) return null;
|
|
142697
|
+
const v1Higher = comparison > 0;
|
|
142698
|
+
const highVersion = v1Higher ? v1 : v2;
|
|
142699
|
+
const lowVersion = v1Higher ? v2 : v1;
|
|
142700
|
+
const highHasPre = !!highVersion.prerelease.length;
|
|
142701
|
+
if (!!lowVersion.prerelease.length && !highHasPre) {
|
|
142702
|
+
if (!lowVersion.patch && !lowVersion.minor) return "major";
|
|
142703
|
+
if (lowVersion.compareMain(highVersion) === 0) {
|
|
142704
|
+
if (lowVersion.minor && !lowVersion.patch) return "minor";
|
|
142705
|
+
return "patch";
|
|
142706
|
+
}
|
|
142707
|
+
}
|
|
142708
|
+
const prefix = highHasPre ? "pre" : "";
|
|
142709
|
+
if (v1.major !== v2.major) return prefix + "major";
|
|
142710
|
+
if (v1.minor !== v2.minor) return prefix + "minor";
|
|
142711
|
+
if (v1.patch !== v2.patch) return prefix + "patch";
|
|
142712
|
+
return "prerelease";
|
|
142713
|
+
};
|
|
142714
|
+
module.exports = diff;
|
|
142715
|
+
}));
|
|
142716
|
+
//#endregion
|
|
142717
|
+
//#region ../../packages/core-node/node_modules/semver/functions/major.js
|
|
142718
|
+
var require_major = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142719
|
+
const SemVer = require_semver$1();
|
|
142720
|
+
const major = (a, loose) => new SemVer(a, loose).major;
|
|
142721
|
+
module.exports = major;
|
|
142722
|
+
}));
|
|
142723
|
+
//#endregion
|
|
142724
|
+
//#region ../../packages/core-node/node_modules/semver/functions/minor.js
|
|
142725
|
+
var require_minor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142726
|
+
const SemVer = require_semver$1();
|
|
142727
|
+
const minor = (a, loose) => new SemVer(a, loose).minor;
|
|
142728
|
+
module.exports = minor;
|
|
142729
|
+
}));
|
|
142730
|
+
//#endregion
|
|
142731
|
+
//#region ../../packages/core-node/node_modules/semver/functions/patch.js
|
|
142732
|
+
var require_patch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142733
|
+
const SemVer = require_semver$1();
|
|
142734
|
+
const patch = (a, loose) => new SemVer(a, loose).patch;
|
|
142735
|
+
module.exports = patch;
|
|
142736
|
+
}));
|
|
142737
|
+
//#endregion
|
|
142738
|
+
//#region ../../packages/core-node/node_modules/semver/functions/prerelease.js
|
|
142739
|
+
var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142740
|
+
const parse = require_parse();
|
|
142741
|
+
const prerelease = (version, options) => {
|
|
142742
|
+
const parsed = parse(version, options);
|
|
142743
|
+
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
142744
|
+
};
|
|
142745
|
+
module.exports = prerelease;
|
|
142746
|
+
}));
|
|
142747
|
+
//#endregion
|
|
142748
|
+
//#region ../../packages/core-node/node_modules/semver/functions/compare.js
|
|
142749
|
+
var require_compare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142750
|
+
const SemVer = require_semver$1();
|
|
142751
|
+
const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
142752
|
+
module.exports = compare;
|
|
142753
|
+
}));
|
|
142754
|
+
//#endregion
|
|
142755
|
+
//#region ../../packages/core-node/node_modules/semver/functions/rcompare.js
|
|
142756
|
+
var require_rcompare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142757
|
+
const compare = require_compare();
|
|
142758
|
+
const rcompare = (a, b, loose) => compare(b, a, loose);
|
|
142759
|
+
module.exports = rcompare;
|
|
142760
|
+
}));
|
|
142761
|
+
//#endregion
|
|
142762
|
+
//#region ../../packages/core-node/node_modules/semver/functions/compare-loose.js
|
|
142763
|
+
var require_compare_loose = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142764
|
+
const compare = require_compare();
|
|
142765
|
+
const compareLoose = (a, b) => compare(a, b, true);
|
|
142766
|
+
module.exports = compareLoose;
|
|
142767
|
+
}));
|
|
142768
|
+
//#endregion
|
|
142769
|
+
//#region ../../packages/core-node/node_modules/semver/functions/compare-build.js
|
|
142770
|
+
var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142771
|
+
const SemVer = require_semver$1();
|
|
142772
|
+
const compareBuild = (a, b, loose) => {
|
|
142773
|
+
const versionA = new SemVer(a, loose);
|
|
142774
|
+
const versionB = new SemVer(b, loose);
|
|
142775
|
+
return versionA.compare(versionB) || versionA.compareBuild(versionB);
|
|
142776
|
+
};
|
|
142777
|
+
module.exports = compareBuild;
|
|
142778
|
+
}));
|
|
142779
|
+
//#endregion
|
|
142780
|
+
//#region ../../packages/core-node/node_modules/semver/functions/sort.js
|
|
142781
|
+
var require_sort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142782
|
+
const compareBuild = require_compare_build();
|
|
142783
|
+
const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
142784
|
+
module.exports = sort;
|
|
142785
|
+
}));
|
|
142786
|
+
//#endregion
|
|
142787
|
+
//#region ../../packages/core-node/node_modules/semver/functions/rsort.js
|
|
142788
|
+
var require_rsort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142789
|
+
const compareBuild = require_compare_build();
|
|
142790
|
+
const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
142791
|
+
module.exports = rsort;
|
|
142792
|
+
}));
|
|
142793
|
+
//#endregion
|
|
142794
|
+
//#region ../../packages/core-node/node_modules/semver/functions/gt.js
|
|
142795
|
+
var require_gt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142796
|
+
const compare = require_compare();
|
|
142797
|
+
const gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
142798
|
+
module.exports = gt;
|
|
142799
|
+
}));
|
|
142800
|
+
//#endregion
|
|
142801
|
+
//#region ../../packages/core-node/node_modules/semver/functions/lt.js
|
|
142802
|
+
var require_lt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142803
|
+
const compare = require_compare();
|
|
142804
|
+
const lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
142805
|
+
module.exports = lt;
|
|
142806
|
+
}));
|
|
142807
|
+
//#endregion
|
|
142808
|
+
//#region ../../packages/core-node/node_modules/semver/functions/eq.js
|
|
142809
|
+
var require_eq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142810
|
+
const compare = require_compare();
|
|
142811
|
+
const eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
142812
|
+
module.exports = eq;
|
|
142813
|
+
}));
|
|
142814
|
+
//#endregion
|
|
142815
|
+
//#region ../../packages/core-node/node_modules/semver/functions/neq.js
|
|
142816
|
+
var require_neq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142817
|
+
const compare = require_compare();
|
|
142818
|
+
const neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
142819
|
+
module.exports = neq;
|
|
142820
|
+
}));
|
|
142821
|
+
//#endregion
|
|
142822
|
+
//#region ../../packages/core-node/node_modules/semver/functions/gte.js
|
|
142823
|
+
var require_gte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142824
|
+
const compare = require_compare();
|
|
142825
|
+
const gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
142826
|
+
module.exports = gte;
|
|
142827
|
+
}));
|
|
142828
|
+
//#endregion
|
|
142829
|
+
//#region ../../packages/core-node/node_modules/semver/functions/lte.js
|
|
142830
|
+
var require_lte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142831
|
+
const compare = require_compare();
|
|
142832
|
+
const lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
142833
|
+
module.exports = lte;
|
|
142834
|
+
}));
|
|
142835
|
+
//#endregion
|
|
142836
|
+
//#region ../../packages/core-node/node_modules/semver/functions/cmp.js
|
|
142837
|
+
var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142838
|
+
const eq = require_eq();
|
|
142839
|
+
const neq = require_neq();
|
|
142840
|
+
const gt = require_gt();
|
|
142841
|
+
const gte = require_gte();
|
|
142842
|
+
const lt = require_lt();
|
|
142843
|
+
const lte = require_lte();
|
|
142844
|
+
const cmp = (a, op, b, loose) => {
|
|
142845
|
+
switch (op) {
|
|
142846
|
+
case "===":
|
|
142847
|
+
if (typeof a === "object") a = a.version;
|
|
142848
|
+
if (typeof b === "object") b = b.version;
|
|
142849
|
+
return a === b;
|
|
142850
|
+
case "!==":
|
|
142851
|
+
if (typeof a === "object") a = a.version;
|
|
142852
|
+
if (typeof b === "object") b = b.version;
|
|
142853
|
+
return a !== b;
|
|
142854
|
+
case "":
|
|
142855
|
+
case "=":
|
|
142856
|
+
case "==": return eq(a, b, loose);
|
|
142857
|
+
case "!=": return neq(a, b, loose);
|
|
142858
|
+
case ">": return gt(a, b, loose);
|
|
142859
|
+
case ">=": return gte(a, b, loose);
|
|
142860
|
+
case "<": return lt(a, b, loose);
|
|
142861
|
+
case "<=": return lte(a, b, loose);
|
|
142862
|
+
default: throw new TypeError(`Invalid operator: ${op}`);
|
|
142863
|
+
}
|
|
142864
|
+
};
|
|
142865
|
+
module.exports = cmp;
|
|
142866
|
+
}));
|
|
142867
|
+
//#endregion
|
|
142868
|
+
//#region ../../packages/core-node/node_modules/semver/functions/coerce.js
|
|
142869
|
+
var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142870
|
+
const SemVer = require_semver$1();
|
|
142871
|
+
const parse = require_parse();
|
|
142872
|
+
const { safeRe: re, t } = require_re();
|
|
142873
|
+
const coerce = (version, options) => {
|
|
142874
|
+
if (version instanceof SemVer) return version;
|
|
142875
|
+
if (typeof version === "number") version = String(version);
|
|
142876
|
+
if (typeof version !== "string") return null;
|
|
142877
|
+
options = options || {};
|
|
142878
|
+
let match = null;
|
|
142879
|
+
if (!options.rtl) match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
|
|
142880
|
+
else {
|
|
142881
|
+
const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL];
|
|
142882
|
+
let next;
|
|
142883
|
+
while ((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)) {
|
|
142884
|
+
if (!match || next.index + next[0].length !== match.index + match[0].length) match = next;
|
|
142885
|
+
coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
|
142886
|
+
}
|
|
142887
|
+
coerceRtlRegex.lastIndex = -1;
|
|
142888
|
+
}
|
|
142889
|
+
if (match === null) return null;
|
|
142890
|
+
const major = match[2];
|
|
142891
|
+
return parse(`${major}.${match[3] || "0"}.${match[4] || "0"}${options.includePrerelease && match[5] ? `-${match[5]}` : ""}${options.includePrerelease && match[6] ? `+${match[6]}` : ""}`, options);
|
|
142892
|
+
};
|
|
142893
|
+
module.exports = coerce;
|
|
142894
|
+
}));
|
|
142895
|
+
//#endregion
|
|
142896
|
+
//#region ../../packages/core-node/node_modules/semver/internal/lrucache.js
|
|
142897
|
+
var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142898
|
+
var LRUCache = class {
|
|
142899
|
+
constructor() {
|
|
142900
|
+
this.max = 1e3;
|
|
142901
|
+
this.map = /* @__PURE__ */ new Map();
|
|
142902
|
+
}
|
|
142903
|
+
get(key) {
|
|
142904
|
+
const value = this.map.get(key);
|
|
142905
|
+
if (value === void 0) return;
|
|
142906
|
+
else {
|
|
142907
|
+
this.map.delete(key);
|
|
142908
|
+
this.map.set(key, value);
|
|
142909
|
+
return value;
|
|
142910
|
+
}
|
|
142911
|
+
}
|
|
142912
|
+
delete(key) {
|
|
142913
|
+
return this.map.delete(key);
|
|
142914
|
+
}
|
|
142915
|
+
set(key, value) {
|
|
142916
|
+
if (!this.delete(key) && value !== void 0) {
|
|
142917
|
+
if (this.map.size >= this.max) {
|
|
142918
|
+
const firstKey = this.map.keys().next().value;
|
|
142919
|
+
this.delete(firstKey);
|
|
142920
|
+
}
|
|
142921
|
+
this.map.set(key, value);
|
|
142922
|
+
}
|
|
142923
|
+
return this;
|
|
142924
|
+
}
|
|
142925
|
+
};
|
|
142926
|
+
module.exports = LRUCache;
|
|
142927
|
+
}));
|
|
142928
|
+
//#endregion
|
|
142929
|
+
//#region ../../packages/core-node/node_modules/semver/classes/range.js
|
|
142930
|
+
var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142931
|
+
const SPACE_CHARACTERS = /\s+/g;
|
|
142932
|
+
module.exports = class Range {
|
|
142933
|
+
constructor(range, options) {
|
|
142934
|
+
options = parseOptions(options);
|
|
142935
|
+
if (range instanceof Range) if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) return range;
|
|
142936
|
+
else return new Range(range.raw, options);
|
|
142937
|
+
if (range instanceof Comparator) {
|
|
142938
|
+
this.raw = range.value;
|
|
142939
|
+
this.set = [[range]];
|
|
142940
|
+
this.formatted = void 0;
|
|
142941
|
+
return this;
|
|
142942
|
+
}
|
|
142943
|
+
this.options = options;
|
|
142944
|
+
this.loose = !!options.loose;
|
|
142945
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
142946
|
+
this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
|
|
142947
|
+
this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
|
|
142948
|
+
if (!this.set.length) throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
142949
|
+
if (this.set.length > 1) {
|
|
142950
|
+
const first = this.set[0];
|
|
142951
|
+
this.set = this.set.filter((c) => !isNullSet(c[0]));
|
|
142952
|
+
if (this.set.length === 0) this.set = [first];
|
|
142953
|
+
else if (this.set.length > 1) {
|
|
142954
|
+
for (const c of this.set) if (c.length === 1 && isAny(c[0])) {
|
|
142955
|
+
this.set = [c];
|
|
142956
|
+
break;
|
|
142957
|
+
}
|
|
142958
|
+
}
|
|
142959
|
+
}
|
|
142960
|
+
this.formatted = void 0;
|
|
142961
|
+
}
|
|
142962
|
+
get range() {
|
|
142963
|
+
if (this.formatted === void 0) {
|
|
142964
|
+
this.formatted = "";
|
|
142965
|
+
for (let i = 0; i < this.set.length; i++) {
|
|
142966
|
+
if (i > 0) this.formatted += "||";
|
|
142967
|
+
const comps = this.set[i];
|
|
142968
|
+
for (let k = 0; k < comps.length; k++) {
|
|
142969
|
+
if (k > 0) this.formatted += " ";
|
|
142970
|
+
this.formatted += comps[k].toString().trim();
|
|
142971
|
+
}
|
|
142972
|
+
}
|
|
142973
|
+
}
|
|
142974
|
+
return this.formatted;
|
|
142975
|
+
}
|
|
142976
|
+
format() {
|
|
142977
|
+
return this.range;
|
|
142978
|
+
}
|
|
142979
|
+
toString() {
|
|
142980
|
+
return this.range;
|
|
142981
|
+
}
|
|
142982
|
+
parseRange(range) {
|
|
142983
|
+
const memoKey = ((this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE)) + ":" + range;
|
|
142984
|
+
const cached = cache.get(memoKey);
|
|
142985
|
+
if (cached) return cached;
|
|
142986
|
+
const loose = this.options.loose;
|
|
142987
|
+
const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
|
|
142988
|
+
range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
|
|
142989
|
+
debug("hyphen replace", range);
|
|
142990
|
+
range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace);
|
|
142991
|
+
debug("comparator trim", range);
|
|
142992
|
+
range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
|
|
142993
|
+
debug("tilde trim", range);
|
|
142994
|
+
range = range.replace(re[t.CARETTRIM], caretTrimReplace);
|
|
142995
|
+
debug("caret trim", range);
|
|
142996
|
+
let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
|
|
142997
|
+
if (loose) rangeList = rangeList.filter((comp) => {
|
|
142998
|
+
debug("loose invalid filter", comp, this.options);
|
|
142999
|
+
return !!comp.match(re[t.COMPARATORLOOSE]);
|
|
143000
|
+
});
|
|
143001
|
+
debug("range list", rangeList);
|
|
143002
|
+
const rangeMap = /* @__PURE__ */ new Map();
|
|
143003
|
+
const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
|
|
143004
|
+
for (const comp of comparators) {
|
|
143005
|
+
if (isNullSet(comp)) return [comp];
|
|
143006
|
+
rangeMap.set(comp.value, comp);
|
|
143007
|
+
}
|
|
143008
|
+
if (rangeMap.size > 1 && rangeMap.has("")) rangeMap.delete("");
|
|
143009
|
+
const result = [...rangeMap.values()];
|
|
143010
|
+
cache.set(memoKey, result);
|
|
143011
|
+
return result;
|
|
143012
|
+
}
|
|
143013
|
+
intersects(range, options) {
|
|
143014
|
+
if (!(range instanceof Range)) throw new TypeError("a Range is required");
|
|
143015
|
+
return this.set.some((thisComparators) => {
|
|
143016
|
+
return isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => {
|
|
143017
|
+
return isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => {
|
|
143018
|
+
return rangeComparators.every((rangeComparator) => {
|
|
143019
|
+
return thisComparator.intersects(rangeComparator, options);
|
|
143020
|
+
});
|
|
143021
|
+
});
|
|
143022
|
+
});
|
|
143023
|
+
});
|
|
143024
|
+
}
|
|
143025
|
+
test(version) {
|
|
143026
|
+
if (!version) return false;
|
|
143027
|
+
if (typeof version === "string") try {
|
|
143028
|
+
version = new SemVer(version, this.options);
|
|
143029
|
+
} catch (er) {
|
|
143030
|
+
return false;
|
|
143031
|
+
}
|
|
143032
|
+
for (let i = 0; i < this.set.length; i++) if (testSet(this.set[i], version, this.options)) return true;
|
|
143033
|
+
return false;
|
|
143034
|
+
}
|
|
143035
|
+
};
|
|
143036
|
+
const cache = new (require_lrucache())();
|
|
143037
|
+
const parseOptions = require_parse_options();
|
|
143038
|
+
const Comparator = require_comparator();
|
|
143039
|
+
const debug = require_debug();
|
|
143040
|
+
const SemVer = require_semver$1();
|
|
143041
|
+
const { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re();
|
|
143042
|
+
const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants();
|
|
143043
|
+
const isNullSet = (c) => c.value === "<0.0.0-0";
|
|
143044
|
+
const isAny = (c) => c.value === "";
|
|
143045
|
+
const isSatisfiable = (comparators, options) => {
|
|
143046
|
+
let result = true;
|
|
143047
|
+
const remainingComparators = comparators.slice();
|
|
143048
|
+
let testComparator = remainingComparators.pop();
|
|
143049
|
+
while (result && remainingComparators.length) {
|
|
143050
|
+
result = remainingComparators.every((otherComparator) => {
|
|
143051
|
+
return testComparator.intersects(otherComparator, options);
|
|
143052
|
+
});
|
|
143053
|
+
testComparator = remainingComparators.pop();
|
|
143054
|
+
}
|
|
143055
|
+
return result;
|
|
143056
|
+
};
|
|
143057
|
+
const parseComparator = (comp, options) => {
|
|
143058
|
+
comp = comp.replace(re[t.BUILD], "");
|
|
143059
|
+
debug("comp", comp, options);
|
|
143060
|
+
comp = replaceCarets(comp, options);
|
|
143061
|
+
debug("caret", comp);
|
|
143062
|
+
comp = replaceTildes(comp, options);
|
|
143063
|
+
debug("tildes", comp);
|
|
143064
|
+
comp = replaceXRanges(comp, options);
|
|
143065
|
+
debug("xrange", comp);
|
|
143066
|
+
comp = replaceStars(comp, options);
|
|
143067
|
+
debug("stars", comp);
|
|
143068
|
+
return comp;
|
|
143069
|
+
};
|
|
143070
|
+
const isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
|
|
143071
|
+
const replaceTildes = (comp, options) => {
|
|
143072
|
+
return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
|
|
143073
|
+
};
|
|
143074
|
+
const replaceTilde = (comp, options) => {
|
|
143075
|
+
const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
|
|
143076
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
143077
|
+
debug("tilde", comp, _, M, m, p, pr);
|
|
143078
|
+
let ret;
|
|
143079
|
+
if (isX(M)) ret = "";
|
|
143080
|
+
else if (isX(m)) ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
|
|
143081
|
+
else if (isX(p)) ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
|
|
143082
|
+
else if (pr) {
|
|
143083
|
+
debug("replaceTilde pr", pr);
|
|
143084
|
+
ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
143085
|
+
} else ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
|
|
143086
|
+
debug("tilde return", ret);
|
|
143087
|
+
return ret;
|
|
143088
|
+
});
|
|
143089
|
+
};
|
|
143090
|
+
const replaceCarets = (comp, options) => {
|
|
143091
|
+
return comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" ");
|
|
143092
|
+
};
|
|
143093
|
+
const replaceCaret = (comp, options) => {
|
|
143094
|
+
debug("caret", comp, options);
|
|
143095
|
+
const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET];
|
|
143096
|
+
const z = options.includePrerelease ? "-0" : "";
|
|
143097
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
143098
|
+
debug("caret", comp, _, M, m, p, pr);
|
|
143099
|
+
let ret;
|
|
143100
|
+
if (isX(M)) ret = "";
|
|
143101
|
+
else if (isX(m)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
|
|
143102
|
+
else if (isX(p)) if (M === "0") ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
|
|
143103
|
+
else ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
|
|
143104
|
+
else if (pr) {
|
|
143105
|
+
debug("replaceCaret pr", pr);
|
|
143106
|
+
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;
|
|
143107
|
+
else ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
143108
|
+
else ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
|
|
143109
|
+
} else {
|
|
143110
|
+
debug("no pr");
|
|
143111
|
+
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0`;
|
|
143112
|
+
else ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0`;
|
|
143113
|
+
else ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
|
|
143114
|
+
}
|
|
143115
|
+
debug("caret return", ret);
|
|
143116
|
+
return ret;
|
|
143117
|
+
});
|
|
143118
|
+
};
|
|
143119
|
+
const replaceXRanges = (comp, options) => {
|
|
143120
|
+
debug("replaceXRanges", comp, options);
|
|
143121
|
+
return comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ");
|
|
143122
|
+
};
|
|
143123
|
+
const replaceXRange = (comp, options) => {
|
|
143124
|
+
comp = comp.trim();
|
|
143125
|
+
const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
|
|
143126
|
+
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
|
|
143127
|
+
debug("xRange", comp, ret, gtlt, M, m, p, pr);
|
|
143128
|
+
const xM = isX(M);
|
|
143129
|
+
const xm = xM || isX(m);
|
|
143130
|
+
const xp = xm || isX(p);
|
|
143131
|
+
const anyX = xp;
|
|
143132
|
+
if (gtlt === "=" && anyX) gtlt = "";
|
|
143133
|
+
pr = options.includePrerelease ? "-0" : "";
|
|
143134
|
+
if (xM) if (gtlt === ">" || gtlt === "<") ret = "<0.0.0-0";
|
|
143135
|
+
else ret = "*";
|
|
143136
|
+
else if (gtlt && anyX) {
|
|
143137
|
+
if (xm) m = 0;
|
|
143138
|
+
p = 0;
|
|
143139
|
+
if (gtlt === ">") {
|
|
143140
|
+
gtlt = ">=";
|
|
143141
|
+
if (xm) {
|
|
143142
|
+
M = +M + 1;
|
|
143143
|
+
m = 0;
|
|
143144
|
+
p = 0;
|
|
143145
|
+
} else {
|
|
143146
|
+
m = +m + 1;
|
|
143147
|
+
p = 0;
|
|
143148
|
+
}
|
|
143149
|
+
} else if (gtlt === "<=") {
|
|
143150
|
+
gtlt = "<";
|
|
143151
|
+
if (xm) M = +M + 1;
|
|
143152
|
+
else m = +m + 1;
|
|
143153
|
+
}
|
|
143154
|
+
if (gtlt === "<") pr = "-0";
|
|
143155
|
+
ret = `${gtlt + M}.${m}.${p}${pr}`;
|
|
143156
|
+
} else if (xm) ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
|
|
143157
|
+
else if (xp) ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;
|
|
143158
|
+
debug("xRange return", ret);
|
|
143159
|
+
return ret;
|
|
143160
|
+
});
|
|
143161
|
+
};
|
|
143162
|
+
const replaceStars = (comp, options) => {
|
|
143163
|
+
debug("replaceStars", comp, options);
|
|
143164
|
+
return comp.trim().replace(re[t.STAR], "");
|
|
143165
|
+
};
|
|
143166
|
+
const replaceGTE0 = (comp, options) => {
|
|
143167
|
+
debug("replaceGTE0", comp, options);
|
|
143168
|
+
return comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
|
|
143169
|
+
};
|
|
143170
|
+
const hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
|
|
143171
|
+
if (isX(fM)) from = "";
|
|
143172
|
+
else if (isX(fm)) from = `>=${fM}.0.0${incPr ? "-0" : ""}`;
|
|
143173
|
+
else if (isX(fp)) from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}`;
|
|
143174
|
+
else if (fpr) from = `>=${from}`;
|
|
143175
|
+
else from = `>=${from}${incPr ? "-0" : ""}`;
|
|
143176
|
+
if (isX(tM)) to = "";
|
|
143177
|
+
else if (isX(tm)) to = `<${+tM + 1}.0.0-0`;
|
|
143178
|
+
else if (isX(tp)) to = `<${tM}.${+tm + 1}.0-0`;
|
|
143179
|
+
else if (tpr) to = `<=${tM}.${tm}.${tp}-${tpr}`;
|
|
143180
|
+
else if (incPr) to = `<${tM}.${tm}.${+tp + 1}-0`;
|
|
143181
|
+
else to = `<=${to}`;
|
|
143182
|
+
return `${from} ${to}`.trim();
|
|
143183
|
+
};
|
|
143184
|
+
const testSet = (set, version, options) => {
|
|
143185
|
+
for (let i = 0; i < set.length; i++) if (!set[i].test(version)) return false;
|
|
143186
|
+
if (version.prerelease.length && !options.includePrerelease) {
|
|
143187
|
+
for (let i = 0; i < set.length; i++) {
|
|
143188
|
+
debug(set[i].semver);
|
|
143189
|
+
if (set[i].semver === Comparator.ANY) continue;
|
|
143190
|
+
if (set[i].semver.prerelease.length > 0) {
|
|
143191
|
+
const allowed = set[i].semver;
|
|
143192
|
+
if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) return true;
|
|
143193
|
+
}
|
|
143194
|
+
}
|
|
143195
|
+
return false;
|
|
143196
|
+
}
|
|
143197
|
+
return true;
|
|
143198
|
+
};
|
|
143199
|
+
}));
|
|
143200
|
+
//#endregion
|
|
143201
|
+
//#region ../../packages/core-node/node_modules/semver/classes/comparator.js
|
|
143202
|
+
var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143203
|
+
const ANY = Symbol("SemVer ANY");
|
|
143204
|
+
module.exports = class Comparator {
|
|
143205
|
+
static get ANY() {
|
|
143206
|
+
return ANY;
|
|
143207
|
+
}
|
|
143208
|
+
constructor(comp, options) {
|
|
143209
|
+
options = parseOptions(options);
|
|
143210
|
+
if (comp instanceof Comparator) if (comp.loose === !!options.loose) return comp;
|
|
143211
|
+
else comp = comp.value;
|
|
143212
|
+
comp = comp.trim().split(/\s+/).join(" ");
|
|
143213
|
+
debug("comparator", comp, options);
|
|
143214
|
+
this.options = options;
|
|
143215
|
+
this.loose = !!options.loose;
|
|
143216
|
+
this.parse(comp);
|
|
143217
|
+
if (this.semver === ANY) this.value = "";
|
|
143218
|
+
else this.value = this.operator + this.semver.version;
|
|
143219
|
+
debug("comp", this);
|
|
143220
|
+
}
|
|
143221
|
+
parse(comp) {
|
|
143222
|
+
const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR];
|
|
143223
|
+
const m = comp.match(r);
|
|
143224
|
+
if (!m) throw new TypeError(`Invalid comparator: ${comp}`);
|
|
143225
|
+
this.operator = m[1] !== void 0 ? m[1] : "";
|
|
143226
|
+
if (this.operator === "=") this.operator = "";
|
|
143227
|
+
if (!m[2]) this.semver = ANY;
|
|
143228
|
+
else this.semver = new SemVer(m[2], this.options.loose);
|
|
143229
|
+
}
|
|
143230
|
+
toString() {
|
|
143231
|
+
return this.value;
|
|
143232
|
+
}
|
|
143233
|
+
test(version) {
|
|
143234
|
+
debug("Comparator.test", version, this.options.loose);
|
|
143235
|
+
if (this.semver === ANY || version === ANY) return true;
|
|
143236
|
+
if (typeof version === "string") try {
|
|
143237
|
+
version = new SemVer(version, this.options);
|
|
143238
|
+
} catch (er) {
|
|
143239
|
+
return false;
|
|
143240
|
+
}
|
|
143241
|
+
return cmp(version, this.operator, this.semver, this.options);
|
|
143242
|
+
}
|
|
143243
|
+
intersects(comp, options) {
|
|
143244
|
+
if (!(comp instanceof Comparator)) throw new TypeError("a Comparator is required");
|
|
143245
|
+
if (this.operator === "") {
|
|
143246
|
+
if (this.value === "") return true;
|
|
143247
|
+
return new Range(comp.value, options).test(this.value);
|
|
143248
|
+
} else if (comp.operator === "") {
|
|
143249
|
+
if (comp.value === "") return true;
|
|
143250
|
+
return new Range(this.value, options).test(comp.semver);
|
|
143251
|
+
}
|
|
143252
|
+
options = parseOptions(options);
|
|
143253
|
+
if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) return false;
|
|
143254
|
+
if (!options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0"))) return false;
|
|
143255
|
+
if (this.operator.startsWith(">") && comp.operator.startsWith(">")) return true;
|
|
143256
|
+
if (this.operator.startsWith("<") && comp.operator.startsWith("<")) return true;
|
|
143257
|
+
if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) return true;
|
|
143258
|
+
if (cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) return true;
|
|
143259
|
+
if (cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) return true;
|
|
143260
|
+
return false;
|
|
143261
|
+
}
|
|
143262
|
+
};
|
|
143263
|
+
const parseOptions = require_parse_options();
|
|
143264
|
+
const { safeRe: re, t } = require_re();
|
|
143265
|
+
const cmp = require_cmp();
|
|
143266
|
+
const debug = require_debug();
|
|
143267
|
+
const SemVer = require_semver$1();
|
|
143268
|
+
const Range = require_range();
|
|
143269
|
+
}));
|
|
143270
|
+
//#endregion
|
|
143271
|
+
//#region ../../packages/core-node/node_modules/semver/functions/satisfies.js
|
|
143272
|
+
var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143273
|
+
const Range = require_range();
|
|
143274
|
+
const satisfies = (version, range, options) => {
|
|
143275
|
+
try {
|
|
143276
|
+
range = new Range(range, options);
|
|
143277
|
+
} catch (er) {
|
|
143278
|
+
return false;
|
|
143279
|
+
}
|
|
143280
|
+
return range.test(version);
|
|
143281
|
+
};
|
|
143282
|
+
module.exports = satisfies;
|
|
143283
|
+
}));
|
|
143284
|
+
//#endregion
|
|
143285
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/to-comparators.js
|
|
143286
|
+
var require_to_comparators = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143287
|
+
const Range = require_range();
|
|
143288
|
+
const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
143289
|
+
module.exports = toComparators;
|
|
143290
|
+
}));
|
|
143291
|
+
//#endregion
|
|
143292
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/max-satisfying.js
|
|
143293
|
+
var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143294
|
+
const SemVer = require_semver$1();
|
|
143295
|
+
const Range = require_range();
|
|
143296
|
+
const maxSatisfying = (versions, range, options) => {
|
|
143297
|
+
let max = null;
|
|
143298
|
+
let maxSV = null;
|
|
143299
|
+
let rangeObj = null;
|
|
143300
|
+
try {
|
|
143301
|
+
rangeObj = new Range(range, options);
|
|
143302
|
+
} catch (er) {
|
|
143303
|
+
return null;
|
|
143304
|
+
}
|
|
143305
|
+
versions.forEach((v) => {
|
|
143306
|
+
if (rangeObj.test(v)) {
|
|
143307
|
+
if (!max || maxSV.compare(v) === -1) {
|
|
143308
|
+
max = v;
|
|
143309
|
+
maxSV = new SemVer(max, options);
|
|
143310
|
+
}
|
|
143311
|
+
}
|
|
143312
|
+
});
|
|
143313
|
+
return max;
|
|
143314
|
+
};
|
|
143315
|
+
module.exports = maxSatisfying;
|
|
143316
|
+
}));
|
|
143317
|
+
//#endregion
|
|
143318
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/min-satisfying.js
|
|
143319
|
+
var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143320
|
+
const SemVer = require_semver$1();
|
|
143321
|
+
const Range = require_range();
|
|
143322
|
+
const minSatisfying = (versions, range, options) => {
|
|
143323
|
+
let min = null;
|
|
143324
|
+
let minSV = null;
|
|
143325
|
+
let rangeObj = null;
|
|
143326
|
+
try {
|
|
143327
|
+
rangeObj = new Range(range, options);
|
|
143328
|
+
} catch (er) {
|
|
143329
|
+
return null;
|
|
143330
|
+
}
|
|
143331
|
+
versions.forEach((v) => {
|
|
143332
|
+
if (rangeObj.test(v)) {
|
|
143333
|
+
if (!min || minSV.compare(v) === 1) {
|
|
143334
|
+
min = v;
|
|
143335
|
+
minSV = new SemVer(min, options);
|
|
143336
|
+
}
|
|
143337
|
+
}
|
|
143338
|
+
});
|
|
143339
|
+
return min;
|
|
143340
|
+
};
|
|
143341
|
+
module.exports = minSatisfying;
|
|
143342
|
+
}));
|
|
143343
|
+
//#endregion
|
|
143344
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/min-version.js
|
|
143345
|
+
var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143346
|
+
const SemVer = require_semver$1();
|
|
143347
|
+
const Range = require_range();
|
|
143348
|
+
const gt = require_gt();
|
|
143349
|
+
const minVersion = (range, loose) => {
|
|
143350
|
+
range = new Range(range, loose);
|
|
143351
|
+
let minver = new SemVer("0.0.0");
|
|
143352
|
+
if (range.test(minver)) return minver;
|
|
143353
|
+
minver = new SemVer("0.0.0-0");
|
|
143354
|
+
if (range.test(minver)) return minver;
|
|
143355
|
+
minver = null;
|
|
143356
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
143357
|
+
const comparators = range.set[i];
|
|
143358
|
+
let setMin = null;
|
|
143359
|
+
comparators.forEach((comparator) => {
|
|
143360
|
+
const compver = new SemVer(comparator.semver.version);
|
|
143361
|
+
switch (comparator.operator) {
|
|
143362
|
+
case ">":
|
|
143363
|
+
if (compver.prerelease.length === 0) compver.patch++;
|
|
143364
|
+
else compver.prerelease.push(0);
|
|
143365
|
+
compver.raw = compver.format();
|
|
143366
|
+
case "":
|
|
143367
|
+
case ">=":
|
|
143368
|
+
if (!setMin || gt(compver, setMin)) setMin = compver;
|
|
143369
|
+
break;
|
|
143370
|
+
case "<":
|
|
143371
|
+
case "<=": break;
|
|
143372
|
+
default: throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
143373
|
+
}
|
|
143374
|
+
});
|
|
143375
|
+
if (setMin && (!minver || gt(minver, setMin))) minver = setMin;
|
|
143376
|
+
}
|
|
143377
|
+
if (minver && range.test(minver)) return minver;
|
|
143378
|
+
return null;
|
|
143379
|
+
};
|
|
143380
|
+
module.exports = minVersion;
|
|
143381
|
+
}));
|
|
143382
|
+
//#endregion
|
|
143383
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/valid.js
|
|
143384
|
+
var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143385
|
+
const Range = require_range();
|
|
143386
|
+
const validRange = (range, options) => {
|
|
143387
|
+
try {
|
|
143388
|
+
return new Range(range, options).range || "*";
|
|
143389
|
+
} catch (er) {
|
|
143390
|
+
return null;
|
|
143391
|
+
}
|
|
143392
|
+
};
|
|
143393
|
+
module.exports = validRange;
|
|
143394
|
+
}));
|
|
143395
|
+
//#endregion
|
|
143396
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/outside.js
|
|
143397
|
+
var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143398
|
+
const SemVer = require_semver$1();
|
|
143399
|
+
const Comparator = require_comparator();
|
|
143400
|
+
const { ANY } = Comparator;
|
|
143401
|
+
const Range = require_range();
|
|
143402
|
+
const satisfies = require_satisfies();
|
|
143403
|
+
const gt = require_gt();
|
|
143404
|
+
const lt = require_lt();
|
|
143405
|
+
const lte = require_lte();
|
|
143406
|
+
const gte = require_gte();
|
|
143407
|
+
const outside = (version, range, hilo, options) => {
|
|
143408
|
+
version = new SemVer(version, options);
|
|
143409
|
+
range = new Range(range, options);
|
|
143410
|
+
let gtfn, ltefn, ltfn, comp, ecomp;
|
|
143411
|
+
switch (hilo) {
|
|
143412
|
+
case ">":
|
|
143413
|
+
gtfn = gt;
|
|
143414
|
+
ltefn = lte;
|
|
143415
|
+
ltfn = lt;
|
|
143416
|
+
comp = ">";
|
|
143417
|
+
ecomp = ">=";
|
|
143418
|
+
break;
|
|
143419
|
+
case "<":
|
|
143420
|
+
gtfn = lt;
|
|
143421
|
+
ltefn = gte;
|
|
143422
|
+
ltfn = gt;
|
|
143423
|
+
comp = "<";
|
|
143424
|
+
ecomp = "<=";
|
|
143425
|
+
break;
|
|
143426
|
+
default: throw new TypeError("Must provide a hilo val of \"<\" or \">\"");
|
|
143427
|
+
}
|
|
143428
|
+
if (satisfies(version, range, options)) return false;
|
|
143429
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
143430
|
+
const comparators = range.set[i];
|
|
143431
|
+
let high = null;
|
|
143432
|
+
let low = null;
|
|
143433
|
+
comparators.forEach((comparator) => {
|
|
143434
|
+
if (comparator.semver === ANY) comparator = new Comparator(">=0.0.0");
|
|
143435
|
+
high = high || comparator;
|
|
143436
|
+
low = low || comparator;
|
|
143437
|
+
if (gtfn(comparator.semver, high.semver, options)) high = comparator;
|
|
143438
|
+
else if (ltfn(comparator.semver, low.semver, options)) low = comparator;
|
|
143439
|
+
});
|
|
143440
|
+
if (high.operator === comp || high.operator === ecomp) return false;
|
|
143441
|
+
if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) return false;
|
|
143442
|
+
else if (low.operator === ecomp && ltfn(version, low.semver)) return false;
|
|
143443
|
+
}
|
|
143444
|
+
return true;
|
|
143445
|
+
};
|
|
143446
|
+
module.exports = outside;
|
|
143447
|
+
}));
|
|
143448
|
+
//#endregion
|
|
143449
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/gtr.js
|
|
143450
|
+
var require_gtr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143451
|
+
const outside = require_outside();
|
|
143452
|
+
const gtr = (version, range, options) => outside(version, range, ">", options);
|
|
143453
|
+
module.exports = gtr;
|
|
143454
|
+
}));
|
|
143455
|
+
//#endregion
|
|
143456
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/ltr.js
|
|
143457
|
+
var require_ltr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143458
|
+
const outside = require_outside();
|
|
143459
|
+
const ltr = (version, range, options) => outside(version, range, "<", options);
|
|
143460
|
+
module.exports = ltr;
|
|
143461
|
+
}));
|
|
143462
|
+
//#endregion
|
|
143463
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/intersects.js
|
|
143464
|
+
var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143465
|
+
const Range = require_range();
|
|
143466
|
+
const intersects = (r1, r2, options) => {
|
|
143467
|
+
r1 = new Range(r1, options);
|
|
143468
|
+
r2 = new Range(r2, options);
|
|
143469
|
+
return r1.intersects(r2, options);
|
|
143470
|
+
};
|
|
143471
|
+
module.exports = intersects;
|
|
143472
|
+
}));
|
|
143473
|
+
//#endregion
|
|
143474
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/simplify.js
|
|
143475
|
+
var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143476
|
+
const satisfies = require_satisfies();
|
|
143477
|
+
const compare = require_compare();
|
|
143478
|
+
module.exports = (versions, range, options) => {
|
|
143479
|
+
const set = [];
|
|
143480
|
+
let first = null;
|
|
143481
|
+
let prev = null;
|
|
143482
|
+
const v = versions.sort((a, b) => compare(a, b, options));
|
|
143483
|
+
for (const version of v) if (satisfies(version, range, options)) {
|
|
143484
|
+
prev = version;
|
|
143485
|
+
if (!first) first = version;
|
|
143486
|
+
} else {
|
|
143487
|
+
if (prev) set.push([first, prev]);
|
|
143488
|
+
prev = null;
|
|
143489
|
+
first = null;
|
|
143490
|
+
}
|
|
143491
|
+
if (first) set.push([first, null]);
|
|
143492
|
+
const ranges = [];
|
|
143493
|
+
for (const [min, max] of set) if (min === max) ranges.push(min);
|
|
143494
|
+
else if (!max && min === v[0]) ranges.push("*");
|
|
143495
|
+
else if (!max) ranges.push(`>=${min}`);
|
|
143496
|
+
else if (min === v[0]) ranges.push(`<=${max}`);
|
|
143497
|
+
else ranges.push(`${min} - ${max}`);
|
|
143498
|
+
const simplified = ranges.join(" || ");
|
|
143499
|
+
const original = typeof range.raw === "string" ? range.raw : String(range);
|
|
143500
|
+
return simplified.length < original.length ? simplified : range;
|
|
143501
|
+
};
|
|
143502
|
+
}));
|
|
143503
|
+
//#endregion
|
|
143504
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/subset.js
|
|
143505
|
+
var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143506
|
+
const Range = require_range();
|
|
143507
|
+
const Comparator = require_comparator();
|
|
143508
|
+
const { ANY } = Comparator;
|
|
143509
|
+
const satisfies = require_satisfies();
|
|
143510
|
+
const compare = require_compare();
|
|
143511
|
+
const subset = (sub, dom, options = {}) => {
|
|
143512
|
+
if (sub === dom) return true;
|
|
143513
|
+
sub = new Range(sub, options);
|
|
143514
|
+
dom = new Range(dom, options);
|
|
143515
|
+
let sawNonNull = false;
|
|
143516
|
+
OUTER: for (const simpleSub of sub.set) {
|
|
143517
|
+
for (const simpleDom of dom.set) {
|
|
143518
|
+
const isSub = simpleSubset(simpleSub, simpleDom, options);
|
|
143519
|
+
sawNonNull = sawNonNull || isSub !== null;
|
|
143520
|
+
if (isSub) continue OUTER;
|
|
143521
|
+
}
|
|
143522
|
+
if (sawNonNull) return false;
|
|
143523
|
+
}
|
|
143524
|
+
return true;
|
|
143525
|
+
};
|
|
143526
|
+
const minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")];
|
|
143527
|
+
const minimumVersion = [new Comparator(">=0.0.0")];
|
|
143528
|
+
const simpleSubset = (sub, dom, options) => {
|
|
143529
|
+
if (sub === dom) return true;
|
|
143530
|
+
if (sub.length === 1 && sub[0].semver === ANY) if (dom.length === 1 && dom[0].semver === ANY) return true;
|
|
143531
|
+
else if (options.includePrerelease) sub = minimumVersionWithPreRelease;
|
|
143532
|
+
else sub = minimumVersion;
|
|
143533
|
+
if (dom.length === 1 && dom[0].semver === ANY) if (options.includePrerelease) return true;
|
|
143534
|
+
else dom = minimumVersion;
|
|
143535
|
+
const eqSet = /* @__PURE__ */ new Set();
|
|
143536
|
+
let gt, lt;
|
|
143537
|
+
for (const c of sub) if (c.operator === ">" || c.operator === ">=") gt = higherGT(gt, c, options);
|
|
143538
|
+
else if (c.operator === "<" || c.operator === "<=") lt = lowerLT(lt, c, options);
|
|
143539
|
+
else eqSet.add(c.semver);
|
|
143540
|
+
if (eqSet.size > 1) return null;
|
|
143541
|
+
let gtltComp;
|
|
143542
|
+
if (gt && lt) {
|
|
143543
|
+
gtltComp = compare(gt.semver, lt.semver, options);
|
|
143544
|
+
if (gtltComp > 0) return null;
|
|
143545
|
+
else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) return null;
|
|
143546
|
+
}
|
|
143547
|
+
for (const eq of eqSet) {
|
|
143548
|
+
if (gt && !satisfies(eq, String(gt), options)) return null;
|
|
143549
|
+
if (lt && !satisfies(eq, String(lt), options)) return null;
|
|
143550
|
+
for (const c of dom) if (!satisfies(eq, String(c), options)) return false;
|
|
143551
|
+
return true;
|
|
143552
|
+
}
|
|
143553
|
+
let higher, lower;
|
|
143554
|
+
let hasDomLT, hasDomGT;
|
|
143555
|
+
let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;
|
|
143556
|
+
let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;
|
|
143557
|
+
if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0) needDomLTPre = false;
|
|
143558
|
+
for (const c of dom) {
|
|
143559
|
+
hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=";
|
|
143560
|
+
hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=";
|
|
143561
|
+
if (gt) {
|
|
143562
|
+
if (needDomGTPre) {
|
|
143563
|
+
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;
|
|
143564
|
+
}
|
|
143565
|
+
if (c.operator === ">" || c.operator === ">=") {
|
|
143566
|
+
higher = higherGT(gt, c, options);
|
|
143567
|
+
if (higher === c && higher !== gt) return false;
|
|
143568
|
+
} else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options)) return false;
|
|
143569
|
+
}
|
|
143570
|
+
if (lt) {
|
|
143571
|
+
if (needDomLTPre) {
|
|
143572
|
+
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;
|
|
143573
|
+
}
|
|
143574
|
+
if (c.operator === "<" || c.operator === "<=") {
|
|
143575
|
+
lower = lowerLT(lt, c, options);
|
|
143576
|
+
if (lower === c && lower !== lt) return false;
|
|
143577
|
+
} else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options)) return false;
|
|
143578
|
+
}
|
|
143579
|
+
if (!c.operator && (lt || gt) && gtltComp !== 0) return false;
|
|
143580
|
+
}
|
|
143581
|
+
if (gt && hasDomLT && !lt && gtltComp !== 0) return false;
|
|
143582
|
+
if (lt && hasDomGT && !gt && gtltComp !== 0) return false;
|
|
143583
|
+
if (needDomGTPre || needDomLTPre) return false;
|
|
143584
|
+
return true;
|
|
143585
|
+
};
|
|
143586
|
+
const higherGT = (a, b, options) => {
|
|
143587
|
+
if (!a) return b;
|
|
143588
|
+
const comp = compare(a.semver, b.semver, options);
|
|
143589
|
+
return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
|
|
143590
|
+
};
|
|
143591
|
+
const lowerLT = (a, b, options) => {
|
|
143592
|
+
if (!a) return b;
|
|
143593
|
+
const comp = compare(a.semver, b.semver, options);
|
|
143594
|
+
return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
|
|
143595
|
+
};
|
|
143596
|
+
module.exports = subset;
|
|
143597
|
+
}));
|
|
143598
|
+
//#endregion
|
|
143599
|
+
//#region ../../packages/core-node/node_modules/semver/index.js
|
|
143600
|
+
var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143601
|
+
const internalRe = require_re();
|
|
143602
|
+
const constants = require_constants();
|
|
143603
|
+
const SemVer = require_semver$1();
|
|
143604
|
+
const identifiers = require_identifiers();
|
|
143605
|
+
module.exports = {
|
|
143606
|
+
parse: require_parse(),
|
|
143607
|
+
valid: require_valid$1(),
|
|
143608
|
+
clean: require_clean(),
|
|
143609
|
+
inc: require_inc(),
|
|
143610
|
+
diff: require_diff(),
|
|
143611
|
+
major: require_major(),
|
|
143612
|
+
minor: require_minor(),
|
|
143613
|
+
patch: require_patch(),
|
|
143614
|
+
prerelease: require_prerelease(),
|
|
143615
|
+
compare: require_compare(),
|
|
143616
|
+
rcompare: require_rcompare(),
|
|
143617
|
+
compareLoose: require_compare_loose(),
|
|
143618
|
+
compareBuild: require_compare_build(),
|
|
143619
|
+
sort: require_sort(),
|
|
143620
|
+
rsort: require_rsort(),
|
|
143621
|
+
gt: require_gt(),
|
|
143622
|
+
lt: require_lt(),
|
|
143623
|
+
eq: require_eq(),
|
|
143624
|
+
neq: require_neq(),
|
|
143625
|
+
gte: require_gte(),
|
|
143626
|
+
lte: require_lte(),
|
|
143627
|
+
cmp: require_cmp(),
|
|
143628
|
+
coerce: require_coerce(),
|
|
143629
|
+
Comparator: require_comparator(),
|
|
143630
|
+
Range: require_range(),
|
|
143631
|
+
satisfies: require_satisfies(),
|
|
143632
|
+
toComparators: require_to_comparators(),
|
|
143633
|
+
maxSatisfying: require_max_satisfying(),
|
|
143634
|
+
minSatisfying: require_min_satisfying(),
|
|
143635
|
+
minVersion: require_min_version(),
|
|
143636
|
+
validRange: require_valid(),
|
|
143637
|
+
outside: require_outside(),
|
|
143638
|
+
gtr: require_gtr(),
|
|
143639
|
+
ltr: require_ltr(),
|
|
143640
|
+
intersects: require_intersects(),
|
|
143641
|
+
simplifyRange: require_simplify(),
|
|
143642
|
+
subset: require_subset(),
|
|
143643
|
+
SemVer,
|
|
143644
|
+
re: internalRe.re,
|
|
143645
|
+
src: internalRe.src,
|
|
143646
|
+
tokens: internalRe.t,
|
|
143647
|
+
SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
|
|
143648
|
+
RELEASE_TYPES: constants.RELEASE_TYPES,
|
|
143649
|
+
compareIdentifiers: identifiers.compareIdentifiers,
|
|
143650
|
+
rcompareIdentifiers: identifiers.rcompareIdentifiers
|
|
143651
|
+
};
|
|
143652
|
+
}));
|
|
143653
|
+
//#endregion
|
|
140777
143654
|
//#region ../../node_modules/serve-handler/src/glob-slash.js
|
|
140778
143655
|
var require_glob_slash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
140779
143656
|
const path$4 = __require("path");
|
|
@@ -148163,6 +151040,7 @@ var require_error = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
148163
151040
|
stream.pipe(response);
|
|
148164
151041
|
};
|
|
148165
151042
|
})))();
|
|
151043
|
+
var import_semver = /* @__PURE__ */ __toESM(require_semver(), 1);
|
|
148166
151044
|
var import_lib = /* @__PURE__ */ __toESM(require_lib(), 1);
|
|
148167
151045
|
//#endregion
|
|
148168
151046
|
//#region ../../packages/core-node/src/server.ts
|
|
@@ -148239,7 +151117,9 @@ async function fetchPackage(packageName, versionOrRange, options) {
|
|
|
148239
151117
|
const ctx = options.context;
|
|
148240
151118
|
const baseDir = ctx.getPackagesPath(packageName);
|
|
148241
151119
|
let resolvedVersion;
|
|
148242
|
-
|
|
151120
|
+
let resolvedVersionOrRange = versionOrRange;
|
|
151121
|
+
if (resolvedVersionOrRange === "local") resolvedVersionOrRange = "latest";
|
|
151122
|
+
console.log(`[Fetcher] Resolving ${packageName}@${resolvedVersionOrRange || "latest"}...`);
|
|
148243
151123
|
const resolveStart = Date.now();
|
|
148244
151124
|
try {
|
|
148245
151125
|
const cachePath = join(ctx.userDataPath, "cache", "pacote");
|
|
@@ -148250,7 +151130,7 @@ async function fetchPackage(packageName, versionOrRange, options) {
|
|
|
148250
151130
|
}
|
|
148251
151131
|
const packument = await packumentPromise;
|
|
148252
151132
|
const versions = Object.keys(packument.versions);
|
|
148253
|
-
const range =
|
|
151133
|
+
const range = resolvedVersionOrRange || "latest";
|
|
148254
151134
|
const foundVersion = packument["dist-tags"]?.[range] || import_semver.default.maxSatisfying(versions, range);
|
|
148255
151135
|
if (!foundVersion) throw new Error(`Package ${packageName}@${range} not found on npm (available tags: ${Object.keys(packument["dist-tags"] || {}).join(", ")})`);
|
|
148256
151136
|
resolvedVersion = foundVersion;
|
|
@@ -148258,7 +151138,7 @@ async function fetchPackage(packageName, versionOrRange, options) {
|
|
|
148258
151138
|
} catch (error) {
|
|
148259
151139
|
console.warn(`[Fetcher] ${packageName}: remote resolution failed (${Date.now() - resolveStart}ms), trying local fallback...`);
|
|
148260
151140
|
const fallbackStart = Date.now();
|
|
148261
|
-
const fallbackVersion = await tryLocalFallback(
|
|
151141
|
+
const fallbackVersion = await tryLocalFallback(resolvedVersionOrRange, error, baseDir, packageName);
|
|
148262
151142
|
if (fallbackVersion) {
|
|
148263
151143
|
resolvedVersion = fallbackVersion;
|
|
148264
151144
|
console.log(`[Fetcher] ${packageName}: Resolved to local fallback ${resolvedVersion} (${Date.now() - fallbackStart}ms)`);
|
|
@@ -148532,22 +151412,27 @@ async function crawlMonorepoPackages() {
|
|
|
148532
151412
|
}
|
|
148533
151413
|
return cache;
|
|
148534
151414
|
}
|
|
148535
|
-
async function
|
|
151415
|
+
async function tryLocalFallback(versionOrRange, _error, baseDir, logPrefix) {
|
|
148536
151416
|
if (!existsSync(baseDir)) return null;
|
|
148537
151417
|
try {
|
|
148538
|
-
|
|
148539
|
-
|
|
148540
|
-
|
|
148541
|
-
|
|
148542
|
-
|
|
148543
|
-
|
|
148544
|
-
|
|
148545
|
-
|
|
148546
|
-
|
|
148547
|
-
|
|
148548
|
-
|
|
148549
|
-
|
|
148550
|
-
|
|
151418
|
+
const localVersions = (await readdir(baseDir, { withFileTypes: true })).filter((e) => e.isDirectory() || e.isSymbolicLink()).map((e) => e.name).filter((name) => !!import_semver.default.valid(name));
|
|
151419
|
+
if (localVersions.length === 0) return null;
|
|
151420
|
+
const range = versionOrRange || "latest";
|
|
151421
|
+
if (range === "latest") {
|
|
151422
|
+
const latestLocal = localVersions.sort((a, b) => import_semver.default.rcompare(a, b))[0] || null;
|
|
151423
|
+
if (latestLocal) {
|
|
151424
|
+
console.info(`[Fetcher] ${logPrefix}: Using locally cached latest version: ${latestLocal}`);
|
|
151425
|
+
return latestLocal;
|
|
151426
|
+
}
|
|
151427
|
+
} else {
|
|
151428
|
+
const matched = import_semver.default.maxSatisfying(localVersions, range);
|
|
151429
|
+
if (matched) {
|
|
151430
|
+
console.info(`[Fetcher] ${logPrefix}: Using locally cached matching version: ${matched} for range ${range}`);
|
|
151431
|
+
return matched;
|
|
151432
|
+
}
|
|
151433
|
+
}
|
|
151434
|
+
} catch (e) {
|
|
151435
|
+
console.warn(`[Fetcher] ${logPrefix}: Error during local fallback resolution:`, e);
|
|
148551
151436
|
}
|
|
148552
151437
|
return null;
|
|
148553
151438
|
}
|
|
@@ -148573,6 +151458,26 @@ async function resolveEntryPoint(packageDir, packageName) {
|
|
|
148573
151458
|
//#region ../../packages/core-node/src/handler-func.ts
|
|
148574
151459
|
const { join: join$1 } = path;
|
|
148575
151460
|
//#endregion
|
|
151461
|
+
//#region ../../packages/core-node/src/handlers/plugins.ts
|
|
151462
|
+
const localPluginsMap = /* @__PURE__ */ new Map();
|
|
151463
|
+
if (isDev && projectRoot) {
|
|
151464
|
+
const pluginsDir = join(projectRoot, "plugins");
|
|
151465
|
+
if (existsSync(pluginsDir)) try {
|
|
151466
|
+
const entries = readdirSync(pluginsDir, { withFileTypes: true });
|
|
151467
|
+
for (const entry of entries) if (entry.isDirectory()) {
|
|
151468
|
+
const pkgPath = join(pluginsDir, entry.name, "package.json");
|
|
151469
|
+
if (existsSync(pkgPath)) try {
|
|
151470
|
+
const pkg = JSON.parse(readFileSync(pkgPath, "utf-8"));
|
|
151471
|
+
if (pkg.name) localPluginsMap.set(pkg.name, join(pluginsDir, entry.name));
|
|
151472
|
+
} catch (e) {
|
|
151473
|
+
console.error(`[Plugins] Failed to parse package.json for ${entry.name}:`, e);
|
|
151474
|
+
}
|
|
151475
|
+
}
|
|
151476
|
+
} catch (e) {
|
|
151477
|
+
console.error(`[Plugins] Failed to scan local workspace plugins directory:`, e);
|
|
151478
|
+
}
|
|
151479
|
+
}
|
|
151480
|
+
//#endregion
|
|
148576
151481
|
//#region ../plugin-core/src/pipelab.ts
|
|
148577
151482
|
const createActionRunner = (runner) => runner;
|
|
148578
151483
|
//#endregion
|
|
@@ -148661,86 +151566,74 @@ const uploadToNetlifyRunner = createActionRunner(async ({ log, inputs, cwd, abor
|
|
|
148661
151566
|
if (deployOut) log(deployOut);
|
|
148662
151567
|
log("Uploaded to netlify");
|
|
148663
151568
|
});
|
|
148664
|
-
const buildNetlifySite = createAction({
|
|
148665
|
-
id: "netlify-build",
|
|
148666
|
-
name: "Build Netlify site",
|
|
148667
|
-
description: "",
|
|
148668
|
-
icon: "",
|
|
148669
|
-
displayString: "`Build ${fmt.param(params['input-folder'], 'primary', 'No path selected')}`",
|
|
148670
|
-
meta: {},
|
|
148671
|
-
params: {
|
|
148672
|
-
"input-folder": createPathParam("", {
|
|
148673
|
-
required: true,
|
|
148674
|
-
label: "Path to the folder to upload to netlify",
|
|
148675
|
-
control: {
|
|
148676
|
-
type: "path",
|
|
148677
|
-
options: { properties: ["openDirectory"] }
|
|
148678
|
-
}
|
|
148679
|
-
}),
|
|
148680
|
-
token: createStringParam("", {
|
|
148681
|
-
required: true,
|
|
148682
|
-
label: "Token"
|
|
148683
|
-
})
|
|
148684
|
-
},
|
|
148685
|
-
outputs: {}
|
|
148686
|
-
});
|
|
148687
|
-
const buildNetlifySiteRunner = createActionRunner(async ({ log, inputs, cwd, abortSignal, paths }) => {
|
|
148688
|
-
log("Building netlify site");
|
|
148689
|
-
const { node } = paths;
|
|
148690
|
-
const buildDir = join(cwd, "build");
|
|
148691
|
-
const inputFolder = inputs["input-folder"];
|
|
148692
|
-
if (!await fileExists(join(inputFolder, "package.json"))) throw new Error("No package.json found in input folder");
|
|
148693
|
-
await cp(inputs["input-folder"], buildDir, { recursive: true });
|
|
148694
|
-
const netlifyDir = join(buildDir, ".netlify");
|
|
148695
|
-
const netlifyState = join(netlifyDir, "state.json");
|
|
148696
|
-
await mkdir(netlifyDir, { recursive: true });
|
|
148697
|
-
await writeFile(netlifyState, `{ "siteId": "${inputs.site}" }`, "utf-8");
|
|
148698
|
-
const { all: buildOut } = await runPnpm(buildDir, {
|
|
148699
|
-
args: [
|
|
148700
|
-
"--package",
|
|
148701
|
-
"netlify-cli",
|
|
148702
|
-
"dlx",
|
|
148703
|
-
"netlify",
|
|
148704
|
-
"build"
|
|
148705
|
-
],
|
|
148706
|
-
extraEnv: { NETLIFY_AUTH_TOKEN: inputs.token },
|
|
148707
|
-
signal: abortSignal
|
|
148708
|
-
});
|
|
148709
|
-
if (buildOut) log(buildOut);
|
|
148710
|
-
const { all: deployOut } = await runPnpm(buildDir, {
|
|
148711
|
-
args: [
|
|
148712
|
-
"--package",
|
|
148713
|
-
"netlify-cli",
|
|
148714
|
-
"dlx",
|
|
148715
|
-
"netlify",
|
|
148716
|
-
"deploy",
|
|
148717
|
-
"--prod"
|
|
148718
|
-
],
|
|
148719
|
-
extraEnv: { NETLIFY_AUTH_TOKEN: inputs.token },
|
|
148720
|
-
signal: abortSignal
|
|
148721
|
-
});
|
|
148722
|
-
if (deployOut) log(deployOut);
|
|
148723
|
-
log("Uploaded to netlify");
|
|
148724
|
-
});
|
|
148725
151569
|
//#endregion
|
|
148726
151570
|
//#region src/index.ts
|
|
148727
|
-
|
|
148728
|
-
|
|
148729
|
-
|
|
148730
|
-
|
|
148731
|
-
|
|
148732
|
-
|
|
148733
|
-
|
|
148734
|
-
|
|
148735
|
-
|
|
148736
|
-
|
|
148737
|
-
|
|
148738
|
-
|
|
148739
|
-
|
|
148740
|
-
|
|
148741
|
-
|
|
148742
|
-
|
|
148743
|
-
})
|
|
151571
|
+
var src_default = createNodeDefinition({ nodes: [{
|
|
151572
|
+
node: createAction({
|
|
151573
|
+
id: "netlify-build",
|
|
151574
|
+
name: "Build Netlify site",
|
|
151575
|
+
description: "",
|
|
151576
|
+
icon: "",
|
|
151577
|
+
displayString: "`Build ${fmt.param(params['input-folder'], 'primary', 'No path selected')}`",
|
|
151578
|
+
meta: {},
|
|
151579
|
+
params: {
|
|
151580
|
+
"input-folder": createPathParam("", {
|
|
151581
|
+
required: true,
|
|
151582
|
+
label: "Path to the folder to upload to netlify",
|
|
151583
|
+
control: {
|
|
151584
|
+
type: "path",
|
|
151585
|
+
options: { properties: ["openDirectory"] }
|
|
151586
|
+
}
|
|
151587
|
+
}),
|
|
151588
|
+
token: createStringParam("", {
|
|
151589
|
+
required: true,
|
|
151590
|
+
label: "Token"
|
|
151591
|
+
})
|
|
151592
|
+
},
|
|
151593
|
+
outputs: {}
|
|
151594
|
+
}),
|
|
151595
|
+
runner: createActionRunner(async ({ log, inputs, cwd, abortSignal, paths }) => {
|
|
151596
|
+
log("Building netlify site");
|
|
151597
|
+
const { node } = paths;
|
|
151598
|
+
const buildDir = join(cwd, "build");
|
|
151599
|
+
const inputFolder = inputs["input-folder"];
|
|
151600
|
+
if (!await fileExists(join(inputFolder, "package.json"))) throw new Error("No package.json found in input folder");
|
|
151601
|
+
await cp(inputs["input-folder"], buildDir, { recursive: true });
|
|
151602
|
+
const netlifyDir = join(buildDir, ".netlify");
|
|
151603
|
+
const netlifyState = join(netlifyDir, "state.json");
|
|
151604
|
+
await mkdir(netlifyDir, { recursive: true });
|
|
151605
|
+
await writeFile(netlifyState, `{ "siteId": "${inputs.site}" }`, "utf-8");
|
|
151606
|
+
const { all: buildOut } = await runPnpm(buildDir, {
|
|
151607
|
+
args: [
|
|
151608
|
+
"--package",
|
|
151609
|
+
"netlify-cli",
|
|
151610
|
+
"dlx",
|
|
151611
|
+
"netlify",
|
|
151612
|
+
"build"
|
|
151613
|
+
],
|
|
151614
|
+
extraEnv: { NETLIFY_AUTH_TOKEN: inputs.token },
|
|
151615
|
+
signal: abortSignal
|
|
151616
|
+
});
|
|
151617
|
+
if (buildOut) log(buildOut);
|
|
151618
|
+
const { all: deployOut } = await runPnpm(buildDir, {
|
|
151619
|
+
args: [
|
|
151620
|
+
"--package",
|
|
151621
|
+
"netlify-cli",
|
|
151622
|
+
"dlx",
|
|
151623
|
+
"netlify",
|
|
151624
|
+
"deploy",
|
|
151625
|
+
"--prod"
|
|
151626
|
+
],
|
|
151627
|
+
extraEnv: { NETLIFY_AUTH_TOKEN: inputs.token },
|
|
151628
|
+
signal: abortSignal
|
|
151629
|
+
});
|
|
151630
|
+
if (deployOut) log(deployOut);
|
|
151631
|
+
log("Uploaded to netlify");
|
|
151632
|
+
})
|
|
151633
|
+
}, {
|
|
151634
|
+
node: uploadToNetlify,
|
|
151635
|
+
runner: uploadToNetlifyRunner
|
|
151636
|
+
}] });
|
|
148744
151637
|
//#endregion
|
|
148745
151638
|
export { src_default as default };
|
|
148746
151639
|
|