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