@pipelab/plugin-filesystem 1.0.0-beta.12 → 1.0.0-beta.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3649 -757
- package/dist/index.mjs +3238 -349
- package/dist/index.mjs.map +1 -1
- package/package.json +26 -4
package/dist/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { formatWithOptions, types } from "util";
|
|
|
6
6
|
import path, { basename, dirname, join } from "node:path";
|
|
7
7
|
import { fileURLToPath } from "node:url";
|
|
8
8
|
import { constants, platform } from "node:os";
|
|
9
|
-
import { appendFileSync, createReadStream, createWriteStream, existsSync, readFileSync, statSync, writeFileSync } from "node:fs";
|
|
9
|
+
import { appendFileSync, createReadStream, createWriteStream, existsSync, readFileSync, readdirSync, statSync, writeFileSync } from "node:fs";
|
|
10
10
|
import http from "node:http";
|
|
11
11
|
import { webcrypto } from "node:crypto";
|
|
12
12
|
import { cp, mkdir, rm, stat } from "node:fs/promises";
|
|
@@ -36,8 +36,8 @@ const finalVersion = () => {
|
|
|
36
36
|
throw new Error("Unable to go up on the final version!");
|
|
37
37
|
};
|
|
38
38
|
//#endregion
|
|
39
|
-
//#region ../../node_modules/semver/internal/constants.js
|
|
40
|
-
var require_constants$
|
|
39
|
+
//#region ../../packages/migration/node_modules/semver/internal/constants.js
|
|
40
|
+
var require_constants$10 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
41
41
|
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
42
42
|
const MAX_LENGTH = 256;
|
|
43
43
|
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
@@ -61,15 +61,15 @@ var require_constants$8 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
61
61
|
};
|
|
62
62
|
}));
|
|
63
63
|
//#endregion
|
|
64
|
-
//#region ../../node_modules/semver/internal/debug.js
|
|
65
|
-
var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
64
|
+
//#region ../../packages/migration/node_modules/semver/internal/debug.js
|
|
65
|
+
var require_debug$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
66
66
|
module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
67
67
|
}));
|
|
68
68
|
//#endregion
|
|
69
|
-
//#region ../../node_modules/semver/internal/re.js
|
|
70
|
-
var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
71
|
-
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants$
|
|
72
|
-
const debug = require_debug();
|
|
69
|
+
//#region ../../packages/migration/node_modules/semver/internal/re.js
|
|
70
|
+
var require_re$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
71
|
+
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants$10();
|
|
72
|
+
const debug = require_debug$2();
|
|
73
73
|
exports = module.exports = {};
|
|
74
74
|
const re = exports.re = [];
|
|
75
75
|
const safeRe = exports.safeRe = [];
|
|
@@ -145,8 +145,8 @@ var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
145
145
|
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
146
146
|
}));
|
|
147
147
|
//#endregion
|
|
148
|
-
//#region ../../node_modules/semver/internal/parse-options.js
|
|
149
|
-
var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
148
|
+
//#region ../../packages/migration/node_modules/semver/internal/parse-options.js
|
|
149
|
+
var require_parse_options$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
150
150
|
const looseOption = Object.freeze({ loose: true });
|
|
151
151
|
const emptyOpts = Object.freeze({});
|
|
152
152
|
const parseOptions = (options) => {
|
|
@@ -157,8 +157,8 @@ var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
157
157
|
module.exports = parseOptions;
|
|
158
158
|
}));
|
|
159
159
|
//#endregion
|
|
160
|
-
//#region ../../node_modules/semver/internal/identifiers.js
|
|
161
|
-
var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
160
|
+
//#region ../../packages/migration/node_modules/semver/internal/identifiers.js
|
|
161
|
+
var require_identifiers$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
162
162
|
const numeric = /^[0-9]+$/;
|
|
163
163
|
const compareIdentifiers = (a, b) => {
|
|
164
164
|
if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
|
|
@@ -177,13 +177,13 @@ var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
177
177
|
};
|
|
178
178
|
}));
|
|
179
179
|
//#endregion
|
|
180
|
-
//#region ../../node_modules/semver/classes/semver.js
|
|
181
|
-
var require_semver$
|
|
182
|
-
const debug = require_debug();
|
|
183
|
-
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants$
|
|
184
|
-
const { safeRe: re, t } = require_re();
|
|
185
|
-
const parseOptions = require_parse_options();
|
|
186
|
-
const { compareIdentifiers } = require_identifiers();
|
|
180
|
+
//#region ../../packages/migration/node_modules/semver/classes/semver.js
|
|
181
|
+
var require_semver$5 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
182
|
+
const debug = require_debug$2();
|
|
183
|
+
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants$10();
|
|
184
|
+
const { safeRe: re, t } = require_re$2();
|
|
185
|
+
const parseOptions = require_parse_options$2();
|
|
186
|
+
const { compareIdentifiers } = require_identifiers$2();
|
|
187
187
|
module.exports = class SemVer {
|
|
188
188
|
constructor(version, options) {
|
|
189
189
|
options = parseOptions(options);
|
|
@@ -355,9 +355,9 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
355
355
|
};
|
|
356
356
|
}));
|
|
357
357
|
//#endregion
|
|
358
|
-
//#region ../../node_modules/semver/functions/parse.js
|
|
359
|
-
var require_parse$
|
|
360
|
-
const SemVer = require_semver$
|
|
358
|
+
//#region ../../packages/migration/node_modules/semver/functions/parse.js
|
|
359
|
+
var require_parse$6 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
360
|
+
const SemVer = require_semver$5();
|
|
361
361
|
const parse = (version, options, throwErrors = false) => {
|
|
362
362
|
if (version instanceof SemVer) return version;
|
|
363
363
|
try {
|
|
@@ -370,9 +370,9 @@ var require_parse$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
370
370
|
module.exports = parse;
|
|
371
371
|
}));
|
|
372
372
|
//#endregion
|
|
373
|
-
//#region ../../node_modules/semver/functions/valid.js
|
|
374
|
-
var require_valid$
|
|
375
|
-
const parse = require_parse$
|
|
373
|
+
//#region ../../packages/migration/node_modules/semver/functions/valid.js
|
|
374
|
+
var require_valid$5 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
375
|
+
const parse = require_parse$6();
|
|
376
376
|
const valid = (version, options) => {
|
|
377
377
|
const v = parse(version, options);
|
|
378
378
|
return v ? v.version : null;
|
|
@@ -380,9 +380,9 @@ var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
380
380
|
module.exports = valid;
|
|
381
381
|
}));
|
|
382
382
|
//#endregion
|
|
383
|
-
//#region ../../node_modules/semver/functions/clean.js
|
|
384
|
-
var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
385
|
-
const parse = require_parse$
|
|
383
|
+
//#region ../../packages/migration/node_modules/semver/functions/clean.js
|
|
384
|
+
var require_clean$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
385
|
+
const parse = require_parse$6();
|
|
386
386
|
const clean = (version, options) => {
|
|
387
387
|
const s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
388
388
|
return s ? s.version : null;
|
|
@@ -390,9 +390,9 @@ var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
390
390
|
module.exports = clean;
|
|
391
391
|
}));
|
|
392
392
|
//#endregion
|
|
393
|
-
//#region ../../node_modules/semver/functions/inc.js
|
|
394
|
-
var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
395
|
-
const SemVer = require_semver$
|
|
393
|
+
//#region ../../packages/migration/node_modules/semver/functions/inc.js
|
|
394
|
+
var require_inc$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
395
|
+
const SemVer = require_semver$5();
|
|
396
396
|
const inc = (version, release, options, identifier, identifierBase) => {
|
|
397
397
|
if (typeof options === "string") {
|
|
398
398
|
identifierBase = identifier;
|
|
@@ -408,9 +408,9 @@ var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
408
408
|
module.exports = inc;
|
|
409
409
|
}));
|
|
410
410
|
//#endregion
|
|
411
|
-
//#region ../../node_modules/semver/functions/diff.js
|
|
412
|
-
var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
413
|
-
const parse = require_parse$
|
|
411
|
+
//#region ../../packages/migration/node_modules/semver/functions/diff.js
|
|
412
|
+
var require_diff$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
413
|
+
const parse = require_parse$6();
|
|
414
414
|
const diff = (version1, version2) => {
|
|
415
415
|
const v1 = parse(version1, null, true);
|
|
416
416
|
const v2 = parse(version2, null, true);
|
|
@@ -436,30 +436,30 @@ var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
436
436
|
module.exports = diff;
|
|
437
437
|
}));
|
|
438
438
|
//#endregion
|
|
439
|
-
//#region ../../node_modules/semver/functions/major.js
|
|
440
|
-
var require_major = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
441
|
-
const SemVer = require_semver$
|
|
439
|
+
//#region ../../packages/migration/node_modules/semver/functions/major.js
|
|
440
|
+
var require_major$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
441
|
+
const SemVer = require_semver$5();
|
|
442
442
|
const major = (a, loose) => new SemVer(a, loose).major;
|
|
443
443
|
module.exports = major;
|
|
444
444
|
}));
|
|
445
445
|
//#endregion
|
|
446
|
-
//#region ../../node_modules/semver/functions/minor.js
|
|
447
|
-
var require_minor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
448
|
-
const SemVer = require_semver$
|
|
446
|
+
//#region ../../packages/migration/node_modules/semver/functions/minor.js
|
|
447
|
+
var require_minor$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
448
|
+
const SemVer = require_semver$5();
|
|
449
449
|
const minor = (a, loose) => new SemVer(a, loose).minor;
|
|
450
450
|
module.exports = minor;
|
|
451
451
|
}));
|
|
452
452
|
//#endregion
|
|
453
|
-
//#region ../../node_modules/semver/functions/patch.js
|
|
454
|
-
var require_patch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
455
|
-
const SemVer = require_semver$
|
|
453
|
+
//#region ../../packages/migration/node_modules/semver/functions/patch.js
|
|
454
|
+
var require_patch$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
455
|
+
const SemVer = require_semver$5();
|
|
456
456
|
const patch = (a, loose) => new SemVer(a, loose).patch;
|
|
457
457
|
module.exports = patch;
|
|
458
458
|
}));
|
|
459
459
|
//#endregion
|
|
460
|
-
//#region ../../node_modules/semver/functions/prerelease.js
|
|
461
|
-
var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
462
|
-
const parse = require_parse$
|
|
460
|
+
//#region ../../packages/migration/node_modules/semver/functions/prerelease.js
|
|
461
|
+
var require_prerelease$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
462
|
+
const parse = require_parse$6();
|
|
463
463
|
const prerelease = (version, options) => {
|
|
464
464
|
const parsed = parse(version, options);
|
|
465
465
|
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
@@ -467,30 +467,30 @@ var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
467
467
|
module.exports = prerelease;
|
|
468
468
|
}));
|
|
469
469
|
//#endregion
|
|
470
|
-
//#region ../../node_modules/semver/functions/compare.js
|
|
471
|
-
var require_compare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
472
|
-
const SemVer = require_semver$
|
|
470
|
+
//#region ../../packages/migration/node_modules/semver/functions/compare.js
|
|
471
|
+
var require_compare$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
472
|
+
const SemVer = require_semver$5();
|
|
473
473
|
const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
474
474
|
module.exports = compare;
|
|
475
475
|
}));
|
|
476
476
|
//#endregion
|
|
477
|
-
//#region ../../node_modules/semver/functions/rcompare.js
|
|
478
|
-
var require_rcompare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
479
|
-
const compare = require_compare();
|
|
477
|
+
//#region ../../packages/migration/node_modules/semver/functions/rcompare.js
|
|
478
|
+
var require_rcompare$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
479
|
+
const compare = require_compare$2();
|
|
480
480
|
const rcompare = (a, b, loose) => compare(b, a, loose);
|
|
481
481
|
module.exports = rcompare;
|
|
482
482
|
}));
|
|
483
483
|
//#endregion
|
|
484
|
-
//#region ../../node_modules/semver/functions/compare-loose.js
|
|
485
|
-
var require_compare_loose = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
486
|
-
const compare = require_compare();
|
|
484
|
+
//#region ../../packages/migration/node_modules/semver/functions/compare-loose.js
|
|
485
|
+
var require_compare_loose$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
486
|
+
const compare = require_compare$2();
|
|
487
487
|
const compareLoose = (a, b) => compare(a, b, true);
|
|
488
488
|
module.exports = compareLoose;
|
|
489
489
|
}));
|
|
490
490
|
//#endregion
|
|
491
|
-
//#region ../../node_modules/semver/functions/compare-build.js
|
|
492
|
-
var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
493
|
-
const SemVer = require_semver$
|
|
491
|
+
//#region ../../packages/migration/node_modules/semver/functions/compare-build.js
|
|
492
|
+
var require_compare_build$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
493
|
+
const SemVer = require_semver$5();
|
|
494
494
|
const compareBuild = (a, b, loose) => {
|
|
495
495
|
const versionA = new SemVer(a, loose);
|
|
496
496
|
const versionB = new SemVer(b, loose);
|
|
@@ -499,70 +499,70 @@ var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
499
499
|
module.exports = compareBuild;
|
|
500
500
|
}));
|
|
501
501
|
//#endregion
|
|
502
|
-
//#region ../../node_modules/semver/functions/sort.js
|
|
503
|
-
var require_sort$
|
|
504
|
-
const compareBuild = require_compare_build();
|
|
502
|
+
//#region ../../packages/migration/node_modules/semver/functions/sort.js
|
|
503
|
+
var require_sort$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
504
|
+
const compareBuild = require_compare_build$2();
|
|
505
505
|
const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
506
506
|
module.exports = sort;
|
|
507
507
|
}));
|
|
508
508
|
//#endregion
|
|
509
|
-
//#region ../../node_modules/semver/functions/rsort.js
|
|
510
|
-
var require_rsort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
511
|
-
const compareBuild = require_compare_build();
|
|
509
|
+
//#region ../../packages/migration/node_modules/semver/functions/rsort.js
|
|
510
|
+
var require_rsort$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
511
|
+
const compareBuild = require_compare_build$2();
|
|
512
512
|
const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
513
513
|
module.exports = rsort;
|
|
514
514
|
}));
|
|
515
515
|
//#endregion
|
|
516
|
-
//#region ../../node_modules/semver/functions/gt.js
|
|
517
|
-
var require_gt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
518
|
-
const compare = require_compare();
|
|
516
|
+
//#region ../../packages/migration/node_modules/semver/functions/gt.js
|
|
517
|
+
var require_gt$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
518
|
+
const compare = require_compare$2();
|
|
519
519
|
const gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
520
520
|
module.exports = gt;
|
|
521
521
|
}));
|
|
522
522
|
//#endregion
|
|
523
|
-
//#region ../../node_modules/semver/functions/lt.js
|
|
524
|
-
var require_lt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
525
|
-
const compare = require_compare();
|
|
523
|
+
//#region ../../packages/migration/node_modules/semver/functions/lt.js
|
|
524
|
+
var require_lt$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
525
|
+
const compare = require_compare$2();
|
|
526
526
|
const lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
527
527
|
module.exports = lt;
|
|
528
528
|
}));
|
|
529
529
|
//#endregion
|
|
530
|
-
//#region ../../node_modules/semver/functions/eq.js
|
|
531
|
-
var require_eq$
|
|
532
|
-
const compare = require_compare();
|
|
530
|
+
//#region ../../packages/migration/node_modules/semver/functions/eq.js
|
|
531
|
+
var require_eq$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
532
|
+
const compare = require_compare$2();
|
|
533
533
|
const eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
534
534
|
module.exports = eq;
|
|
535
535
|
}));
|
|
536
536
|
//#endregion
|
|
537
|
-
//#region ../../node_modules/semver/functions/neq.js
|
|
538
|
-
var require_neq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
539
|
-
const compare = require_compare();
|
|
537
|
+
//#region ../../packages/migration/node_modules/semver/functions/neq.js
|
|
538
|
+
var require_neq$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
539
|
+
const compare = require_compare$2();
|
|
540
540
|
const neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
541
541
|
module.exports = neq;
|
|
542
542
|
}));
|
|
543
543
|
//#endregion
|
|
544
|
-
//#region ../../node_modules/semver/functions/gte.js
|
|
545
|
-
var require_gte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
546
|
-
const compare = require_compare();
|
|
544
|
+
//#region ../../packages/migration/node_modules/semver/functions/gte.js
|
|
545
|
+
var require_gte$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
546
|
+
const compare = require_compare$2();
|
|
547
547
|
const gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
548
548
|
module.exports = gte;
|
|
549
549
|
}));
|
|
550
550
|
//#endregion
|
|
551
|
-
//#region ../../node_modules/semver/functions/lte.js
|
|
552
|
-
var require_lte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
553
|
-
const compare = require_compare();
|
|
551
|
+
//#region ../../packages/migration/node_modules/semver/functions/lte.js
|
|
552
|
+
var require_lte$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
553
|
+
const compare = require_compare$2();
|
|
554
554
|
const lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
555
555
|
module.exports = lte;
|
|
556
556
|
}));
|
|
557
557
|
//#endregion
|
|
558
|
-
//#region ../../node_modules/semver/functions/cmp.js
|
|
559
|
-
var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
560
|
-
const eq = require_eq$
|
|
561
|
-
const neq = require_neq();
|
|
562
|
-
const gt = require_gt();
|
|
563
|
-
const gte = require_gte();
|
|
564
|
-
const lt = require_lt();
|
|
565
|
-
const lte = require_lte();
|
|
558
|
+
//#region ../../packages/migration/node_modules/semver/functions/cmp.js
|
|
559
|
+
var require_cmp$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
560
|
+
const eq = require_eq$3();
|
|
561
|
+
const neq = require_neq$2();
|
|
562
|
+
const gt = require_gt$2();
|
|
563
|
+
const gte = require_gte$2();
|
|
564
|
+
const lt = require_lt$2();
|
|
565
|
+
const lte = require_lte$2();
|
|
566
566
|
const cmp = (a, op, b, loose) => {
|
|
567
567
|
switch (op) {
|
|
568
568
|
case "===":
|
|
@@ -587,11 +587,11 @@ var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
587
587
|
module.exports = cmp;
|
|
588
588
|
}));
|
|
589
589
|
//#endregion
|
|
590
|
-
//#region ../../node_modules/semver/functions/coerce.js
|
|
591
|
-
var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
592
|
-
const SemVer = require_semver$
|
|
593
|
-
const parse = require_parse$
|
|
594
|
-
const { safeRe: re, t } = require_re();
|
|
590
|
+
//#region ../../packages/migration/node_modules/semver/functions/coerce.js
|
|
591
|
+
var require_coerce$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
592
|
+
const SemVer = require_semver$5();
|
|
593
|
+
const parse = require_parse$6();
|
|
594
|
+
const { safeRe: re, t } = require_re$2();
|
|
595
595
|
const coerce = (version, options) => {
|
|
596
596
|
if (version instanceof SemVer) return version;
|
|
597
597
|
if (typeof version === "number") version = String(version);
|
|
@@ -615,8 +615,8 @@ var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
615
615
|
module.exports = coerce;
|
|
616
616
|
}));
|
|
617
617
|
//#endregion
|
|
618
|
-
//#region ../../node_modules/semver/internal/lrucache.js
|
|
619
|
-
var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
618
|
+
//#region ../../packages/migration/node_modules/semver/internal/lrucache.js
|
|
619
|
+
var require_lrucache$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
620
620
|
var LRUCache = class {
|
|
621
621
|
constructor() {
|
|
622
622
|
this.max = 1e3;
|
|
@@ -648,8 +648,8 @@ var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
648
648
|
module.exports = LRUCache;
|
|
649
649
|
}));
|
|
650
650
|
//#endregion
|
|
651
|
-
//#region ../../node_modules/semver/classes/range.js
|
|
652
|
-
var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
651
|
+
//#region ../../packages/migration/node_modules/semver/classes/range.js
|
|
652
|
+
var require_range$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
653
653
|
const SPACE_CHARACTERS = /\s+/g;
|
|
654
654
|
module.exports = class Range {
|
|
655
655
|
constructor(range, options) {
|
|
@@ -755,13 +755,13 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
755
755
|
return false;
|
|
756
756
|
}
|
|
757
757
|
};
|
|
758
|
-
const cache = new (require_lrucache())();
|
|
759
|
-
const parseOptions = require_parse_options();
|
|
760
|
-
const Comparator = require_comparator();
|
|
761
|
-
const debug = require_debug();
|
|
762
|
-
const SemVer = require_semver$
|
|
763
|
-
const { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re();
|
|
764
|
-
const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants$
|
|
758
|
+
const cache = new (require_lrucache$2())();
|
|
759
|
+
const parseOptions = require_parse_options$2();
|
|
760
|
+
const Comparator = require_comparator$2();
|
|
761
|
+
const debug = require_debug$2();
|
|
762
|
+
const SemVer = require_semver$5();
|
|
763
|
+
const { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re$2();
|
|
764
|
+
const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants$10();
|
|
765
765
|
const isNullSet = (c) => c.value === "<0.0.0-0";
|
|
766
766
|
const isAny = (c) => c.value === "";
|
|
767
767
|
const isSatisfiable = (comparators, options) => {
|
|
@@ -920,8 +920,8 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
920
920
|
};
|
|
921
921
|
}));
|
|
922
922
|
//#endregion
|
|
923
|
-
//#region ../../node_modules/semver/classes/comparator.js
|
|
924
|
-
var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
923
|
+
//#region ../../packages/migration/node_modules/semver/classes/comparator.js
|
|
924
|
+
var require_comparator$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
925
925
|
const ANY = Symbol("SemVer ANY");
|
|
926
926
|
module.exports = class Comparator {
|
|
927
927
|
static get ANY() {
|
|
@@ -982,17 +982,17 @@ var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
982
982
|
return false;
|
|
983
983
|
}
|
|
984
984
|
};
|
|
985
|
-
const parseOptions = require_parse_options();
|
|
986
|
-
const { safeRe: re, t } = require_re();
|
|
987
|
-
const cmp = require_cmp();
|
|
988
|
-
const debug = require_debug();
|
|
989
|
-
const SemVer = require_semver$
|
|
990
|
-
const Range = require_range();
|
|
985
|
+
const parseOptions = require_parse_options$2();
|
|
986
|
+
const { safeRe: re, t } = require_re$2();
|
|
987
|
+
const cmp = require_cmp$2();
|
|
988
|
+
const debug = require_debug$2();
|
|
989
|
+
const SemVer = require_semver$5();
|
|
990
|
+
const Range = require_range$2();
|
|
991
991
|
}));
|
|
992
992
|
//#endregion
|
|
993
|
-
//#region ../../node_modules/semver/functions/satisfies.js
|
|
994
|
-
var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
995
|
-
const Range = require_range();
|
|
993
|
+
//#region ../../packages/migration/node_modules/semver/functions/satisfies.js
|
|
994
|
+
var require_satisfies$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
995
|
+
const Range = require_range$2();
|
|
996
996
|
const satisfies = (version, range, options) => {
|
|
997
997
|
try {
|
|
998
998
|
range = new Range(range, options);
|
|
@@ -1004,17 +1004,17 @@ var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1004
1004
|
module.exports = satisfies;
|
|
1005
1005
|
}));
|
|
1006
1006
|
//#endregion
|
|
1007
|
-
//#region ../../node_modules/semver/ranges/to-comparators.js
|
|
1008
|
-
var require_to_comparators = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1009
|
-
const Range = require_range();
|
|
1007
|
+
//#region ../../packages/migration/node_modules/semver/ranges/to-comparators.js
|
|
1008
|
+
var require_to_comparators$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1009
|
+
const Range = require_range$2();
|
|
1010
1010
|
const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
1011
1011
|
module.exports = toComparators;
|
|
1012
1012
|
}));
|
|
1013
1013
|
//#endregion
|
|
1014
|
-
//#region ../../node_modules/semver/ranges/max-satisfying.js
|
|
1015
|
-
var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1016
|
-
const SemVer = require_semver$
|
|
1017
|
-
const Range = require_range();
|
|
1014
|
+
//#region ../../packages/migration/node_modules/semver/ranges/max-satisfying.js
|
|
1015
|
+
var require_max_satisfying$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1016
|
+
const SemVer = require_semver$5();
|
|
1017
|
+
const Range = require_range$2();
|
|
1018
1018
|
const maxSatisfying = (versions, range, options) => {
|
|
1019
1019
|
let max = null;
|
|
1020
1020
|
let maxSV = null;
|
|
@@ -1037,10 +1037,10 @@ var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
1037
1037
|
module.exports = maxSatisfying;
|
|
1038
1038
|
}));
|
|
1039
1039
|
//#endregion
|
|
1040
|
-
//#region ../../node_modules/semver/ranges/min-satisfying.js
|
|
1041
|
-
var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1042
|
-
const SemVer = require_semver$
|
|
1043
|
-
const Range = require_range();
|
|
1040
|
+
//#region ../../packages/migration/node_modules/semver/ranges/min-satisfying.js
|
|
1041
|
+
var require_min_satisfying$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1042
|
+
const SemVer = require_semver$5();
|
|
1043
|
+
const Range = require_range$2();
|
|
1044
1044
|
const minSatisfying = (versions, range, options) => {
|
|
1045
1045
|
let min = null;
|
|
1046
1046
|
let minSV = null;
|
|
@@ -1063,11 +1063,11 @@ var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
1063
1063
|
module.exports = minSatisfying;
|
|
1064
1064
|
}));
|
|
1065
1065
|
//#endregion
|
|
1066
|
-
//#region ../../node_modules/semver/ranges/min-version.js
|
|
1067
|
-
var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1068
|
-
const SemVer = require_semver$
|
|
1069
|
-
const Range = require_range();
|
|
1070
|
-
const gt = require_gt();
|
|
1066
|
+
//#region ../../packages/migration/node_modules/semver/ranges/min-version.js
|
|
1067
|
+
var require_min_version$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1068
|
+
const SemVer = require_semver$5();
|
|
1069
|
+
const Range = require_range$2();
|
|
1070
|
+
const gt = require_gt$2();
|
|
1071
1071
|
const minVersion = (range, loose) => {
|
|
1072
1072
|
range = new Range(range, loose);
|
|
1073
1073
|
let minver = new SemVer("0.0.0");
|
|
@@ -1102,9 +1102,9 @@ var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1102
1102
|
module.exports = minVersion;
|
|
1103
1103
|
}));
|
|
1104
1104
|
//#endregion
|
|
1105
|
-
//#region ../../node_modules/semver/ranges/valid.js
|
|
1106
|
-
var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1107
|
-
const Range = require_range();
|
|
1105
|
+
//#region ../../packages/migration/node_modules/semver/ranges/valid.js
|
|
1106
|
+
var require_valid$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1107
|
+
const Range = require_range$2();
|
|
1108
1108
|
const validRange = (range, options) => {
|
|
1109
1109
|
try {
|
|
1110
1110
|
return new Range(range, options).range || "*";
|
|
@@ -1115,17 +1115,17 @@ var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1115
1115
|
module.exports = validRange;
|
|
1116
1116
|
}));
|
|
1117
1117
|
//#endregion
|
|
1118
|
-
//#region ../../node_modules/semver/ranges/outside.js
|
|
1119
|
-
var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1120
|
-
const SemVer = require_semver$
|
|
1121
|
-
const Comparator = require_comparator();
|
|
1118
|
+
//#region ../../packages/migration/node_modules/semver/ranges/outside.js
|
|
1119
|
+
var require_outside$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1120
|
+
const SemVer = require_semver$5();
|
|
1121
|
+
const Comparator = require_comparator$2();
|
|
1122
1122
|
const { ANY } = Comparator;
|
|
1123
|
-
const Range = require_range();
|
|
1124
|
-
const satisfies = require_satisfies();
|
|
1125
|
-
const gt = require_gt();
|
|
1126
|
-
const lt = require_lt();
|
|
1127
|
-
const lte = require_lte();
|
|
1128
|
-
const gte = require_gte();
|
|
1123
|
+
const Range = require_range$2();
|
|
1124
|
+
const satisfies = require_satisfies$2();
|
|
1125
|
+
const gt = require_gt$2();
|
|
1126
|
+
const lt = require_lt$2();
|
|
1127
|
+
const lte = require_lte$2();
|
|
1128
|
+
const gte = require_gte$2();
|
|
1129
1129
|
const outside = (version, range, hilo, options) => {
|
|
1130
1130
|
version = new SemVer(version, options);
|
|
1131
1131
|
range = new Range(range, options);
|
|
@@ -1168,23 +1168,23 @@ var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1168
1168
|
module.exports = outside;
|
|
1169
1169
|
}));
|
|
1170
1170
|
//#endregion
|
|
1171
|
-
//#region ../../node_modules/semver/ranges/gtr.js
|
|
1172
|
-
var require_gtr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1173
|
-
const outside = require_outside();
|
|
1171
|
+
//#region ../../packages/migration/node_modules/semver/ranges/gtr.js
|
|
1172
|
+
var require_gtr$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1173
|
+
const outside = require_outside$2();
|
|
1174
1174
|
const gtr = (version, range, options) => outside(version, range, ">", options);
|
|
1175
1175
|
module.exports = gtr;
|
|
1176
1176
|
}));
|
|
1177
1177
|
//#endregion
|
|
1178
|
-
//#region ../../node_modules/semver/ranges/ltr.js
|
|
1179
|
-
var require_ltr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1180
|
-
const outside = require_outside();
|
|
1178
|
+
//#region ../../packages/migration/node_modules/semver/ranges/ltr.js
|
|
1179
|
+
var require_ltr$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1180
|
+
const outside = require_outside$2();
|
|
1181
1181
|
const ltr = (version, range, options) => outside(version, range, "<", options);
|
|
1182
1182
|
module.exports = ltr;
|
|
1183
1183
|
}));
|
|
1184
1184
|
//#endregion
|
|
1185
|
-
//#region ../../node_modules/semver/ranges/intersects.js
|
|
1186
|
-
var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1187
|
-
const Range = require_range();
|
|
1185
|
+
//#region ../../packages/migration/node_modules/semver/ranges/intersects.js
|
|
1186
|
+
var require_intersects$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1187
|
+
const Range = require_range$2();
|
|
1188
1188
|
const intersects = (r1, r2, options) => {
|
|
1189
1189
|
r1 = new Range(r1, options);
|
|
1190
1190
|
r2 = new Range(r2, options);
|
|
@@ -1193,10 +1193,10 @@ var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1193
1193
|
module.exports = intersects;
|
|
1194
1194
|
}));
|
|
1195
1195
|
//#endregion
|
|
1196
|
-
//#region ../../node_modules/semver/ranges/simplify.js
|
|
1197
|
-
var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1198
|
-
const satisfies = require_satisfies();
|
|
1199
|
-
const compare = require_compare();
|
|
1196
|
+
//#region ../../packages/migration/node_modules/semver/ranges/simplify.js
|
|
1197
|
+
var require_simplify$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1198
|
+
const satisfies = require_satisfies$2();
|
|
1199
|
+
const compare = require_compare$2();
|
|
1200
1200
|
module.exports = (versions, range, options) => {
|
|
1201
1201
|
const set = [];
|
|
1202
1202
|
let first = null;
|
|
@@ -1223,13 +1223,13 @@ var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1223
1223
|
};
|
|
1224
1224
|
}));
|
|
1225
1225
|
//#endregion
|
|
1226
|
-
//#region ../../node_modules/semver/ranges/subset.js
|
|
1227
|
-
var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1228
|
-
const Range = require_range();
|
|
1229
|
-
const Comparator = require_comparator();
|
|
1226
|
+
//#region ../../packages/migration/node_modules/semver/ranges/subset.js
|
|
1227
|
+
var require_subset$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1228
|
+
const Range = require_range$2();
|
|
1229
|
+
const Comparator = require_comparator$2();
|
|
1230
1230
|
const { ANY } = Comparator;
|
|
1231
|
-
const satisfies = require_satisfies();
|
|
1232
|
-
const compare = require_compare();
|
|
1231
|
+
const satisfies = require_satisfies$2();
|
|
1232
|
+
const compare = require_compare$2();
|
|
1233
1233
|
const subset = (sub, dom, options = {}) => {
|
|
1234
1234
|
if (sub === dom) return true;
|
|
1235
1235
|
sub = new Range(sub, options);
|
|
@@ -1318,50 +1318,50 @@ var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1318
1318
|
module.exports = subset;
|
|
1319
1319
|
}));
|
|
1320
1320
|
//#endregion
|
|
1321
|
-
//#region ../../
|
|
1322
|
-
var
|
|
1323
|
-
const internalRe = require_re();
|
|
1324
|
-
const constants = require_constants$
|
|
1325
|
-
const SemVer = require_semver$
|
|
1326
|
-
const identifiers = require_identifiers();
|
|
1321
|
+
//#region ../../packages/migration/src/utils/object-keys.ts
|
|
1322
|
+
var import_semver$1 = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1323
|
+
const internalRe = require_re$2();
|
|
1324
|
+
const constants = require_constants$10();
|
|
1325
|
+
const SemVer = require_semver$5();
|
|
1326
|
+
const identifiers = require_identifiers$2();
|
|
1327
1327
|
module.exports = {
|
|
1328
|
-
parse: require_parse$
|
|
1329
|
-
valid: require_valid$
|
|
1330
|
-
clean: require_clean(),
|
|
1331
|
-
inc: require_inc(),
|
|
1332
|
-
diff: require_diff(),
|
|
1333
|
-
major: require_major(),
|
|
1334
|
-
minor: require_minor(),
|
|
1335
|
-
patch: require_patch(),
|
|
1336
|
-
prerelease: require_prerelease(),
|
|
1337
|
-
compare: require_compare(),
|
|
1338
|
-
rcompare: require_rcompare(),
|
|
1339
|
-
compareLoose: require_compare_loose(),
|
|
1340
|
-
compareBuild: require_compare_build(),
|
|
1341
|
-
sort: require_sort$
|
|
1342
|
-
rsort: require_rsort(),
|
|
1343
|
-
gt: require_gt(),
|
|
1344
|
-
lt: require_lt(),
|
|
1345
|
-
eq: require_eq$
|
|
1346
|
-
neq: require_neq(),
|
|
1347
|
-
gte: require_gte(),
|
|
1348
|
-
lte: require_lte(),
|
|
1349
|
-
cmp: require_cmp(),
|
|
1350
|
-
coerce: require_coerce(),
|
|
1351
|
-
Comparator: require_comparator(),
|
|
1352
|
-
Range: require_range(),
|
|
1353
|
-
satisfies: require_satisfies(),
|
|
1354
|
-
toComparators: require_to_comparators(),
|
|
1355
|
-
maxSatisfying: require_max_satisfying(),
|
|
1356
|
-
minSatisfying: require_min_satisfying(),
|
|
1357
|
-
minVersion: require_min_version(),
|
|
1358
|
-
validRange: require_valid(),
|
|
1359
|
-
outside: require_outside(),
|
|
1360
|
-
gtr: require_gtr(),
|
|
1361
|
-
ltr: require_ltr(),
|
|
1362
|
-
intersects: require_intersects(),
|
|
1363
|
-
simplifyRange: require_simplify(),
|
|
1364
|
-
subset: require_subset(),
|
|
1328
|
+
parse: require_parse$6(),
|
|
1329
|
+
valid: require_valid$5(),
|
|
1330
|
+
clean: require_clean$2(),
|
|
1331
|
+
inc: require_inc$2(),
|
|
1332
|
+
diff: require_diff$2(),
|
|
1333
|
+
major: require_major$2(),
|
|
1334
|
+
minor: require_minor$2(),
|
|
1335
|
+
patch: require_patch$2(),
|
|
1336
|
+
prerelease: require_prerelease$2(),
|
|
1337
|
+
compare: require_compare$2(),
|
|
1338
|
+
rcompare: require_rcompare$2(),
|
|
1339
|
+
compareLoose: require_compare_loose$2(),
|
|
1340
|
+
compareBuild: require_compare_build$2(),
|
|
1341
|
+
sort: require_sort$3(),
|
|
1342
|
+
rsort: require_rsort$2(),
|
|
1343
|
+
gt: require_gt$2(),
|
|
1344
|
+
lt: require_lt$2(),
|
|
1345
|
+
eq: require_eq$3(),
|
|
1346
|
+
neq: require_neq$2(),
|
|
1347
|
+
gte: require_gte$2(),
|
|
1348
|
+
lte: require_lte$2(),
|
|
1349
|
+
cmp: require_cmp$2(),
|
|
1350
|
+
coerce: require_coerce$2(),
|
|
1351
|
+
Comparator: require_comparator$2(),
|
|
1352
|
+
Range: require_range$2(),
|
|
1353
|
+
satisfies: require_satisfies$2(),
|
|
1354
|
+
toComparators: require_to_comparators$2(),
|
|
1355
|
+
maxSatisfying: require_max_satisfying$2(),
|
|
1356
|
+
minSatisfying: require_min_satisfying$2(),
|
|
1357
|
+
minVersion: require_min_version$2(),
|
|
1358
|
+
validRange: require_valid$4(),
|
|
1359
|
+
outside: require_outside$2(),
|
|
1360
|
+
gtr: require_gtr$2(),
|
|
1361
|
+
ltr: require_ltr$2(),
|
|
1362
|
+
intersects: require_intersects$2(),
|
|
1363
|
+
simplifyRange: require_simplify$2(),
|
|
1364
|
+
subset: require_subset$2(),
|
|
1365
1365
|
SemVer,
|
|
1366
1366
|
re: internalRe.re,
|
|
1367
1367
|
src: internalRe.src,
|
|
@@ -1371,10 +1371,7 @@ var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1371
1371
|
compareIdentifiers: identifiers.compareIdentifiers,
|
|
1372
1372
|
rcompareIdentifiers: identifiers.rcompareIdentifiers
|
|
1373
1373
|
};
|
|
1374
|
-
}));
|
|
1375
|
-
//#endregion
|
|
1376
|
-
//#region ../../packages/migration/src/utils/object-keys.ts
|
|
1377
|
-
var import_semver = /* @__PURE__ */ __toESM(require_semver(), 1);
|
|
1374
|
+
})))(), 1);
|
|
1378
1375
|
const objectKeys = Object.keys;
|
|
1379
1376
|
//#endregion
|
|
1380
1377
|
//#region ../../node_modules/klona/dist/index.mjs
|
|
@@ -1583,19 +1580,6 @@ function custom(check2, message) {
|
|
|
1583
1580
|
}
|
|
1584
1581
|
};
|
|
1585
1582
|
}
|
|
1586
|
-
function lazy(getter) {
|
|
1587
|
-
return {
|
|
1588
|
-
kind: "schema",
|
|
1589
|
-
type: "lazy",
|
|
1590
|
-
reference: lazy,
|
|
1591
|
-
expects: "unknown",
|
|
1592
|
-
async: false,
|
|
1593
|
-
getter,
|
|
1594
|
-
_run(dataset, config2) {
|
|
1595
|
-
return this.getter(dataset.value)._run(dataset, config2);
|
|
1596
|
-
}
|
|
1597
|
-
};
|
|
1598
|
-
}
|
|
1599
1583
|
function literal(literal_, message) {
|
|
1600
1584
|
return {
|
|
1601
1585
|
kind: "schema",
|
|
@@ -1939,7 +1923,7 @@ var Migrator = class {
|
|
|
1939
1923
|
}
|
|
1940
1924
|
getVersions() {
|
|
1941
1925
|
const keys = objectKeys(this.migrations);
|
|
1942
|
-
return import_semver.sort(keys);
|
|
1926
|
+
return import_semver$1.sort(keys);
|
|
1943
1927
|
}
|
|
1944
1928
|
async migrate(_state, options) {
|
|
1945
1929
|
const state = _state ?? this.defaultValue;
|
|
@@ -1971,11 +1955,11 @@ var Migrator = class {
|
|
|
1971
1955
|
return finalState;
|
|
1972
1956
|
}
|
|
1973
1957
|
tryCoerce(version) {
|
|
1974
|
-
return this.coerce ? (0, import_semver.coerce)(version)?.version ?? version : version;
|
|
1958
|
+
return this.coerce ? (0, import_semver$1.coerce)(version)?.version ?? version : version;
|
|
1975
1959
|
}
|
|
1976
1960
|
needMigration(version) {
|
|
1977
1961
|
const newVersion = this.tryCoerce(version);
|
|
1978
|
-
return import_semver.lt(newVersion, this.current);
|
|
1962
|
+
return import_semver$1.lt(newVersion, this.current);
|
|
1979
1963
|
}
|
|
1980
1964
|
};
|
|
1981
1965
|
//#endregion
|
|
@@ -1992,12 +1976,74 @@ const createMigrator = () => {
|
|
|
1992
1976
|
};
|
|
1993
1977
|
//#endregion
|
|
1994
1978
|
//#region ../../packages/shared/src/config/migrators.ts
|
|
1979
|
+
const DEFAULT_PLUGINS = [
|
|
1980
|
+
{
|
|
1981
|
+
name: "@pipelab/plugin-construct",
|
|
1982
|
+
enabled: true,
|
|
1983
|
+
description: "Construct 3 export & packaging"
|
|
1984
|
+
},
|
|
1985
|
+
{
|
|
1986
|
+
name: "@pipelab/plugin-filesystem",
|
|
1987
|
+
enabled: true,
|
|
1988
|
+
description: "Filesystem utilities"
|
|
1989
|
+
},
|
|
1990
|
+
{
|
|
1991
|
+
name: "@pipelab/plugin-system",
|
|
1992
|
+
enabled: true,
|
|
1993
|
+
description: "System & shell commands"
|
|
1994
|
+
},
|
|
1995
|
+
{
|
|
1996
|
+
name: "@pipelab/plugin-steam",
|
|
1997
|
+
enabled: true,
|
|
1998
|
+
description: "Steam publishing"
|
|
1999
|
+
},
|
|
2000
|
+
{
|
|
2001
|
+
name: "@pipelab/plugin-itch",
|
|
2002
|
+
enabled: true,
|
|
2003
|
+
description: "Itch.io publishing"
|
|
2004
|
+
},
|
|
2005
|
+
{
|
|
2006
|
+
name: "@pipelab/plugin-electron",
|
|
2007
|
+
enabled: true,
|
|
2008
|
+
description: "Electron packaging"
|
|
2009
|
+
},
|
|
2010
|
+
{
|
|
2011
|
+
name: "@pipelab/plugin-discord",
|
|
2012
|
+
enabled: true,
|
|
2013
|
+
description: "Discord Rich Presence"
|
|
2014
|
+
},
|
|
2015
|
+
{
|
|
2016
|
+
name: "@pipelab/plugin-poki",
|
|
2017
|
+
enabled: true,
|
|
2018
|
+
description: "Poki publishing"
|
|
2019
|
+
},
|
|
2020
|
+
{
|
|
2021
|
+
name: "@pipelab/plugin-nvpatch",
|
|
2022
|
+
enabled: true,
|
|
2023
|
+
description: "NW.js patching"
|
|
2024
|
+
},
|
|
2025
|
+
{
|
|
2026
|
+
name: "@pipelab/plugin-tauri",
|
|
2027
|
+
enabled: true,
|
|
2028
|
+
description: "Tauri packaging"
|
|
2029
|
+
},
|
|
2030
|
+
{
|
|
2031
|
+
name: "@pipelab/plugin-minify",
|
|
2032
|
+
enabled: true,
|
|
2033
|
+
description: "Asset minification"
|
|
2034
|
+
},
|
|
2035
|
+
{
|
|
2036
|
+
name: "@pipelab/plugin-netlify",
|
|
2037
|
+
enabled: true,
|
|
2038
|
+
description: "Netlify deployment"
|
|
2039
|
+
}
|
|
2040
|
+
];
|
|
1995
2041
|
const createMigration = (config) => createMigration$1(config);
|
|
1996
2042
|
const settingsMigratorInternal = createMigrator();
|
|
1997
2043
|
const defaultAppSettings = settingsMigratorInternal.createDefault({
|
|
1998
2044
|
locale: "en-US",
|
|
1999
2045
|
theme: "light",
|
|
2000
|
-
version: "
|
|
2046
|
+
version: "8.0.0",
|
|
2001
2047
|
autosave: true,
|
|
2002
2048
|
agents: [],
|
|
2003
2049
|
tours: {
|
|
@@ -2014,7 +2060,9 @@ const defaultAppSettings = settingsMigratorInternal.createDefault({
|
|
|
2014
2060
|
enabled: false,
|
|
2015
2061
|
maxEntries: 50,
|
|
2016
2062
|
maxAge: 30
|
|
2017
|
-
} }
|
|
2063
|
+
} },
|
|
2064
|
+
plugins: DEFAULT_PLUGINS,
|
|
2065
|
+
isInternalMigrationBannerClosed: false
|
|
2018
2066
|
});
|
|
2019
2067
|
settingsMigratorInternal.createMigrations({
|
|
2020
2068
|
defaultValue: defaultAppSettings,
|
|
@@ -2065,19 +2113,22 @@ settingsMigratorInternal.createMigrations({
|
|
|
2065
2113
|
createMigration({
|
|
2066
2114
|
version: "6.0.0",
|
|
2067
2115
|
up: (state) => {
|
|
2116
|
+
const { cacheFolder: _, clearTemporaryFoldersOnPipelineEnd: __, ...rest } = state;
|
|
2068
2117
|
return {
|
|
2069
|
-
...
|
|
2118
|
+
...rest,
|
|
2070
2119
|
agents: [],
|
|
2071
2120
|
buildHistory: { retentionPolicy: {
|
|
2072
2121
|
enabled: false,
|
|
2073
2122
|
maxEntries: 50,
|
|
2074
2123
|
maxAge: 30
|
|
2075
|
-
} }
|
|
2124
|
+
} },
|
|
2125
|
+
plugins: DEFAULT_PLUGINS,
|
|
2126
|
+
isInternalMigrationBannerClosed: false
|
|
2076
2127
|
};
|
|
2077
2128
|
}
|
|
2078
2129
|
}),
|
|
2079
2130
|
createMigration({
|
|
2080
|
-
version: "
|
|
2131
|
+
version: "8.0.0",
|
|
2081
2132
|
up: finalVersion
|
|
2082
2133
|
})
|
|
2083
2134
|
]
|
|
@@ -2128,8 +2179,7 @@ const savedFileDefaultValue = savedFileMigratorInternal.createDefault({
|
|
|
2128
2179
|
description: "",
|
|
2129
2180
|
name: "",
|
|
2130
2181
|
variables: [],
|
|
2131
|
-
|
|
2132
|
-
version: "4.0.0"
|
|
2182
|
+
version: "5.0.0"
|
|
2133
2183
|
});
|
|
2134
2184
|
savedFileMigratorInternal.createMigrations({
|
|
2135
2185
|
defaultValue: savedFileDefaultValue,
|
|
@@ -2192,10 +2242,63 @@ savedFileMigratorInternal.createMigrations({
|
|
|
2192
2242
|
}),
|
|
2193
2243
|
createMigration({
|
|
2194
2244
|
version: "4.0.0",
|
|
2245
|
+
up: (_state) => {
|
|
2246
|
+
const state = _state;
|
|
2247
|
+
if (state.type === "simple") return {
|
|
2248
|
+
name: state.name,
|
|
2249
|
+
description: state.description,
|
|
2250
|
+
canvas: {
|
|
2251
|
+
blocks: [],
|
|
2252
|
+
triggers: []
|
|
2253
|
+
},
|
|
2254
|
+
variables: []
|
|
2255
|
+
};
|
|
2256
|
+
const migrateBlock = (block, pluginsMap) => {
|
|
2257
|
+
if (!block) return;
|
|
2258
|
+
if (block.origin?.pluginId) {
|
|
2259
|
+
block.origin.pluginId = getStrictPluginId(block.origin.pluginId);
|
|
2260
|
+
block.origin.version = pluginsMap[block.origin.pluginId] ?? "latest";
|
|
2261
|
+
}
|
|
2262
|
+
};
|
|
2263
|
+
const normalizedPlugins = {};
|
|
2264
|
+
if (state.plugins) for (const [key, val] of Object.entries(state.plugins)) normalizedPlugins[getStrictPluginId(key)] = val;
|
|
2265
|
+
if (state.canvas) {
|
|
2266
|
+
for (const block of state.canvas.blocks ?? []) migrateBlock(block, normalizedPlugins);
|
|
2267
|
+
for (const trigger of state.canvas.triggers ?? []) migrateBlock(trigger, normalizedPlugins);
|
|
2268
|
+
}
|
|
2269
|
+
const { plugins: _dropped, type: _type, ...rest } = state;
|
|
2270
|
+
return rest;
|
|
2271
|
+
}
|
|
2272
|
+
}),
|
|
2273
|
+
createMigration({
|
|
2274
|
+
version: "5.0.0",
|
|
2195
2275
|
up: finalVersion
|
|
2196
2276
|
})
|
|
2197
2277
|
]
|
|
2198
2278
|
});
|
|
2279
|
+
const LEGACY_ID_MAP = {
|
|
2280
|
+
construct: "@pipelab/plugin-construct",
|
|
2281
|
+
filesystem: "@pipelab/plugin-filesystem",
|
|
2282
|
+
system: "@pipelab/plugin-system",
|
|
2283
|
+
steam: "@pipelab/plugin-steam",
|
|
2284
|
+
itch: "@pipelab/plugin-itch",
|
|
2285
|
+
electron: "@pipelab/plugin-electron",
|
|
2286
|
+
discord: "@pipelab/plugin-discord",
|
|
2287
|
+
dicord: "@pipelab/plugin-discord",
|
|
2288
|
+
"@pipelab/plugin-dicord": "@pipelab/plugin-discord",
|
|
2289
|
+
poki: "@pipelab/plugin-poki",
|
|
2290
|
+
nvpatch: "@pipelab/plugin-nvpatch",
|
|
2291
|
+
tauri: "@pipelab/plugin-tauri",
|
|
2292
|
+
minify: "@pipelab/plugin-minify",
|
|
2293
|
+
netlify: "@pipelab/plugin-netlify"
|
|
2294
|
+
};
|
|
2295
|
+
const getStrictPluginId = (pluginId) => {
|
|
2296
|
+
if (!pluginId) return pluginId;
|
|
2297
|
+
if (LEGACY_ID_MAP[pluginId]) return LEGACY_ID_MAP[pluginId];
|
|
2298
|
+
if (pluginId.startsWith("@") || pluginId.includes("/") || pluginId.startsWith("pipelab-plugin-")) return pluginId;
|
|
2299
|
+
const prefixed = `@pipelab/plugin-${pluginId}`;
|
|
2300
|
+
return LEGACY_ID_MAP[prefixed] || prefixed;
|
|
2301
|
+
};
|
|
2199
2302
|
object({
|
|
2200
2303
|
cacheFolder: string(),
|
|
2201
2304
|
theme: union([literal("light"), literal("dark")]),
|
|
@@ -2308,6 +2411,45 @@ object({
|
|
|
2308
2411
|
maxAge: number()
|
|
2309
2412
|
}) })
|
|
2310
2413
|
});
|
|
2414
|
+
object({
|
|
2415
|
+
theme: union([literal("light"), literal("dark")]),
|
|
2416
|
+
version: literal("8.0.0"),
|
|
2417
|
+
locale: union([
|
|
2418
|
+
literal("en-US"),
|
|
2419
|
+
literal("fr-FR"),
|
|
2420
|
+
literal("pt-BR"),
|
|
2421
|
+
literal("zh-CN"),
|
|
2422
|
+
literal("es-ES"),
|
|
2423
|
+
literal("de-DE")
|
|
2424
|
+
]),
|
|
2425
|
+
tours: object({
|
|
2426
|
+
dashboard: object({
|
|
2427
|
+
step: number(),
|
|
2428
|
+
completed: boolean()
|
|
2429
|
+
}),
|
|
2430
|
+
editor: object({
|
|
2431
|
+
step: number(),
|
|
2432
|
+
completed: boolean()
|
|
2433
|
+
})
|
|
2434
|
+
}),
|
|
2435
|
+
autosave: boolean(),
|
|
2436
|
+
agents: array(object({
|
|
2437
|
+
id: string(),
|
|
2438
|
+
name: string(),
|
|
2439
|
+
url: string()
|
|
2440
|
+
})),
|
|
2441
|
+
buildHistory: object({ retentionPolicy: object({
|
|
2442
|
+
enabled: boolean(),
|
|
2443
|
+
maxEntries: number(),
|
|
2444
|
+
maxAge: number()
|
|
2445
|
+
}) }),
|
|
2446
|
+
plugins: array(object({
|
|
2447
|
+
name: string(),
|
|
2448
|
+
enabled: boolean(),
|
|
2449
|
+
description: string()
|
|
2450
|
+
})),
|
|
2451
|
+
isInternalMigrationBannerClosed: optional(boolean(), false)
|
|
2452
|
+
});
|
|
2311
2453
|
//#endregion
|
|
2312
2454
|
//#region ../../node_modules/tslog/dist/esm/prettyLogStyles.js
|
|
2313
2455
|
const prettyLogStyles = {
|
|
@@ -2827,7 +2969,8 @@ const useLogger = () => {
|
|
|
2827
2969
|
//#region ../../packages/shared/src/model.ts
|
|
2828
2970
|
const OriginValidator = object({
|
|
2829
2971
|
pluginId: string(),
|
|
2830
|
-
nodeId: string()
|
|
2972
|
+
nodeId: string(),
|
|
2973
|
+
version: pipe(optional(string()), description("Pinned version of the plugin for this block. Falls back to \"latest\" when absent."))
|
|
2831
2974
|
});
|
|
2832
2975
|
const BlockActionValidatorV1 = object({
|
|
2833
2976
|
type: literal("action"),
|
|
@@ -2848,21 +2991,6 @@ const BlockActionValidatorV3 = object({
|
|
|
2848
2991
|
})),
|
|
2849
2992
|
origin: OriginValidator
|
|
2850
2993
|
});
|
|
2851
|
-
object({
|
|
2852
|
-
type: literal("condition"),
|
|
2853
|
-
uid: string(),
|
|
2854
|
-
origin: OriginValidator,
|
|
2855
|
-
params: record(string(), any()),
|
|
2856
|
-
branchTrue: lazy(() => array(BlockValidator)),
|
|
2857
|
-
branchFalse: lazy(() => array(BlockValidator))
|
|
2858
|
-
});
|
|
2859
|
-
object({
|
|
2860
|
-
type: literal("loop"),
|
|
2861
|
-
uid: string(),
|
|
2862
|
-
origin: OriginValidator,
|
|
2863
|
-
params: record(string(), any()),
|
|
2864
|
-
children: lazy(() => array(BlockValidator))
|
|
2865
|
-
});
|
|
2866
2994
|
const BlockEventValidator = object({
|
|
2867
2995
|
type: literal("event"),
|
|
2868
2996
|
uid: string(),
|
|
@@ -2878,7 +3006,6 @@ object({
|
|
|
2878
3006
|
const BlockValidatorV1 = variant("type", [BlockActionValidatorV1, BlockEventValidator]);
|
|
2879
3007
|
const BlockValidatorV2 = variant("type", [BlockActionValidatorV1]);
|
|
2880
3008
|
const BlockValidatorV3 = variant("type", [BlockActionValidatorV3]);
|
|
2881
|
-
const BlockValidator = BlockValidatorV3;
|
|
2882
3009
|
const CanvasValidatorV1 = object({ blocks: array(BlockValidatorV1) });
|
|
2883
3010
|
const CanvasValidatorV2 = object({
|
|
2884
3011
|
blocks: array(BlockValidatorV2),
|
|
@@ -2910,18 +3037,59 @@ object({
|
|
|
2910
3037
|
canvas: CanvasValidatorV3,
|
|
2911
3038
|
variables: array(VariableValidatorV1)
|
|
2912
3039
|
});
|
|
2913
|
-
|
|
3040
|
+
const SavedFileDefaultValidatorV4 = object({
|
|
2914
3041
|
version: literal("4.0.0"),
|
|
2915
3042
|
type: literal("default"),
|
|
2916
3043
|
name: string(),
|
|
2917
3044
|
description: string(),
|
|
3045
|
+
plugins: optional(record(string(), string())),
|
|
2918
3046
|
canvas: CanvasValidatorV3,
|
|
2919
3047
|
variables: array(VariableValidatorV1)
|
|
2920
|
-
})
|
|
3048
|
+
});
|
|
3049
|
+
const SavedFileSimpleValidatorV4 = object({
|
|
2921
3050
|
version: literal("4.0.0"),
|
|
2922
3051
|
type: literal("simple"),
|
|
2923
3052
|
name: string(),
|
|
2924
3053
|
description: string(),
|
|
3054
|
+
plugins: optional(record(string(), string())),
|
|
3055
|
+
source: object({
|
|
3056
|
+
type: union([
|
|
3057
|
+
literal("c3-html"),
|
|
3058
|
+
literal("c3-nwjs"),
|
|
3059
|
+
literal("godot"),
|
|
3060
|
+
literal("html")
|
|
3061
|
+
]),
|
|
3062
|
+
path: string()
|
|
3063
|
+
}),
|
|
3064
|
+
packaging: object({ enabled: boolean() }),
|
|
3065
|
+
publishing: object({
|
|
3066
|
+
steam: object({
|
|
3067
|
+
enabled: boolean(),
|
|
3068
|
+
appId: optional(string())
|
|
3069
|
+
}),
|
|
3070
|
+
itch: object({
|
|
3071
|
+
enabled: boolean(),
|
|
3072
|
+
project: optional(string())
|
|
3073
|
+
}),
|
|
3074
|
+
poki: object({
|
|
3075
|
+
enabled: boolean(),
|
|
3076
|
+
gameId: optional(string())
|
|
3077
|
+
})
|
|
3078
|
+
})
|
|
3079
|
+
});
|
|
3080
|
+
object({
|
|
3081
|
+
version: literal("5.0.0"),
|
|
3082
|
+
name: string(),
|
|
3083
|
+
description: string(),
|
|
3084
|
+
canvas: CanvasValidatorV3,
|
|
3085
|
+
variables: array(VariableValidatorV1)
|
|
3086
|
+
});
|
|
3087
|
+
object({
|
|
3088
|
+
version: literal("5.0.0"),
|
|
3089
|
+
type: literal("simple"),
|
|
3090
|
+
name: string(),
|
|
3091
|
+
description: string(),
|
|
3092
|
+
plugins: record(string(), string()),
|
|
2925
3093
|
source: object({
|
|
2926
3094
|
type: union([
|
|
2927
3095
|
literal("c3-html"),
|
|
@@ -2946,7 +3114,8 @@ union([object({
|
|
|
2946
3114
|
gameId: optional(string())
|
|
2947
3115
|
})
|
|
2948
3116
|
})
|
|
2949
|
-
})
|
|
3117
|
+
});
|
|
3118
|
+
union([SavedFileDefaultValidatorV4, SavedFileSimpleValidatorV4]);
|
|
2950
3119
|
//#endregion
|
|
2951
3120
|
//#region ../../node_modules/vue/node_modules/@vue/shared/dist/shared.cjs.prod.js
|
|
2952
3121
|
/**
|
|
@@ -45195,7 +45364,7 @@ var init_esm_shims = __esmMin((() => {
|
|
|
45195
45364
|
//#region ../../packages/core-node/src/context.ts
|
|
45196
45365
|
init_esm_shims();
|
|
45197
45366
|
const _dirname = typeof __dirname !== "undefined" ? __dirname : typeof import.meta !== "undefined" && import.meta.url ? dirname(fileURLToPath(import.meta.url)) : process.cwd();
|
|
45198
|
-
process.env.NODE_ENV;
|
|
45367
|
+
const isDev = process.env.NODE_ENV === "development";
|
|
45199
45368
|
/**
|
|
45200
45369
|
* Finds the monorepo root by looking for pnpm-workspace.yaml.
|
|
45201
45370
|
*/
|
|
@@ -45207,10 +45376,10 @@ function findProjectRoot(startDir) {
|
|
|
45207
45376
|
}
|
|
45208
45377
|
return null;
|
|
45209
45378
|
}
|
|
45210
|
-
findProjectRoot(_dirname);
|
|
45379
|
+
const projectRoot = findProjectRoot(_dirname);
|
|
45211
45380
|
//#endregion
|
|
45212
45381
|
//#region ../../packages/core-node/node_modules/ws/lib/constants.js
|
|
45213
|
-
var require_constants$
|
|
45382
|
+
var require_constants$9 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
45214
45383
|
const BINARY_TYPES = [
|
|
45215
45384
|
"nodebuffer",
|
|
45216
45385
|
"arraybuffer",
|
|
@@ -45233,7 +45402,7 @@ var require_constants$7 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
45233
45402
|
//#endregion
|
|
45234
45403
|
//#region ../../packages/core-node/node_modules/ws/lib/buffer-util.js
|
|
45235
45404
|
var require_buffer_util = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
45236
|
-
const { EMPTY_BUFFER } = require_constants$
|
|
45405
|
+
const { EMPTY_BUFFER } = require_constants$9();
|
|
45237
45406
|
const FastBuffer = Buffer[Symbol.species];
|
|
45238
45407
|
/**
|
|
45239
45408
|
* Merges an array of buffers into a new buffer.
|
|
@@ -45387,7 +45556,7 @@ var require_permessage_deflate = /* @__PURE__ */ __commonJSMin(((exports, module
|
|
|
45387
45556
|
const zlib$3 = __require("zlib");
|
|
45388
45557
|
const bufferUtil = require_buffer_util();
|
|
45389
45558
|
const Limiter = require_limiter();
|
|
45390
|
-
const { kStatusCode } = require_constants$
|
|
45559
|
+
const { kStatusCode } = require_constants$9();
|
|
45391
45560
|
const FastBuffer = Buffer[Symbol.species];
|
|
45392
45561
|
const TRAILER = Buffer.from([
|
|
45393
45562
|
0,
|
|
@@ -45718,7 +45887,7 @@ var require_permessage_deflate = /* @__PURE__ */ __commonJSMin(((exports, module
|
|
|
45718
45887
|
//#region ../../packages/core-node/node_modules/ws/lib/validation.js
|
|
45719
45888
|
var require_validation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
45720
45889
|
const { isUtf8 } = __require("buffer");
|
|
45721
|
-
const { hasBlob } = require_constants$
|
|
45890
|
+
const { hasBlob } = require_constants$9();
|
|
45722
45891
|
const tokenChars = [
|
|
45723
45892
|
0,
|
|
45724
45893
|
0,
|
|
@@ -45915,7 +46084,7 @@ var require_validation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
45915
46084
|
var require_receiver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
45916
46085
|
const { Writable: Writable$2 } = __require("stream");
|
|
45917
46086
|
const PerMessageDeflate = require_permessage_deflate();
|
|
45918
|
-
const { BINARY_TYPES, EMPTY_BUFFER, kStatusCode, kWebSocket } = require_constants$
|
|
46087
|
+
const { BINARY_TYPES, EMPTY_BUFFER, kStatusCode, kWebSocket } = require_constants$9();
|
|
45919
46088
|
const { concat, toArrayBuffer, unmask } = require_buffer_util();
|
|
45920
46089
|
const { isValidStatusCode, isValidUTF8 } = require_validation();
|
|
45921
46090
|
const FastBuffer = Buffer[Symbol.species];
|
|
@@ -46363,7 +46532,7 @@ var require_sender = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
46363
46532
|
const { Duplex: Duplex$4 } = __require("stream");
|
|
46364
46533
|
const { randomFillSync } = __require("crypto");
|
|
46365
46534
|
const PerMessageDeflate = require_permessage_deflate();
|
|
46366
|
-
const { EMPTY_BUFFER, kWebSocket, NOOP } = require_constants$
|
|
46535
|
+
const { EMPTY_BUFFER, kWebSocket, NOOP } = require_constants$9();
|
|
46367
46536
|
const { isBlob, isValidStatusCode } = require_validation();
|
|
46368
46537
|
const { mask: applyMask, toBuffer } = require_buffer_util();
|
|
46369
46538
|
const kByteLength = Symbol("kByteLength");
|
|
@@ -46851,7 +47020,7 @@ var require_sender = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
46851
47020
|
//#endregion
|
|
46852
47021
|
//#region ../../packages/core-node/node_modules/ws/lib/event-target.js
|
|
46853
47022
|
var require_event_target = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
46854
|
-
const { kForOnEventAttribute, kListener } = require_constants$
|
|
47023
|
+
const { kForOnEventAttribute, kListener } = require_constants$9();
|
|
46855
47024
|
const kCode = Symbol("kCode");
|
|
46856
47025
|
const kData = Symbol("kData");
|
|
46857
47026
|
const kError = Symbol("kError");
|
|
@@ -47218,7 +47387,7 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
47218
47387
|
const Receiver = require_receiver();
|
|
47219
47388
|
const Sender = require_sender();
|
|
47220
47389
|
const { isBlob } = require_validation();
|
|
47221
|
-
const { BINARY_TYPES, EMPTY_BUFFER, GUID, kForOnEventAttribute, kListener, kStatusCode, kWebSocket, NOOP } = require_constants$
|
|
47390
|
+
const { BINARY_TYPES, EMPTY_BUFFER, GUID, kForOnEventAttribute, kListener, kStatusCode, kWebSocket, NOOP } = require_constants$9();
|
|
47222
47391
|
const { EventTarget: { addEventListener, removeEventListener } } = require_event_target();
|
|
47223
47392
|
const { format, parse } = require_extension();
|
|
47224
47393
|
const { toBuffer } = require_buffer_util();
|
|
@@ -48334,7 +48503,7 @@ var require_websocket_server = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
48334
48503
|
const PerMessageDeflate = require_permessage_deflate();
|
|
48335
48504
|
const subprotocol = require_subprotocol();
|
|
48336
48505
|
const WebSocket = require_websocket();
|
|
48337
|
-
const { GUID, kWebSocket } = require_constants$
|
|
48506
|
+
const { GUID, kWebSocket } = require_constants$9();
|
|
48338
48507
|
const keyRegex = /^[+/0-9A-Za-z]{22}==$/;
|
|
48339
48508
|
const RUNNING = 0;
|
|
48340
48509
|
const CLOSING = 1;
|
|
@@ -49999,7 +50168,7 @@ var require_readShebang = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
49999
50168
|
}));
|
|
50000
50169
|
//#endregion
|
|
50001
50170
|
//#region ../../node_modules/cross-spawn/lib/parse.js
|
|
50002
|
-
var require_parse$
|
|
50171
|
+
var require_parse$5 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
50003
50172
|
const path$33 = __require("path");
|
|
50004
50173
|
const resolveCommand = require_resolveCommand();
|
|
50005
50174
|
const escape = require_escape$4();
|
|
@@ -50101,7 +50270,7 @@ var require_enoent = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
50101
50270
|
//#region ../../node_modules/npm-run-path/node_modules/path-key/index.js
|
|
50102
50271
|
var import_cross_spawn = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
50103
50272
|
const cp$1 = __require("child_process");
|
|
50104
|
-
const parse = require_parse$
|
|
50273
|
+
const parse = require_parse$5();
|
|
50105
50274
|
const enoent = require_enoent();
|
|
50106
50275
|
function spawn(command, args, options) {
|
|
50107
50276
|
const parsed = parse(command, args, options);
|
|
@@ -55638,7 +55807,7 @@ while (this[FLUSHCHUNK](this[BUFFERSHIFT]()) && this[BUFFER].length);
|
|
|
55638
55807
|
}));
|
|
55639
55808
|
//#endregion
|
|
55640
55809
|
//#region ../../node_modules/tar/node_modules/minizlib/constants.js
|
|
55641
|
-
var require_constants$
|
|
55810
|
+
var require_constants$8 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
55642
55811
|
const realZlibConstants$1 = __require("zlib").constants || (
|
|
55643
55812
|
/* istanbul ignore next */ { ZLIB_VERNUM: 4736 });
|
|
55644
55813
|
module.exports = Object.freeze(Object.assign(Object.create(null), {
|
|
@@ -56186,7 +56355,7 @@ var require_minizlib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
56186
56355
|
const assert$2 = __require("assert");
|
|
56187
56356
|
const Buffer$8 = __require("buffer").Buffer;
|
|
56188
56357
|
const realZlib$1 = __require("zlib");
|
|
56189
|
-
const constants = exports.constants = require_constants$
|
|
56358
|
+
const constants = exports.constants = require_constants$8();
|
|
56190
56359
|
const Minipass = require_minipass$3();
|
|
56191
56360
|
const OriginalBufferConcat = Buffer$8.concat;
|
|
56192
56361
|
const _superWrite = Symbol("_superWrite");
|
|
@@ -58643,7 +58812,7 @@ var require_fs_minipass = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
58643
58812
|
}));
|
|
58644
58813
|
//#endregion
|
|
58645
58814
|
//#region ../../node_modules/tar/lib/parse.js
|
|
58646
|
-
var require_parse$
|
|
58815
|
+
var require_parse$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
58647
58816
|
const warner = require_warn_mixin();
|
|
58648
58817
|
const Header = require_header();
|
|
58649
58818
|
const EE$10 = __require("events");
|
|
@@ -58991,7 +59160,7 @@ while (this[PROCESSENTRY](this[QUEUE].shift()));
|
|
|
58991
59160
|
//#region ../../node_modules/tar/lib/list.js
|
|
58992
59161
|
var require_list = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
58993
59162
|
const hlo = require_high_level_opt();
|
|
58994
|
-
const Parser = require_parse$
|
|
59163
|
+
const Parser = require_parse$4();
|
|
58995
59164
|
const fs$30 = __require("fs");
|
|
58996
59165
|
const fsm = require_fs_minipass();
|
|
58997
59166
|
const path$29 = __require("path");
|
|
@@ -59876,7 +60045,7 @@ var require_get_write_flag = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
59876
60045
|
//#region ../../node_modules/tar/lib/unpack.js
|
|
59877
60046
|
var require_unpack = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
59878
60047
|
const assert = __require("assert");
|
|
59879
|
-
const Parser = require_parse$
|
|
60048
|
+
const Parser = require_parse$4();
|
|
59880
60049
|
const fs$24 = __require("fs");
|
|
59881
60050
|
const fsm = require_fs_minipass();
|
|
59882
60051
|
const path$24 = __require("path");
|
|
@@ -60534,7 +60703,7 @@ var require_tar$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
60534
60703
|
exports.x = exports.extract = require_extract$1();
|
|
60535
60704
|
exports.Pack = require_pack$1();
|
|
60536
60705
|
exports.Unpack = require_unpack();
|
|
60537
|
-
exports.Parse = require_parse$
|
|
60706
|
+
exports.Parse = require_parse$4();
|
|
60538
60707
|
exports.ReadEntry = require_read_entry();
|
|
60539
60708
|
exports.WriteEntry = require_write_entry();
|
|
60540
60709
|
exports.Header = require_header();
|
|
@@ -71034,7 +71203,7 @@ var require__baseRest = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
71034
71203
|
}));
|
|
71035
71204
|
//#endregion
|
|
71036
71205
|
//#region ../../node_modules/lodash/eq.js
|
|
71037
|
-
var require_eq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
71206
|
+
var require_eq$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
71038
71207
|
/**
|
|
71039
71208
|
* Performs a
|
|
71040
71209
|
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
@@ -71167,7 +71336,7 @@ var require__isIndex = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
71167
71336
|
//#endregion
|
|
71168
71337
|
//#region ../../node_modules/lodash/_isIterateeCall.js
|
|
71169
71338
|
var require__isIterateeCall = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
71170
|
-
var eq = require_eq(), isArrayLike = require_isArrayLike(), isIndex = require__isIndex(), isObject = require_isObject();
|
|
71339
|
+
var eq = require_eq$2(), isArrayLike = require_isArrayLike(), isIndex = require__isIndex(), isObject = require_isObject();
|
|
71171
71340
|
/**
|
|
71172
71341
|
* Checks if the given arguments are from an iteratee call.
|
|
71173
71342
|
*
|
|
@@ -71488,7 +71657,7 @@ var require_keysIn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
71488
71657
|
//#endregion
|
|
71489
71658
|
//#region ../../node_modules/lodash/defaults.js
|
|
71490
71659
|
var require_defaults = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
71491
|
-
var baseRest = require__baseRest(), eq = require_eq(), isIterateeCall = require__isIterateeCall(), keysIn = require_keysIn();
|
|
71660
|
+
var baseRest = require__baseRest(), eq = require_eq$2(), isIterateeCall = require__isIterateeCall(), keysIn = require_keysIn();
|
|
71492
71661
|
/** Used for built-in method references. */
|
|
71493
71662
|
var objectProto = Object.prototype;
|
|
71494
71663
|
/** Used to check objects for own properties. */
|
|
@@ -77110,7 +77279,7 @@ var require__listCacheClear = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
77110
77279
|
//#endregion
|
|
77111
77280
|
//#region ../../node_modules/lodash/_assocIndexOf.js
|
|
77112
77281
|
var require__assocIndexOf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
77113
|
-
var eq = require_eq();
|
|
77282
|
+
var eq = require_eq$2();
|
|
77114
77283
|
/**
|
|
77115
77284
|
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
77116
77285
|
*
|
|
@@ -85042,7 +85211,7 @@ var require_unix_stat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
85042
85211
|
}));
|
|
85043
85212
|
//#endregion
|
|
85044
85213
|
//#region ../../node_modules/compress-commons/lib/archivers/zip/constants.js
|
|
85045
|
-
var require_constants$
|
|
85214
|
+
var require_constants$7 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
85046
85215
|
/**
|
|
85047
85216
|
* node-compress-commons
|
|
85048
85217
|
*
|
|
@@ -85117,7 +85286,7 @@ var require_zip_archive_entry = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
85117
85286
|
var ArchiveEntry = require_archive_entry();
|
|
85118
85287
|
var GeneralPurposeBit = require_general_purpose_bit();
|
|
85119
85288
|
var UnixStat = require_unix_stat();
|
|
85120
|
-
var constants = require_constants$
|
|
85289
|
+
var constants = require_constants$7();
|
|
85121
85290
|
var zipUtil = require_util$3();
|
|
85122
85291
|
var ZipArchiveEntry = module.exports = function(name) {
|
|
85123
85292
|
if (!(this instanceof ZipArchiveEntry)) return new ZipArchiveEntry(name);
|
|
@@ -85751,7 +85920,7 @@ var require_zip_archive_output_stream = /* @__PURE__ */ __commonJSMin(((exports,
|
|
|
85751
85920
|
var ArchiveOutputStream = require_archive_output_stream();
|
|
85752
85921
|
require_zip_archive_entry();
|
|
85753
85922
|
require_general_purpose_bit();
|
|
85754
|
-
var constants = require_constants$
|
|
85923
|
+
var constants = require_constants$7();
|
|
85755
85924
|
require_util$2();
|
|
85756
85925
|
var zipUtil = require_util$3();
|
|
85757
85926
|
var ZipArchiveOutputStream = module.exports = function(options) {
|
|
@@ -88248,7 +88417,7 @@ var require_extract = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
88248
88417
|
}));
|
|
88249
88418
|
//#endregion
|
|
88250
88419
|
//#region ../../node_modules/tar-stream/constants.js
|
|
88251
|
-
var require_constants$
|
|
88420
|
+
var require_constants$6 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
88252
88421
|
const constants = {
|
|
88253
88422
|
S_IFMT: 61440,
|
|
88254
88423
|
S_IFDIR: 16384,
|
|
@@ -88268,7 +88437,7 @@ var require_constants$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
88268
88437
|
var require_pack = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
88269
88438
|
const { Readable, Writable, getStreamError } = require_streamx();
|
|
88270
88439
|
const b4a = require_b4a();
|
|
88271
|
-
const constants = require_constants$
|
|
88440
|
+
const constants = require_constants$6();
|
|
88272
88441
|
const headers = require_headers$1();
|
|
88273
88442
|
const DMODE = 493;
|
|
88274
88443
|
const FMODE = 420;
|
|
@@ -89263,6 +89432,360 @@ var require_update_workspaces = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
89263
89432
|
module.exports = updateWorkspaces;
|
|
89264
89433
|
}));
|
|
89265
89434
|
//#endregion
|
|
89435
|
+
//#region ../../node_modules/semver/internal/debug.js
|
|
89436
|
+
var require_debug$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89437
|
+
module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
89438
|
+
}));
|
|
89439
|
+
//#endregion
|
|
89440
|
+
//#region ../../node_modules/semver/internal/constants.js
|
|
89441
|
+
var require_constants$5 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89442
|
+
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
89443
|
+
const MAX_LENGTH = 256;
|
|
89444
|
+
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
89445
|
+
module.exports = {
|
|
89446
|
+
MAX_LENGTH,
|
|
89447
|
+
MAX_SAFE_COMPONENT_LENGTH: 16,
|
|
89448
|
+
MAX_SAFE_BUILD_LENGTH: MAX_LENGTH - 6,
|
|
89449
|
+
MAX_SAFE_INTEGER,
|
|
89450
|
+
RELEASE_TYPES: [
|
|
89451
|
+
"major",
|
|
89452
|
+
"premajor",
|
|
89453
|
+
"minor",
|
|
89454
|
+
"preminor",
|
|
89455
|
+
"patch",
|
|
89456
|
+
"prepatch",
|
|
89457
|
+
"prerelease"
|
|
89458
|
+
],
|
|
89459
|
+
SEMVER_SPEC_VERSION,
|
|
89460
|
+
FLAG_INCLUDE_PRERELEASE: 1,
|
|
89461
|
+
FLAG_LOOSE: 2
|
|
89462
|
+
};
|
|
89463
|
+
}));
|
|
89464
|
+
//#endregion
|
|
89465
|
+
//#region ../../node_modules/semver/internal/re.js
|
|
89466
|
+
var require_re$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89467
|
+
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants$5();
|
|
89468
|
+
const debug = require_debug$1();
|
|
89469
|
+
exports = module.exports = {};
|
|
89470
|
+
const re = exports.re = [];
|
|
89471
|
+
const safeRe = exports.safeRe = [];
|
|
89472
|
+
const src = exports.src = [];
|
|
89473
|
+
const safeSrc = exports.safeSrc = [];
|
|
89474
|
+
const t = exports.t = {};
|
|
89475
|
+
let R = 0;
|
|
89476
|
+
const LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
89477
|
+
const safeRegexReplacements = [
|
|
89478
|
+
["\\s", 1],
|
|
89479
|
+
["\\d", MAX_LENGTH],
|
|
89480
|
+
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
|
|
89481
|
+
];
|
|
89482
|
+
const makeSafeRegex = (value) => {
|
|
89483
|
+
for (const [token, max] of safeRegexReplacements) value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
|
|
89484
|
+
return value;
|
|
89485
|
+
};
|
|
89486
|
+
const createToken = (name, value, isGlobal) => {
|
|
89487
|
+
const safe = makeSafeRegex(value);
|
|
89488
|
+
const index = R++;
|
|
89489
|
+
debug(name, index, value);
|
|
89490
|
+
t[name] = index;
|
|
89491
|
+
src[index] = value;
|
|
89492
|
+
safeSrc[index] = safe;
|
|
89493
|
+
re[index] = new RegExp(value, isGlobal ? "g" : void 0);
|
|
89494
|
+
safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
89495
|
+
};
|
|
89496
|
+
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
89497
|
+
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
89498
|
+
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
89499
|
+
createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
|
|
89500
|
+
createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
89501
|
+
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
|
|
89502
|
+
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
89503
|
+
createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
89504
|
+
createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
89505
|
+
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
89506
|
+
createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
|
|
89507
|
+
createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
|
|
89508
|
+
createToken("FULL", `^${src[t.FULLPLAIN]}$`);
|
|
89509
|
+
createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
|
|
89510
|
+
createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
|
|
89511
|
+
createToken("GTLT", "((?:<|>)?=?)");
|
|
89512
|
+
createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
|
89513
|
+
createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
|
|
89514
|
+
createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
|
|
89515
|
+
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
|
|
89516
|
+
createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
|
|
89517
|
+
createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
|
|
89518
|
+
createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
|
89519
|
+
createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
89520
|
+
createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
|
|
89521
|
+
createToken("COERCERTL", src[t.COERCE], true);
|
|
89522
|
+
createToken("COERCERTLFULL", src[t.COERCEFULL], true);
|
|
89523
|
+
createToken("LONETILDE", "(?:~>?)");
|
|
89524
|
+
createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
|
|
89525
|
+
exports.tildeTrimReplace = "$1~";
|
|
89526
|
+
createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
|
|
89527
|
+
createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
89528
|
+
createToken("LONECARET", "(?:\\^)");
|
|
89529
|
+
createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
|
|
89530
|
+
exports.caretTrimReplace = "$1^";
|
|
89531
|
+
createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
|
|
89532
|
+
createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
89533
|
+
createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
|
|
89534
|
+
createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
|
|
89535
|
+
createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
|
|
89536
|
+
exports.comparatorTrimReplace = "$1$2$3";
|
|
89537
|
+
createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
|
|
89538
|
+
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
|
|
89539
|
+
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
89540
|
+
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
89541
|
+
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
89542
|
+
}));
|
|
89543
|
+
//#endregion
|
|
89544
|
+
//#region ../../node_modules/semver/internal/parse-options.js
|
|
89545
|
+
var require_parse_options$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89546
|
+
const looseOption = Object.freeze({ loose: true });
|
|
89547
|
+
const emptyOpts = Object.freeze({});
|
|
89548
|
+
const parseOptions = (options) => {
|
|
89549
|
+
if (!options) return emptyOpts;
|
|
89550
|
+
if (typeof options !== "object") return looseOption;
|
|
89551
|
+
return options;
|
|
89552
|
+
};
|
|
89553
|
+
module.exports = parseOptions;
|
|
89554
|
+
}));
|
|
89555
|
+
//#endregion
|
|
89556
|
+
//#region ../../node_modules/semver/internal/identifiers.js
|
|
89557
|
+
var require_identifiers$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89558
|
+
const numeric = /^[0-9]+$/;
|
|
89559
|
+
const compareIdentifiers = (a, b) => {
|
|
89560
|
+
if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
|
|
89561
|
+
const anum = numeric.test(a);
|
|
89562
|
+
const bnum = numeric.test(b);
|
|
89563
|
+
if (anum && bnum) {
|
|
89564
|
+
a = +a;
|
|
89565
|
+
b = +b;
|
|
89566
|
+
}
|
|
89567
|
+
return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
|
|
89568
|
+
};
|
|
89569
|
+
const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
|
|
89570
|
+
module.exports = {
|
|
89571
|
+
compareIdentifiers,
|
|
89572
|
+
rcompareIdentifiers
|
|
89573
|
+
};
|
|
89574
|
+
}));
|
|
89575
|
+
//#endregion
|
|
89576
|
+
//#region ../../node_modules/semver/classes/semver.js
|
|
89577
|
+
var require_semver$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89578
|
+
const debug = require_debug$1();
|
|
89579
|
+
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants$5();
|
|
89580
|
+
const { safeRe: re, t } = require_re$1();
|
|
89581
|
+
const parseOptions = require_parse_options$1();
|
|
89582
|
+
const { compareIdentifiers } = require_identifiers$1();
|
|
89583
|
+
module.exports = class SemVer {
|
|
89584
|
+
constructor(version, options) {
|
|
89585
|
+
options = parseOptions(options);
|
|
89586
|
+
if (version instanceof SemVer) if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) return version;
|
|
89587
|
+
else version = version.version;
|
|
89588
|
+
else if (typeof version !== "string") throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
89589
|
+
if (version.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
|
|
89590
|
+
debug("SemVer", version, options);
|
|
89591
|
+
this.options = options;
|
|
89592
|
+
this.loose = !!options.loose;
|
|
89593
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
89594
|
+
const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
|
|
89595
|
+
if (!m) throw new TypeError(`Invalid Version: ${version}`);
|
|
89596
|
+
this.raw = version;
|
|
89597
|
+
this.major = +m[1];
|
|
89598
|
+
this.minor = +m[2];
|
|
89599
|
+
this.patch = +m[3];
|
|
89600
|
+
if (this.major > MAX_SAFE_INTEGER || this.major < 0) throw new TypeError("Invalid major version");
|
|
89601
|
+
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError("Invalid minor version");
|
|
89602
|
+
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError("Invalid patch version");
|
|
89603
|
+
if (!m[4]) this.prerelease = [];
|
|
89604
|
+
else this.prerelease = m[4].split(".").map((id) => {
|
|
89605
|
+
if (/^[0-9]+$/.test(id)) {
|
|
89606
|
+
const num = +id;
|
|
89607
|
+
if (num >= 0 && num < MAX_SAFE_INTEGER) return num;
|
|
89608
|
+
}
|
|
89609
|
+
return id;
|
|
89610
|
+
});
|
|
89611
|
+
this.build = m[5] ? m[5].split(".") : [];
|
|
89612
|
+
this.format();
|
|
89613
|
+
}
|
|
89614
|
+
format() {
|
|
89615
|
+
this.version = `${this.major}.${this.minor}.${this.patch}`;
|
|
89616
|
+
if (this.prerelease.length) this.version += `-${this.prerelease.join(".")}`;
|
|
89617
|
+
return this.version;
|
|
89618
|
+
}
|
|
89619
|
+
toString() {
|
|
89620
|
+
return this.version;
|
|
89621
|
+
}
|
|
89622
|
+
compare(other) {
|
|
89623
|
+
debug("SemVer.compare", this.version, this.options, other);
|
|
89624
|
+
if (!(other instanceof SemVer)) {
|
|
89625
|
+
if (typeof other === "string" && other === this.version) return 0;
|
|
89626
|
+
other = new SemVer(other, this.options);
|
|
89627
|
+
}
|
|
89628
|
+
if (other.version === this.version) return 0;
|
|
89629
|
+
return this.compareMain(other) || this.comparePre(other);
|
|
89630
|
+
}
|
|
89631
|
+
compareMain(other) {
|
|
89632
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
89633
|
+
if (this.major < other.major) return -1;
|
|
89634
|
+
if (this.major > other.major) return 1;
|
|
89635
|
+
if (this.minor < other.minor) return -1;
|
|
89636
|
+
if (this.minor > other.minor) return 1;
|
|
89637
|
+
if (this.patch < other.patch) return -1;
|
|
89638
|
+
if (this.patch > other.patch) return 1;
|
|
89639
|
+
return 0;
|
|
89640
|
+
}
|
|
89641
|
+
comparePre(other) {
|
|
89642
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
89643
|
+
if (this.prerelease.length && !other.prerelease.length) return -1;
|
|
89644
|
+
else if (!this.prerelease.length && other.prerelease.length) return 1;
|
|
89645
|
+
else if (!this.prerelease.length && !other.prerelease.length) return 0;
|
|
89646
|
+
let i = 0;
|
|
89647
|
+
do {
|
|
89648
|
+
const a = this.prerelease[i];
|
|
89649
|
+
const b = other.prerelease[i];
|
|
89650
|
+
debug("prerelease compare", i, a, b);
|
|
89651
|
+
if (a === void 0 && b === void 0) return 0;
|
|
89652
|
+
else if (b === void 0) return 1;
|
|
89653
|
+
else if (a === void 0) return -1;
|
|
89654
|
+
else if (a === b) continue;
|
|
89655
|
+
else return compareIdentifiers(a, b);
|
|
89656
|
+
} while (++i);
|
|
89657
|
+
}
|
|
89658
|
+
compareBuild(other) {
|
|
89659
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
89660
|
+
let i = 0;
|
|
89661
|
+
do {
|
|
89662
|
+
const a = this.build[i];
|
|
89663
|
+
const b = other.build[i];
|
|
89664
|
+
debug("build compare", i, a, b);
|
|
89665
|
+
if (a === void 0 && b === void 0) return 0;
|
|
89666
|
+
else if (b === void 0) return 1;
|
|
89667
|
+
else if (a === void 0) return -1;
|
|
89668
|
+
else if (a === b) continue;
|
|
89669
|
+
else return compareIdentifiers(a, b);
|
|
89670
|
+
} while (++i);
|
|
89671
|
+
}
|
|
89672
|
+
inc(release, identifier, identifierBase) {
|
|
89673
|
+
if (release.startsWith("pre")) {
|
|
89674
|
+
if (!identifier && identifierBase === false) throw new Error("invalid increment argument: identifier is empty");
|
|
89675
|
+
if (identifier) {
|
|
89676
|
+
const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
|
|
89677
|
+
if (!match || match[1] !== identifier) throw new Error(`invalid identifier: ${identifier}`);
|
|
89678
|
+
}
|
|
89679
|
+
}
|
|
89680
|
+
switch (release) {
|
|
89681
|
+
case "premajor":
|
|
89682
|
+
this.prerelease.length = 0;
|
|
89683
|
+
this.patch = 0;
|
|
89684
|
+
this.minor = 0;
|
|
89685
|
+
this.major++;
|
|
89686
|
+
this.inc("pre", identifier, identifierBase);
|
|
89687
|
+
break;
|
|
89688
|
+
case "preminor":
|
|
89689
|
+
this.prerelease.length = 0;
|
|
89690
|
+
this.patch = 0;
|
|
89691
|
+
this.minor++;
|
|
89692
|
+
this.inc("pre", identifier, identifierBase);
|
|
89693
|
+
break;
|
|
89694
|
+
case "prepatch":
|
|
89695
|
+
this.prerelease.length = 0;
|
|
89696
|
+
this.inc("patch", identifier, identifierBase);
|
|
89697
|
+
this.inc("pre", identifier, identifierBase);
|
|
89698
|
+
break;
|
|
89699
|
+
case "prerelease":
|
|
89700
|
+
if (this.prerelease.length === 0) this.inc("patch", identifier, identifierBase);
|
|
89701
|
+
this.inc("pre", identifier, identifierBase);
|
|
89702
|
+
break;
|
|
89703
|
+
case "release":
|
|
89704
|
+
if (this.prerelease.length === 0) throw new Error(`version ${this.raw} is not a prerelease`);
|
|
89705
|
+
this.prerelease.length = 0;
|
|
89706
|
+
break;
|
|
89707
|
+
case "major":
|
|
89708
|
+
if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) this.major++;
|
|
89709
|
+
this.minor = 0;
|
|
89710
|
+
this.patch = 0;
|
|
89711
|
+
this.prerelease = [];
|
|
89712
|
+
break;
|
|
89713
|
+
case "minor":
|
|
89714
|
+
if (this.patch !== 0 || this.prerelease.length === 0) this.minor++;
|
|
89715
|
+
this.patch = 0;
|
|
89716
|
+
this.prerelease = [];
|
|
89717
|
+
break;
|
|
89718
|
+
case "patch":
|
|
89719
|
+
if (this.prerelease.length === 0) this.patch++;
|
|
89720
|
+
this.prerelease = [];
|
|
89721
|
+
break;
|
|
89722
|
+
case "pre": {
|
|
89723
|
+
const base = Number(identifierBase) ? 1 : 0;
|
|
89724
|
+
if (this.prerelease.length === 0) this.prerelease = [base];
|
|
89725
|
+
else {
|
|
89726
|
+
let i = this.prerelease.length;
|
|
89727
|
+
while (--i >= 0) if (typeof this.prerelease[i] === "number") {
|
|
89728
|
+
this.prerelease[i]++;
|
|
89729
|
+
i = -2;
|
|
89730
|
+
}
|
|
89731
|
+
if (i === -1) {
|
|
89732
|
+
if (identifier === this.prerelease.join(".") && identifierBase === false) throw new Error("invalid increment argument: identifier already exists");
|
|
89733
|
+
this.prerelease.push(base);
|
|
89734
|
+
}
|
|
89735
|
+
}
|
|
89736
|
+
if (identifier) {
|
|
89737
|
+
let prerelease = [identifier, base];
|
|
89738
|
+
if (identifierBase === false) prerelease = [identifier];
|
|
89739
|
+
if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
|
|
89740
|
+
if (isNaN(this.prerelease[1])) this.prerelease = prerelease;
|
|
89741
|
+
} else this.prerelease = prerelease;
|
|
89742
|
+
}
|
|
89743
|
+
break;
|
|
89744
|
+
}
|
|
89745
|
+
default: throw new Error(`invalid increment argument: ${release}`);
|
|
89746
|
+
}
|
|
89747
|
+
this.raw = this.format();
|
|
89748
|
+
if (this.build.length) this.raw += `+${this.build.join(".")}`;
|
|
89749
|
+
return this;
|
|
89750
|
+
}
|
|
89751
|
+
};
|
|
89752
|
+
}));
|
|
89753
|
+
//#endregion
|
|
89754
|
+
//#region ../../node_modules/semver/functions/parse.js
|
|
89755
|
+
var require_parse$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89756
|
+
const SemVer = require_semver$3();
|
|
89757
|
+
const parse = (version, options, throwErrors = false) => {
|
|
89758
|
+
if (version instanceof SemVer) return version;
|
|
89759
|
+
try {
|
|
89760
|
+
return new SemVer(version, options);
|
|
89761
|
+
} catch (er) {
|
|
89762
|
+
if (!throwErrors) return null;
|
|
89763
|
+
throw er;
|
|
89764
|
+
}
|
|
89765
|
+
};
|
|
89766
|
+
module.exports = parse;
|
|
89767
|
+
}));
|
|
89768
|
+
//#endregion
|
|
89769
|
+
//#region ../../node_modules/semver/functions/valid.js
|
|
89770
|
+
var require_valid$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89771
|
+
const parse = require_parse$3();
|
|
89772
|
+
const valid = (version, options) => {
|
|
89773
|
+
const v = parse(version, options);
|
|
89774
|
+
return v ? v.version : null;
|
|
89775
|
+
};
|
|
89776
|
+
module.exports = valid;
|
|
89777
|
+
}));
|
|
89778
|
+
//#endregion
|
|
89779
|
+
//#region ../../node_modules/semver/functions/clean.js
|
|
89780
|
+
var require_clean$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89781
|
+
const parse = require_parse$3();
|
|
89782
|
+
const clean = (version, options) => {
|
|
89783
|
+
const s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
89784
|
+
return s ? s.version : null;
|
|
89785
|
+
};
|
|
89786
|
+
module.exports = clean;
|
|
89787
|
+
}));
|
|
89788
|
+
//#endregion
|
|
89266
89789
|
//#region ../../node_modules/proc-log/lib/index.js
|
|
89267
89790
|
var require_lib$29 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89268
89791
|
module.exports = {
|
|
@@ -94761,7 +95284,7 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
94761
95284
|
}));
|
|
94762
95285
|
//#endregion
|
|
94763
95286
|
//#region ../../node_modules/@npmcli/package-json/node_modules/spdx-expression-parse/parse.js
|
|
94764
|
-
var require_parse$
|
|
95287
|
+
var require_parse$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
94765
95288
|
module.exports = function(tokens) {
|
|
94766
95289
|
var index = 0;
|
|
94767
95290
|
function hasMore() {
|
|
@@ -94852,7 +95375,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
94852
95375
|
//#region ../../node_modules/@npmcli/package-json/node_modules/spdx-expression-parse/index.js
|
|
94853
95376
|
var require_spdx_expression_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
94854
95377
|
var scan = require_scan();
|
|
94855
|
-
var parse = require_parse$
|
|
95378
|
+
var parse = require_parse$2();
|
|
94856
95379
|
module.exports = function(source) {
|
|
94857
95380
|
return parse(scan(source));
|
|
94858
95381
|
};
|
|
@@ -96060,9 +96583,1026 @@ var require_spawn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
96060
96583
|
};
|
|
96061
96584
|
}));
|
|
96062
96585
|
//#endregion
|
|
96586
|
+
//#region ../../node_modules/semver/functions/inc.js
|
|
96587
|
+
var require_inc$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96588
|
+
const SemVer = require_semver$3();
|
|
96589
|
+
const inc = (version, release, options, identifier, identifierBase) => {
|
|
96590
|
+
if (typeof options === "string") {
|
|
96591
|
+
identifierBase = identifier;
|
|
96592
|
+
identifier = options;
|
|
96593
|
+
options = void 0;
|
|
96594
|
+
}
|
|
96595
|
+
try {
|
|
96596
|
+
return new SemVer(version instanceof SemVer ? version.version : version, options).inc(release, identifier, identifierBase).version;
|
|
96597
|
+
} catch (er) {
|
|
96598
|
+
return null;
|
|
96599
|
+
}
|
|
96600
|
+
};
|
|
96601
|
+
module.exports = inc;
|
|
96602
|
+
}));
|
|
96603
|
+
//#endregion
|
|
96604
|
+
//#region ../../node_modules/semver/functions/diff.js
|
|
96605
|
+
var require_diff$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96606
|
+
const parse = require_parse$3();
|
|
96607
|
+
const diff = (version1, version2) => {
|
|
96608
|
+
const v1 = parse(version1, null, true);
|
|
96609
|
+
const v2 = parse(version2, null, true);
|
|
96610
|
+
const comparison = v1.compare(v2);
|
|
96611
|
+
if (comparison === 0) return null;
|
|
96612
|
+
const v1Higher = comparison > 0;
|
|
96613
|
+
const highVersion = v1Higher ? v1 : v2;
|
|
96614
|
+
const lowVersion = v1Higher ? v2 : v1;
|
|
96615
|
+
const highHasPre = !!highVersion.prerelease.length;
|
|
96616
|
+
if (!!lowVersion.prerelease.length && !highHasPre) {
|
|
96617
|
+
if (!lowVersion.patch && !lowVersion.minor) return "major";
|
|
96618
|
+
if (lowVersion.compareMain(highVersion) === 0) {
|
|
96619
|
+
if (lowVersion.minor && !lowVersion.patch) return "minor";
|
|
96620
|
+
return "patch";
|
|
96621
|
+
}
|
|
96622
|
+
}
|
|
96623
|
+
const prefix = highHasPre ? "pre" : "";
|
|
96624
|
+
if (v1.major !== v2.major) return prefix + "major";
|
|
96625
|
+
if (v1.minor !== v2.minor) return prefix + "minor";
|
|
96626
|
+
if (v1.patch !== v2.patch) return prefix + "patch";
|
|
96627
|
+
return "prerelease";
|
|
96628
|
+
};
|
|
96629
|
+
module.exports = diff;
|
|
96630
|
+
}));
|
|
96631
|
+
//#endregion
|
|
96632
|
+
//#region ../../node_modules/semver/functions/major.js
|
|
96633
|
+
var require_major$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96634
|
+
const SemVer = require_semver$3();
|
|
96635
|
+
const major = (a, loose) => new SemVer(a, loose).major;
|
|
96636
|
+
module.exports = major;
|
|
96637
|
+
}));
|
|
96638
|
+
//#endregion
|
|
96639
|
+
//#region ../../node_modules/semver/functions/minor.js
|
|
96640
|
+
var require_minor$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96641
|
+
const SemVer = require_semver$3();
|
|
96642
|
+
const minor = (a, loose) => new SemVer(a, loose).minor;
|
|
96643
|
+
module.exports = minor;
|
|
96644
|
+
}));
|
|
96645
|
+
//#endregion
|
|
96646
|
+
//#region ../../node_modules/semver/functions/patch.js
|
|
96647
|
+
var require_patch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96648
|
+
const SemVer = require_semver$3();
|
|
96649
|
+
const patch = (a, loose) => new SemVer(a, loose).patch;
|
|
96650
|
+
module.exports = patch;
|
|
96651
|
+
}));
|
|
96652
|
+
//#endregion
|
|
96653
|
+
//#region ../../node_modules/semver/functions/prerelease.js
|
|
96654
|
+
var require_prerelease$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96655
|
+
const parse = require_parse$3();
|
|
96656
|
+
const prerelease = (version, options) => {
|
|
96657
|
+
const parsed = parse(version, options);
|
|
96658
|
+
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
96659
|
+
};
|
|
96660
|
+
module.exports = prerelease;
|
|
96661
|
+
}));
|
|
96662
|
+
//#endregion
|
|
96663
|
+
//#region ../../node_modules/semver/functions/compare.js
|
|
96664
|
+
var require_compare$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96665
|
+
const SemVer = require_semver$3();
|
|
96666
|
+
const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
96667
|
+
module.exports = compare;
|
|
96668
|
+
}));
|
|
96669
|
+
//#endregion
|
|
96670
|
+
//#region ../../node_modules/semver/functions/rcompare.js
|
|
96671
|
+
var require_rcompare$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96672
|
+
const compare = require_compare$1();
|
|
96673
|
+
const rcompare = (a, b, loose) => compare(b, a, loose);
|
|
96674
|
+
module.exports = rcompare;
|
|
96675
|
+
}));
|
|
96676
|
+
//#endregion
|
|
96677
|
+
//#region ../../node_modules/semver/functions/compare-loose.js
|
|
96678
|
+
var require_compare_loose$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96679
|
+
const compare = require_compare$1();
|
|
96680
|
+
const compareLoose = (a, b) => compare(a, b, true);
|
|
96681
|
+
module.exports = compareLoose;
|
|
96682
|
+
}));
|
|
96683
|
+
//#endregion
|
|
96684
|
+
//#region ../../node_modules/semver/functions/compare-build.js
|
|
96685
|
+
var require_compare_build$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96686
|
+
const SemVer = require_semver$3();
|
|
96687
|
+
const compareBuild = (a, b, loose) => {
|
|
96688
|
+
const versionA = new SemVer(a, loose);
|
|
96689
|
+
const versionB = new SemVer(b, loose);
|
|
96690
|
+
return versionA.compare(versionB) || versionA.compareBuild(versionB);
|
|
96691
|
+
};
|
|
96692
|
+
module.exports = compareBuild;
|
|
96693
|
+
}));
|
|
96694
|
+
//#endregion
|
|
96695
|
+
//#region ../../node_modules/semver/functions/sort.js
|
|
96696
|
+
var require_sort$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96697
|
+
const compareBuild = require_compare_build$1();
|
|
96698
|
+
const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
96699
|
+
module.exports = sort;
|
|
96700
|
+
}));
|
|
96701
|
+
//#endregion
|
|
96702
|
+
//#region ../../node_modules/semver/functions/rsort.js
|
|
96703
|
+
var require_rsort$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96704
|
+
const compareBuild = require_compare_build$1();
|
|
96705
|
+
const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
96706
|
+
module.exports = rsort;
|
|
96707
|
+
}));
|
|
96708
|
+
//#endregion
|
|
96709
|
+
//#region ../../node_modules/semver/functions/gt.js
|
|
96710
|
+
var require_gt$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96711
|
+
const compare = require_compare$1();
|
|
96712
|
+
const gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
96713
|
+
module.exports = gt;
|
|
96714
|
+
}));
|
|
96715
|
+
//#endregion
|
|
96716
|
+
//#region ../../node_modules/semver/functions/lt.js
|
|
96717
|
+
var require_lt$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96718
|
+
const compare = require_compare$1();
|
|
96719
|
+
const lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
96720
|
+
module.exports = lt;
|
|
96721
|
+
}));
|
|
96722
|
+
//#endregion
|
|
96723
|
+
//#region ../../node_modules/semver/functions/eq.js
|
|
96724
|
+
var require_eq$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96725
|
+
const compare = require_compare$1();
|
|
96726
|
+
const eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
96727
|
+
module.exports = eq;
|
|
96728
|
+
}));
|
|
96729
|
+
//#endregion
|
|
96730
|
+
//#region ../../node_modules/semver/functions/neq.js
|
|
96731
|
+
var require_neq$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96732
|
+
const compare = require_compare$1();
|
|
96733
|
+
const neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
96734
|
+
module.exports = neq;
|
|
96735
|
+
}));
|
|
96736
|
+
//#endregion
|
|
96737
|
+
//#region ../../node_modules/semver/functions/gte.js
|
|
96738
|
+
var require_gte$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96739
|
+
const compare = require_compare$1();
|
|
96740
|
+
const gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
96741
|
+
module.exports = gte;
|
|
96742
|
+
}));
|
|
96743
|
+
//#endregion
|
|
96744
|
+
//#region ../../node_modules/semver/functions/lte.js
|
|
96745
|
+
var require_lte$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96746
|
+
const compare = require_compare$1();
|
|
96747
|
+
const lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
96748
|
+
module.exports = lte;
|
|
96749
|
+
}));
|
|
96750
|
+
//#endregion
|
|
96751
|
+
//#region ../../node_modules/semver/functions/cmp.js
|
|
96752
|
+
var require_cmp$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96753
|
+
const eq = require_eq$1();
|
|
96754
|
+
const neq = require_neq$1();
|
|
96755
|
+
const gt = require_gt$1();
|
|
96756
|
+
const gte = require_gte$1();
|
|
96757
|
+
const lt = require_lt$1();
|
|
96758
|
+
const lte = require_lte$1();
|
|
96759
|
+
const cmp = (a, op, b, loose) => {
|
|
96760
|
+
switch (op) {
|
|
96761
|
+
case "===":
|
|
96762
|
+
if (typeof a === "object") a = a.version;
|
|
96763
|
+
if (typeof b === "object") b = b.version;
|
|
96764
|
+
return a === b;
|
|
96765
|
+
case "!==":
|
|
96766
|
+
if (typeof a === "object") a = a.version;
|
|
96767
|
+
if (typeof b === "object") b = b.version;
|
|
96768
|
+
return a !== b;
|
|
96769
|
+
case "":
|
|
96770
|
+
case "=":
|
|
96771
|
+
case "==": return eq(a, b, loose);
|
|
96772
|
+
case "!=": return neq(a, b, loose);
|
|
96773
|
+
case ">": return gt(a, b, loose);
|
|
96774
|
+
case ">=": return gte(a, b, loose);
|
|
96775
|
+
case "<": return lt(a, b, loose);
|
|
96776
|
+
case "<=": return lte(a, b, loose);
|
|
96777
|
+
default: throw new TypeError(`Invalid operator: ${op}`);
|
|
96778
|
+
}
|
|
96779
|
+
};
|
|
96780
|
+
module.exports = cmp;
|
|
96781
|
+
}));
|
|
96782
|
+
//#endregion
|
|
96783
|
+
//#region ../../node_modules/semver/functions/coerce.js
|
|
96784
|
+
var require_coerce$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96785
|
+
const SemVer = require_semver$3();
|
|
96786
|
+
const parse = require_parse$3();
|
|
96787
|
+
const { safeRe: re, t } = require_re$1();
|
|
96788
|
+
const coerce = (version, options) => {
|
|
96789
|
+
if (version instanceof SemVer) return version;
|
|
96790
|
+
if (typeof version === "number") version = String(version);
|
|
96791
|
+
if (typeof version !== "string") return null;
|
|
96792
|
+
options = options || {};
|
|
96793
|
+
let match = null;
|
|
96794
|
+
if (!options.rtl) match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
|
|
96795
|
+
else {
|
|
96796
|
+
const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL];
|
|
96797
|
+
let next;
|
|
96798
|
+
while ((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)) {
|
|
96799
|
+
if (!match || next.index + next[0].length !== match.index + match[0].length) match = next;
|
|
96800
|
+
coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
|
96801
|
+
}
|
|
96802
|
+
coerceRtlRegex.lastIndex = -1;
|
|
96803
|
+
}
|
|
96804
|
+
if (match === null) return null;
|
|
96805
|
+
const major = match[2];
|
|
96806
|
+
return parse(`${major}.${match[3] || "0"}.${match[4] || "0"}${options.includePrerelease && match[5] ? `-${match[5]}` : ""}${options.includePrerelease && match[6] ? `+${match[6]}` : ""}`, options);
|
|
96807
|
+
};
|
|
96808
|
+
module.exports = coerce;
|
|
96809
|
+
}));
|
|
96810
|
+
//#endregion
|
|
96811
|
+
//#region ../../node_modules/semver/functions/truncate.js
|
|
96812
|
+
var require_truncate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96813
|
+
const parse = require_parse$3();
|
|
96814
|
+
const constants = require_constants$5();
|
|
96815
|
+
const SemVer = require_semver$3();
|
|
96816
|
+
const truncate = (version, truncation, options) => {
|
|
96817
|
+
if (!constants.RELEASE_TYPES.includes(truncation)) return null;
|
|
96818
|
+
const clonedVersion = cloneInputVersion(version, options);
|
|
96819
|
+
return clonedVersion && doTruncation(clonedVersion, truncation);
|
|
96820
|
+
};
|
|
96821
|
+
const cloneInputVersion = (version, options) => {
|
|
96822
|
+
return parse(version instanceof SemVer ? version.version : version, options);
|
|
96823
|
+
};
|
|
96824
|
+
const doTruncation = (version, truncation) => {
|
|
96825
|
+
if (isPrerelease(truncation)) return version.version;
|
|
96826
|
+
version.prerelease = [];
|
|
96827
|
+
switch (truncation) {
|
|
96828
|
+
case "major":
|
|
96829
|
+
version.minor = 0;
|
|
96830
|
+
version.patch = 0;
|
|
96831
|
+
break;
|
|
96832
|
+
case "minor":
|
|
96833
|
+
version.patch = 0;
|
|
96834
|
+
break;
|
|
96835
|
+
}
|
|
96836
|
+
return version.format();
|
|
96837
|
+
};
|
|
96838
|
+
const isPrerelease = (type) => {
|
|
96839
|
+
return type.startsWith("pre");
|
|
96840
|
+
};
|
|
96841
|
+
module.exports = truncate;
|
|
96842
|
+
}));
|
|
96843
|
+
//#endregion
|
|
96844
|
+
//#region ../../node_modules/semver/internal/lrucache.js
|
|
96845
|
+
var require_lrucache$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96846
|
+
var LRUCache = class {
|
|
96847
|
+
constructor() {
|
|
96848
|
+
this.max = 1e3;
|
|
96849
|
+
this.map = /* @__PURE__ */ new Map();
|
|
96850
|
+
}
|
|
96851
|
+
get(key) {
|
|
96852
|
+
const value = this.map.get(key);
|
|
96853
|
+
if (value === void 0) return;
|
|
96854
|
+
else {
|
|
96855
|
+
this.map.delete(key);
|
|
96856
|
+
this.map.set(key, value);
|
|
96857
|
+
return value;
|
|
96858
|
+
}
|
|
96859
|
+
}
|
|
96860
|
+
delete(key) {
|
|
96861
|
+
return this.map.delete(key);
|
|
96862
|
+
}
|
|
96863
|
+
set(key, value) {
|
|
96864
|
+
if (!this.delete(key) && value !== void 0) {
|
|
96865
|
+
if (this.map.size >= this.max) {
|
|
96866
|
+
const firstKey = this.map.keys().next().value;
|
|
96867
|
+
this.delete(firstKey);
|
|
96868
|
+
}
|
|
96869
|
+
this.map.set(key, value);
|
|
96870
|
+
}
|
|
96871
|
+
return this;
|
|
96872
|
+
}
|
|
96873
|
+
};
|
|
96874
|
+
module.exports = LRUCache;
|
|
96875
|
+
}));
|
|
96876
|
+
//#endregion
|
|
96877
|
+
//#region ../../node_modules/semver/classes/range.js
|
|
96878
|
+
var require_range$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96879
|
+
const SPACE_CHARACTERS = /\s+/g;
|
|
96880
|
+
module.exports = class Range {
|
|
96881
|
+
constructor(range, options) {
|
|
96882
|
+
options = parseOptions(options);
|
|
96883
|
+
if (range instanceof Range) if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) return range;
|
|
96884
|
+
else return new Range(range.raw, options);
|
|
96885
|
+
if (range instanceof Comparator) {
|
|
96886
|
+
this.raw = range.value;
|
|
96887
|
+
this.set = [[range]];
|
|
96888
|
+
this.formatted = void 0;
|
|
96889
|
+
return this;
|
|
96890
|
+
}
|
|
96891
|
+
this.options = options;
|
|
96892
|
+
this.loose = !!options.loose;
|
|
96893
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
96894
|
+
this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
|
|
96895
|
+
this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
|
|
96896
|
+
if (!this.set.length) throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
96897
|
+
if (this.set.length > 1) {
|
|
96898
|
+
const first = this.set[0];
|
|
96899
|
+
this.set = this.set.filter((c) => !isNullSet(c[0]));
|
|
96900
|
+
if (this.set.length === 0) this.set = [first];
|
|
96901
|
+
else if (this.set.length > 1) {
|
|
96902
|
+
for (const c of this.set) if (c.length === 1 && isAny(c[0])) {
|
|
96903
|
+
this.set = [c];
|
|
96904
|
+
break;
|
|
96905
|
+
}
|
|
96906
|
+
}
|
|
96907
|
+
}
|
|
96908
|
+
this.formatted = void 0;
|
|
96909
|
+
}
|
|
96910
|
+
get range() {
|
|
96911
|
+
if (this.formatted === void 0) {
|
|
96912
|
+
this.formatted = "";
|
|
96913
|
+
for (let i = 0; i < this.set.length; i++) {
|
|
96914
|
+
if (i > 0) this.formatted += "||";
|
|
96915
|
+
const comps = this.set[i];
|
|
96916
|
+
for (let k = 0; k < comps.length; k++) {
|
|
96917
|
+
if (k > 0) this.formatted += " ";
|
|
96918
|
+
this.formatted += comps[k].toString().trim();
|
|
96919
|
+
}
|
|
96920
|
+
}
|
|
96921
|
+
}
|
|
96922
|
+
return this.formatted;
|
|
96923
|
+
}
|
|
96924
|
+
format() {
|
|
96925
|
+
return this.range;
|
|
96926
|
+
}
|
|
96927
|
+
toString() {
|
|
96928
|
+
return this.range;
|
|
96929
|
+
}
|
|
96930
|
+
parseRange(range) {
|
|
96931
|
+
const memoKey = ((this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE)) + ":" + range;
|
|
96932
|
+
const cached = cache.get(memoKey);
|
|
96933
|
+
if (cached) return cached;
|
|
96934
|
+
const loose = this.options.loose;
|
|
96935
|
+
const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
|
|
96936
|
+
range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
|
|
96937
|
+
debug("hyphen replace", range);
|
|
96938
|
+
range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace);
|
|
96939
|
+
debug("comparator trim", range);
|
|
96940
|
+
range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
|
|
96941
|
+
debug("tilde trim", range);
|
|
96942
|
+
range = range.replace(re[t.CARETTRIM], caretTrimReplace);
|
|
96943
|
+
debug("caret trim", range);
|
|
96944
|
+
let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
|
|
96945
|
+
if (loose) rangeList = rangeList.filter((comp) => {
|
|
96946
|
+
debug("loose invalid filter", comp, this.options);
|
|
96947
|
+
return !!comp.match(re[t.COMPARATORLOOSE]);
|
|
96948
|
+
});
|
|
96949
|
+
debug("range list", rangeList);
|
|
96950
|
+
const rangeMap = /* @__PURE__ */ new Map();
|
|
96951
|
+
const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
|
|
96952
|
+
for (const comp of comparators) {
|
|
96953
|
+
if (isNullSet(comp)) return [comp];
|
|
96954
|
+
rangeMap.set(comp.value, comp);
|
|
96955
|
+
}
|
|
96956
|
+
if (rangeMap.size > 1 && rangeMap.has("")) rangeMap.delete("");
|
|
96957
|
+
const result = [...rangeMap.values()];
|
|
96958
|
+
cache.set(memoKey, result);
|
|
96959
|
+
return result;
|
|
96960
|
+
}
|
|
96961
|
+
intersects(range, options) {
|
|
96962
|
+
if (!(range instanceof Range)) throw new TypeError("a Range is required");
|
|
96963
|
+
return this.set.some((thisComparators) => {
|
|
96964
|
+
return isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => {
|
|
96965
|
+
return isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => {
|
|
96966
|
+
return rangeComparators.every((rangeComparator) => {
|
|
96967
|
+
return thisComparator.intersects(rangeComparator, options);
|
|
96968
|
+
});
|
|
96969
|
+
});
|
|
96970
|
+
});
|
|
96971
|
+
});
|
|
96972
|
+
}
|
|
96973
|
+
test(version) {
|
|
96974
|
+
if (!version) return false;
|
|
96975
|
+
if (typeof version === "string") try {
|
|
96976
|
+
version = new SemVer(version, this.options);
|
|
96977
|
+
} catch (er) {
|
|
96978
|
+
return false;
|
|
96979
|
+
}
|
|
96980
|
+
for (let i = 0; i < this.set.length; i++) if (testSet(this.set[i], version, this.options)) return true;
|
|
96981
|
+
return false;
|
|
96982
|
+
}
|
|
96983
|
+
};
|
|
96984
|
+
const cache = new (require_lrucache$1())();
|
|
96985
|
+
const parseOptions = require_parse_options$1();
|
|
96986
|
+
const Comparator = require_comparator$1();
|
|
96987
|
+
const debug = require_debug$1();
|
|
96988
|
+
const SemVer = require_semver$3();
|
|
96989
|
+
const { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re$1();
|
|
96990
|
+
const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants$5();
|
|
96991
|
+
const isNullSet = (c) => c.value === "<0.0.0-0";
|
|
96992
|
+
const isAny = (c) => c.value === "";
|
|
96993
|
+
const isSatisfiable = (comparators, options) => {
|
|
96994
|
+
let result = true;
|
|
96995
|
+
const remainingComparators = comparators.slice();
|
|
96996
|
+
let testComparator = remainingComparators.pop();
|
|
96997
|
+
while (result && remainingComparators.length) {
|
|
96998
|
+
result = remainingComparators.every((otherComparator) => {
|
|
96999
|
+
return testComparator.intersects(otherComparator, options);
|
|
97000
|
+
});
|
|
97001
|
+
testComparator = remainingComparators.pop();
|
|
97002
|
+
}
|
|
97003
|
+
return result;
|
|
97004
|
+
};
|
|
97005
|
+
const parseComparator = (comp, options) => {
|
|
97006
|
+
comp = comp.replace(re[t.BUILD], "");
|
|
97007
|
+
debug("comp", comp, options);
|
|
97008
|
+
comp = replaceCarets(comp, options);
|
|
97009
|
+
debug("caret", comp);
|
|
97010
|
+
comp = replaceTildes(comp, options);
|
|
97011
|
+
debug("tildes", comp);
|
|
97012
|
+
comp = replaceXRanges(comp, options);
|
|
97013
|
+
debug("xrange", comp);
|
|
97014
|
+
comp = replaceStars(comp, options);
|
|
97015
|
+
debug("stars", comp);
|
|
97016
|
+
return comp;
|
|
97017
|
+
};
|
|
97018
|
+
const isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
|
|
97019
|
+
const replaceTildes = (comp, options) => {
|
|
97020
|
+
return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
|
|
97021
|
+
};
|
|
97022
|
+
const replaceTilde = (comp, options) => {
|
|
97023
|
+
const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
|
|
97024
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
97025
|
+
debug("tilde", comp, _, M, m, p, pr);
|
|
97026
|
+
let ret;
|
|
97027
|
+
if (isX(M)) ret = "";
|
|
97028
|
+
else if (isX(m)) ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
|
|
97029
|
+
else if (isX(p)) ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
|
|
97030
|
+
else if (pr) {
|
|
97031
|
+
debug("replaceTilde pr", pr);
|
|
97032
|
+
ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
97033
|
+
} else ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
|
|
97034
|
+
debug("tilde return", ret);
|
|
97035
|
+
return ret;
|
|
97036
|
+
});
|
|
97037
|
+
};
|
|
97038
|
+
const replaceCarets = (comp, options) => {
|
|
97039
|
+
return comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" ");
|
|
97040
|
+
};
|
|
97041
|
+
const replaceCaret = (comp, options) => {
|
|
97042
|
+
debug("caret", comp, options);
|
|
97043
|
+
const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET];
|
|
97044
|
+
const z = options.includePrerelease ? "-0" : "";
|
|
97045
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
97046
|
+
debug("caret", comp, _, M, m, p, pr);
|
|
97047
|
+
let ret;
|
|
97048
|
+
if (isX(M)) ret = "";
|
|
97049
|
+
else if (isX(m)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
|
|
97050
|
+
else if (isX(p)) if (M === "0") ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
|
|
97051
|
+
else ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
|
|
97052
|
+
else if (pr) {
|
|
97053
|
+
debug("replaceCaret pr", pr);
|
|
97054
|
+
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;
|
|
97055
|
+
else ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
97056
|
+
else ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
|
|
97057
|
+
} else {
|
|
97058
|
+
debug("no pr");
|
|
97059
|
+
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0`;
|
|
97060
|
+
else ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0`;
|
|
97061
|
+
else ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
|
|
97062
|
+
}
|
|
97063
|
+
debug("caret return", ret);
|
|
97064
|
+
return ret;
|
|
97065
|
+
});
|
|
97066
|
+
};
|
|
97067
|
+
const replaceXRanges = (comp, options) => {
|
|
97068
|
+
debug("replaceXRanges", comp, options);
|
|
97069
|
+
return comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ");
|
|
97070
|
+
};
|
|
97071
|
+
const replaceXRange = (comp, options) => {
|
|
97072
|
+
comp = comp.trim();
|
|
97073
|
+
const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
|
|
97074
|
+
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
|
|
97075
|
+
debug("xRange", comp, ret, gtlt, M, m, p, pr);
|
|
97076
|
+
const xM = isX(M);
|
|
97077
|
+
const xm = xM || isX(m);
|
|
97078
|
+
const xp = xm || isX(p);
|
|
97079
|
+
const anyX = xp;
|
|
97080
|
+
if (gtlt === "=" && anyX) gtlt = "";
|
|
97081
|
+
pr = options.includePrerelease ? "-0" : "";
|
|
97082
|
+
if (xM) if (gtlt === ">" || gtlt === "<") ret = "<0.0.0-0";
|
|
97083
|
+
else ret = "*";
|
|
97084
|
+
else if (gtlt && anyX) {
|
|
97085
|
+
if (xm) m = 0;
|
|
97086
|
+
p = 0;
|
|
97087
|
+
if (gtlt === ">") {
|
|
97088
|
+
gtlt = ">=";
|
|
97089
|
+
if (xm) {
|
|
97090
|
+
M = +M + 1;
|
|
97091
|
+
m = 0;
|
|
97092
|
+
p = 0;
|
|
97093
|
+
} else {
|
|
97094
|
+
m = +m + 1;
|
|
97095
|
+
p = 0;
|
|
97096
|
+
}
|
|
97097
|
+
} else if (gtlt === "<=") {
|
|
97098
|
+
gtlt = "<";
|
|
97099
|
+
if (xm) M = +M + 1;
|
|
97100
|
+
else m = +m + 1;
|
|
97101
|
+
}
|
|
97102
|
+
if (gtlt === "<") pr = "-0";
|
|
97103
|
+
ret = `${gtlt + M}.${m}.${p}${pr}`;
|
|
97104
|
+
} else if (xm) ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
|
|
97105
|
+
else if (xp) ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;
|
|
97106
|
+
debug("xRange return", ret);
|
|
97107
|
+
return ret;
|
|
97108
|
+
});
|
|
97109
|
+
};
|
|
97110
|
+
const replaceStars = (comp, options) => {
|
|
97111
|
+
debug("replaceStars", comp, options);
|
|
97112
|
+
return comp.trim().replace(re[t.STAR], "");
|
|
97113
|
+
};
|
|
97114
|
+
const replaceGTE0 = (comp, options) => {
|
|
97115
|
+
debug("replaceGTE0", comp, options);
|
|
97116
|
+
return comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
|
|
97117
|
+
};
|
|
97118
|
+
const hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
|
|
97119
|
+
if (isX(fM)) from = "";
|
|
97120
|
+
else if (isX(fm)) from = `>=${fM}.0.0${incPr ? "-0" : ""}`;
|
|
97121
|
+
else if (isX(fp)) from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}`;
|
|
97122
|
+
else if (fpr) from = `>=${from}`;
|
|
97123
|
+
else from = `>=${from}${incPr ? "-0" : ""}`;
|
|
97124
|
+
if (isX(tM)) to = "";
|
|
97125
|
+
else if (isX(tm)) to = `<${+tM + 1}.0.0-0`;
|
|
97126
|
+
else if (isX(tp)) to = `<${tM}.${+tm + 1}.0-0`;
|
|
97127
|
+
else if (tpr) to = `<=${tM}.${tm}.${tp}-${tpr}`;
|
|
97128
|
+
else if (incPr) to = `<${tM}.${tm}.${+tp + 1}-0`;
|
|
97129
|
+
else to = `<=${to}`;
|
|
97130
|
+
return `${from} ${to}`.trim();
|
|
97131
|
+
};
|
|
97132
|
+
const testSet = (set, version, options) => {
|
|
97133
|
+
for (let i = 0; i < set.length; i++) if (!set[i].test(version)) return false;
|
|
97134
|
+
if (version.prerelease.length && !options.includePrerelease) {
|
|
97135
|
+
for (let i = 0; i < set.length; i++) {
|
|
97136
|
+
debug(set[i].semver);
|
|
97137
|
+
if (set[i].semver === Comparator.ANY) continue;
|
|
97138
|
+
if (set[i].semver.prerelease.length > 0) {
|
|
97139
|
+
const allowed = set[i].semver;
|
|
97140
|
+
if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) return true;
|
|
97141
|
+
}
|
|
97142
|
+
}
|
|
97143
|
+
return false;
|
|
97144
|
+
}
|
|
97145
|
+
return true;
|
|
97146
|
+
};
|
|
97147
|
+
}));
|
|
97148
|
+
//#endregion
|
|
97149
|
+
//#region ../../node_modules/semver/classes/comparator.js
|
|
97150
|
+
var require_comparator$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97151
|
+
const ANY = Symbol("SemVer ANY");
|
|
97152
|
+
module.exports = class Comparator {
|
|
97153
|
+
static get ANY() {
|
|
97154
|
+
return ANY;
|
|
97155
|
+
}
|
|
97156
|
+
constructor(comp, options) {
|
|
97157
|
+
options = parseOptions(options);
|
|
97158
|
+
if (comp instanceof Comparator) if (comp.loose === !!options.loose) return comp;
|
|
97159
|
+
else comp = comp.value;
|
|
97160
|
+
comp = comp.trim().split(/\s+/).join(" ");
|
|
97161
|
+
debug("comparator", comp, options);
|
|
97162
|
+
this.options = options;
|
|
97163
|
+
this.loose = !!options.loose;
|
|
97164
|
+
this.parse(comp);
|
|
97165
|
+
if (this.semver === ANY) this.value = "";
|
|
97166
|
+
else this.value = this.operator + this.semver.version;
|
|
97167
|
+
debug("comp", this);
|
|
97168
|
+
}
|
|
97169
|
+
parse(comp) {
|
|
97170
|
+
const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR];
|
|
97171
|
+
const m = comp.match(r);
|
|
97172
|
+
if (!m) throw new TypeError(`Invalid comparator: ${comp}`);
|
|
97173
|
+
this.operator = m[1] !== void 0 ? m[1] : "";
|
|
97174
|
+
if (this.operator === "=") this.operator = "";
|
|
97175
|
+
if (!m[2]) this.semver = ANY;
|
|
97176
|
+
else this.semver = new SemVer(m[2], this.options.loose);
|
|
97177
|
+
}
|
|
97178
|
+
toString() {
|
|
97179
|
+
return this.value;
|
|
97180
|
+
}
|
|
97181
|
+
test(version) {
|
|
97182
|
+
debug("Comparator.test", version, this.options.loose);
|
|
97183
|
+
if (this.semver === ANY || version === ANY) return true;
|
|
97184
|
+
if (typeof version === "string") try {
|
|
97185
|
+
version = new SemVer(version, this.options);
|
|
97186
|
+
} catch (er) {
|
|
97187
|
+
return false;
|
|
97188
|
+
}
|
|
97189
|
+
return cmp(version, this.operator, this.semver, this.options);
|
|
97190
|
+
}
|
|
97191
|
+
intersects(comp, options) {
|
|
97192
|
+
if (!(comp instanceof Comparator)) throw new TypeError("a Comparator is required");
|
|
97193
|
+
if (this.operator === "") {
|
|
97194
|
+
if (this.value === "") return true;
|
|
97195
|
+
return new Range(comp.value, options).test(this.value);
|
|
97196
|
+
} else if (comp.operator === "") {
|
|
97197
|
+
if (comp.value === "") return true;
|
|
97198
|
+
return new Range(this.value, options).test(comp.semver);
|
|
97199
|
+
}
|
|
97200
|
+
options = parseOptions(options);
|
|
97201
|
+
if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) return false;
|
|
97202
|
+
if (!options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0"))) return false;
|
|
97203
|
+
if (this.operator.startsWith(">") && comp.operator.startsWith(">")) return true;
|
|
97204
|
+
if (this.operator.startsWith("<") && comp.operator.startsWith("<")) return true;
|
|
97205
|
+
if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) return true;
|
|
97206
|
+
if (cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) return true;
|
|
97207
|
+
if (cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) return true;
|
|
97208
|
+
return false;
|
|
97209
|
+
}
|
|
97210
|
+
};
|
|
97211
|
+
const parseOptions = require_parse_options$1();
|
|
97212
|
+
const { safeRe: re, t } = require_re$1();
|
|
97213
|
+
const cmp = require_cmp$1();
|
|
97214
|
+
const debug = require_debug$1();
|
|
97215
|
+
const SemVer = require_semver$3();
|
|
97216
|
+
const Range = require_range$1();
|
|
97217
|
+
}));
|
|
97218
|
+
//#endregion
|
|
97219
|
+
//#region ../../node_modules/semver/functions/satisfies.js
|
|
97220
|
+
var require_satisfies$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97221
|
+
const Range = require_range$1();
|
|
97222
|
+
const satisfies = (version, range, options) => {
|
|
97223
|
+
try {
|
|
97224
|
+
range = new Range(range, options);
|
|
97225
|
+
} catch (er) {
|
|
97226
|
+
return false;
|
|
97227
|
+
}
|
|
97228
|
+
return range.test(version);
|
|
97229
|
+
};
|
|
97230
|
+
module.exports = satisfies;
|
|
97231
|
+
}));
|
|
97232
|
+
//#endregion
|
|
97233
|
+
//#region ../../node_modules/semver/ranges/to-comparators.js
|
|
97234
|
+
var require_to_comparators$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97235
|
+
const Range = require_range$1();
|
|
97236
|
+
const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
97237
|
+
module.exports = toComparators;
|
|
97238
|
+
}));
|
|
97239
|
+
//#endregion
|
|
97240
|
+
//#region ../../node_modules/semver/ranges/max-satisfying.js
|
|
97241
|
+
var require_max_satisfying$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97242
|
+
const SemVer = require_semver$3();
|
|
97243
|
+
const Range = require_range$1();
|
|
97244
|
+
const maxSatisfying = (versions, range, options) => {
|
|
97245
|
+
let max = null;
|
|
97246
|
+
let maxSV = null;
|
|
97247
|
+
let rangeObj = null;
|
|
97248
|
+
try {
|
|
97249
|
+
rangeObj = new Range(range, options);
|
|
97250
|
+
} catch (er) {
|
|
97251
|
+
return null;
|
|
97252
|
+
}
|
|
97253
|
+
versions.forEach((v) => {
|
|
97254
|
+
if (rangeObj.test(v)) {
|
|
97255
|
+
if (!max || maxSV.compare(v) === -1) {
|
|
97256
|
+
max = v;
|
|
97257
|
+
maxSV = new SemVer(max, options);
|
|
97258
|
+
}
|
|
97259
|
+
}
|
|
97260
|
+
});
|
|
97261
|
+
return max;
|
|
97262
|
+
};
|
|
97263
|
+
module.exports = maxSatisfying;
|
|
97264
|
+
}));
|
|
97265
|
+
//#endregion
|
|
97266
|
+
//#region ../../node_modules/semver/ranges/min-satisfying.js
|
|
97267
|
+
var require_min_satisfying$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97268
|
+
const SemVer = require_semver$3();
|
|
97269
|
+
const Range = require_range$1();
|
|
97270
|
+
const minSatisfying = (versions, range, options) => {
|
|
97271
|
+
let min = null;
|
|
97272
|
+
let minSV = null;
|
|
97273
|
+
let rangeObj = null;
|
|
97274
|
+
try {
|
|
97275
|
+
rangeObj = new Range(range, options);
|
|
97276
|
+
} catch (er) {
|
|
97277
|
+
return null;
|
|
97278
|
+
}
|
|
97279
|
+
versions.forEach((v) => {
|
|
97280
|
+
if (rangeObj.test(v)) {
|
|
97281
|
+
if (!min || minSV.compare(v) === 1) {
|
|
97282
|
+
min = v;
|
|
97283
|
+
minSV = new SemVer(min, options);
|
|
97284
|
+
}
|
|
97285
|
+
}
|
|
97286
|
+
});
|
|
97287
|
+
return min;
|
|
97288
|
+
};
|
|
97289
|
+
module.exports = minSatisfying;
|
|
97290
|
+
}));
|
|
97291
|
+
//#endregion
|
|
97292
|
+
//#region ../../node_modules/semver/ranges/min-version.js
|
|
97293
|
+
var require_min_version$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97294
|
+
const SemVer = require_semver$3();
|
|
97295
|
+
const Range = require_range$1();
|
|
97296
|
+
const gt = require_gt$1();
|
|
97297
|
+
const minVersion = (range, loose) => {
|
|
97298
|
+
range = new Range(range, loose);
|
|
97299
|
+
let minver = new SemVer("0.0.0");
|
|
97300
|
+
if (range.test(minver)) return minver;
|
|
97301
|
+
minver = new SemVer("0.0.0-0");
|
|
97302
|
+
if (range.test(minver)) return minver;
|
|
97303
|
+
minver = null;
|
|
97304
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
97305
|
+
const comparators = range.set[i];
|
|
97306
|
+
let setMin = null;
|
|
97307
|
+
comparators.forEach((comparator) => {
|
|
97308
|
+
const compver = new SemVer(comparator.semver.version);
|
|
97309
|
+
switch (comparator.operator) {
|
|
97310
|
+
case ">":
|
|
97311
|
+
if (compver.prerelease.length === 0) compver.patch++;
|
|
97312
|
+
else compver.prerelease.push(0);
|
|
97313
|
+
compver.raw = compver.format();
|
|
97314
|
+
case "":
|
|
97315
|
+
case ">=":
|
|
97316
|
+
if (!setMin || gt(compver, setMin)) setMin = compver;
|
|
97317
|
+
break;
|
|
97318
|
+
case "<":
|
|
97319
|
+
case "<=": break;
|
|
97320
|
+
default: throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
97321
|
+
}
|
|
97322
|
+
});
|
|
97323
|
+
if (setMin && (!minver || gt(minver, setMin))) minver = setMin;
|
|
97324
|
+
}
|
|
97325
|
+
if (minver && range.test(minver)) return minver;
|
|
97326
|
+
return null;
|
|
97327
|
+
};
|
|
97328
|
+
module.exports = minVersion;
|
|
97329
|
+
}));
|
|
97330
|
+
//#endregion
|
|
97331
|
+
//#region ../../node_modules/semver/ranges/valid.js
|
|
97332
|
+
var require_valid$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97333
|
+
const Range = require_range$1();
|
|
97334
|
+
const validRange = (range, options) => {
|
|
97335
|
+
try {
|
|
97336
|
+
return new Range(range, options).range || "*";
|
|
97337
|
+
} catch (er) {
|
|
97338
|
+
return null;
|
|
97339
|
+
}
|
|
97340
|
+
};
|
|
97341
|
+
module.exports = validRange;
|
|
97342
|
+
}));
|
|
97343
|
+
//#endregion
|
|
97344
|
+
//#region ../../node_modules/semver/ranges/outside.js
|
|
97345
|
+
var require_outside$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97346
|
+
const SemVer = require_semver$3();
|
|
97347
|
+
const Comparator = require_comparator$1();
|
|
97348
|
+
const { ANY } = Comparator;
|
|
97349
|
+
const Range = require_range$1();
|
|
97350
|
+
const satisfies = require_satisfies$1();
|
|
97351
|
+
const gt = require_gt$1();
|
|
97352
|
+
const lt = require_lt$1();
|
|
97353
|
+
const lte = require_lte$1();
|
|
97354
|
+
const gte = require_gte$1();
|
|
97355
|
+
const outside = (version, range, hilo, options) => {
|
|
97356
|
+
version = new SemVer(version, options);
|
|
97357
|
+
range = new Range(range, options);
|
|
97358
|
+
let gtfn, ltefn, ltfn, comp, ecomp;
|
|
97359
|
+
switch (hilo) {
|
|
97360
|
+
case ">":
|
|
97361
|
+
gtfn = gt;
|
|
97362
|
+
ltefn = lte;
|
|
97363
|
+
ltfn = lt;
|
|
97364
|
+
comp = ">";
|
|
97365
|
+
ecomp = ">=";
|
|
97366
|
+
break;
|
|
97367
|
+
case "<":
|
|
97368
|
+
gtfn = lt;
|
|
97369
|
+
ltefn = gte;
|
|
97370
|
+
ltfn = gt;
|
|
97371
|
+
comp = "<";
|
|
97372
|
+
ecomp = "<=";
|
|
97373
|
+
break;
|
|
97374
|
+
default: throw new TypeError("Must provide a hilo val of \"<\" or \">\"");
|
|
97375
|
+
}
|
|
97376
|
+
if (satisfies(version, range, options)) return false;
|
|
97377
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
97378
|
+
const comparators = range.set[i];
|
|
97379
|
+
let high = null;
|
|
97380
|
+
let low = null;
|
|
97381
|
+
comparators.forEach((comparator) => {
|
|
97382
|
+
if (comparator.semver === ANY) comparator = new Comparator(">=0.0.0");
|
|
97383
|
+
high = high || comparator;
|
|
97384
|
+
low = low || comparator;
|
|
97385
|
+
if (gtfn(comparator.semver, high.semver, options)) high = comparator;
|
|
97386
|
+
else if (ltfn(comparator.semver, low.semver, options)) low = comparator;
|
|
97387
|
+
});
|
|
97388
|
+
if (high.operator === comp || high.operator === ecomp) return false;
|
|
97389
|
+
if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) return false;
|
|
97390
|
+
else if (low.operator === ecomp && ltfn(version, low.semver)) return false;
|
|
97391
|
+
}
|
|
97392
|
+
return true;
|
|
97393
|
+
};
|
|
97394
|
+
module.exports = outside;
|
|
97395
|
+
}));
|
|
97396
|
+
//#endregion
|
|
97397
|
+
//#region ../../node_modules/semver/ranges/gtr.js
|
|
97398
|
+
var require_gtr$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97399
|
+
const outside = require_outside$1();
|
|
97400
|
+
const gtr = (version, range, options) => outside(version, range, ">", options);
|
|
97401
|
+
module.exports = gtr;
|
|
97402
|
+
}));
|
|
97403
|
+
//#endregion
|
|
97404
|
+
//#region ../../node_modules/semver/ranges/ltr.js
|
|
97405
|
+
var require_ltr$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97406
|
+
const outside = require_outside$1();
|
|
97407
|
+
const ltr = (version, range, options) => outside(version, range, "<", options);
|
|
97408
|
+
module.exports = ltr;
|
|
97409
|
+
}));
|
|
97410
|
+
//#endregion
|
|
97411
|
+
//#region ../../node_modules/semver/ranges/intersects.js
|
|
97412
|
+
var require_intersects$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97413
|
+
const Range = require_range$1();
|
|
97414
|
+
const intersects = (r1, r2, options) => {
|
|
97415
|
+
r1 = new Range(r1, options);
|
|
97416
|
+
r2 = new Range(r2, options);
|
|
97417
|
+
return r1.intersects(r2, options);
|
|
97418
|
+
};
|
|
97419
|
+
module.exports = intersects;
|
|
97420
|
+
}));
|
|
97421
|
+
//#endregion
|
|
97422
|
+
//#region ../../node_modules/semver/ranges/simplify.js
|
|
97423
|
+
var require_simplify$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97424
|
+
const satisfies = require_satisfies$1();
|
|
97425
|
+
const compare = require_compare$1();
|
|
97426
|
+
module.exports = (versions, range, options) => {
|
|
97427
|
+
const set = [];
|
|
97428
|
+
let first = null;
|
|
97429
|
+
let prev = null;
|
|
97430
|
+
const v = versions.sort((a, b) => compare(a, b, options));
|
|
97431
|
+
for (const version of v) if (satisfies(version, range, options)) {
|
|
97432
|
+
prev = version;
|
|
97433
|
+
if (!first) first = version;
|
|
97434
|
+
} else {
|
|
97435
|
+
if (prev) set.push([first, prev]);
|
|
97436
|
+
prev = null;
|
|
97437
|
+
first = null;
|
|
97438
|
+
}
|
|
97439
|
+
if (first) set.push([first, null]);
|
|
97440
|
+
const ranges = [];
|
|
97441
|
+
for (const [min, max] of set) if (min === max) ranges.push(min);
|
|
97442
|
+
else if (!max && min === v[0]) ranges.push("*");
|
|
97443
|
+
else if (!max) ranges.push(`>=${min}`);
|
|
97444
|
+
else if (min === v[0]) ranges.push(`<=${max}`);
|
|
97445
|
+
else ranges.push(`${min} - ${max}`);
|
|
97446
|
+
const simplified = ranges.join(" || ");
|
|
97447
|
+
const original = typeof range.raw === "string" ? range.raw : String(range);
|
|
97448
|
+
return simplified.length < original.length ? simplified : range;
|
|
97449
|
+
};
|
|
97450
|
+
}));
|
|
97451
|
+
//#endregion
|
|
97452
|
+
//#region ../../node_modules/semver/ranges/subset.js
|
|
97453
|
+
var require_subset$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97454
|
+
const Range = require_range$1();
|
|
97455
|
+
const Comparator = require_comparator$1();
|
|
97456
|
+
const { ANY } = Comparator;
|
|
97457
|
+
const satisfies = require_satisfies$1();
|
|
97458
|
+
const compare = require_compare$1();
|
|
97459
|
+
const subset = (sub, dom, options = {}) => {
|
|
97460
|
+
if (sub === dom) return true;
|
|
97461
|
+
sub = new Range(sub, options);
|
|
97462
|
+
dom = new Range(dom, options);
|
|
97463
|
+
let sawNonNull = false;
|
|
97464
|
+
OUTER: for (const simpleSub of sub.set) {
|
|
97465
|
+
for (const simpleDom of dom.set) {
|
|
97466
|
+
const isSub = simpleSubset(simpleSub, simpleDom, options);
|
|
97467
|
+
sawNonNull = sawNonNull || isSub !== null;
|
|
97468
|
+
if (isSub) continue OUTER;
|
|
97469
|
+
}
|
|
97470
|
+
if (sawNonNull) return false;
|
|
97471
|
+
}
|
|
97472
|
+
return true;
|
|
97473
|
+
};
|
|
97474
|
+
const minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")];
|
|
97475
|
+
const minimumVersion = [new Comparator(">=0.0.0")];
|
|
97476
|
+
const simpleSubset = (sub, dom, options) => {
|
|
97477
|
+
if (sub === dom) return true;
|
|
97478
|
+
if (sub.length === 1 && sub[0].semver === ANY) if (dom.length === 1 && dom[0].semver === ANY) return true;
|
|
97479
|
+
else if (options.includePrerelease) sub = minimumVersionWithPreRelease;
|
|
97480
|
+
else sub = minimumVersion;
|
|
97481
|
+
if (dom.length === 1 && dom[0].semver === ANY) if (options.includePrerelease) return true;
|
|
97482
|
+
else dom = minimumVersion;
|
|
97483
|
+
const eqSet = /* @__PURE__ */ new Set();
|
|
97484
|
+
let gt, lt;
|
|
97485
|
+
for (const c of sub) if (c.operator === ">" || c.operator === ">=") gt = higherGT(gt, c, options);
|
|
97486
|
+
else if (c.operator === "<" || c.operator === "<=") lt = lowerLT(lt, c, options);
|
|
97487
|
+
else eqSet.add(c.semver);
|
|
97488
|
+
if (eqSet.size > 1) return null;
|
|
97489
|
+
let gtltComp;
|
|
97490
|
+
if (gt && lt) {
|
|
97491
|
+
gtltComp = compare(gt.semver, lt.semver, options);
|
|
97492
|
+
if (gtltComp > 0) return null;
|
|
97493
|
+
else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) return null;
|
|
97494
|
+
}
|
|
97495
|
+
for (const eq of eqSet) {
|
|
97496
|
+
if (gt && !satisfies(eq, String(gt), options)) return null;
|
|
97497
|
+
if (lt && !satisfies(eq, String(lt), options)) return null;
|
|
97498
|
+
for (const c of dom) if (!satisfies(eq, String(c), options)) return false;
|
|
97499
|
+
return true;
|
|
97500
|
+
}
|
|
97501
|
+
let higher, lower;
|
|
97502
|
+
let hasDomLT, hasDomGT;
|
|
97503
|
+
let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;
|
|
97504
|
+
let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;
|
|
97505
|
+
if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0) needDomLTPre = false;
|
|
97506
|
+
for (const c of dom) {
|
|
97507
|
+
hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=";
|
|
97508
|
+
hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=";
|
|
97509
|
+
if (gt) {
|
|
97510
|
+
if (needDomGTPre) {
|
|
97511
|
+
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;
|
|
97512
|
+
}
|
|
97513
|
+
if (c.operator === ">" || c.operator === ">=") {
|
|
97514
|
+
higher = higherGT(gt, c, options);
|
|
97515
|
+
if (higher === c && higher !== gt) return false;
|
|
97516
|
+
} else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options)) return false;
|
|
97517
|
+
}
|
|
97518
|
+
if (lt) {
|
|
97519
|
+
if (needDomLTPre) {
|
|
97520
|
+
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;
|
|
97521
|
+
}
|
|
97522
|
+
if (c.operator === "<" || c.operator === "<=") {
|
|
97523
|
+
lower = lowerLT(lt, c, options);
|
|
97524
|
+
if (lower === c && lower !== lt) return false;
|
|
97525
|
+
} else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options)) return false;
|
|
97526
|
+
}
|
|
97527
|
+
if (!c.operator && (lt || gt) && gtltComp !== 0) return false;
|
|
97528
|
+
}
|
|
97529
|
+
if (gt && hasDomLT && !lt && gtltComp !== 0) return false;
|
|
97530
|
+
if (lt && hasDomGT && !gt && gtltComp !== 0) return false;
|
|
97531
|
+
if (needDomGTPre || needDomLTPre) return false;
|
|
97532
|
+
return true;
|
|
97533
|
+
};
|
|
97534
|
+
const higherGT = (a, b, options) => {
|
|
97535
|
+
if (!a) return b;
|
|
97536
|
+
const comp = compare(a.semver, b.semver, options);
|
|
97537
|
+
return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
|
|
97538
|
+
};
|
|
97539
|
+
const lowerLT = (a, b, options) => {
|
|
97540
|
+
if (!a) return b;
|
|
97541
|
+
const comp = compare(a.semver, b.semver, options);
|
|
97542
|
+
return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
|
|
97543
|
+
};
|
|
97544
|
+
module.exports = subset;
|
|
97545
|
+
}));
|
|
97546
|
+
//#endregion
|
|
97547
|
+
//#region ../../node_modules/semver/index.js
|
|
97548
|
+
var require_semver$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97549
|
+
const internalRe = require_re$1();
|
|
97550
|
+
const constants = require_constants$5();
|
|
97551
|
+
const SemVer = require_semver$3();
|
|
97552
|
+
const identifiers = require_identifiers$1();
|
|
97553
|
+
module.exports = {
|
|
97554
|
+
parse: require_parse$3(),
|
|
97555
|
+
valid: require_valid$3(),
|
|
97556
|
+
clean: require_clean$1(),
|
|
97557
|
+
inc: require_inc$1(),
|
|
97558
|
+
diff: require_diff$1(),
|
|
97559
|
+
major: require_major$1(),
|
|
97560
|
+
minor: require_minor$1(),
|
|
97561
|
+
patch: require_patch$1(),
|
|
97562
|
+
prerelease: require_prerelease$1(),
|
|
97563
|
+
compare: require_compare$1(),
|
|
97564
|
+
rcompare: require_rcompare$1(),
|
|
97565
|
+
compareLoose: require_compare_loose$1(),
|
|
97566
|
+
compareBuild: require_compare_build$1(),
|
|
97567
|
+
sort: require_sort$2(),
|
|
97568
|
+
rsort: require_rsort$1(),
|
|
97569
|
+
gt: require_gt$1(),
|
|
97570
|
+
lt: require_lt$1(),
|
|
97571
|
+
eq: require_eq$1(),
|
|
97572
|
+
neq: require_neq$1(),
|
|
97573
|
+
gte: require_gte$1(),
|
|
97574
|
+
lte: require_lte$1(),
|
|
97575
|
+
cmp: require_cmp$1(),
|
|
97576
|
+
coerce: require_coerce$1(),
|
|
97577
|
+
truncate: require_truncate(),
|
|
97578
|
+
Comparator: require_comparator$1(),
|
|
97579
|
+
Range: require_range$1(),
|
|
97580
|
+
satisfies: require_satisfies$1(),
|
|
97581
|
+
toComparators: require_to_comparators$1(),
|
|
97582
|
+
maxSatisfying: require_max_satisfying$1(),
|
|
97583
|
+
minSatisfying: require_min_satisfying$1(),
|
|
97584
|
+
minVersion: require_min_version$1(),
|
|
97585
|
+
validRange: require_valid$2(),
|
|
97586
|
+
outside: require_outside$1(),
|
|
97587
|
+
gtr: require_gtr$1(),
|
|
97588
|
+
ltr: require_ltr$1(),
|
|
97589
|
+
intersects: require_intersects$1(),
|
|
97590
|
+
simplifyRange: require_simplify$1(),
|
|
97591
|
+
subset: require_subset$1(),
|
|
97592
|
+
SemVer,
|
|
97593
|
+
re: internalRe.re,
|
|
97594
|
+
src: internalRe.src,
|
|
97595
|
+
tokens: internalRe.t,
|
|
97596
|
+
SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
|
|
97597
|
+
RELEASE_TYPES: constants.RELEASE_TYPES,
|
|
97598
|
+
compareIdentifiers: identifiers.compareIdentifiers,
|
|
97599
|
+
rcompareIdentifiers: identifiers.rcompareIdentifiers
|
|
97600
|
+
};
|
|
97601
|
+
}));
|
|
97602
|
+
//#endregion
|
|
96063
97603
|
//#region ../../node_modules/@npmcli/git/lib/lines-to-revs.js
|
|
96064
97604
|
var require_lines_to_revs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96065
|
-
const semver = require_semver();
|
|
97605
|
+
const semver = require_semver$2();
|
|
96066
97606
|
module.exports = (lines) => finish(lines.reduce(linesToRevsReducer, {
|
|
96067
97607
|
versions: {},
|
|
96068
97608
|
"dist-tags": {},
|
|
@@ -96329,7 +97869,7 @@ var require_npa = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
96329
97869
|
const path$18 = isWindows ? __require("node:path/win32") : __require("node:path");
|
|
96330
97870
|
const { homedir: homedir$1 } = __require("node:os");
|
|
96331
97871
|
const HostedGit = require_lib$28();
|
|
96332
|
-
const semver = require_semver();
|
|
97872
|
+
const semver = require_semver$2();
|
|
96333
97873
|
const validatePackageName = require_lib$23();
|
|
96334
97874
|
const { log } = require_lib$29();
|
|
96335
97875
|
const hasSlashes = isWindows ? /\\|[/]/ : /[/]/;
|
|
@@ -96702,8 +98242,8 @@ var require_current_env = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
96702
98242
|
//#endregion
|
|
96703
98243
|
//#region ../../node_modules/npm-install-checks/lib/dev-engines.js
|
|
96704
98244
|
var require_dev_engines = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96705
|
-
const satisfies = require_satisfies();
|
|
96706
|
-
const validRange = require_valid();
|
|
98245
|
+
const satisfies = require_satisfies$1();
|
|
98246
|
+
const validRange = require_valid$2();
|
|
96707
98247
|
const recognizedOnFail = [
|
|
96708
98248
|
"ignore",
|
|
96709
98249
|
"warn",
|
|
@@ -96783,7 +98323,7 @@ var require_dev_engines = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
96783
98323
|
//#endregion
|
|
96784
98324
|
//#region ../../node_modules/npm-install-checks/lib/index.js
|
|
96785
98325
|
var require_lib$22 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96786
|
-
const semver = require_semver();
|
|
98326
|
+
const semver = require_semver$2();
|
|
96787
98327
|
const currentEnv = require_current_env();
|
|
96788
98328
|
const { checkDevEngines } = require_dev_engines();
|
|
96789
98329
|
const checkEngine = (target, npmVer, nodeVer, force = false) => {
|
|
@@ -96892,7 +98432,7 @@ var require_lib$21 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
96892
98432
|
//#region ../../node_modules/npm-pick-manifest/lib/index.js
|
|
96893
98433
|
var require_lib$20 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96894
98434
|
const npa = require_npa();
|
|
96895
|
-
const semver = require_semver();
|
|
98435
|
+
const semver = require_semver$2();
|
|
96896
98436
|
const { checkEngine } = require_lib$22();
|
|
96897
98437
|
const normalizeBin = require_lib$21();
|
|
96898
98438
|
const engineOk = (manifest, npmVersion, nodeVersion) => {
|
|
@@ -97186,8 +98726,8 @@ var require_lib$19 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
97186
98726
|
//#endregion
|
|
97187
98727
|
//#region ../../node_modules/@npmcli/package-json/lib/normalize.js
|
|
97188
98728
|
var require_normalize = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97189
|
-
const valid = require_valid$
|
|
97190
|
-
const clean = require_clean();
|
|
98729
|
+
const valid = require_valid$3();
|
|
98730
|
+
const clean = require_clean$1();
|
|
97191
98731
|
const fs$14 = __require("node:fs/promises");
|
|
97192
98732
|
const path$16 = __require("node:path");
|
|
97193
98733
|
const { log } = require_lib$29();
|
|
@@ -97618,7 +99158,7 @@ var require_read_package = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
97618
99158
|
}));
|
|
97619
99159
|
//#endregion
|
|
97620
99160
|
//#region ../../node_modules/@npmcli/package-json/lib/sort.js
|
|
97621
|
-
var require_sort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
99161
|
+
var require_sort$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97622
99162
|
/**
|
|
97623
99163
|
* arbitrary sort order for package.json largely pulled from:
|
|
97624
99164
|
* https://github.com/keithamus/sort-package-json/blob/main/defaultRules.md
|
|
@@ -97686,7 +99226,7 @@ var require_lib$18 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
97686
99226
|
const updateWorkspaces = require_update_workspaces();
|
|
97687
99227
|
const { normalize, syncNormalize } = require_normalize();
|
|
97688
99228
|
const { read, parse } = require_read_package();
|
|
97689
|
-
const { packageSort } = require_sort();
|
|
99229
|
+
const { packageSort } = require_sort$1();
|
|
97690
99230
|
const knownSteps = new Set([
|
|
97691
99231
|
updateDeps,
|
|
97692
99232
|
updateScripts,
|
|
@@ -98832,7 +100372,7 @@ var require_get_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
98832
100372
|
//#endregion
|
|
98833
100373
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/common/node.js
|
|
98834
100374
|
var require_node$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
98835
|
-
const semver = require_semver();
|
|
100375
|
+
const semver = require_semver$2();
|
|
98836
100376
|
const satisfies = (range) => {
|
|
98837
100377
|
return semver.satisfies(process.version, range, { includePrerelease: true });
|
|
98838
100378
|
};
|
|
@@ -111366,7 +112906,7 @@ var require_errors$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
111366
112906
|
}));
|
|
111367
112907
|
//#endregion
|
|
111368
112908
|
//#region ../../node_modules/minizlib/dist/commonjs/constants.js
|
|
111369
|
-
var require_constants$
|
|
112909
|
+
var require_constants$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
111370
112910
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
111371
112911
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
111372
112912
|
};
|
|
@@ -111537,8 +113077,8 @@ var require_commonjs$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
111537
113077
|
const buffer_1$1 = __require("buffer");
|
|
111538
113078
|
const minipass_1 = require_commonjs$10();
|
|
111539
113079
|
const realZlib = __importStar(__require("zlib"));
|
|
111540
|
-
const constants_js_1 = require_constants$
|
|
111541
|
-
var constants_js_2 = require_constants$
|
|
113080
|
+
const constants_js_1 = require_constants$4();
|
|
113081
|
+
var constants_js_2 = require_constants$4();
|
|
111542
113082
|
Object.defineProperty(exports, "constants", {
|
|
111543
113083
|
enumerable: true,
|
|
111544
113084
|
get: function() {
|
|
@@ -126180,7 +127720,7 @@ var require_smartbuffer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
126180
127720
|
}));
|
|
126181
127721
|
//#endregion
|
|
126182
127722
|
//#region ../../node_modules/socks/build/common/constants.js
|
|
126183
|
-
var require_constants$
|
|
127723
|
+
var require_constants$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
126184
127724
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
126185
127725
|
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;
|
|
126186
127726
|
exports.DEFAULT_TIMEOUT = 3e4;
|
|
@@ -126346,7 +127886,7 @@ var require_common = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
126346
127886
|
}));
|
|
126347
127887
|
//#endregion
|
|
126348
127888
|
//#region ../../node_modules/ip-address/dist/v4/constants.js
|
|
126349
|
-
var require_constants$
|
|
127889
|
+
var require_constants$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
126350
127890
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
126351
127891
|
exports.RE_SUBNET_STRING = exports.RE_ADDRESS = exports.GROUPS = exports.BITS = void 0;
|
|
126352
127892
|
exports.BITS = 32;
|
|
@@ -126405,7 +127945,7 @@ var require_ipv4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
126405
127945
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
126406
127946
|
exports.Address4 = void 0;
|
|
126407
127947
|
const common = __importStar(require_common());
|
|
126408
|
-
const constants = __importStar(require_constants$
|
|
127948
|
+
const constants = __importStar(require_constants$2());
|
|
126409
127949
|
const address_error_1 = require_address_error();
|
|
126410
127950
|
exports.Address4 = class Address4 {
|
|
126411
127951
|
constructor(address) {
|
|
@@ -126699,7 +128239,7 @@ var require_ipv4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
126699
128239
|
}));
|
|
126700
128240
|
//#endregion
|
|
126701
128241
|
//#region ../../node_modules/ip-address/dist/v6/constants.js
|
|
126702
|
-
var require_constants = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
128242
|
+
var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
126703
128243
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
126704
128244
|
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;
|
|
126705
128245
|
exports.BITS = 128;
|
|
@@ -126855,7 +128395,7 @@ var require_regular_expressions = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
126855
128395
|
exports.padGroup = padGroup;
|
|
126856
128396
|
exports.simpleRegularExpression = simpleRegularExpression;
|
|
126857
128397
|
exports.possibleElisions = possibleElisions;
|
|
126858
|
-
const v6 = __importStar(require_constants());
|
|
128398
|
+
const v6 = __importStar(require_constants$1());
|
|
126859
128399
|
function groupPossibilities(possibilities) {
|
|
126860
128400
|
return `(${possibilities.join("|")})`;
|
|
126861
128401
|
}
|
|
@@ -126930,8 +128470,8 @@ var require_ipv6 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
126930
128470
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
126931
128471
|
exports.Address6 = void 0;
|
|
126932
128472
|
const common = __importStar(require_common());
|
|
126933
|
-
const constants4 = __importStar(require_constants$
|
|
126934
|
-
const constants6 = __importStar(require_constants());
|
|
128473
|
+
const constants4 = __importStar(require_constants$2());
|
|
128474
|
+
const constants6 = __importStar(require_constants$1());
|
|
126935
128475
|
const helpers = __importStar(require_helpers$1());
|
|
126936
128476
|
const ipv4_1 = require_ipv4();
|
|
126937
128477
|
const regular_expressions_1 = require_regular_expressions();
|
|
@@ -127751,7 +129291,7 @@ var require_helpers = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
127751
129291
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
127752
129292
|
exports.ipToBuffer = exports.int32ToIpv4 = exports.ipv4ToInt32 = exports.validateSocksClientChainOptions = exports.validateSocksClientOptions = void 0;
|
|
127753
129293
|
const util_1 = require_util$1();
|
|
127754
|
-
const constants_1 = require_constants$
|
|
129294
|
+
const constants_1 = require_constants$3();
|
|
127755
129295
|
const stream$1 = __require("stream");
|
|
127756
129296
|
const ip_address_1 = require_ip_address();
|
|
127757
129297
|
const net$3 = __require("net");
|
|
@@ -127916,7 +129456,7 @@ var require_socksclient = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
127916
129456
|
const events_1 = __require("events");
|
|
127917
129457
|
const net$2 = __require("net");
|
|
127918
129458
|
const smart_buffer_1 = require_smartbuffer();
|
|
127919
|
-
const constants_1 = require_constants$
|
|
129459
|
+
const constants_1 = require_constants$3();
|
|
127920
129460
|
const helpers_1 = require_helpers();
|
|
127921
129461
|
const receivebuffer_1 = require_receivebuffer();
|
|
127922
129462
|
const util_1 = require_util$1();
|
|
@@ -132165,7 +133705,7 @@ var require_length = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
132165
133705
|
}));
|
|
132166
133706
|
//#endregion
|
|
132167
133707
|
//#region ../../node_modules/@sigstore/core/dist/asn1/parse.js
|
|
132168
|
-
var require_parse = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
133708
|
+
var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
132169
133709
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
132170
133710
|
exports.parseInteger = parseInteger;
|
|
132171
133711
|
exports.parseStringASCII = parseStringASCII;
|
|
@@ -132311,7 +133851,7 @@ var require_obj = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
132311
133851
|
const stream_1 = require_stream();
|
|
132312
133852
|
const error_1 = require_error$8();
|
|
132313
133853
|
const length_1 = require_length();
|
|
132314
|
-
const parse_1 = require_parse();
|
|
133854
|
+
const parse_1 = require_parse$1();
|
|
132315
133855
|
const tag_1 = require_tag();
|
|
132316
133856
|
var ASN1Obj = class {
|
|
132317
133857
|
tag;
|
|
@@ -140627,6 +142167,1343 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
140627
142167
|
};
|
|
140628
142168
|
}));
|
|
140629
142169
|
//#endregion
|
|
142170
|
+
//#region ../../packages/core-node/node_modules/semver/internal/constants.js
|
|
142171
|
+
var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142172
|
+
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
142173
|
+
const MAX_LENGTH = 256;
|
|
142174
|
+
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
142175
|
+
module.exports = {
|
|
142176
|
+
MAX_LENGTH,
|
|
142177
|
+
MAX_SAFE_COMPONENT_LENGTH: 16,
|
|
142178
|
+
MAX_SAFE_BUILD_LENGTH: MAX_LENGTH - 6,
|
|
142179
|
+
MAX_SAFE_INTEGER,
|
|
142180
|
+
RELEASE_TYPES: [
|
|
142181
|
+
"major",
|
|
142182
|
+
"premajor",
|
|
142183
|
+
"minor",
|
|
142184
|
+
"preminor",
|
|
142185
|
+
"patch",
|
|
142186
|
+
"prepatch",
|
|
142187
|
+
"prerelease"
|
|
142188
|
+
],
|
|
142189
|
+
SEMVER_SPEC_VERSION,
|
|
142190
|
+
FLAG_INCLUDE_PRERELEASE: 1,
|
|
142191
|
+
FLAG_LOOSE: 2
|
|
142192
|
+
};
|
|
142193
|
+
}));
|
|
142194
|
+
//#endregion
|
|
142195
|
+
//#region ../../packages/core-node/node_modules/semver/internal/debug.js
|
|
142196
|
+
var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142197
|
+
module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
142198
|
+
}));
|
|
142199
|
+
//#endregion
|
|
142200
|
+
//#region ../../packages/core-node/node_modules/semver/internal/re.js
|
|
142201
|
+
var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142202
|
+
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
|
|
142203
|
+
const debug = require_debug();
|
|
142204
|
+
exports = module.exports = {};
|
|
142205
|
+
const re = exports.re = [];
|
|
142206
|
+
const safeRe = exports.safeRe = [];
|
|
142207
|
+
const src = exports.src = [];
|
|
142208
|
+
const safeSrc = exports.safeSrc = [];
|
|
142209
|
+
const t = exports.t = {};
|
|
142210
|
+
let R = 0;
|
|
142211
|
+
const LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
142212
|
+
const safeRegexReplacements = [
|
|
142213
|
+
["\\s", 1],
|
|
142214
|
+
["\\d", MAX_LENGTH],
|
|
142215
|
+
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
|
|
142216
|
+
];
|
|
142217
|
+
const makeSafeRegex = (value) => {
|
|
142218
|
+
for (const [token, max] of safeRegexReplacements) value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
|
|
142219
|
+
return value;
|
|
142220
|
+
};
|
|
142221
|
+
const createToken = (name, value, isGlobal) => {
|
|
142222
|
+
const safe = makeSafeRegex(value);
|
|
142223
|
+
const index = R++;
|
|
142224
|
+
debug(name, index, value);
|
|
142225
|
+
t[name] = index;
|
|
142226
|
+
src[index] = value;
|
|
142227
|
+
safeSrc[index] = safe;
|
|
142228
|
+
re[index] = new RegExp(value, isGlobal ? "g" : void 0);
|
|
142229
|
+
safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
142230
|
+
};
|
|
142231
|
+
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
142232
|
+
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
142233
|
+
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
142234
|
+
createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
|
|
142235
|
+
createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
142236
|
+
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
|
|
142237
|
+
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
142238
|
+
createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
142239
|
+
createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
142240
|
+
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
142241
|
+
createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
|
|
142242
|
+
createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
|
|
142243
|
+
createToken("FULL", `^${src[t.FULLPLAIN]}$`);
|
|
142244
|
+
createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
|
|
142245
|
+
createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
|
|
142246
|
+
createToken("GTLT", "((?:<|>)?=?)");
|
|
142247
|
+
createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
|
142248
|
+
createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
|
|
142249
|
+
createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
|
|
142250
|
+
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
|
|
142251
|
+
createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
|
|
142252
|
+
createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
|
|
142253
|
+
createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
|
142254
|
+
createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
142255
|
+
createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
|
|
142256
|
+
createToken("COERCERTL", src[t.COERCE], true);
|
|
142257
|
+
createToken("COERCERTLFULL", src[t.COERCEFULL], true);
|
|
142258
|
+
createToken("LONETILDE", "(?:~>?)");
|
|
142259
|
+
createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
|
|
142260
|
+
exports.tildeTrimReplace = "$1~";
|
|
142261
|
+
createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
|
|
142262
|
+
createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
142263
|
+
createToken("LONECARET", "(?:\\^)");
|
|
142264
|
+
createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
|
|
142265
|
+
exports.caretTrimReplace = "$1^";
|
|
142266
|
+
createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
|
|
142267
|
+
createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
142268
|
+
createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
|
|
142269
|
+
createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
|
|
142270
|
+
createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
|
|
142271
|
+
exports.comparatorTrimReplace = "$1$2$3";
|
|
142272
|
+
createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
|
|
142273
|
+
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
|
|
142274
|
+
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
142275
|
+
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
142276
|
+
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
142277
|
+
}));
|
|
142278
|
+
//#endregion
|
|
142279
|
+
//#region ../../packages/core-node/node_modules/semver/internal/parse-options.js
|
|
142280
|
+
var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142281
|
+
const looseOption = Object.freeze({ loose: true });
|
|
142282
|
+
const emptyOpts = Object.freeze({});
|
|
142283
|
+
const parseOptions = (options) => {
|
|
142284
|
+
if (!options) return emptyOpts;
|
|
142285
|
+
if (typeof options !== "object") return looseOption;
|
|
142286
|
+
return options;
|
|
142287
|
+
};
|
|
142288
|
+
module.exports = parseOptions;
|
|
142289
|
+
}));
|
|
142290
|
+
//#endregion
|
|
142291
|
+
//#region ../../packages/core-node/node_modules/semver/internal/identifiers.js
|
|
142292
|
+
var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142293
|
+
const numeric = /^[0-9]+$/;
|
|
142294
|
+
const compareIdentifiers = (a, b) => {
|
|
142295
|
+
if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
|
|
142296
|
+
const anum = numeric.test(a);
|
|
142297
|
+
const bnum = numeric.test(b);
|
|
142298
|
+
if (anum && bnum) {
|
|
142299
|
+
a = +a;
|
|
142300
|
+
b = +b;
|
|
142301
|
+
}
|
|
142302
|
+
return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
|
|
142303
|
+
};
|
|
142304
|
+
const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
|
|
142305
|
+
module.exports = {
|
|
142306
|
+
compareIdentifiers,
|
|
142307
|
+
rcompareIdentifiers
|
|
142308
|
+
};
|
|
142309
|
+
}));
|
|
142310
|
+
//#endregion
|
|
142311
|
+
//#region ../../packages/core-node/node_modules/semver/classes/semver.js
|
|
142312
|
+
var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142313
|
+
const debug = require_debug();
|
|
142314
|
+
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
142315
|
+
const { safeRe: re, t } = require_re();
|
|
142316
|
+
const parseOptions = require_parse_options();
|
|
142317
|
+
const { compareIdentifiers } = require_identifiers();
|
|
142318
|
+
module.exports = class SemVer {
|
|
142319
|
+
constructor(version, options) {
|
|
142320
|
+
options = parseOptions(options);
|
|
142321
|
+
if (version instanceof SemVer) if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) return version;
|
|
142322
|
+
else version = version.version;
|
|
142323
|
+
else if (typeof version !== "string") throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
142324
|
+
if (version.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
|
|
142325
|
+
debug("SemVer", version, options);
|
|
142326
|
+
this.options = options;
|
|
142327
|
+
this.loose = !!options.loose;
|
|
142328
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
142329
|
+
const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
|
|
142330
|
+
if (!m) throw new TypeError(`Invalid Version: ${version}`);
|
|
142331
|
+
this.raw = version;
|
|
142332
|
+
this.major = +m[1];
|
|
142333
|
+
this.minor = +m[2];
|
|
142334
|
+
this.patch = +m[3];
|
|
142335
|
+
if (this.major > MAX_SAFE_INTEGER || this.major < 0) throw new TypeError("Invalid major version");
|
|
142336
|
+
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError("Invalid minor version");
|
|
142337
|
+
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError("Invalid patch version");
|
|
142338
|
+
if (!m[4]) this.prerelease = [];
|
|
142339
|
+
else this.prerelease = m[4].split(".").map((id) => {
|
|
142340
|
+
if (/^[0-9]+$/.test(id)) {
|
|
142341
|
+
const num = +id;
|
|
142342
|
+
if (num >= 0 && num < MAX_SAFE_INTEGER) return num;
|
|
142343
|
+
}
|
|
142344
|
+
return id;
|
|
142345
|
+
});
|
|
142346
|
+
this.build = m[5] ? m[5].split(".") : [];
|
|
142347
|
+
this.format();
|
|
142348
|
+
}
|
|
142349
|
+
format() {
|
|
142350
|
+
this.version = `${this.major}.${this.minor}.${this.patch}`;
|
|
142351
|
+
if (this.prerelease.length) this.version += `-${this.prerelease.join(".")}`;
|
|
142352
|
+
return this.version;
|
|
142353
|
+
}
|
|
142354
|
+
toString() {
|
|
142355
|
+
return this.version;
|
|
142356
|
+
}
|
|
142357
|
+
compare(other) {
|
|
142358
|
+
debug("SemVer.compare", this.version, this.options, other);
|
|
142359
|
+
if (!(other instanceof SemVer)) {
|
|
142360
|
+
if (typeof other === "string" && other === this.version) return 0;
|
|
142361
|
+
other = new SemVer(other, this.options);
|
|
142362
|
+
}
|
|
142363
|
+
if (other.version === this.version) return 0;
|
|
142364
|
+
return this.compareMain(other) || this.comparePre(other);
|
|
142365
|
+
}
|
|
142366
|
+
compareMain(other) {
|
|
142367
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
142368
|
+
if (this.major < other.major) return -1;
|
|
142369
|
+
if (this.major > other.major) return 1;
|
|
142370
|
+
if (this.minor < other.minor) return -1;
|
|
142371
|
+
if (this.minor > other.minor) return 1;
|
|
142372
|
+
if (this.patch < other.patch) return -1;
|
|
142373
|
+
if (this.patch > other.patch) return 1;
|
|
142374
|
+
return 0;
|
|
142375
|
+
}
|
|
142376
|
+
comparePre(other) {
|
|
142377
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
142378
|
+
if (this.prerelease.length && !other.prerelease.length) return -1;
|
|
142379
|
+
else if (!this.prerelease.length && other.prerelease.length) return 1;
|
|
142380
|
+
else if (!this.prerelease.length && !other.prerelease.length) return 0;
|
|
142381
|
+
let i = 0;
|
|
142382
|
+
do {
|
|
142383
|
+
const a = this.prerelease[i];
|
|
142384
|
+
const b = other.prerelease[i];
|
|
142385
|
+
debug("prerelease compare", i, a, b);
|
|
142386
|
+
if (a === void 0 && b === void 0) return 0;
|
|
142387
|
+
else if (b === void 0) return 1;
|
|
142388
|
+
else if (a === void 0) return -1;
|
|
142389
|
+
else if (a === b) continue;
|
|
142390
|
+
else return compareIdentifiers(a, b);
|
|
142391
|
+
} while (++i);
|
|
142392
|
+
}
|
|
142393
|
+
compareBuild(other) {
|
|
142394
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
142395
|
+
let i = 0;
|
|
142396
|
+
do {
|
|
142397
|
+
const a = this.build[i];
|
|
142398
|
+
const b = other.build[i];
|
|
142399
|
+
debug("build compare", i, a, b);
|
|
142400
|
+
if (a === void 0 && b === void 0) return 0;
|
|
142401
|
+
else if (b === void 0) return 1;
|
|
142402
|
+
else if (a === void 0) return -1;
|
|
142403
|
+
else if (a === b) continue;
|
|
142404
|
+
else return compareIdentifiers(a, b);
|
|
142405
|
+
} while (++i);
|
|
142406
|
+
}
|
|
142407
|
+
inc(release, identifier, identifierBase) {
|
|
142408
|
+
if (release.startsWith("pre")) {
|
|
142409
|
+
if (!identifier && identifierBase === false) throw new Error("invalid increment argument: identifier is empty");
|
|
142410
|
+
if (identifier) {
|
|
142411
|
+
const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
|
|
142412
|
+
if (!match || match[1] !== identifier) throw new Error(`invalid identifier: ${identifier}`);
|
|
142413
|
+
}
|
|
142414
|
+
}
|
|
142415
|
+
switch (release) {
|
|
142416
|
+
case "premajor":
|
|
142417
|
+
this.prerelease.length = 0;
|
|
142418
|
+
this.patch = 0;
|
|
142419
|
+
this.minor = 0;
|
|
142420
|
+
this.major++;
|
|
142421
|
+
this.inc("pre", identifier, identifierBase);
|
|
142422
|
+
break;
|
|
142423
|
+
case "preminor":
|
|
142424
|
+
this.prerelease.length = 0;
|
|
142425
|
+
this.patch = 0;
|
|
142426
|
+
this.minor++;
|
|
142427
|
+
this.inc("pre", identifier, identifierBase);
|
|
142428
|
+
break;
|
|
142429
|
+
case "prepatch":
|
|
142430
|
+
this.prerelease.length = 0;
|
|
142431
|
+
this.inc("patch", identifier, identifierBase);
|
|
142432
|
+
this.inc("pre", identifier, identifierBase);
|
|
142433
|
+
break;
|
|
142434
|
+
case "prerelease":
|
|
142435
|
+
if (this.prerelease.length === 0) this.inc("patch", identifier, identifierBase);
|
|
142436
|
+
this.inc("pre", identifier, identifierBase);
|
|
142437
|
+
break;
|
|
142438
|
+
case "release":
|
|
142439
|
+
if (this.prerelease.length === 0) throw new Error(`version ${this.raw} is not a prerelease`);
|
|
142440
|
+
this.prerelease.length = 0;
|
|
142441
|
+
break;
|
|
142442
|
+
case "major":
|
|
142443
|
+
if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) this.major++;
|
|
142444
|
+
this.minor = 0;
|
|
142445
|
+
this.patch = 0;
|
|
142446
|
+
this.prerelease = [];
|
|
142447
|
+
break;
|
|
142448
|
+
case "minor":
|
|
142449
|
+
if (this.patch !== 0 || this.prerelease.length === 0) this.minor++;
|
|
142450
|
+
this.patch = 0;
|
|
142451
|
+
this.prerelease = [];
|
|
142452
|
+
break;
|
|
142453
|
+
case "patch":
|
|
142454
|
+
if (this.prerelease.length === 0) this.patch++;
|
|
142455
|
+
this.prerelease = [];
|
|
142456
|
+
break;
|
|
142457
|
+
case "pre": {
|
|
142458
|
+
const base = Number(identifierBase) ? 1 : 0;
|
|
142459
|
+
if (this.prerelease.length === 0) this.prerelease = [base];
|
|
142460
|
+
else {
|
|
142461
|
+
let i = this.prerelease.length;
|
|
142462
|
+
while (--i >= 0) if (typeof this.prerelease[i] === "number") {
|
|
142463
|
+
this.prerelease[i]++;
|
|
142464
|
+
i = -2;
|
|
142465
|
+
}
|
|
142466
|
+
if (i === -1) {
|
|
142467
|
+
if (identifier === this.prerelease.join(".") && identifierBase === false) throw new Error("invalid increment argument: identifier already exists");
|
|
142468
|
+
this.prerelease.push(base);
|
|
142469
|
+
}
|
|
142470
|
+
}
|
|
142471
|
+
if (identifier) {
|
|
142472
|
+
let prerelease = [identifier, base];
|
|
142473
|
+
if (identifierBase === false) prerelease = [identifier];
|
|
142474
|
+
if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
|
|
142475
|
+
if (isNaN(this.prerelease[1])) this.prerelease = prerelease;
|
|
142476
|
+
} else this.prerelease = prerelease;
|
|
142477
|
+
}
|
|
142478
|
+
break;
|
|
142479
|
+
}
|
|
142480
|
+
default: throw new Error(`invalid increment argument: ${release}`);
|
|
142481
|
+
}
|
|
142482
|
+
this.raw = this.format();
|
|
142483
|
+
if (this.build.length) this.raw += `+${this.build.join(".")}`;
|
|
142484
|
+
return this;
|
|
142485
|
+
}
|
|
142486
|
+
};
|
|
142487
|
+
}));
|
|
142488
|
+
//#endregion
|
|
142489
|
+
//#region ../../packages/core-node/node_modules/semver/functions/parse.js
|
|
142490
|
+
var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142491
|
+
const SemVer = require_semver$1();
|
|
142492
|
+
const parse = (version, options, throwErrors = false) => {
|
|
142493
|
+
if (version instanceof SemVer) return version;
|
|
142494
|
+
try {
|
|
142495
|
+
return new SemVer(version, options);
|
|
142496
|
+
} catch (er) {
|
|
142497
|
+
if (!throwErrors) return null;
|
|
142498
|
+
throw er;
|
|
142499
|
+
}
|
|
142500
|
+
};
|
|
142501
|
+
module.exports = parse;
|
|
142502
|
+
}));
|
|
142503
|
+
//#endregion
|
|
142504
|
+
//#region ../../packages/core-node/node_modules/semver/functions/valid.js
|
|
142505
|
+
var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142506
|
+
const parse = require_parse();
|
|
142507
|
+
const valid = (version, options) => {
|
|
142508
|
+
const v = parse(version, options);
|
|
142509
|
+
return v ? v.version : null;
|
|
142510
|
+
};
|
|
142511
|
+
module.exports = valid;
|
|
142512
|
+
}));
|
|
142513
|
+
//#endregion
|
|
142514
|
+
//#region ../../packages/core-node/node_modules/semver/functions/clean.js
|
|
142515
|
+
var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142516
|
+
const parse = require_parse();
|
|
142517
|
+
const clean = (version, options) => {
|
|
142518
|
+
const s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
142519
|
+
return s ? s.version : null;
|
|
142520
|
+
};
|
|
142521
|
+
module.exports = clean;
|
|
142522
|
+
}));
|
|
142523
|
+
//#endregion
|
|
142524
|
+
//#region ../../packages/core-node/node_modules/semver/functions/inc.js
|
|
142525
|
+
var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142526
|
+
const SemVer = require_semver$1();
|
|
142527
|
+
const inc = (version, release, options, identifier, identifierBase) => {
|
|
142528
|
+
if (typeof options === "string") {
|
|
142529
|
+
identifierBase = identifier;
|
|
142530
|
+
identifier = options;
|
|
142531
|
+
options = void 0;
|
|
142532
|
+
}
|
|
142533
|
+
try {
|
|
142534
|
+
return new SemVer(version instanceof SemVer ? version.version : version, options).inc(release, identifier, identifierBase).version;
|
|
142535
|
+
} catch (er) {
|
|
142536
|
+
return null;
|
|
142537
|
+
}
|
|
142538
|
+
};
|
|
142539
|
+
module.exports = inc;
|
|
142540
|
+
}));
|
|
142541
|
+
//#endregion
|
|
142542
|
+
//#region ../../packages/core-node/node_modules/semver/functions/diff.js
|
|
142543
|
+
var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142544
|
+
const parse = require_parse();
|
|
142545
|
+
const diff = (version1, version2) => {
|
|
142546
|
+
const v1 = parse(version1, null, true);
|
|
142547
|
+
const v2 = parse(version2, null, true);
|
|
142548
|
+
const comparison = v1.compare(v2);
|
|
142549
|
+
if (comparison === 0) return null;
|
|
142550
|
+
const v1Higher = comparison > 0;
|
|
142551
|
+
const highVersion = v1Higher ? v1 : v2;
|
|
142552
|
+
const lowVersion = v1Higher ? v2 : v1;
|
|
142553
|
+
const highHasPre = !!highVersion.prerelease.length;
|
|
142554
|
+
if (!!lowVersion.prerelease.length && !highHasPre) {
|
|
142555
|
+
if (!lowVersion.patch && !lowVersion.minor) return "major";
|
|
142556
|
+
if (lowVersion.compareMain(highVersion) === 0) {
|
|
142557
|
+
if (lowVersion.minor && !lowVersion.patch) return "minor";
|
|
142558
|
+
return "patch";
|
|
142559
|
+
}
|
|
142560
|
+
}
|
|
142561
|
+
const prefix = highHasPre ? "pre" : "";
|
|
142562
|
+
if (v1.major !== v2.major) return prefix + "major";
|
|
142563
|
+
if (v1.minor !== v2.minor) return prefix + "minor";
|
|
142564
|
+
if (v1.patch !== v2.patch) return prefix + "patch";
|
|
142565
|
+
return "prerelease";
|
|
142566
|
+
};
|
|
142567
|
+
module.exports = diff;
|
|
142568
|
+
}));
|
|
142569
|
+
//#endregion
|
|
142570
|
+
//#region ../../packages/core-node/node_modules/semver/functions/major.js
|
|
142571
|
+
var require_major = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142572
|
+
const SemVer = require_semver$1();
|
|
142573
|
+
const major = (a, loose) => new SemVer(a, loose).major;
|
|
142574
|
+
module.exports = major;
|
|
142575
|
+
}));
|
|
142576
|
+
//#endregion
|
|
142577
|
+
//#region ../../packages/core-node/node_modules/semver/functions/minor.js
|
|
142578
|
+
var require_minor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142579
|
+
const SemVer = require_semver$1();
|
|
142580
|
+
const minor = (a, loose) => new SemVer(a, loose).minor;
|
|
142581
|
+
module.exports = minor;
|
|
142582
|
+
}));
|
|
142583
|
+
//#endregion
|
|
142584
|
+
//#region ../../packages/core-node/node_modules/semver/functions/patch.js
|
|
142585
|
+
var require_patch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142586
|
+
const SemVer = require_semver$1();
|
|
142587
|
+
const patch = (a, loose) => new SemVer(a, loose).patch;
|
|
142588
|
+
module.exports = patch;
|
|
142589
|
+
}));
|
|
142590
|
+
//#endregion
|
|
142591
|
+
//#region ../../packages/core-node/node_modules/semver/functions/prerelease.js
|
|
142592
|
+
var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142593
|
+
const parse = require_parse();
|
|
142594
|
+
const prerelease = (version, options) => {
|
|
142595
|
+
const parsed = parse(version, options);
|
|
142596
|
+
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
142597
|
+
};
|
|
142598
|
+
module.exports = prerelease;
|
|
142599
|
+
}));
|
|
142600
|
+
//#endregion
|
|
142601
|
+
//#region ../../packages/core-node/node_modules/semver/functions/compare.js
|
|
142602
|
+
var require_compare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142603
|
+
const SemVer = require_semver$1();
|
|
142604
|
+
const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
142605
|
+
module.exports = compare;
|
|
142606
|
+
}));
|
|
142607
|
+
//#endregion
|
|
142608
|
+
//#region ../../packages/core-node/node_modules/semver/functions/rcompare.js
|
|
142609
|
+
var require_rcompare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142610
|
+
const compare = require_compare();
|
|
142611
|
+
const rcompare = (a, b, loose) => compare(b, a, loose);
|
|
142612
|
+
module.exports = rcompare;
|
|
142613
|
+
}));
|
|
142614
|
+
//#endregion
|
|
142615
|
+
//#region ../../packages/core-node/node_modules/semver/functions/compare-loose.js
|
|
142616
|
+
var require_compare_loose = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142617
|
+
const compare = require_compare();
|
|
142618
|
+
const compareLoose = (a, b) => compare(a, b, true);
|
|
142619
|
+
module.exports = compareLoose;
|
|
142620
|
+
}));
|
|
142621
|
+
//#endregion
|
|
142622
|
+
//#region ../../packages/core-node/node_modules/semver/functions/compare-build.js
|
|
142623
|
+
var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142624
|
+
const SemVer = require_semver$1();
|
|
142625
|
+
const compareBuild = (a, b, loose) => {
|
|
142626
|
+
const versionA = new SemVer(a, loose);
|
|
142627
|
+
const versionB = new SemVer(b, loose);
|
|
142628
|
+
return versionA.compare(versionB) || versionA.compareBuild(versionB);
|
|
142629
|
+
};
|
|
142630
|
+
module.exports = compareBuild;
|
|
142631
|
+
}));
|
|
142632
|
+
//#endregion
|
|
142633
|
+
//#region ../../packages/core-node/node_modules/semver/functions/sort.js
|
|
142634
|
+
var require_sort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142635
|
+
const compareBuild = require_compare_build();
|
|
142636
|
+
const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
142637
|
+
module.exports = sort;
|
|
142638
|
+
}));
|
|
142639
|
+
//#endregion
|
|
142640
|
+
//#region ../../packages/core-node/node_modules/semver/functions/rsort.js
|
|
142641
|
+
var require_rsort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142642
|
+
const compareBuild = require_compare_build();
|
|
142643
|
+
const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
142644
|
+
module.exports = rsort;
|
|
142645
|
+
}));
|
|
142646
|
+
//#endregion
|
|
142647
|
+
//#region ../../packages/core-node/node_modules/semver/functions/gt.js
|
|
142648
|
+
var require_gt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142649
|
+
const compare = require_compare();
|
|
142650
|
+
const gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
142651
|
+
module.exports = gt;
|
|
142652
|
+
}));
|
|
142653
|
+
//#endregion
|
|
142654
|
+
//#region ../../packages/core-node/node_modules/semver/functions/lt.js
|
|
142655
|
+
var require_lt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142656
|
+
const compare = require_compare();
|
|
142657
|
+
const lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
142658
|
+
module.exports = lt;
|
|
142659
|
+
}));
|
|
142660
|
+
//#endregion
|
|
142661
|
+
//#region ../../packages/core-node/node_modules/semver/functions/eq.js
|
|
142662
|
+
var require_eq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142663
|
+
const compare = require_compare();
|
|
142664
|
+
const eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
142665
|
+
module.exports = eq;
|
|
142666
|
+
}));
|
|
142667
|
+
//#endregion
|
|
142668
|
+
//#region ../../packages/core-node/node_modules/semver/functions/neq.js
|
|
142669
|
+
var require_neq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142670
|
+
const compare = require_compare();
|
|
142671
|
+
const neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
142672
|
+
module.exports = neq;
|
|
142673
|
+
}));
|
|
142674
|
+
//#endregion
|
|
142675
|
+
//#region ../../packages/core-node/node_modules/semver/functions/gte.js
|
|
142676
|
+
var require_gte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142677
|
+
const compare = require_compare();
|
|
142678
|
+
const gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
142679
|
+
module.exports = gte;
|
|
142680
|
+
}));
|
|
142681
|
+
//#endregion
|
|
142682
|
+
//#region ../../packages/core-node/node_modules/semver/functions/lte.js
|
|
142683
|
+
var require_lte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142684
|
+
const compare = require_compare();
|
|
142685
|
+
const lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
142686
|
+
module.exports = lte;
|
|
142687
|
+
}));
|
|
142688
|
+
//#endregion
|
|
142689
|
+
//#region ../../packages/core-node/node_modules/semver/functions/cmp.js
|
|
142690
|
+
var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142691
|
+
const eq = require_eq();
|
|
142692
|
+
const neq = require_neq();
|
|
142693
|
+
const gt = require_gt();
|
|
142694
|
+
const gte = require_gte();
|
|
142695
|
+
const lt = require_lt();
|
|
142696
|
+
const lte = require_lte();
|
|
142697
|
+
const cmp = (a, op, b, loose) => {
|
|
142698
|
+
switch (op) {
|
|
142699
|
+
case "===":
|
|
142700
|
+
if (typeof a === "object") a = a.version;
|
|
142701
|
+
if (typeof b === "object") b = b.version;
|
|
142702
|
+
return a === b;
|
|
142703
|
+
case "!==":
|
|
142704
|
+
if (typeof a === "object") a = a.version;
|
|
142705
|
+
if (typeof b === "object") b = b.version;
|
|
142706
|
+
return a !== b;
|
|
142707
|
+
case "":
|
|
142708
|
+
case "=":
|
|
142709
|
+
case "==": return eq(a, b, loose);
|
|
142710
|
+
case "!=": return neq(a, b, loose);
|
|
142711
|
+
case ">": return gt(a, b, loose);
|
|
142712
|
+
case ">=": return gte(a, b, loose);
|
|
142713
|
+
case "<": return lt(a, b, loose);
|
|
142714
|
+
case "<=": return lte(a, b, loose);
|
|
142715
|
+
default: throw new TypeError(`Invalid operator: ${op}`);
|
|
142716
|
+
}
|
|
142717
|
+
};
|
|
142718
|
+
module.exports = cmp;
|
|
142719
|
+
}));
|
|
142720
|
+
//#endregion
|
|
142721
|
+
//#region ../../packages/core-node/node_modules/semver/functions/coerce.js
|
|
142722
|
+
var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142723
|
+
const SemVer = require_semver$1();
|
|
142724
|
+
const parse = require_parse();
|
|
142725
|
+
const { safeRe: re, t } = require_re();
|
|
142726
|
+
const coerce = (version, options) => {
|
|
142727
|
+
if (version instanceof SemVer) return version;
|
|
142728
|
+
if (typeof version === "number") version = String(version);
|
|
142729
|
+
if (typeof version !== "string") return null;
|
|
142730
|
+
options = options || {};
|
|
142731
|
+
let match = null;
|
|
142732
|
+
if (!options.rtl) match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
|
|
142733
|
+
else {
|
|
142734
|
+
const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL];
|
|
142735
|
+
let next;
|
|
142736
|
+
while ((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)) {
|
|
142737
|
+
if (!match || next.index + next[0].length !== match.index + match[0].length) match = next;
|
|
142738
|
+
coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
|
142739
|
+
}
|
|
142740
|
+
coerceRtlRegex.lastIndex = -1;
|
|
142741
|
+
}
|
|
142742
|
+
if (match === null) return null;
|
|
142743
|
+
const major = match[2];
|
|
142744
|
+
return parse(`${major}.${match[3] || "0"}.${match[4] || "0"}${options.includePrerelease && match[5] ? `-${match[5]}` : ""}${options.includePrerelease && match[6] ? `+${match[6]}` : ""}`, options);
|
|
142745
|
+
};
|
|
142746
|
+
module.exports = coerce;
|
|
142747
|
+
}));
|
|
142748
|
+
//#endregion
|
|
142749
|
+
//#region ../../packages/core-node/node_modules/semver/internal/lrucache.js
|
|
142750
|
+
var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142751
|
+
var LRUCache = class {
|
|
142752
|
+
constructor() {
|
|
142753
|
+
this.max = 1e3;
|
|
142754
|
+
this.map = /* @__PURE__ */ new Map();
|
|
142755
|
+
}
|
|
142756
|
+
get(key) {
|
|
142757
|
+
const value = this.map.get(key);
|
|
142758
|
+
if (value === void 0) return;
|
|
142759
|
+
else {
|
|
142760
|
+
this.map.delete(key);
|
|
142761
|
+
this.map.set(key, value);
|
|
142762
|
+
return value;
|
|
142763
|
+
}
|
|
142764
|
+
}
|
|
142765
|
+
delete(key) {
|
|
142766
|
+
return this.map.delete(key);
|
|
142767
|
+
}
|
|
142768
|
+
set(key, value) {
|
|
142769
|
+
if (!this.delete(key) && value !== void 0) {
|
|
142770
|
+
if (this.map.size >= this.max) {
|
|
142771
|
+
const firstKey = this.map.keys().next().value;
|
|
142772
|
+
this.delete(firstKey);
|
|
142773
|
+
}
|
|
142774
|
+
this.map.set(key, value);
|
|
142775
|
+
}
|
|
142776
|
+
return this;
|
|
142777
|
+
}
|
|
142778
|
+
};
|
|
142779
|
+
module.exports = LRUCache;
|
|
142780
|
+
}));
|
|
142781
|
+
//#endregion
|
|
142782
|
+
//#region ../../packages/core-node/node_modules/semver/classes/range.js
|
|
142783
|
+
var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142784
|
+
const SPACE_CHARACTERS = /\s+/g;
|
|
142785
|
+
module.exports = class Range {
|
|
142786
|
+
constructor(range, options) {
|
|
142787
|
+
options = parseOptions(options);
|
|
142788
|
+
if (range instanceof Range) if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) return range;
|
|
142789
|
+
else return new Range(range.raw, options);
|
|
142790
|
+
if (range instanceof Comparator) {
|
|
142791
|
+
this.raw = range.value;
|
|
142792
|
+
this.set = [[range]];
|
|
142793
|
+
this.formatted = void 0;
|
|
142794
|
+
return this;
|
|
142795
|
+
}
|
|
142796
|
+
this.options = options;
|
|
142797
|
+
this.loose = !!options.loose;
|
|
142798
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
142799
|
+
this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
|
|
142800
|
+
this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
|
|
142801
|
+
if (!this.set.length) throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
142802
|
+
if (this.set.length > 1) {
|
|
142803
|
+
const first = this.set[0];
|
|
142804
|
+
this.set = this.set.filter((c) => !isNullSet(c[0]));
|
|
142805
|
+
if (this.set.length === 0) this.set = [first];
|
|
142806
|
+
else if (this.set.length > 1) {
|
|
142807
|
+
for (const c of this.set) if (c.length === 1 && isAny(c[0])) {
|
|
142808
|
+
this.set = [c];
|
|
142809
|
+
break;
|
|
142810
|
+
}
|
|
142811
|
+
}
|
|
142812
|
+
}
|
|
142813
|
+
this.formatted = void 0;
|
|
142814
|
+
}
|
|
142815
|
+
get range() {
|
|
142816
|
+
if (this.formatted === void 0) {
|
|
142817
|
+
this.formatted = "";
|
|
142818
|
+
for (let i = 0; i < this.set.length; i++) {
|
|
142819
|
+
if (i > 0) this.formatted += "||";
|
|
142820
|
+
const comps = this.set[i];
|
|
142821
|
+
for (let k = 0; k < comps.length; k++) {
|
|
142822
|
+
if (k > 0) this.formatted += " ";
|
|
142823
|
+
this.formatted += comps[k].toString().trim();
|
|
142824
|
+
}
|
|
142825
|
+
}
|
|
142826
|
+
}
|
|
142827
|
+
return this.formatted;
|
|
142828
|
+
}
|
|
142829
|
+
format() {
|
|
142830
|
+
return this.range;
|
|
142831
|
+
}
|
|
142832
|
+
toString() {
|
|
142833
|
+
return this.range;
|
|
142834
|
+
}
|
|
142835
|
+
parseRange(range) {
|
|
142836
|
+
const memoKey = ((this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE)) + ":" + range;
|
|
142837
|
+
const cached = cache.get(memoKey);
|
|
142838
|
+
if (cached) return cached;
|
|
142839
|
+
const loose = this.options.loose;
|
|
142840
|
+
const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
|
|
142841
|
+
range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
|
|
142842
|
+
debug("hyphen replace", range);
|
|
142843
|
+
range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace);
|
|
142844
|
+
debug("comparator trim", range);
|
|
142845
|
+
range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
|
|
142846
|
+
debug("tilde trim", range);
|
|
142847
|
+
range = range.replace(re[t.CARETTRIM], caretTrimReplace);
|
|
142848
|
+
debug("caret trim", range);
|
|
142849
|
+
let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
|
|
142850
|
+
if (loose) rangeList = rangeList.filter((comp) => {
|
|
142851
|
+
debug("loose invalid filter", comp, this.options);
|
|
142852
|
+
return !!comp.match(re[t.COMPARATORLOOSE]);
|
|
142853
|
+
});
|
|
142854
|
+
debug("range list", rangeList);
|
|
142855
|
+
const rangeMap = /* @__PURE__ */ new Map();
|
|
142856
|
+
const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
|
|
142857
|
+
for (const comp of comparators) {
|
|
142858
|
+
if (isNullSet(comp)) return [comp];
|
|
142859
|
+
rangeMap.set(comp.value, comp);
|
|
142860
|
+
}
|
|
142861
|
+
if (rangeMap.size > 1 && rangeMap.has("")) rangeMap.delete("");
|
|
142862
|
+
const result = [...rangeMap.values()];
|
|
142863
|
+
cache.set(memoKey, result);
|
|
142864
|
+
return result;
|
|
142865
|
+
}
|
|
142866
|
+
intersects(range, options) {
|
|
142867
|
+
if (!(range instanceof Range)) throw new TypeError("a Range is required");
|
|
142868
|
+
return this.set.some((thisComparators) => {
|
|
142869
|
+
return isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => {
|
|
142870
|
+
return isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => {
|
|
142871
|
+
return rangeComparators.every((rangeComparator) => {
|
|
142872
|
+
return thisComparator.intersects(rangeComparator, options);
|
|
142873
|
+
});
|
|
142874
|
+
});
|
|
142875
|
+
});
|
|
142876
|
+
});
|
|
142877
|
+
}
|
|
142878
|
+
test(version) {
|
|
142879
|
+
if (!version) return false;
|
|
142880
|
+
if (typeof version === "string") try {
|
|
142881
|
+
version = new SemVer(version, this.options);
|
|
142882
|
+
} catch (er) {
|
|
142883
|
+
return false;
|
|
142884
|
+
}
|
|
142885
|
+
for (let i = 0; i < this.set.length; i++) if (testSet(this.set[i], version, this.options)) return true;
|
|
142886
|
+
return false;
|
|
142887
|
+
}
|
|
142888
|
+
};
|
|
142889
|
+
const cache = new (require_lrucache())();
|
|
142890
|
+
const parseOptions = require_parse_options();
|
|
142891
|
+
const Comparator = require_comparator();
|
|
142892
|
+
const debug = require_debug();
|
|
142893
|
+
const SemVer = require_semver$1();
|
|
142894
|
+
const { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re();
|
|
142895
|
+
const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants();
|
|
142896
|
+
const isNullSet = (c) => c.value === "<0.0.0-0";
|
|
142897
|
+
const isAny = (c) => c.value === "";
|
|
142898
|
+
const isSatisfiable = (comparators, options) => {
|
|
142899
|
+
let result = true;
|
|
142900
|
+
const remainingComparators = comparators.slice();
|
|
142901
|
+
let testComparator = remainingComparators.pop();
|
|
142902
|
+
while (result && remainingComparators.length) {
|
|
142903
|
+
result = remainingComparators.every((otherComparator) => {
|
|
142904
|
+
return testComparator.intersects(otherComparator, options);
|
|
142905
|
+
});
|
|
142906
|
+
testComparator = remainingComparators.pop();
|
|
142907
|
+
}
|
|
142908
|
+
return result;
|
|
142909
|
+
};
|
|
142910
|
+
const parseComparator = (comp, options) => {
|
|
142911
|
+
comp = comp.replace(re[t.BUILD], "");
|
|
142912
|
+
debug("comp", comp, options);
|
|
142913
|
+
comp = replaceCarets(comp, options);
|
|
142914
|
+
debug("caret", comp);
|
|
142915
|
+
comp = replaceTildes(comp, options);
|
|
142916
|
+
debug("tildes", comp);
|
|
142917
|
+
comp = replaceXRanges(comp, options);
|
|
142918
|
+
debug("xrange", comp);
|
|
142919
|
+
comp = replaceStars(comp, options);
|
|
142920
|
+
debug("stars", comp);
|
|
142921
|
+
return comp;
|
|
142922
|
+
};
|
|
142923
|
+
const isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
|
|
142924
|
+
const replaceTildes = (comp, options) => {
|
|
142925
|
+
return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
|
|
142926
|
+
};
|
|
142927
|
+
const replaceTilde = (comp, options) => {
|
|
142928
|
+
const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
|
|
142929
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
142930
|
+
debug("tilde", comp, _, M, m, p, pr);
|
|
142931
|
+
let ret;
|
|
142932
|
+
if (isX(M)) ret = "";
|
|
142933
|
+
else if (isX(m)) ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
|
|
142934
|
+
else if (isX(p)) ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
|
|
142935
|
+
else if (pr) {
|
|
142936
|
+
debug("replaceTilde pr", pr);
|
|
142937
|
+
ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
142938
|
+
} else ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
|
|
142939
|
+
debug("tilde return", ret);
|
|
142940
|
+
return ret;
|
|
142941
|
+
});
|
|
142942
|
+
};
|
|
142943
|
+
const replaceCarets = (comp, options) => {
|
|
142944
|
+
return comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" ");
|
|
142945
|
+
};
|
|
142946
|
+
const replaceCaret = (comp, options) => {
|
|
142947
|
+
debug("caret", comp, options);
|
|
142948
|
+
const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET];
|
|
142949
|
+
const z = options.includePrerelease ? "-0" : "";
|
|
142950
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
142951
|
+
debug("caret", comp, _, M, m, p, pr);
|
|
142952
|
+
let ret;
|
|
142953
|
+
if (isX(M)) ret = "";
|
|
142954
|
+
else if (isX(m)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
|
|
142955
|
+
else if (isX(p)) if (M === "0") ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
|
|
142956
|
+
else ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
|
|
142957
|
+
else if (pr) {
|
|
142958
|
+
debug("replaceCaret pr", pr);
|
|
142959
|
+
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;
|
|
142960
|
+
else ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
142961
|
+
else ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
|
|
142962
|
+
} else {
|
|
142963
|
+
debug("no pr");
|
|
142964
|
+
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0`;
|
|
142965
|
+
else ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0`;
|
|
142966
|
+
else ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
|
|
142967
|
+
}
|
|
142968
|
+
debug("caret return", ret);
|
|
142969
|
+
return ret;
|
|
142970
|
+
});
|
|
142971
|
+
};
|
|
142972
|
+
const replaceXRanges = (comp, options) => {
|
|
142973
|
+
debug("replaceXRanges", comp, options);
|
|
142974
|
+
return comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ");
|
|
142975
|
+
};
|
|
142976
|
+
const replaceXRange = (comp, options) => {
|
|
142977
|
+
comp = comp.trim();
|
|
142978
|
+
const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
|
|
142979
|
+
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
|
|
142980
|
+
debug("xRange", comp, ret, gtlt, M, m, p, pr);
|
|
142981
|
+
const xM = isX(M);
|
|
142982
|
+
const xm = xM || isX(m);
|
|
142983
|
+
const xp = xm || isX(p);
|
|
142984
|
+
const anyX = xp;
|
|
142985
|
+
if (gtlt === "=" && anyX) gtlt = "";
|
|
142986
|
+
pr = options.includePrerelease ? "-0" : "";
|
|
142987
|
+
if (xM) if (gtlt === ">" || gtlt === "<") ret = "<0.0.0-0";
|
|
142988
|
+
else ret = "*";
|
|
142989
|
+
else if (gtlt && anyX) {
|
|
142990
|
+
if (xm) m = 0;
|
|
142991
|
+
p = 0;
|
|
142992
|
+
if (gtlt === ">") {
|
|
142993
|
+
gtlt = ">=";
|
|
142994
|
+
if (xm) {
|
|
142995
|
+
M = +M + 1;
|
|
142996
|
+
m = 0;
|
|
142997
|
+
p = 0;
|
|
142998
|
+
} else {
|
|
142999
|
+
m = +m + 1;
|
|
143000
|
+
p = 0;
|
|
143001
|
+
}
|
|
143002
|
+
} else if (gtlt === "<=") {
|
|
143003
|
+
gtlt = "<";
|
|
143004
|
+
if (xm) M = +M + 1;
|
|
143005
|
+
else m = +m + 1;
|
|
143006
|
+
}
|
|
143007
|
+
if (gtlt === "<") pr = "-0";
|
|
143008
|
+
ret = `${gtlt + M}.${m}.${p}${pr}`;
|
|
143009
|
+
} else if (xm) ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
|
|
143010
|
+
else if (xp) ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;
|
|
143011
|
+
debug("xRange return", ret);
|
|
143012
|
+
return ret;
|
|
143013
|
+
});
|
|
143014
|
+
};
|
|
143015
|
+
const replaceStars = (comp, options) => {
|
|
143016
|
+
debug("replaceStars", comp, options);
|
|
143017
|
+
return comp.trim().replace(re[t.STAR], "");
|
|
143018
|
+
};
|
|
143019
|
+
const replaceGTE0 = (comp, options) => {
|
|
143020
|
+
debug("replaceGTE0", comp, options);
|
|
143021
|
+
return comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
|
|
143022
|
+
};
|
|
143023
|
+
const hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
|
|
143024
|
+
if (isX(fM)) from = "";
|
|
143025
|
+
else if (isX(fm)) from = `>=${fM}.0.0${incPr ? "-0" : ""}`;
|
|
143026
|
+
else if (isX(fp)) from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}`;
|
|
143027
|
+
else if (fpr) from = `>=${from}`;
|
|
143028
|
+
else from = `>=${from}${incPr ? "-0" : ""}`;
|
|
143029
|
+
if (isX(tM)) to = "";
|
|
143030
|
+
else if (isX(tm)) to = `<${+tM + 1}.0.0-0`;
|
|
143031
|
+
else if (isX(tp)) to = `<${tM}.${+tm + 1}.0-0`;
|
|
143032
|
+
else if (tpr) to = `<=${tM}.${tm}.${tp}-${tpr}`;
|
|
143033
|
+
else if (incPr) to = `<${tM}.${tm}.${+tp + 1}-0`;
|
|
143034
|
+
else to = `<=${to}`;
|
|
143035
|
+
return `${from} ${to}`.trim();
|
|
143036
|
+
};
|
|
143037
|
+
const testSet = (set, version, options) => {
|
|
143038
|
+
for (let i = 0; i < set.length; i++) if (!set[i].test(version)) return false;
|
|
143039
|
+
if (version.prerelease.length && !options.includePrerelease) {
|
|
143040
|
+
for (let i = 0; i < set.length; i++) {
|
|
143041
|
+
debug(set[i].semver);
|
|
143042
|
+
if (set[i].semver === Comparator.ANY) continue;
|
|
143043
|
+
if (set[i].semver.prerelease.length > 0) {
|
|
143044
|
+
const allowed = set[i].semver;
|
|
143045
|
+
if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) return true;
|
|
143046
|
+
}
|
|
143047
|
+
}
|
|
143048
|
+
return false;
|
|
143049
|
+
}
|
|
143050
|
+
return true;
|
|
143051
|
+
};
|
|
143052
|
+
}));
|
|
143053
|
+
//#endregion
|
|
143054
|
+
//#region ../../packages/core-node/node_modules/semver/classes/comparator.js
|
|
143055
|
+
var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143056
|
+
const ANY = Symbol("SemVer ANY");
|
|
143057
|
+
module.exports = class Comparator {
|
|
143058
|
+
static get ANY() {
|
|
143059
|
+
return ANY;
|
|
143060
|
+
}
|
|
143061
|
+
constructor(comp, options) {
|
|
143062
|
+
options = parseOptions(options);
|
|
143063
|
+
if (comp instanceof Comparator) if (comp.loose === !!options.loose) return comp;
|
|
143064
|
+
else comp = comp.value;
|
|
143065
|
+
comp = comp.trim().split(/\s+/).join(" ");
|
|
143066
|
+
debug("comparator", comp, options);
|
|
143067
|
+
this.options = options;
|
|
143068
|
+
this.loose = !!options.loose;
|
|
143069
|
+
this.parse(comp);
|
|
143070
|
+
if (this.semver === ANY) this.value = "";
|
|
143071
|
+
else this.value = this.operator + this.semver.version;
|
|
143072
|
+
debug("comp", this);
|
|
143073
|
+
}
|
|
143074
|
+
parse(comp) {
|
|
143075
|
+
const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR];
|
|
143076
|
+
const m = comp.match(r);
|
|
143077
|
+
if (!m) throw new TypeError(`Invalid comparator: ${comp}`);
|
|
143078
|
+
this.operator = m[1] !== void 0 ? m[1] : "";
|
|
143079
|
+
if (this.operator === "=") this.operator = "";
|
|
143080
|
+
if (!m[2]) this.semver = ANY;
|
|
143081
|
+
else this.semver = new SemVer(m[2], this.options.loose);
|
|
143082
|
+
}
|
|
143083
|
+
toString() {
|
|
143084
|
+
return this.value;
|
|
143085
|
+
}
|
|
143086
|
+
test(version) {
|
|
143087
|
+
debug("Comparator.test", version, this.options.loose);
|
|
143088
|
+
if (this.semver === ANY || version === ANY) return true;
|
|
143089
|
+
if (typeof version === "string") try {
|
|
143090
|
+
version = new SemVer(version, this.options);
|
|
143091
|
+
} catch (er) {
|
|
143092
|
+
return false;
|
|
143093
|
+
}
|
|
143094
|
+
return cmp(version, this.operator, this.semver, this.options);
|
|
143095
|
+
}
|
|
143096
|
+
intersects(comp, options) {
|
|
143097
|
+
if (!(comp instanceof Comparator)) throw new TypeError("a Comparator is required");
|
|
143098
|
+
if (this.operator === "") {
|
|
143099
|
+
if (this.value === "") return true;
|
|
143100
|
+
return new Range(comp.value, options).test(this.value);
|
|
143101
|
+
} else if (comp.operator === "") {
|
|
143102
|
+
if (comp.value === "") return true;
|
|
143103
|
+
return new Range(this.value, options).test(comp.semver);
|
|
143104
|
+
}
|
|
143105
|
+
options = parseOptions(options);
|
|
143106
|
+
if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) return false;
|
|
143107
|
+
if (!options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0"))) return false;
|
|
143108
|
+
if (this.operator.startsWith(">") && comp.operator.startsWith(">")) return true;
|
|
143109
|
+
if (this.operator.startsWith("<") && comp.operator.startsWith("<")) return true;
|
|
143110
|
+
if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) return true;
|
|
143111
|
+
if (cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) return true;
|
|
143112
|
+
if (cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) return true;
|
|
143113
|
+
return false;
|
|
143114
|
+
}
|
|
143115
|
+
};
|
|
143116
|
+
const parseOptions = require_parse_options();
|
|
143117
|
+
const { safeRe: re, t } = require_re();
|
|
143118
|
+
const cmp = require_cmp();
|
|
143119
|
+
const debug = require_debug();
|
|
143120
|
+
const SemVer = require_semver$1();
|
|
143121
|
+
const Range = require_range();
|
|
143122
|
+
}));
|
|
143123
|
+
//#endregion
|
|
143124
|
+
//#region ../../packages/core-node/node_modules/semver/functions/satisfies.js
|
|
143125
|
+
var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143126
|
+
const Range = require_range();
|
|
143127
|
+
const satisfies = (version, range, options) => {
|
|
143128
|
+
try {
|
|
143129
|
+
range = new Range(range, options);
|
|
143130
|
+
} catch (er) {
|
|
143131
|
+
return false;
|
|
143132
|
+
}
|
|
143133
|
+
return range.test(version);
|
|
143134
|
+
};
|
|
143135
|
+
module.exports = satisfies;
|
|
143136
|
+
}));
|
|
143137
|
+
//#endregion
|
|
143138
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/to-comparators.js
|
|
143139
|
+
var require_to_comparators = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143140
|
+
const Range = require_range();
|
|
143141
|
+
const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
143142
|
+
module.exports = toComparators;
|
|
143143
|
+
}));
|
|
143144
|
+
//#endregion
|
|
143145
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/max-satisfying.js
|
|
143146
|
+
var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143147
|
+
const SemVer = require_semver$1();
|
|
143148
|
+
const Range = require_range();
|
|
143149
|
+
const maxSatisfying = (versions, range, options) => {
|
|
143150
|
+
let max = null;
|
|
143151
|
+
let maxSV = null;
|
|
143152
|
+
let rangeObj = null;
|
|
143153
|
+
try {
|
|
143154
|
+
rangeObj = new Range(range, options);
|
|
143155
|
+
} catch (er) {
|
|
143156
|
+
return null;
|
|
143157
|
+
}
|
|
143158
|
+
versions.forEach((v) => {
|
|
143159
|
+
if (rangeObj.test(v)) {
|
|
143160
|
+
if (!max || maxSV.compare(v) === -1) {
|
|
143161
|
+
max = v;
|
|
143162
|
+
maxSV = new SemVer(max, options);
|
|
143163
|
+
}
|
|
143164
|
+
}
|
|
143165
|
+
});
|
|
143166
|
+
return max;
|
|
143167
|
+
};
|
|
143168
|
+
module.exports = maxSatisfying;
|
|
143169
|
+
}));
|
|
143170
|
+
//#endregion
|
|
143171
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/min-satisfying.js
|
|
143172
|
+
var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143173
|
+
const SemVer = require_semver$1();
|
|
143174
|
+
const Range = require_range();
|
|
143175
|
+
const minSatisfying = (versions, range, options) => {
|
|
143176
|
+
let min = null;
|
|
143177
|
+
let minSV = null;
|
|
143178
|
+
let rangeObj = null;
|
|
143179
|
+
try {
|
|
143180
|
+
rangeObj = new Range(range, options);
|
|
143181
|
+
} catch (er) {
|
|
143182
|
+
return null;
|
|
143183
|
+
}
|
|
143184
|
+
versions.forEach((v) => {
|
|
143185
|
+
if (rangeObj.test(v)) {
|
|
143186
|
+
if (!min || minSV.compare(v) === 1) {
|
|
143187
|
+
min = v;
|
|
143188
|
+
minSV = new SemVer(min, options);
|
|
143189
|
+
}
|
|
143190
|
+
}
|
|
143191
|
+
});
|
|
143192
|
+
return min;
|
|
143193
|
+
};
|
|
143194
|
+
module.exports = minSatisfying;
|
|
143195
|
+
}));
|
|
143196
|
+
//#endregion
|
|
143197
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/min-version.js
|
|
143198
|
+
var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143199
|
+
const SemVer = require_semver$1();
|
|
143200
|
+
const Range = require_range();
|
|
143201
|
+
const gt = require_gt();
|
|
143202
|
+
const minVersion = (range, loose) => {
|
|
143203
|
+
range = new Range(range, loose);
|
|
143204
|
+
let minver = new SemVer("0.0.0");
|
|
143205
|
+
if (range.test(minver)) return minver;
|
|
143206
|
+
minver = new SemVer("0.0.0-0");
|
|
143207
|
+
if (range.test(minver)) return minver;
|
|
143208
|
+
minver = null;
|
|
143209
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
143210
|
+
const comparators = range.set[i];
|
|
143211
|
+
let setMin = null;
|
|
143212
|
+
comparators.forEach((comparator) => {
|
|
143213
|
+
const compver = new SemVer(comparator.semver.version);
|
|
143214
|
+
switch (comparator.operator) {
|
|
143215
|
+
case ">":
|
|
143216
|
+
if (compver.prerelease.length === 0) compver.patch++;
|
|
143217
|
+
else compver.prerelease.push(0);
|
|
143218
|
+
compver.raw = compver.format();
|
|
143219
|
+
case "":
|
|
143220
|
+
case ">=":
|
|
143221
|
+
if (!setMin || gt(compver, setMin)) setMin = compver;
|
|
143222
|
+
break;
|
|
143223
|
+
case "<":
|
|
143224
|
+
case "<=": break;
|
|
143225
|
+
default: throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
143226
|
+
}
|
|
143227
|
+
});
|
|
143228
|
+
if (setMin && (!minver || gt(minver, setMin))) minver = setMin;
|
|
143229
|
+
}
|
|
143230
|
+
if (minver && range.test(minver)) return minver;
|
|
143231
|
+
return null;
|
|
143232
|
+
};
|
|
143233
|
+
module.exports = minVersion;
|
|
143234
|
+
}));
|
|
143235
|
+
//#endregion
|
|
143236
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/valid.js
|
|
143237
|
+
var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143238
|
+
const Range = require_range();
|
|
143239
|
+
const validRange = (range, options) => {
|
|
143240
|
+
try {
|
|
143241
|
+
return new Range(range, options).range || "*";
|
|
143242
|
+
} catch (er) {
|
|
143243
|
+
return null;
|
|
143244
|
+
}
|
|
143245
|
+
};
|
|
143246
|
+
module.exports = validRange;
|
|
143247
|
+
}));
|
|
143248
|
+
//#endregion
|
|
143249
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/outside.js
|
|
143250
|
+
var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143251
|
+
const SemVer = require_semver$1();
|
|
143252
|
+
const Comparator = require_comparator();
|
|
143253
|
+
const { ANY } = Comparator;
|
|
143254
|
+
const Range = require_range();
|
|
143255
|
+
const satisfies = require_satisfies();
|
|
143256
|
+
const gt = require_gt();
|
|
143257
|
+
const lt = require_lt();
|
|
143258
|
+
const lte = require_lte();
|
|
143259
|
+
const gte = require_gte();
|
|
143260
|
+
const outside = (version, range, hilo, options) => {
|
|
143261
|
+
version = new SemVer(version, options);
|
|
143262
|
+
range = new Range(range, options);
|
|
143263
|
+
let gtfn, ltefn, ltfn, comp, ecomp;
|
|
143264
|
+
switch (hilo) {
|
|
143265
|
+
case ">":
|
|
143266
|
+
gtfn = gt;
|
|
143267
|
+
ltefn = lte;
|
|
143268
|
+
ltfn = lt;
|
|
143269
|
+
comp = ">";
|
|
143270
|
+
ecomp = ">=";
|
|
143271
|
+
break;
|
|
143272
|
+
case "<":
|
|
143273
|
+
gtfn = lt;
|
|
143274
|
+
ltefn = gte;
|
|
143275
|
+
ltfn = gt;
|
|
143276
|
+
comp = "<";
|
|
143277
|
+
ecomp = "<=";
|
|
143278
|
+
break;
|
|
143279
|
+
default: throw new TypeError("Must provide a hilo val of \"<\" or \">\"");
|
|
143280
|
+
}
|
|
143281
|
+
if (satisfies(version, range, options)) return false;
|
|
143282
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
143283
|
+
const comparators = range.set[i];
|
|
143284
|
+
let high = null;
|
|
143285
|
+
let low = null;
|
|
143286
|
+
comparators.forEach((comparator) => {
|
|
143287
|
+
if (comparator.semver === ANY) comparator = new Comparator(">=0.0.0");
|
|
143288
|
+
high = high || comparator;
|
|
143289
|
+
low = low || comparator;
|
|
143290
|
+
if (gtfn(comparator.semver, high.semver, options)) high = comparator;
|
|
143291
|
+
else if (ltfn(comparator.semver, low.semver, options)) low = comparator;
|
|
143292
|
+
});
|
|
143293
|
+
if (high.operator === comp || high.operator === ecomp) return false;
|
|
143294
|
+
if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) return false;
|
|
143295
|
+
else if (low.operator === ecomp && ltfn(version, low.semver)) return false;
|
|
143296
|
+
}
|
|
143297
|
+
return true;
|
|
143298
|
+
};
|
|
143299
|
+
module.exports = outside;
|
|
143300
|
+
}));
|
|
143301
|
+
//#endregion
|
|
143302
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/gtr.js
|
|
143303
|
+
var require_gtr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143304
|
+
const outside = require_outside();
|
|
143305
|
+
const gtr = (version, range, options) => outside(version, range, ">", options);
|
|
143306
|
+
module.exports = gtr;
|
|
143307
|
+
}));
|
|
143308
|
+
//#endregion
|
|
143309
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/ltr.js
|
|
143310
|
+
var require_ltr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143311
|
+
const outside = require_outside();
|
|
143312
|
+
const ltr = (version, range, options) => outside(version, range, "<", options);
|
|
143313
|
+
module.exports = ltr;
|
|
143314
|
+
}));
|
|
143315
|
+
//#endregion
|
|
143316
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/intersects.js
|
|
143317
|
+
var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143318
|
+
const Range = require_range();
|
|
143319
|
+
const intersects = (r1, r2, options) => {
|
|
143320
|
+
r1 = new Range(r1, options);
|
|
143321
|
+
r2 = new Range(r2, options);
|
|
143322
|
+
return r1.intersects(r2, options);
|
|
143323
|
+
};
|
|
143324
|
+
module.exports = intersects;
|
|
143325
|
+
}));
|
|
143326
|
+
//#endregion
|
|
143327
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/simplify.js
|
|
143328
|
+
var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143329
|
+
const satisfies = require_satisfies();
|
|
143330
|
+
const compare = require_compare();
|
|
143331
|
+
module.exports = (versions, range, options) => {
|
|
143332
|
+
const set = [];
|
|
143333
|
+
let first = null;
|
|
143334
|
+
let prev = null;
|
|
143335
|
+
const v = versions.sort((a, b) => compare(a, b, options));
|
|
143336
|
+
for (const version of v) if (satisfies(version, range, options)) {
|
|
143337
|
+
prev = version;
|
|
143338
|
+
if (!first) first = version;
|
|
143339
|
+
} else {
|
|
143340
|
+
if (prev) set.push([first, prev]);
|
|
143341
|
+
prev = null;
|
|
143342
|
+
first = null;
|
|
143343
|
+
}
|
|
143344
|
+
if (first) set.push([first, null]);
|
|
143345
|
+
const ranges = [];
|
|
143346
|
+
for (const [min, max] of set) if (min === max) ranges.push(min);
|
|
143347
|
+
else if (!max && min === v[0]) ranges.push("*");
|
|
143348
|
+
else if (!max) ranges.push(`>=${min}`);
|
|
143349
|
+
else if (min === v[0]) ranges.push(`<=${max}`);
|
|
143350
|
+
else ranges.push(`${min} - ${max}`);
|
|
143351
|
+
const simplified = ranges.join(" || ");
|
|
143352
|
+
const original = typeof range.raw === "string" ? range.raw : String(range);
|
|
143353
|
+
return simplified.length < original.length ? simplified : range;
|
|
143354
|
+
};
|
|
143355
|
+
}));
|
|
143356
|
+
//#endregion
|
|
143357
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/subset.js
|
|
143358
|
+
var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143359
|
+
const Range = require_range();
|
|
143360
|
+
const Comparator = require_comparator();
|
|
143361
|
+
const { ANY } = Comparator;
|
|
143362
|
+
const satisfies = require_satisfies();
|
|
143363
|
+
const compare = require_compare();
|
|
143364
|
+
const subset = (sub, dom, options = {}) => {
|
|
143365
|
+
if (sub === dom) return true;
|
|
143366
|
+
sub = new Range(sub, options);
|
|
143367
|
+
dom = new Range(dom, options);
|
|
143368
|
+
let sawNonNull = false;
|
|
143369
|
+
OUTER: for (const simpleSub of sub.set) {
|
|
143370
|
+
for (const simpleDom of dom.set) {
|
|
143371
|
+
const isSub = simpleSubset(simpleSub, simpleDom, options);
|
|
143372
|
+
sawNonNull = sawNonNull || isSub !== null;
|
|
143373
|
+
if (isSub) continue OUTER;
|
|
143374
|
+
}
|
|
143375
|
+
if (sawNonNull) return false;
|
|
143376
|
+
}
|
|
143377
|
+
return true;
|
|
143378
|
+
};
|
|
143379
|
+
const minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")];
|
|
143380
|
+
const minimumVersion = [new Comparator(">=0.0.0")];
|
|
143381
|
+
const simpleSubset = (sub, dom, options) => {
|
|
143382
|
+
if (sub === dom) return true;
|
|
143383
|
+
if (sub.length === 1 && sub[0].semver === ANY) if (dom.length === 1 && dom[0].semver === ANY) return true;
|
|
143384
|
+
else if (options.includePrerelease) sub = minimumVersionWithPreRelease;
|
|
143385
|
+
else sub = minimumVersion;
|
|
143386
|
+
if (dom.length === 1 && dom[0].semver === ANY) if (options.includePrerelease) return true;
|
|
143387
|
+
else dom = minimumVersion;
|
|
143388
|
+
const eqSet = /* @__PURE__ */ new Set();
|
|
143389
|
+
let gt, lt;
|
|
143390
|
+
for (const c of sub) if (c.operator === ">" || c.operator === ">=") gt = higherGT(gt, c, options);
|
|
143391
|
+
else if (c.operator === "<" || c.operator === "<=") lt = lowerLT(lt, c, options);
|
|
143392
|
+
else eqSet.add(c.semver);
|
|
143393
|
+
if (eqSet.size > 1) return null;
|
|
143394
|
+
let gtltComp;
|
|
143395
|
+
if (gt && lt) {
|
|
143396
|
+
gtltComp = compare(gt.semver, lt.semver, options);
|
|
143397
|
+
if (gtltComp > 0) return null;
|
|
143398
|
+
else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) return null;
|
|
143399
|
+
}
|
|
143400
|
+
for (const eq of eqSet) {
|
|
143401
|
+
if (gt && !satisfies(eq, String(gt), options)) return null;
|
|
143402
|
+
if (lt && !satisfies(eq, String(lt), options)) return null;
|
|
143403
|
+
for (const c of dom) if (!satisfies(eq, String(c), options)) return false;
|
|
143404
|
+
return true;
|
|
143405
|
+
}
|
|
143406
|
+
let higher, lower;
|
|
143407
|
+
let hasDomLT, hasDomGT;
|
|
143408
|
+
let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;
|
|
143409
|
+
let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;
|
|
143410
|
+
if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0) needDomLTPre = false;
|
|
143411
|
+
for (const c of dom) {
|
|
143412
|
+
hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=";
|
|
143413
|
+
hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=";
|
|
143414
|
+
if (gt) {
|
|
143415
|
+
if (needDomGTPre) {
|
|
143416
|
+
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;
|
|
143417
|
+
}
|
|
143418
|
+
if (c.operator === ">" || c.operator === ">=") {
|
|
143419
|
+
higher = higherGT(gt, c, options);
|
|
143420
|
+
if (higher === c && higher !== gt) return false;
|
|
143421
|
+
} else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options)) return false;
|
|
143422
|
+
}
|
|
143423
|
+
if (lt) {
|
|
143424
|
+
if (needDomLTPre) {
|
|
143425
|
+
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;
|
|
143426
|
+
}
|
|
143427
|
+
if (c.operator === "<" || c.operator === "<=") {
|
|
143428
|
+
lower = lowerLT(lt, c, options);
|
|
143429
|
+
if (lower === c && lower !== lt) return false;
|
|
143430
|
+
} else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options)) return false;
|
|
143431
|
+
}
|
|
143432
|
+
if (!c.operator && (lt || gt) && gtltComp !== 0) return false;
|
|
143433
|
+
}
|
|
143434
|
+
if (gt && hasDomLT && !lt && gtltComp !== 0) return false;
|
|
143435
|
+
if (lt && hasDomGT && !gt && gtltComp !== 0) return false;
|
|
143436
|
+
if (needDomGTPre || needDomLTPre) return false;
|
|
143437
|
+
return true;
|
|
143438
|
+
};
|
|
143439
|
+
const higherGT = (a, b, options) => {
|
|
143440
|
+
if (!a) return b;
|
|
143441
|
+
const comp = compare(a.semver, b.semver, options);
|
|
143442
|
+
return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
|
|
143443
|
+
};
|
|
143444
|
+
const lowerLT = (a, b, options) => {
|
|
143445
|
+
if (!a) return b;
|
|
143446
|
+
const comp = compare(a.semver, b.semver, options);
|
|
143447
|
+
return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
|
|
143448
|
+
};
|
|
143449
|
+
module.exports = subset;
|
|
143450
|
+
}));
|
|
143451
|
+
//#endregion
|
|
143452
|
+
//#region ../../packages/core-node/node_modules/semver/index.js
|
|
143453
|
+
var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143454
|
+
const internalRe = require_re();
|
|
143455
|
+
const constants = require_constants();
|
|
143456
|
+
const SemVer = require_semver$1();
|
|
143457
|
+
const identifiers = require_identifiers();
|
|
143458
|
+
module.exports = {
|
|
143459
|
+
parse: require_parse(),
|
|
143460
|
+
valid: require_valid$1(),
|
|
143461
|
+
clean: require_clean(),
|
|
143462
|
+
inc: require_inc(),
|
|
143463
|
+
diff: require_diff(),
|
|
143464
|
+
major: require_major(),
|
|
143465
|
+
minor: require_minor(),
|
|
143466
|
+
patch: require_patch(),
|
|
143467
|
+
prerelease: require_prerelease(),
|
|
143468
|
+
compare: require_compare(),
|
|
143469
|
+
rcompare: require_rcompare(),
|
|
143470
|
+
compareLoose: require_compare_loose(),
|
|
143471
|
+
compareBuild: require_compare_build(),
|
|
143472
|
+
sort: require_sort(),
|
|
143473
|
+
rsort: require_rsort(),
|
|
143474
|
+
gt: require_gt(),
|
|
143475
|
+
lt: require_lt(),
|
|
143476
|
+
eq: require_eq(),
|
|
143477
|
+
neq: require_neq(),
|
|
143478
|
+
gte: require_gte(),
|
|
143479
|
+
lte: require_lte(),
|
|
143480
|
+
cmp: require_cmp(),
|
|
143481
|
+
coerce: require_coerce(),
|
|
143482
|
+
Comparator: require_comparator(),
|
|
143483
|
+
Range: require_range(),
|
|
143484
|
+
satisfies: require_satisfies(),
|
|
143485
|
+
toComparators: require_to_comparators(),
|
|
143486
|
+
maxSatisfying: require_max_satisfying(),
|
|
143487
|
+
minSatisfying: require_min_satisfying(),
|
|
143488
|
+
minVersion: require_min_version(),
|
|
143489
|
+
validRange: require_valid(),
|
|
143490
|
+
outside: require_outside(),
|
|
143491
|
+
gtr: require_gtr(),
|
|
143492
|
+
ltr: require_ltr(),
|
|
143493
|
+
intersects: require_intersects(),
|
|
143494
|
+
simplifyRange: require_simplify(),
|
|
143495
|
+
subset: require_subset(),
|
|
143496
|
+
SemVer,
|
|
143497
|
+
re: internalRe.re,
|
|
143498
|
+
src: internalRe.src,
|
|
143499
|
+
tokens: internalRe.t,
|
|
143500
|
+
SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
|
|
143501
|
+
RELEASE_TYPES: constants.RELEASE_TYPES,
|
|
143502
|
+
compareIdentifiers: identifiers.compareIdentifiers,
|
|
143503
|
+
rcompareIdentifiers: identifiers.rcompareIdentifiers
|
|
143504
|
+
};
|
|
143505
|
+
}));
|
|
143506
|
+
//#endregion
|
|
140630
143507
|
//#region ../../node_modules/serve-handler/src/glob-slash.js
|
|
140631
143508
|
var require_glob_slash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
140632
143509
|
const path$5 = __require("path");
|
|
@@ -148016,11 +150893,32 @@ var require_error = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
148016
150893
|
stream.pipe(response);
|
|
148017
150894
|
};
|
|
148018
150895
|
})))();
|
|
150896
|
+
require_semver();
|
|
148019
150897
|
require_lib();
|
|
148020
150898
|
//#endregion
|
|
148021
150899
|
//#region ../../packages/core-node/src/handler-func.ts
|
|
148022
150900
|
const { join: join$1 } = path;
|
|
148023
150901
|
//#endregion
|
|
150902
|
+
//#region ../../packages/core-node/src/handlers/plugins.ts
|
|
150903
|
+
const localPluginsMap = /* @__PURE__ */ new Map();
|
|
150904
|
+
if (isDev && projectRoot) {
|
|
150905
|
+
const pluginsDir = join(projectRoot, "plugins");
|
|
150906
|
+
if (existsSync(pluginsDir)) try {
|
|
150907
|
+
const entries = readdirSync(pluginsDir, { withFileTypes: true });
|
|
150908
|
+
for (const entry of entries) if (entry.isDirectory()) {
|
|
150909
|
+
const pkgPath = join(pluginsDir, entry.name, "package.json");
|
|
150910
|
+
if (existsSync(pkgPath)) try {
|
|
150911
|
+
const pkg = JSON.parse(readFileSync(pkgPath, "utf-8"));
|
|
150912
|
+
if (pkg.name) localPluginsMap.set(pkg.name, join(pluginsDir, entry.name));
|
|
150913
|
+
} catch (e) {
|
|
150914
|
+
console.error(`[Plugins] Failed to parse package.json for ${entry.name}:`, e);
|
|
150915
|
+
}
|
|
150916
|
+
}
|
|
150917
|
+
} catch (e) {
|
|
150918
|
+
console.error(`[Plugins] Failed to scan local workspace plugins directory:`, e);
|
|
150919
|
+
}
|
|
150920
|
+
}
|
|
150921
|
+
//#endregion
|
|
148024
150922
|
//#region ../plugin-core/src/pipelab.ts
|
|
148025
150923
|
const createActionRunner = (runner) => runner;
|
|
148026
150924
|
const zip = createAction({
|
|
@@ -149340,45 +152238,36 @@ const openInExplorerRunner = createActionRunner(async ({ log, inputs, setOutput
|
|
|
149340
152238
|
});
|
|
149341
152239
|
//#endregion
|
|
149342
152240
|
//#region src/index.ts
|
|
149343
|
-
var src_default = createNodeDefinition({
|
|
149344
|
-
|
|
149345
|
-
|
|
149346
|
-
|
|
149347
|
-
icon: {
|
|
149348
|
-
type: "icon",
|
|
149349
|
-
icon: "mdi-folder-zip-outline"
|
|
152241
|
+
var src_default = createNodeDefinition({ nodes: [
|
|
152242
|
+
{
|
|
152243
|
+
node: zip,
|
|
152244
|
+
runner: zipRunner
|
|
149350
152245
|
},
|
|
149351
|
-
|
|
149352
|
-
|
|
149353
|
-
|
|
149354
|
-
|
|
149355
|
-
|
|
149356
|
-
|
|
149357
|
-
|
|
149358
|
-
|
|
149359
|
-
|
|
149360
|
-
|
|
149361
|
-
|
|
149362
|
-
|
|
149363
|
-
|
|
149364
|
-
|
|
149365
|
-
|
|
149366
|
-
|
|
149367
|
-
|
|
149368
|
-
|
|
149369
|
-
|
|
149370
|
-
|
|
149371
|
-
|
|
149372
|
-
|
|
149373
|
-
|
|
149374
|
-
|
|
149375
|
-
|
|
149376
|
-
{
|
|
149377
|
-
node: openInExplorer,
|
|
149378
|
-
runner: openInExplorerRunner
|
|
149379
|
-
}
|
|
149380
|
-
]
|
|
149381
|
-
});
|
|
152246
|
+
{
|
|
152247
|
+
node: zipV2,
|
|
152248
|
+
runner: zipV2Runner
|
|
152249
|
+
},
|
|
152250
|
+
{
|
|
152251
|
+
node: unzip,
|
|
152252
|
+
runner: unzipRunner
|
|
152253
|
+
},
|
|
152254
|
+
{
|
|
152255
|
+
node: copy,
|
|
152256
|
+
runner: copyRunner
|
|
152257
|
+
},
|
|
152258
|
+
{
|
|
152259
|
+
node: remove,
|
|
152260
|
+
runner: removeRunner
|
|
152261
|
+
},
|
|
152262
|
+
{
|
|
152263
|
+
node: run,
|
|
152264
|
+
runner: runRunner
|
|
152265
|
+
},
|
|
152266
|
+
{
|
|
152267
|
+
node: openInExplorer,
|
|
152268
|
+
runner: openInExplorerRunner
|
|
152269
|
+
}
|
|
152270
|
+
] });
|
|
149382
152271
|
//#endregion
|
|
149383
152272
|
export { src_default as default };
|
|
149384
152273
|
|