@pipelab/plugin-itch 1.0.0-beta.12 → 1.0.0-beta.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/itch-icon.webp +0 -0
- package/dist/index.cjs +3693 -804
- package/dist/index.mjs +3278 -392
- package/dist/index.mjs.map +1 -1
- package/package.json +21 -3
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as __require, i as __reExport, n as __esmMin, o as __toESM, r as __exportAll, t as __commonJSMin } from "./chunk-kImr3pkf.mjs";
|
|
2
2
|
import path, { delimiter, dirname, join } from "node:path";
|
|
3
3
|
import { access, chmod, mkdir, mkdtemp, realpath, rm } from "node:fs/promises";
|
|
4
|
-
import { appendFileSync, constants, createReadStream, createWriteStream, existsSync, readFileSync, statSync, writeFileSync } from "node:fs";
|
|
4
|
+
import { appendFileSync, constants, createReadStream, createWriteStream, existsSync, readFileSync, readdirSync, statSync, writeFileSync } from "node:fs";
|
|
5
5
|
import { hostname } from "os";
|
|
6
6
|
import { normalize } from "path";
|
|
7
7
|
import { formatWithOptions, types } from "util";
|
|
@@ -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();
|
|
@@ -71128,7 +71297,7 @@ var require__baseRest = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
71128
71297
|
}));
|
|
71129
71298
|
//#endregion
|
|
71130
71299
|
//#region ../../node_modules/lodash/eq.js
|
|
71131
|
-
var require_eq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
71300
|
+
var require_eq$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
71132
71301
|
/**
|
|
71133
71302
|
* Performs a
|
|
71134
71303
|
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
@@ -71261,7 +71430,7 @@ var require__isIndex = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
71261
71430
|
//#endregion
|
|
71262
71431
|
//#region ../../node_modules/lodash/_isIterateeCall.js
|
|
71263
71432
|
var require__isIterateeCall = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
71264
|
-
var eq = require_eq(), isArrayLike = require_isArrayLike(), isIndex = require__isIndex(), isObject = require_isObject();
|
|
71433
|
+
var eq = require_eq$2(), isArrayLike = require_isArrayLike(), isIndex = require__isIndex(), isObject = require_isObject();
|
|
71265
71434
|
/**
|
|
71266
71435
|
* Checks if the given arguments are from an iteratee call.
|
|
71267
71436
|
*
|
|
@@ -71582,7 +71751,7 @@ var require_keysIn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
71582
71751
|
//#endregion
|
|
71583
71752
|
//#region ../../node_modules/lodash/defaults.js
|
|
71584
71753
|
var require_defaults = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
71585
|
-
var baseRest = require__baseRest(), eq = require_eq(), isIterateeCall = require__isIterateeCall(), keysIn = require_keysIn();
|
|
71754
|
+
var baseRest = require__baseRest(), eq = require_eq$2(), isIterateeCall = require__isIterateeCall(), keysIn = require_keysIn();
|
|
71586
71755
|
/** Used for built-in method references. */
|
|
71587
71756
|
var objectProto = Object.prototype;
|
|
71588
71757
|
/** Used to check objects for own properties. */
|
|
@@ -77204,7 +77373,7 @@ var require__listCacheClear = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
77204
77373
|
//#endregion
|
|
77205
77374
|
//#region ../../node_modules/lodash/_assocIndexOf.js
|
|
77206
77375
|
var require__assocIndexOf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
77207
|
-
var eq = require_eq();
|
|
77376
|
+
var eq = require_eq$2();
|
|
77208
77377
|
/**
|
|
77209
77378
|
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
77210
77379
|
*
|
|
@@ -85136,7 +85305,7 @@ var require_unix_stat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
85136
85305
|
}));
|
|
85137
85306
|
//#endregion
|
|
85138
85307
|
//#region ../../node_modules/compress-commons/lib/archivers/zip/constants.js
|
|
85139
|
-
var require_constants$
|
|
85308
|
+
var require_constants$7 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
85140
85309
|
/**
|
|
85141
85310
|
* node-compress-commons
|
|
85142
85311
|
*
|
|
@@ -85211,7 +85380,7 @@ var require_zip_archive_entry = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
85211
85380
|
var ArchiveEntry = require_archive_entry();
|
|
85212
85381
|
var GeneralPurposeBit = require_general_purpose_bit();
|
|
85213
85382
|
var UnixStat = require_unix_stat();
|
|
85214
|
-
var constants = require_constants$
|
|
85383
|
+
var constants = require_constants$7();
|
|
85215
85384
|
var zipUtil = require_util$3();
|
|
85216
85385
|
var ZipArchiveEntry = module.exports = function(name) {
|
|
85217
85386
|
if (!(this instanceof ZipArchiveEntry)) return new ZipArchiveEntry(name);
|
|
@@ -85845,7 +86014,7 @@ var require_zip_archive_output_stream = /* @__PURE__ */ __commonJSMin(((exports,
|
|
|
85845
86014
|
var ArchiveOutputStream = require_archive_output_stream();
|
|
85846
86015
|
require_zip_archive_entry();
|
|
85847
86016
|
require_general_purpose_bit();
|
|
85848
|
-
var constants = require_constants$
|
|
86017
|
+
var constants = require_constants$7();
|
|
85849
86018
|
require_util$2();
|
|
85850
86019
|
var zipUtil = require_util$3();
|
|
85851
86020
|
var ZipArchiveOutputStream = module.exports = function(options) {
|
|
@@ -88342,7 +88511,7 @@ var require_extract = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
88342
88511
|
}));
|
|
88343
88512
|
//#endregion
|
|
88344
88513
|
//#region ../../node_modules/tar-stream/constants.js
|
|
88345
|
-
var require_constants$
|
|
88514
|
+
var require_constants$6 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
88346
88515
|
const constants = {
|
|
88347
88516
|
S_IFMT: 61440,
|
|
88348
88517
|
S_IFDIR: 16384,
|
|
@@ -88362,7 +88531,7 @@ var require_constants$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
88362
88531
|
var require_pack = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
88363
88532
|
const { Readable, Writable, getStreamError } = require_streamx();
|
|
88364
88533
|
const b4a = require_b4a();
|
|
88365
|
-
const constants = require_constants$
|
|
88534
|
+
const constants = require_constants$6();
|
|
88366
88535
|
const headers = require_headers$1();
|
|
88367
88536
|
const DMODE = 493;
|
|
88368
88537
|
const FMODE = 420;
|
|
@@ -89378,6 +89547,360 @@ var require_update_workspaces = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
89378
89547
|
module.exports = updateWorkspaces;
|
|
89379
89548
|
}));
|
|
89380
89549
|
//#endregion
|
|
89550
|
+
//#region ../../node_modules/semver/internal/debug.js
|
|
89551
|
+
var require_debug$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89552
|
+
module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
89553
|
+
}));
|
|
89554
|
+
//#endregion
|
|
89555
|
+
//#region ../../node_modules/semver/internal/constants.js
|
|
89556
|
+
var require_constants$5 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89557
|
+
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
89558
|
+
const MAX_LENGTH = 256;
|
|
89559
|
+
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
89560
|
+
module.exports = {
|
|
89561
|
+
MAX_LENGTH,
|
|
89562
|
+
MAX_SAFE_COMPONENT_LENGTH: 16,
|
|
89563
|
+
MAX_SAFE_BUILD_LENGTH: MAX_LENGTH - 6,
|
|
89564
|
+
MAX_SAFE_INTEGER,
|
|
89565
|
+
RELEASE_TYPES: [
|
|
89566
|
+
"major",
|
|
89567
|
+
"premajor",
|
|
89568
|
+
"minor",
|
|
89569
|
+
"preminor",
|
|
89570
|
+
"patch",
|
|
89571
|
+
"prepatch",
|
|
89572
|
+
"prerelease"
|
|
89573
|
+
],
|
|
89574
|
+
SEMVER_SPEC_VERSION,
|
|
89575
|
+
FLAG_INCLUDE_PRERELEASE: 1,
|
|
89576
|
+
FLAG_LOOSE: 2
|
|
89577
|
+
};
|
|
89578
|
+
}));
|
|
89579
|
+
//#endregion
|
|
89580
|
+
//#region ../../node_modules/semver/internal/re.js
|
|
89581
|
+
var require_re$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89582
|
+
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants$5();
|
|
89583
|
+
const debug = require_debug$1();
|
|
89584
|
+
exports = module.exports = {};
|
|
89585
|
+
const re = exports.re = [];
|
|
89586
|
+
const safeRe = exports.safeRe = [];
|
|
89587
|
+
const src = exports.src = [];
|
|
89588
|
+
const safeSrc = exports.safeSrc = [];
|
|
89589
|
+
const t = exports.t = {};
|
|
89590
|
+
let R = 0;
|
|
89591
|
+
const LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
89592
|
+
const safeRegexReplacements = [
|
|
89593
|
+
["\\s", 1],
|
|
89594
|
+
["\\d", MAX_LENGTH],
|
|
89595
|
+
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
|
|
89596
|
+
];
|
|
89597
|
+
const makeSafeRegex = (value) => {
|
|
89598
|
+
for (const [token, max] of safeRegexReplacements) value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
|
|
89599
|
+
return value;
|
|
89600
|
+
};
|
|
89601
|
+
const createToken = (name, value, isGlobal) => {
|
|
89602
|
+
const safe = makeSafeRegex(value);
|
|
89603
|
+
const index = R++;
|
|
89604
|
+
debug(name, index, value);
|
|
89605
|
+
t[name] = index;
|
|
89606
|
+
src[index] = value;
|
|
89607
|
+
safeSrc[index] = safe;
|
|
89608
|
+
re[index] = new RegExp(value, isGlobal ? "g" : void 0);
|
|
89609
|
+
safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
89610
|
+
};
|
|
89611
|
+
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
89612
|
+
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
89613
|
+
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
89614
|
+
createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
|
|
89615
|
+
createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
89616
|
+
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
|
|
89617
|
+
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
89618
|
+
createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
89619
|
+
createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
89620
|
+
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
89621
|
+
createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
|
|
89622
|
+
createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
|
|
89623
|
+
createToken("FULL", `^${src[t.FULLPLAIN]}$`);
|
|
89624
|
+
createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
|
|
89625
|
+
createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
|
|
89626
|
+
createToken("GTLT", "((?:<|>)?=?)");
|
|
89627
|
+
createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
|
89628
|
+
createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
|
|
89629
|
+
createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
|
|
89630
|
+
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
|
|
89631
|
+
createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
|
|
89632
|
+
createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
|
|
89633
|
+
createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
|
89634
|
+
createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
89635
|
+
createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
|
|
89636
|
+
createToken("COERCERTL", src[t.COERCE], true);
|
|
89637
|
+
createToken("COERCERTLFULL", src[t.COERCEFULL], true);
|
|
89638
|
+
createToken("LONETILDE", "(?:~>?)");
|
|
89639
|
+
createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
|
|
89640
|
+
exports.tildeTrimReplace = "$1~";
|
|
89641
|
+
createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
|
|
89642
|
+
createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
89643
|
+
createToken("LONECARET", "(?:\\^)");
|
|
89644
|
+
createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
|
|
89645
|
+
exports.caretTrimReplace = "$1^";
|
|
89646
|
+
createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
|
|
89647
|
+
createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
89648
|
+
createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
|
|
89649
|
+
createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
|
|
89650
|
+
createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
|
|
89651
|
+
exports.comparatorTrimReplace = "$1$2$3";
|
|
89652
|
+
createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
|
|
89653
|
+
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
|
|
89654
|
+
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
89655
|
+
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
89656
|
+
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
89657
|
+
}));
|
|
89658
|
+
//#endregion
|
|
89659
|
+
//#region ../../node_modules/semver/internal/parse-options.js
|
|
89660
|
+
var require_parse_options$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89661
|
+
const looseOption = Object.freeze({ loose: true });
|
|
89662
|
+
const emptyOpts = Object.freeze({});
|
|
89663
|
+
const parseOptions = (options) => {
|
|
89664
|
+
if (!options) return emptyOpts;
|
|
89665
|
+
if (typeof options !== "object") return looseOption;
|
|
89666
|
+
return options;
|
|
89667
|
+
};
|
|
89668
|
+
module.exports = parseOptions;
|
|
89669
|
+
}));
|
|
89670
|
+
//#endregion
|
|
89671
|
+
//#region ../../node_modules/semver/internal/identifiers.js
|
|
89672
|
+
var require_identifiers$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89673
|
+
const numeric = /^[0-9]+$/;
|
|
89674
|
+
const compareIdentifiers = (a, b) => {
|
|
89675
|
+
if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
|
|
89676
|
+
const anum = numeric.test(a);
|
|
89677
|
+
const bnum = numeric.test(b);
|
|
89678
|
+
if (anum && bnum) {
|
|
89679
|
+
a = +a;
|
|
89680
|
+
b = +b;
|
|
89681
|
+
}
|
|
89682
|
+
return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
|
|
89683
|
+
};
|
|
89684
|
+
const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
|
|
89685
|
+
module.exports = {
|
|
89686
|
+
compareIdentifiers,
|
|
89687
|
+
rcompareIdentifiers
|
|
89688
|
+
};
|
|
89689
|
+
}));
|
|
89690
|
+
//#endregion
|
|
89691
|
+
//#region ../../node_modules/semver/classes/semver.js
|
|
89692
|
+
var require_semver$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89693
|
+
const debug = require_debug$1();
|
|
89694
|
+
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants$5();
|
|
89695
|
+
const { safeRe: re, t } = require_re$1();
|
|
89696
|
+
const parseOptions = require_parse_options$1();
|
|
89697
|
+
const { compareIdentifiers } = require_identifiers$1();
|
|
89698
|
+
module.exports = class SemVer {
|
|
89699
|
+
constructor(version, options) {
|
|
89700
|
+
options = parseOptions(options);
|
|
89701
|
+
if (version instanceof SemVer) if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) return version;
|
|
89702
|
+
else version = version.version;
|
|
89703
|
+
else if (typeof version !== "string") throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
89704
|
+
if (version.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
|
|
89705
|
+
debug("SemVer", version, options);
|
|
89706
|
+
this.options = options;
|
|
89707
|
+
this.loose = !!options.loose;
|
|
89708
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
89709
|
+
const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
|
|
89710
|
+
if (!m) throw new TypeError(`Invalid Version: ${version}`);
|
|
89711
|
+
this.raw = version;
|
|
89712
|
+
this.major = +m[1];
|
|
89713
|
+
this.minor = +m[2];
|
|
89714
|
+
this.patch = +m[3];
|
|
89715
|
+
if (this.major > MAX_SAFE_INTEGER || this.major < 0) throw new TypeError("Invalid major version");
|
|
89716
|
+
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError("Invalid minor version");
|
|
89717
|
+
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError("Invalid patch version");
|
|
89718
|
+
if (!m[4]) this.prerelease = [];
|
|
89719
|
+
else this.prerelease = m[4].split(".").map((id) => {
|
|
89720
|
+
if (/^[0-9]+$/.test(id)) {
|
|
89721
|
+
const num = +id;
|
|
89722
|
+
if (num >= 0 && num < MAX_SAFE_INTEGER) return num;
|
|
89723
|
+
}
|
|
89724
|
+
return id;
|
|
89725
|
+
});
|
|
89726
|
+
this.build = m[5] ? m[5].split(".") : [];
|
|
89727
|
+
this.format();
|
|
89728
|
+
}
|
|
89729
|
+
format() {
|
|
89730
|
+
this.version = `${this.major}.${this.minor}.${this.patch}`;
|
|
89731
|
+
if (this.prerelease.length) this.version += `-${this.prerelease.join(".")}`;
|
|
89732
|
+
return this.version;
|
|
89733
|
+
}
|
|
89734
|
+
toString() {
|
|
89735
|
+
return this.version;
|
|
89736
|
+
}
|
|
89737
|
+
compare(other) {
|
|
89738
|
+
debug("SemVer.compare", this.version, this.options, other);
|
|
89739
|
+
if (!(other instanceof SemVer)) {
|
|
89740
|
+
if (typeof other === "string" && other === this.version) return 0;
|
|
89741
|
+
other = new SemVer(other, this.options);
|
|
89742
|
+
}
|
|
89743
|
+
if (other.version === this.version) return 0;
|
|
89744
|
+
return this.compareMain(other) || this.comparePre(other);
|
|
89745
|
+
}
|
|
89746
|
+
compareMain(other) {
|
|
89747
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
89748
|
+
if (this.major < other.major) return -1;
|
|
89749
|
+
if (this.major > other.major) return 1;
|
|
89750
|
+
if (this.minor < other.minor) return -1;
|
|
89751
|
+
if (this.minor > other.minor) return 1;
|
|
89752
|
+
if (this.patch < other.patch) return -1;
|
|
89753
|
+
if (this.patch > other.patch) return 1;
|
|
89754
|
+
return 0;
|
|
89755
|
+
}
|
|
89756
|
+
comparePre(other) {
|
|
89757
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
89758
|
+
if (this.prerelease.length && !other.prerelease.length) return -1;
|
|
89759
|
+
else if (!this.prerelease.length && other.prerelease.length) return 1;
|
|
89760
|
+
else if (!this.prerelease.length && !other.prerelease.length) return 0;
|
|
89761
|
+
let i = 0;
|
|
89762
|
+
do {
|
|
89763
|
+
const a = this.prerelease[i];
|
|
89764
|
+
const b = other.prerelease[i];
|
|
89765
|
+
debug("prerelease compare", i, a, b);
|
|
89766
|
+
if (a === void 0 && b === void 0) return 0;
|
|
89767
|
+
else if (b === void 0) return 1;
|
|
89768
|
+
else if (a === void 0) return -1;
|
|
89769
|
+
else if (a === b) continue;
|
|
89770
|
+
else return compareIdentifiers(a, b);
|
|
89771
|
+
} while (++i);
|
|
89772
|
+
}
|
|
89773
|
+
compareBuild(other) {
|
|
89774
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
89775
|
+
let i = 0;
|
|
89776
|
+
do {
|
|
89777
|
+
const a = this.build[i];
|
|
89778
|
+
const b = other.build[i];
|
|
89779
|
+
debug("build compare", i, a, b);
|
|
89780
|
+
if (a === void 0 && b === void 0) return 0;
|
|
89781
|
+
else if (b === void 0) return 1;
|
|
89782
|
+
else if (a === void 0) return -1;
|
|
89783
|
+
else if (a === b) continue;
|
|
89784
|
+
else return compareIdentifiers(a, b);
|
|
89785
|
+
} while (++i);
|
|
89786
|
+
}
|
|
89787
|
+
inc(release, identifier, identifierBase) {
|
|
89788
|
+
if (release.startsWith("pre")) {
|
|
89789
|
+
if (!identifier && identifierBase === false) throw new Error("invalid increment argument: identifier is empty");
|
|
89790
|
+
if (identifier) {
|
|
89791
|
+
const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
|
|
89792
|
+
if (!match || match[1] !== identifier) throw new Error(`invalid identifier: ${identifier}`);
|
|
89793
|
+
}
|
|
89794
|
+
}
|
|
89795
|
+
switch (release) {
|
|
89796
|
+
case "premajor":
|
|
89797
|
+
this.prerelease.length = 0;
|
|
89798
|
+
this.patch = 0;
|
|
89799
|
+
this.minor = 0;
|
|
89800
|
+
this.major++;
|
|
89801
|
+
this.inc("pre", identifier, identifierBase);
|
|
89802
|
+
break;
|
|
89803
|
+
case "preminor":
|
|
89804
|
+
this.prerelease.length = 0;
|
|
89805
|
+
this.patch = 0;
|
|
89806
|
+
this.minor++;
|
|
89807
|
+
this.inc("pre", identifier, identifierBase);
|
|
89808
|
+
break;
|
|
89809
|
+
case "prepatch":
|
|
89810
|
+
this.prerelease.length = 0;
|
|
89811
|
+
this.inc("patch", identifier, identifierBase);
|
|
89812
|
+
this.inc("pre", identifier, identifierBase);
|
|
89813
|
+
break;
|
|
89814
|
+
case "prerelease":
|
|
89815
|
+
if (this.prerelease.length === 0) this.inc("patch", identifier, identifierBase);
|
|
89816
|
+
this.inc("pre", identifier, identifierBase);
|
|
89817
|
+
break;
|
|
89818
|
+
case "release":
|
|
89819
|
+
if (this.prerelease.length === 0) throw new Error(`version ${this.raw} is not a prerelease`);
|
|
89820
|
+
this.prerelease.length = 0;
|
|
89821
|
+
break;
|
|
89822
|
+
case "major":
|
|
89823
|
+
if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) this.major++;
|
|
89824
|
+
this.minor = 0;
|
|
89825
|
+
this.patch = 0;
|
|
89826
|
+
this.prerelease = [];
|
|
89827
|
+
break;
|
|
89828
|
+
case "minor":
|
|
89829
|
+
if (this.patch !== 0 || this.prerelease.length === 0) this.minor++;
|
|
89830
|
+
this.patch = 0;
|
|
89831
|
+
this.prerelease = [];
|
|
89832
|
+
break;
|
|
89833
|
+
case "patch":
|
|
89834
|
+
if (this.prerelease.length === 0) this.patch++;
|
|
89835
|
+
this.prerelease = [];
|
|
89836
|
+
break;
|
|
89837
|
+
case "pre": {
|
|
89838
|
+
const base = Number(identifierBase) ? 1 : 0;
|
|
89839
|
+
if (this.prerelease.length === 0) this.prerelease = [base];
|
|
89840
|
+
else {
|
|
89841
|
+
let i = this.prerelease.length;
|
|
89842
|
+
while (--i >= 0) if (typeof this.prerelease[i] === "number") {
|
|
89843
|
+
this.prerelease[i]++;
|
|
89844
|
+
i = -2;
|
|
89845
|
+
}
|
|
89846
|
+
if (i === -1) {
|
|
89847
|
+
if (identifier === this.prerelease.join(".") && identifierBase === false) throw new Error("invalid increment argument: identifier already exists");
|
|
89848
|
+
this.prerelease.push(base);
|
|
89849
|
+
}
|
|
89850
|
+
}
|
|
89851
|
+
if (identifier) {
|
|
89852
|
+
let prerelease = [identifier, base];
|
|
89853
|
+
if (identifierBase === false) prerelease = [identifier];
|
|
89854
|
+
if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
|
|
89855
|
+
if (isNaN(this.prerelease[1])) this.prerelease = prerelease;
|
|
89856
|
+
} else this.prerelease = prerelease;
|
|
89857
|
+
}
|
|
89858
|
+
break;
|
|
89859
|
+
}
|
|
89860
|
+
default: throw new Error(`invalid increment argument: ${release}`);
|
|
89861
|
+
}
|
|
89862
|
+
this.raw = this.format();
|
|
89863
|
+
if (this.build.length) this.raw += `+${this.build.join(".")}`;
|
|
89864
|
+
return this;
|
|
89865
|
+
}
|
|
89866
|
+
};
|
|
89867
|
+
}));
|
|
89868
|
+
//#endregion
|
|
89869
|
+
//#region ../../node_modules/semver/functions/parse.js
|
|
89870
|
+
var require_parse$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89871
|
+
const SemVer = require_semver$3();
|
|
89872
|
+
const parse = (version, options, throwErrors = false) => {
|
|
89873
|
+
if (version instanceof SemVer) return version;
|
|
89874
|
+
try {
|
|
89875
|
+
return new SemVer(version, options);
|
|
89876
|
+
} catch (er) {
|
|
89877
|
+
if (!throwErrors) return null;
|
|
89878
|
+
throw er;
|
|
89879
|
+
}
|
|
89880
|
+
};
|
|
89881
|
+
module.exports = parse;
|
|
89882
|
+
}));
|
|
89883
|
+
//#endregion
|
|
89884
|
+
//#region ../../node_modules/semver/functions/valid.js
|
|
89885
|
+
var require_valid$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89886
|
+
const parse = require_parse$3();
|
|
89887
|
+
const valid = (version, options) => {
|
|
89888
|
+
const v = parse(version, options);
|
|
89889
|
+
return v ? v.version : null;
|
|
89890
|
+
};
|
|
89891
|
+
module.exports = valid;
|
|
89892
|
+
}));
|
|
89893
|
+
//#endregion
|
|
89894
|
+
//#region ../../node_modules/semver/functions/clean.js
|
|
89895
|
+
var require_clean$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89896
|
+
const parse = require_parse$3();
|
|
89897
|
+
const clean = (version, options) => {
|
|
89898
|
+
const s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
89899
|
+
return s ? s.version : null;
|
|
89900
|
+
};
|
|
89901
|
+
module.exports = clean;
|
|
89902
|
+
}));
|
|
89903
|
+
//#endregion
|
|
89381
89904
|
//#region ../../node_modules/proc-log/lib/index.js
|
|
89382
89905
|
var require_lib$29 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89383
89906
|
module.exports = {
|
|
@@ -94876,7 +95399,7 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
94876
95399
|
}));
|
|
94877
95400
|
//#endregion
|
|
94878
95401
|
//#region ../../node_modules/@npmcli/package-json/node_modules/spdx-expression-parse/parse.js
|
|
94879
|
-
var require_parse$
|
|
95402
|
+
var require_parse$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
94880
95403
|
module.exports = function(tokens) {
|
|
94881
95404
|
var index = 0;
|
|
94882
95405
|
function hasMore() {
|
|
@@ -94967,7 +95490,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
94967
95490
|
//#region ../../node_modules/@npmcli/package-json/node_modules/spdx-expression-parse/index.js
|
|
94968
95491
|
var require_spdx_expression_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
94969
95492
|
var scan = require_scan();
|
|
94970
|
-
var parse = require_parse$
|
|
95493
|
+
var parse = require_parse$2();
|
|
94971
95494
|
module.exports = function(source) {
|
|
94972
95495
|
return parse(scan(source));
|
|
94973
95496
|
};
|
|
@@ -96175,9 +96698,1026 @@ var require_spawn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
96175
96698
|
};
|
|
96176
96699
|
}));
|
|
96177
96700
|
//#endregion
|
|
96701
|
+
//#region ../../node_modules/semver/functions/inc.js
|
|
96702
|
+
var require_inc$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96703
|
+
const SemVer = require_semver$3();
|
|
96704
|
+
const inc = (version, release, options, identifier, identifierBase) => {
|
|
96705
|
+
if (typeof options === "string") {
|
|
96706
|
+
identifierBase = identifier;
|
|
96707
|
+
identifier = options;
|
|
96708
|
+
options = void 0;
|
|
96709
|
+
}
|
|
96710
|
+
try {
|
|
96711
|
+
return new SemVer(version instanceof SemVer ? version.version : version, options).inc(release, identifier, identifierBase).version;
|
|
96712
|
+
} catch (er) {
|
|
96713
|
+
return null;
|
|
96714
|
+
}
|
|
96715
|
+
};
|
|
96716
|
+
module.exports = inc;
|
|
96717
|
+
}));
|
|
96718
|
+
//#endregion
|
|
96719
|
+
//#region ../../node_modules/semver/functions/diff.js
|
|
96720
|
+
var require_diff$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96721
|
+
const parse = require_parse$3();
|
|
96722
|
+
const diff = (version1, version2) => {
|
|
96723
|
+
const v1 = parse(version1, null, true);
|
|
96724
|
+
const v2 = parse(version2, null, true);
|
|
96725
|
+
const comparison = v1.compare(v2);
|
|
96726
|
+
if (comparison === 0) return null;
|
|
96727
|
+
const v1Higher = comparison > 0;
|
|
96728
|
+
const highVersion = v1Higher ? v1 : v2;
|
|
96729
|
+
const lowVersion = v1Higher ? v2 : v1;
|
|
96730
|
+
const highHasPre = !!highVersion.prerelease.length;
|
|
96731
|
+
if (!!lowVersion.prerelease.length && !highHasPre) {
|
|
96732
|
+
if (!lowVersion.patch && !lowVersion.minor) return "major";
|
|
96733
|
+
if (lowVersion.compareMain(highVersion) === 0) {
|
|
96734
|
+
if (lowVersion.minor && !lowVersion.patch) return "minor";
|
|
96735
|
+
return "patch";
|
|
96736
|
+
}
|
|
96737
|
+
}
|
|
96738
|
+
const prefix = highHasPre ? "pre" : "";
|
|
96739
|
+
if (v1.major !== v2.major) return prefix + "major";
|
|
96740
|
+
if (v1.minor !== v2.minor) return prefix + "minor";
|
|
96741
|
+
if (v1.patch !== v2.patch) return prefix + "patch";
|
|
96742
|
+
return "prerelease";
|
|
96743
|
+
};
|
|
96744
|
+
module.exports = diff;
|
|
96745
|
+
}));
|
|
96746
|
+
//#endregion
|
|
96747
|
+
//#region ../../node_modules/semver/functions/major.js
|
|
96748
|
+
var require_major$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96749
|
+
const SemVer = require_semver$3();
|
|
96750
|
+
const major = (a, loose) => new SemVer(a, loose).major;
|
|
96751
|
+
module.exports = major;
|
|
96752
|
+
}));
|
|
96753
|
+
//#endregion
|
|
96754
|
+
//#region ../../node_modules/semver/functions/minor.js
|
|
96755
|
+
var require_minor$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96756
|
+
const SemVer = require_semver$3();
|
|
96757
|
+
const minor = (a, loose) => new SemVer(a, loose).minor;
|
|
96758
|
+
module.exports = minor;
|
|
96759
|
+
}));
|
|
96760
|
+
//#endregion
|
|
96761
|
+
//#region ../../node_modules/semver/functions/patch.js
|
|
96762
|
+
var require_patch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96763
|
+
const SemVer = require_semver$3();
|
|
96764
|
+
const patch = (a, loose) => new SemVer(a, loose).patch;
|
|
96765
|
+
module.exports = patch;
|
|
96766
|
+
}));
|
|
96767
|
+
//#endregion
|
|
96768
|
+
//#region ../../node_modules/semver/functions/prerelease.js
|
|
96769
|
+
var require_prerelease$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96770
|
+
const parse = require_parse$3();
|
|
96771
|
+
const prerelease = (version, options) => {
|
|
96772
|
+
const parsed = parse(version, options);
|
|
96773
|
+
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
96774
|
+
};
|
|
96775
|
+
module.exports = prerelease;
|
|
96776
|
+
}));
|
|
96777
|
+
//#endregion
|
|
96778
|
+
//#region ../../node_modules/semver/functions/compare.js
|
|
96779
|
+
var require_compare$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96780
|
+
const SemVer = require_semver$3();
|
|
96781
|
+
const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
96782
|
+
module.exports = compare;
|
|
96783
|
+
}));
|
|
96784
|
+
//#endregion
|
|
96785
|
+
//#region ../../node_modules/semver/functions/rcompare.js
|
|
96786
|
+
var require_rcompare$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96787
|
+
const compare = require_compare$1();
|
|
96788
|
+
const rcompare = (a, b, loose) => compare(b, a, loose);
|
|
96789
|
+
module.exports = rcompare;
|
|
96790
|
+
}));
|
|
96791
|
+
//#endregion
|
|
96792
|
+
//#region ../../node_modules/semver/functions/compare-loose.js
|
|
96793
|
+
var require_compare_loose$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96794
|
+
const compare = require_compare$1();
|
|
96795
|
+
const compareLoose = (a, b) => compare(a, b, true);
|
|
96796
|
+
module.exports = compareLoose;
|
|
96797
|
+
}));
|
|
96798
|
+
//#endregion
|
|
96799
|
+
//#region ../../node_modules/semver/functions/compare-build.js
|
|
96800
|
+
var require_compare_build$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96801
|
+
const SemVer = require_semver$3();
|
|
96802
|
+
const compareBuild = (a, b, loose) => {
|
|
96803
|
+
const versionA = new SemVer(a, loose);
|
|
96804
|
+
const versionB = new SemVer(b, loose);
|
|
96805
|
+
return versionA.compare(versionB) || versionA.compareBuild(versionB);
|
|
96806
|
+
};
|
|
96807
|
+
module.exports = compareBuild;
|
|
96808
|
+
}));
|
|
96809
|
+
//#endregion
|
|
96810
|
+
//#region ../../node_modules/semver/functions/sort.js
|
|
96811
|
+
var require_sort$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96812
|
+
const compareBuild = require_compare_build$1();
|
|
96813
|
+
const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
96814
|
+
module.exports = sort;
|
|
96815
|
+
}));
|
|
96816
|
+
//#endregion
|
|
96817
|
+
//#region ../../node_modules/semver/functions/rsort.js
|
|
96818
|
+
var require_rsort$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96819
|
+
const compareBuild = require_compare_build$1();
|
|
96820
|
+
const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
96821
|
+
module.exports = rsort;
|
|
96822
|
+
}));
|
|
96823
|
+
//#endregion
|
|
96824
|
+
//#region ../../node_modules/semver/functions/gt.js
|
|
96825
|
+
var require_gt$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96826
|
+
const compare = require_compare$1();
|
|
96827
|
+
const gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
96828
|
+
module.exports = gt;
|
|
96829
|
+
}));
|
|
96830
|
+
//#endregion
|
|
96831
|
+
//#region ../../node_modules/semver/functions/lt.js
|
|
96832
|
+
var require_lt$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96833
|
+
const compare = require_compare$1();
|
|
96834
|
+
const lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
96835
|
+
module.exports = lt;
|
|
96836
|
+
}));
|
|
96837
|
+
//#endregion
|
|
96838
|
+
//#region ../../node_modules/semver/functions/eq.js
|
|
96839
|
+
var require_eq$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96840
|
+
const compare = require_compare$1();
|
|
96841
|
+
const eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
96842
|
+
module.exports = eq;
|
|
96843
|
+
}));
|
|
96844
|
+
//#endregion
|
|
96845
|
+
//#region ../../node_modules/semver/functions/neq.js
|
|
96846
|
+
var require_neq$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96847
|
+
const compare = require_compare$1();
|
|
96848
|
+
const neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
96849
|
+
module.exports = neq;
|
|
96850
|
+
}));
|
|
96851
|
+
//#endregion
|
|
96852
|
+
//#region ../../node_modules/semver/functions/gte.js
|
|
96853
|
+
var require_gte$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96854
|
+
const compare = require_compare$1();
|
|
96855
|
+
const gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
96856
|
+
module.exports = gte;
|
|
96857
|
+
}));
|
|
96858
|
+
//#endregion
|
|
96859
|
+
//#region ../../node_modules/semver/functions/lte.js
|
|
96860
|
+
var require_lte$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96861
|
+
const compare = require_compare$1();
|
|
96862
|
+
const lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
96863
|
+
module.exports = lte;
|
|
96864
|
+
}));
|
|
96865
|
+
//#endregion
|
|
96866
|
+
//#region ../../node_modules/semver/functions/cmp.js
|
|
96867
|
+
var require_cmp$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96868
|
+
const eq = require_eq$1();
|
|
96869
|
+
const neq = require_neq$1();
|
|
96870
|
+
const gt = require_gt$1();
|
|
96871
|
+
const gte = require_gte$1();
|
|
96872
|
+
const lt = require_lt$1();
|
|
96873
|
+
const lte = require_lte$1();
|
|
96874
|
+
const cmp = (a, op, b, loose) => {
|
|
96875
|
+
switch (op) {
|
|
96876
|
+
case "===":
|
|
96877
|
+
if (typeof a === "object") a = a.version;
|
|
96878
|
+
if (typeof b === "object") b = b.version;
|
|
96879
|
+
return a === b;
|
|
96880
|
+
case "!==":
|
|
96881
|
+
if (typeof a === "object") a = a.version;
|
|
96882
|
+
if (typeof b === "object") b = b.version;
|
|
96883
|
+
return a !== b;
|
|
96884
|
+
case "":
|
|
96885
|
+
case "=":
|
|
96886
|
+
case "==": return eq(a, b, loose);
|
|
96887
|
+
case "!=": return neq(a, b, loose);
|
|
96888
|
+
case ">": return gt(a, b, loose);
|
|
96889
|
+
case ">=": return gte(a, b, loose);
|
|
96890
|
+
case "<": return lt(a, b, loose);
|
|
96891
|
+
case "<=": return lte(a, b, loose);
|
|
96892
|
+
default: throw new TypeError(`Invalid operator: ${op}`);
|
|
96893
|
+
}
|
|
96894
|
+
};
|
|
96895
|
+
module.exports = cmp;
|
|
96896
|
+
}));
|
|
96897
|
+
//#endregion
|
|
96898
|
+
//#region ../../node_modules/semver/functions/coerce.js
|
|
96899
|
+
var require_coerce$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96900
|
+
const SemVer = require_semver$3();
|
|
96901
|
+
const parse = require_parse$3();
|
|
96902
|
+
const { safeRe: re, t } = require_re$1();
|
|
96903
|
+
const coerce = (version, options) => {
|
|
96904
|
+
if (version instanceof SemVer) return version;
|
|
96905
|
+
if (typeof version === "number") version = String(version);
|
|
96906
|
+
if (typeof version !== "string") return null;
|
|
96907
|
+
options = options || {};
|
|
96908
|
+
let match = null;
|
|
96909
|
+
if (!options.rtl) match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
|
|
96910
|
+
else {
|
|
96911
|
+
const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL];
|
|
96912
|
+
let next;
|
|
96913
|
+
while ((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)) {
|
|
96914
|
+
if (!match || next.index + next[0].length !== match.index + match[0].length) match = next;
|
|
96915
|
+
coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
|
96916
|
+
}
|
|
96917
|
+
coerceRtlRegex.lastIndex = -1;
|
|
96918
|
+
}
|
|
96919
|
+
if (match === null) return null;
|
|
96920
|
+
const major = match[2];
|
|
96921
|
+
return parse(`${major}.${match[3] || "0"}.${match[4] || "0"}${options.includePrerelease && match[5] ? `-${match[5]}` : ""}${options.includePrerelease && match[6] ? `+${match[6]}` : ""}`, options);
|
|
96922
|
+
};
|
|
96923
|
+
module.exports = coerce;
|
|
96924
|
+
}));
|
|
96925
|
+
//#endregion
|
|
96926
|
+
//#region ../../node_modules/semver/functions/truncate.js
|
|
96927
|
+
var require_truncate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96928
|
+
const parse = require_parse$3();
|
|
96929
|
+
const constants = require_constants$5();
|
|
96930
|
+
const SemVer = require_semver$3();
|
|
96931
|
+
const truncate = (version, truncation, options) => {
|
|
96932
|
+
if (!constants.RELEASE_TYPES.includes(truncation)) return null;
|
|
96933
|
+
const clonedVersion = cloneInputVersion(version, options);
|
|
96934
|
+
return clonedVersion && doTruncation(clonedVersion, truncation);
|
|
96935
|
+
};
|
|
96936
|
+
const cloneInputVersion = (version, options) => {
|
|
96937
|
+
return parse(version instanceof SemVer ? version.version : version, options);
|
|
96938
|
+
};
|
|
96939
|
+
const doTruncation = (version, truncation) => {
|
|
96940
|
+
if (isPrerelease(truncation)) return version.version;
|
|
96941
|
+
version.prerelease = [];
|
|
96942
|
+
switch (truncation) {
|
|
96943
|
+
case "major":
|
|
96944
|
+
version.minor = 0;
|
|
96945
|
+
version.patch = 0;
|
|
96946
|
+
break;
|
|
96947
|
+
case "minor":
|
|
96948
|
+
version.patch = 0;
|
|
96949
|
+
break;
|
|
96950
|
+
}
|
|
96951
|
+
return version.format();
|
|
96952
|
+
};
|
|
96953
|
+
const isPrerelease = (type) => {
|
|
96954
|
+
return type.startsWith("pre");
|
|
96955
|
+
};
|
|
96956
|
+
module.exports = truncate;
|
|
96957
|
+
}));
|
|
96958
|
+
//#endregion
|
|
96959
|
+
//#region ../../node_modules/semver/internal/lrucache.js
|
|
96960
|
+
var require_lrucache$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96961
|
+
var LRUCache = class {
|
|
96962
|
+
constructor() {
|
|
96963
|
+
this.max = 1e3;
|
|
96964
|
+
this.map = /* @__PURE__ */ new Map();
|
|
96965
|
+
}
|
|
96966
|
+
get(key) {
|
|
96967
|
+
const value = this.map.get(key);
|
|
96968
|
+
if (value === void 0) return;
|
|
96969
|
+
else {
|
|
96970
|
+
this.map.delete(key);
|
|
96971
|
+
this.map.set(key, value);
|
|
96972
|
+
return value;
|
|
96973
|
+
}
|
|
96974
|
+
}
|
|
96975
|
+
delete(key) {
|
|
96976
|
+
return this.map.delete(key);
|
|
96977
|
+
}
|
|
96978
|
+
set(key, value) {
|
|
96979
|
+
if (!this.delete(key) && value !== void 0) {
|
|
96980
|
+
if (this.map.size >= this.max) {
|
|
96981
|
+
const firstKey = this.map.keys().next().value;
|
|
96982
|
+
this.delete(firstKey);
|
|
96983
|
+
}
|
|
96984
|
+
this.map.set(key, value);
|
|
96985
|
+
}
|
|
96986
|
+
return this;
|
|
96987
|
+
}
|
|
96988
|
+
};
|
|
96989
|
+
module.exports = LRUCache;
|
|
96990
|
+
}));
|
|
96991
|
+
//#endregion
|
|
96992
|
+
//#region ../../node_modules/semver/classes/range.js
|
|
96993
|
+
var require_range$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96994
|
+
const SPACE_CHARACTERS = /\s+/g;
|
|
96995
|
+
module.exports = class Range {
|
|
96996
|
+
constructor(range, options) {
|
|
96997
|
+
options = parseOptions(options);
|
|
96998
|
+
if (range instanceof Range) if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) return range;
|
|
96999
|
+
else return new Range(range.raw, options);
|
|
97000
|
+
if (range instanceof Comparator) {
|
|
97001
|
+
this.raw = range.value;
|
|
97002
|
+
this.set = [[range]];
|
|
97003
|
+
this.formatted = void 0;
|
|
97004
|
+
return this;
|
|
97005
|
+
}
|
|
97006
|
+
this.options = options;
|
|
97007
|
+
this.loose = !!options.loose;
|
|
97008
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
97009
|
+
this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
|
|
97010
|
+
this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
|
|
97011
|
+
if (!this.set.length) throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
97012
|
+
if (this.set.length > 1) {
|
|
97013
|
+
const first = this.set[0];
|
|
97014
|
+
this.set = this.set.filter((c) => !isNullSet(c[0]));
|
|
97015
|
+
if (this.set.length === 0) this.set = [first];
|
|
97016
|
+
else if (this.set.length > 1) {
|
|
97017
|
+
for (const c of this.set) if (c.length === 1 && isAny(c[0])) {
|
|
97018
|
+
this.set = [c];
|
|
97019
|
+
break;
|
|
97020
|
+
}
|
|
97021
|
+
}
|
|
97022
|
+
}
|
|
97023
|
+
this.formatted = void 0;
|
|
97024
|
+
}
|
|
97025
|
+
get range() {
|
|
97026
|
+
if (this.formatted === void 0) {
|
|
97027
|
+
this.formatted = "";
|
|
97028
|
+
for (let i = 0; i < this.set.length; i++) {
|
|
97029
|
+
if (i > 0) this.formatted += "||";
|
|
97030
|
+
const comps = this.set[i];
|
|
97031
|
+
for (let k = 0; k < comps.length; k++) {
|
|
97032
|
+
if (k > 0) this.formatted += " ";
|
|
97033
|
+
this.formatted += comps[k].toString().trim();
|
|
97034
|
+
}
|
|
97035
|
+
}
|
|
97036
|
+
}
|
|
97037
|
+
return this.formatted;
|
|
97038
|
+
}
|
|
97039
|
+
format() {
|
|
97040
|
+
return this.range;
|
|
97041
|
+
}
|
|
97042
|
+
toString() {
|
|
97043
|
+
return this.range;
|
|
97044
|
+
}
|
|
97045
|
+
parseRange(range) {
|
|
97046
|
+
const memoKey = ((this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE)) + ":" + range;
|
|
97047
|
+
const cached = cache.get(memoKey);
|
|
97048
|
+
if (cached) return cached;
|
|
97049
|
+
const loose = this.options.loose;
|
|
97050
|
+
const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
|
|
97051
|
+
range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
|
|
97052
|
+
debug("hyphen replace", range);
|
|
97053
|
+
range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace);
|
|
97054
|
+
debug("comparator trim", range);
|
|
97055
|
+
range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
|
|
97056
|
+
debug("tilde trim", range);
|
|
97057
|
+
range = range.replace(re[t.CARETTRIM], caretTrimReplace);
|
|
97058
|
+
debug("caret trim", range);
|
|
97059
|
+
let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
|
|
97060
|
+
if (loose) rangeList = rangeList.filter((comp) => {
|
|
97061
|
+
debug("loose invalid filter", comp, this.options);
|
|
97062
|
+
return !!comp.match(re[t.COMPARATORLOOSE]);
|
|
97063
|
+
});
|
|
97064
|
+
debug("range list", rangeList);
|
|
97065
|
+
const rangeMap = /* @__PURE__ */ new Map();
|
|
97066
|
+
const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
|
|
97067
|
+
for (const comp of comparators) {
|
|
97068
|
+
if (isNullSet(comp)) return [comp];
|
|
97069
|
+
rangeMap.set(comp.value, comp);
|
|
97070
|
+
}
|
|
97071
|
+
if (rangeMap.size > 1 && rangeMap.has("")) rangeMap.delete("");
|
|
97072
|
+
const result = [...rangeMap.values()];
|
|
97073
|
+
cache.set(memoKey, result);
|
|
97074
|
+
return result;
|
|
97075
|
+
}
|
|
97076
|
+
intersects(range, options) {
|
|
97077
|
+
if (!(range instanceof Range)) throw new TypeError("a Range is required");
|
|
97078
|
+
return this.set.some((thisComparators) => {
|
|
97079
|
+
return isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => {
|
|
97080
|
+
return isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => {
|
|
97081
|
+
return rangeComparators.every((rangeComparator) => {
|
|
97082
|
+
return thisComparator.intersects(rangeComparator, options);
|
|
97083
|
+
});
|
|
97084
|
+
});
|
|
97085
|
+
});
|
|
97086
|
+
});
|
|
97087
|
+
}
|
|
97088
|
+
test(version) {
|
|
97089
|
+
if (!version) return false;
|
|
97090
|
+
if (typeof version === "string") try {
|
|
97091
|
+
version = new SemVer(version, this.options);
|
|
97092
|
+
} catch (er) {
|
|
97093
|
+
return false;
|
|
97094
|
+
}
|
|
97095
|
+
for (let i = 0; i < this.set.length; i++) if (testSet(this.set[i], version, this.options)) return true;
|
|
97096
|
+
return false;
|
|
97097
|
+
}
|
|
97098
|
+
};
|
|
97099
|
+
const cache = new (require_lrucache$1())();
|
|
97100
|
+
const parseOptions = require_parse_options$1();
|
|
97101
|
+
const Comparator = require_comparator$1();
|
|
97102
|
+
const debug = require_debug$1();
|
|
97103
|
+
const SemVer = require_semver$3();
|
|
97104
|
+
const { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re$1();
|
|
97105
|
+
const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants$5();
|
|
97106
|
+
const isNullSet = (c) => c.value === "<0.0.0-0";
|
|
97107
|
+
const isAny = (c) => c.value === "";
|
|
97108
|
+
const isSatisfiable = (comparators, options) => {
|
|
97109
|
+
let result = true;
|
|
97110
|
+
const remainingComparators = comparators.slice();
|
|
97111
|
+
let testComparator = remainingComparators.pop();
|
|
97112
|
+
while (result && remainingComparators.length) {
|
|
97113
|
+
result = remainingComparators.every((otherComparator) => {
|
|
97114
|
+
return testComparator.intersects(otherComparator, options);
|
|
97115
|
+
});
|
|
97116
|
+
testComparator = remainingComparators.pop();
|
|
97117
|
+
}
|
|
97118
|
+
return result;
|
|
97119
|
+
};
|
|
97120
|
+
const parseComparator = (comp, options) => {
|
|
97121
|
+
comp = comp.replace(re[t.BUILD], "");
|
|
97122
|
+
debug("comp", comp, options);
|
|
97123
|
+
comp = replaceCarets(comp, options);
|
|
97124
|
+
debug("caret", comp);
|
|
97125
|
+
comp = replaceTildes(comp, options);
|
|
97126
|
+
debug("tildes", comp);
|
|
97127
|
+
comp = replaceXRanges(comp, options);
|
|
97128
|
+
debug("xrange", comp);
|
|
97129
|
+
comp = replaceStars(comp, options);
|
|
97130
|
+
debug("stars", comp);
|
|
97131
|
+
return comp;
|
|
97132
|
+
};
|
|
97133
|
+
const isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
|
|
97134
|
+
const replaceTildes = (comp, options) => {
|
|
97135
|
+
return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
|
|
97136
|
+
};
|
|
97137
|
+
const replaceTilde = (comp, options) => {
|
|
97138
|
+
const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
|
|
97139
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
97140
|
+
debug("tilde", comp, _, M, m, p, pr);
|
|
97141
|
+
let ret;
|
|
97142
|
+
if (isX(M)) ret = "";
|
|
97143
|
+
else if (isX(m)) ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
|
|
97144
|
+
else if (isX(p)) ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
|
|
97145
|
+
else if (pr) {
|
|
97146
|
+
debug("replaceTilde pr", pr);
|
|
97147
|
+
ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
97148
|
+
} else ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
|
|
97149
|
+
debug("tilde return", ret);
|
|
97150
|
+
return ret;
|
|
97151
|
+
});
|
|
97152
|
+
};
|
|
97153
|
+
const replaceCarets = (comp, options) => {
|
|
97154
|
+
return comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" ");
|
|
97155
|
+
};
|
|
97156
|
+
const replaceCaret = (comp, options) => {
|
|
97157
|
+
debug("caret", comp, options);
|
|
97158
|
+
const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET];
|
|
97159
|
+
const z = options.includePrerelease ? "-0" : "";
|
|
97160
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
97161
|
+
debug("caret", comp, _, M, m, p, pr);
|
|
97162
|
+
let ret;
|
|
97163
|
+
if (isX(M)) ret = "";
|
|
97164
|
+
else if (isX(m)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
|
|
97165
|
+
else if (isX(p)) if (M === "0") ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
|
|
97166
|
+
else ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
|
|
97167
|
+
else if (pr) {
|
|
97168
|
+
debug("replaceCaret pr", pr);
|
|
97169
|
+
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;
|
|
97170
|
+
else ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
97171
|
+
else ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
|
|
97172
|
+
} else {
|
|
97173
|
+
debug("no pr");
|
|
97174
|
+
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0`;
|
|
97175
|
+
else ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0`;
|
|
97176
|
+
else ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
|
|
97177
|
+
}
|
|
97178
|
+
debug("caret return", ret);
|
|
97179
|
+
return ret;
|
|
97180
|
+
});
|
|
97181
|
+
};
|
|
97182
|
+
const replaceXRanges = (comp, options) => {
|
|
97183
|
+
debug("replaceXRanges", comp, options);
|
|
97184
|
+
return comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ");
|
|
97185
|
+
};
|
|
97186
|
+
const replaceXRange = (comp, options) => {
|
|
97187
|
+
comp = comp.trim();
|
|
97188
|
+
const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
|
|
97189
|
+
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
|
|
97190
|
+
debug("xRange", comp, ret, gtlt, M, m, p, pr);
|
|
97191
|
+
const xM = isX(M);
|
|
97192
|
+
const xm = xM || isX(m);
|
|
97193
|
+
const xp = xm || isX(p);
|
|
97194
|
+
const anyX = xp;
|
|
97195
|
+
if (gtlt === "=" && anyX) gtlt = "";
|
|
97196
|
+
pr = options.includePrerelease ? "-0" : "";
|
|
97197
|
+
if (xM) if (gtlt === ">" || gtlt === "<") ret = "<0.0.0-0";
|
|
97198
|
+
else ret = "*";
|
|
97199
|
+
else if (gtlt && anyX) {
|
|
97200
|
+
if (xm) m = 0;
|
|
97201
|
+
p = 0;
|
|
97202
|
+
if (gtlt === ">") {
|
|
97203
|
+
gtlt = ">=";
|
|
97204
|
+
if (xm) {
|
|
97205
|
+
M = +M + 1;
|
|
97206
|
+
m = 0;
|
|
97207
|
+
p = 0;
|
|
97208
|
+
} else {
|
|
97209
|
+
m = +m + 1;
|
|
97210
|
+
p = 0;
|
|
97211
|
+
}
|
|
97212
|
+
} else if (gtlt === "<=") {
|
|
97213
|
+
gtlt = "<";
|
|
97214
|
+
if (xm) M = +M + 1;
|
|
97215
|
+
else m = +m + 1;
|
|
97216
|
+
}
|
|
97217
|
+
if (gtlt === "<") pr = "-0";
|
|
97218
|
+
ret = `${gtlt + M}.${m}.${p}${pr}`;
|
|
97219
|
+
} else if (xm) ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
|
|
97220
|
+
else if (xp) ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;
|
|
97221
|
+
debug("xRange return", ret);
|
|
97222
|
+
return ret;
|
|
97223
|
+
});
|
|
97224
|
+
};
|
|
97225
|
+
const replaceStars = (comp, options) => {
|
|
97226
|
+
debug("replaceStars", comp, options);
|
|
97227
|
+
return comp.trim().replace(re[t.STAR], "");
|
|
97228
|
+
};
|
|
97229
|
+
const replaceGTE0 = (comp, options) => {
|
|
97230
|
+
debug("replaceGTE0", comp, options);
|
|
97231
|
+
return comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
|
|
97232
|
+
};
|
|
97233
|
+
const hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
|
|
97234
|
+
if (isX(fM)) from = "";
|
|
97235
|
+
else if (isX(fm)) from = `>=${fM}.0.0${incPr ? "-0" : ""}`;
|
|
97236
|
+
else if (isX(fp)) from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}`;
|
|
97237
|
+
else if (fpr) from = `>=${from}`;
|
|
97238
|
+
else from = `>=${from}${incPr ? "-0" : ""}`;
|
|
97239
|
+
if (isX(tM)) to = "";
|
|
97240
|
+
else if (isX(tm)) to = `<${+tM + 1}.0.0-0`;
|
|
97241
|
+
else if (isX(tp)) to = `<${tM}.${+tm + 1}.0-0`;
|
|
97242
|
+
else if (tpr) to = `<=${tM}.${tm}.${tp}-${tpr}`;
|
|
97243
|
+
else if (incPr) to = `<${tM}.${tm}.${+tp + 1}-0`;
|
|
97244
|
+
else to = `<=${to}`;
|
|
97245
|
+
return `${from} ${to}`.trim();
|
|
97246
|
+
};
|
|
97247
|
+
const testSet = (set, version, options) => {
|
|
97248
|
+
for (let i = 0; i < set.length; i++) if (!set[i].test(version)) return false;
|
|
97249
|
+
if (version.prerelease.length && !options.includePrerelease) {
|
|
97250
|
+
for (let i = 0; i < set.length; i++) {
|
|
97251
|
+
debug(set[i].semver);
|
|
97252
|
+
if (set[i].semver === Comparator.ANY) continue;
|
|
97253
|
+
if (set[i].semver.prerelease.length > 0) {
|
|
97254
|
+
const allowed = set[i].semver;
|
|
97255
|
+
if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) return true;
|
|
97256
|
+
}
|
|
97257
|
+
}
|
|
97258
|
+
return false;
|
|
97259
|
+
}
|
|
97260
|
+
return true;
|
|
97261
|
+
};
|
|
97262
|
+
}));
|
|
97263
|
+
//#endregion
|
|
97264
|
+
//#region ../../node_modules/semver/classes/comparator.js
|
|
97265
|
+
var require_comparator$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97266
|
+
const ANY = Symbol("SemVer ANY");
|
|
97267
|
+
module.exports = class Comparator {
|
|
97268
|
+
static get ANY() {
|
|
97269
|
+
return ANY;
|
|
97270
|
+
}
|
|
97271
|
+
constructor(comp, options) {
|
|
97272
|
+
options = parseOptions(options);
|
|
97273
|
+
if (comp instanceof Comparator) if (comp.loose === !!options.loose) return comp;
|
|
97274
|
+
else comp = comp.value;
|
|
97275
|
+
comp = comp.trim().split(/\s+/).join(" ");
|
|
97276
|
+
debug("comparator", comp, options);
|
|
97277
|
+
this.options = options;
|
|
97278
|
+
this.loose = !!options.loose;
|
|
97279
|
+
this.parse(comp);
|
|
97280
|
+
if (this.semver === ANY) this.value = "";
|
|
97281
|
+
else this.value = this.operator + this.semver.version;
|
|
97282
|
+
debug("comp", this);
|
|
97283
|
+
}
|
|
97284
|
+
parse(comp) {
|
|
97285
|
+
const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR];
|
|
97286
|
+
const m = comp.match(r);
|
|
97287
|
+
if (!m) throw new TypeError(`Invalid comparator: ${comp}`);
|
|
97288
|
+
this.operator = m[1] !== void 0 ? m[1] : "";
|
|
97289
|
+
if (this.operator === "=") this.operator = "";
|
|
97290
|
+
if (!m[2]) this.semver = ANY;
|
|
97291
|
+
else this.semver = new SemVer(m[2], this.options.loose);
|
|
97292
|
+
}
|
|
97293
|
+
toString() {
|
|
97294
|
+
return this.value;
|
|
97295
|
+
}
|
|
97296
|
+
test(version) {
|
|
97297
|
+
debug("Comparator.test", version, this.options.loose);
|
|
97298
|
+
if (this.semver === ANY || version === ANY) return true;
|
|
97299
|
+
if (typeof version === "string") try {
|
|
97300
|
+
version = new SemVer(version, this.options);
|
|
97301
|
+
} catch (er) {
|
|
97302
|
+
return false;
|
|
97303
|
+
}
|
|
97304
|
+
return cmp(version, this.operator, this.semver, this.options);
|
|
97305
|
+
}
|
|
97306
|
+
intersects(comp, options) {
|
|
97307
|
+
if (!(comp instanceof Comparator)) throw new TypeError("a Comparator is required");
|
|
97308
|
+
if (this.operator === "") {
|
|
97309
|
+
if (this.value === "") return true;
|
|
97310
|
+
return new Range(comp.value, options).test(this.value);
|
|
97311
|
+
} else if (comp.operator === "") {
|
|
97312
|
+
if (comp.value === "") return true;
|
|
97313
|
+
return new Range(this.value, options).test(comp.semver);
|
|
97314
|
+
}
|
|
97315
|
+
options = parseOptions(options);
|
|
97316
|
+
if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) return false;
|
|
97317
|
+
if (!options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0"))) return false;
|
|
97318
|
+
if (this.operator.startsWith(">") && comp.operator.startsWith(">")) return true;
|
|
97319
|
+
if (this.operator.startsWith("<") && comp.operator.startsWith("<")) return true;
|
|
97320
|
+
if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) return true;
|
|
97321
|
+
if (cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) return true;
|
|
97322
|
+
if (cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) return true;
|
|
97323
|
+
return false;
|
|
97324
|
+
}
|
|
97325
|
+
};
|
|
97326
|
+
const parseOptions = require_parse_options$1();
|
|
97327
|
+
const { safeRe: re, t } = require_re$1();
|
|
97328
|
+
const cmp = require_cmp$1();
|
|
97329
|
+
const debug = require_debug$1();
|
|
97330
|
+
const SemVer = require_semver$3();
|
|
97331
|
+
const Range = require_range$1();
|
|
97332
|
+
}));
|
|
97333
|
+
//#endregion
|
|
97334
|
+
//#region ../../node_modules/semver/functions/satisfies.js
|
|
97335
|
+
var require_satisfies$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97336
|
+
const Range = require_range$1();
|
|
97337
|
+
const satisfies = (version, range, options) => {
|
|
97338
|
+
try {
|
|
97339
|
+
range = new Range(range, options);
|
|
97340
|
+
} catch (er) {
|
|
97341
|
+
return false;
|
|
97342
|
+
}
|
|
97343
|
+
return range.test(version);
|
|
97344
|
+
};
|
|
97345
|
+
module.exports = satisfies;
|
|
97346
|
+
}));
|
|
97347
|
+
//#endregion
|
|
97348
|
+
//#region ../../node_modules/semver/ranges/to-comparators.js
|
|
97349
|
+
var require_to_comparators$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97350
|
+
const Range = require_range$1();
|
|
97351
|
+
const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
97352
|
+
module.exports = toComparators;
|
|
97353
|
+
}));
|
|
97354
|
+
//#endregion
|
|
97355
|
+
//#region ../../node_modules/semver/ranges/max-satisfying.js
|
|
97356
|
+
var require_max_satisfying$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97357
|
+
const SemVer = require_semver$3();
|
|
97358
|
+
const Range = require_range$1();
|
|
97359
|
+
const maxSatisfying = (versions, range, options) => {
|
|
97360
|
+
let max = null;
|
|
97361
|
+
let maxSV = null;
|
|
97362
|
+
let rangeObj = null;
|
|
97363
|
+
try {
|
|
97364
|
+
rangeObj = new Range(range, options);
|
|
97365
|
+
} catch (er) {
|
|
97366
|
+
return null;
|
|
97367
|
+
}
|
|
97368
|
+
versions.forEach((v) => {
|
|
97369
|
+
if (rangeObj.test(v)) {
|
|
97370
|
+
if (!max || maxSV.compare(v) === -1) {
|
|
97371
|
+
max = v;
|
|
97372
|
+
maxSV = new SemVer(max, options);
|
|
97373
|
+
}
|
|
97374
|
+
}
|
|
97375
|
+
});
|
|
97376
|
+
return max;
|
|
97377
|
+
};
|
|
97378
|
+
module.exports = maxSatisfying;
|
|
97379
|
+
}));
|
|
97380
|
+
//#endregion
|
|
97381
|
+
//#region ../../node_modules/semver/ranges/min-satisfying.js
|
|
97382
|
+
var require_min_satisfying$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97383
|
+
const SemVer = require_semver$3();
|
|
97384
|
+
const Range = require_range$1();
|
|
97385
|
+
const minSatisfying = (versions, range, options) => {
|
|
97386
|
+
let min = null;
|
|
97387
|
+
let minSV = null;
|
|
97388
|
+
let rangeObj = null;
|
|
97389
|
+
try {
|
|
97390
|
+
rangeObj = new Range(range, options);
|
|
97391
|
+
} catch (er) {
|
|
97392
|
+
return null;
|
|
97393
|
+
}
|
|
97394
|
+
versions.forEach((v) => {
|
|
97395
|
+
if (rangeObj.test(v)) {
|
|
97396
|
+
if (!min || minSV.compare(v) === 1) {
|
|
97397
|
+
min = v;
|
|
97398
|
+
minSV = new SemVer(min, options);
|
|
97399
|
+
}
|
|
97400
|
+
}
|
|
97401
|
+
});
|
|
97402
|
+
return min;
|
|
97403
|
+
};
|
|
97404
|
+
module.exports = minSatisfying;
|
|
97405
|
+
}));
|
|
97406
|
+
//#endregion
|
|
97407
|
+
//#region ../../node_modules/semver/ranges/min-version.js
|
|
97408
|
+
var require_min_version$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97409
|
+
const SemVer = require_semver$3();
|
|
97410
|
+
const Range = require_range$1();
|
|
97411
|
+
const gt = require_gt$1();
|
|
97412
|
+
const minVersion = (range, loose) => {
|
|
97413
|
+
range = new Range(range, loose);
|
|
97414
|
+
let minver = new SemVer("0.0.0");
|
|
97415
|
+
if (range.test(minver)) return minver;
|
|
97416
|
+
minver = new SemVer("0.0.0-0");
|
|
97417
|
+
if (range.test(minver)) return minver;
|
|
97418
|
+
minver = null;
|
|
97419
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
97420
|
+
const comparators = range.set[i];
|
|
97421
|
+
let setMin = null;
|
|
97422
|
+
comparators.forEach((comparator) => {
|
|
97423
|
+
const compver = new SemVer(comparator.semver.version);
|
|
97424
|
+
switch (comparator.operator) {
|
|
97425
|
+
case ">":
|
|
97426
|
+
if (compver.prerelease.length === 0) compver.patch++;
|
|
97427
|
+
else compver.prerelease.push(0);
|
|
97428
|
+
compver.raw = compver.format();
|
|
97429
|
+
case "":
|
|
97430
|
+
case ">=":
|
|
97431
|
+
if (!setMin || gt(compver, setMin)) setMin = compver;
|
|
97432
|
+
break;
|
|
97433
|
+
case "<":
|
|
97434
|
+
case "<=": break;
|
|
97435
|
+
default: throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
97436
|
+
}
|
|
97437
|
+
});
|
|
97438
|
+
if (setMin && (!minver || gt(minver, setMin))) minver = setMin;
|
|
97439
|
+
}
|
|
97440
|
+
if (minver && range.test(minver)) return minver;
|
|
97441
|
+
return null;
|
|
97442
|
+
};
|
|
97443
|
+
module.exports = minVersion;
|
|
97444
|
+
}));
|
|
97445
|
+
//#endregion
|
|
97446
|
+
//#region ../../node_modules/semver/ranges/valid.js
|
|
97447
|
+
var require_valid$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97448
|
+
const Range = require_range$1();
|
|
97449
|
+
const validRange = (range, options) => {
|
|
97450
|
+
try {
|
|
97451
|
+
return new Range(range, options).range || "*";
|
|
97452
|
+
} catch (er) {
|
|
97453
|
+
return null;
|
|
97454
|
+
}
|
|
97455
|
+
};
|
|
97456
|
+
module.exports = validRange;
|
|
97457
|
+
}));
|
|
97458
|
+
//#endregion
|
|
97459
|
+
//#region ../../node_modules/semver/ranges/outside.js
|
|
97460
|
+
var require_outside$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97461
|
+
const SemVer = require_semver$3();
|
|
97462
|
+
const Comparator = require_comparator$1();
|
|
97463
|
+
const { ANY } = Comparator;
|
|
97464
|
+
const Range = require_range$1();
|
|
97465
|
+
const satisfies = require_satisfies$1();
|
|
97466
|
+
const gt = require_gt$1();
|
|
97467
|
+
const lt = require_lt$1();
|
|
97468
|
+
const lte = require_lte$1();
|
|
97469
|
+
const gte = require_gte$1();
|
|
97470
|
+
const outside = (version, range, hilo, options) => {
|
|
97471
|
+
version = new SemVer(version, options);
|
|
97472
|
+
range = new Range(range, options);
|
|
97473
|
+
let gtfn, ltefn, ltfn, comp, ecomp;
|
|
97474
|
+
switch (hilo) {
|
|
97475
|
+
case ">":
|
|
97476
|
+
gtfn = gt;
|
|
97477
|
+
ltefn = lte;
|
|
97478
|
+
ltfn = lt;
|
|
97479
|
+
comp = ">";
|
|
97480
|
+
ecomp = ">=";
|
|
97481
|
+
break;
|
|
97482
|
+
case "<":
|
|
97483
|
+
gtfn = lt;
|
|
97484
|
+
ltefn = gte;
|
|
97485
|
+
ltfn = gt;
|
|
97486
|
+
comp = "<";
|
|
97487
|
+
ecomp = "<=";
|
|
97488
|
+
break;
|
|
97489
|
+
default: throw new TypeError("Must provide a hilo val of \"<\" or \">\"");
|
|
97490
|
+
}
|
|
97491
|
+
if (satisfies(version, range, options)) return false;
|
|
97492
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
97493
|
+
const comparators = range.set[i];
|
|
97494
|
+
let high = null;
|
|
97495
|
+
let low = null;
|
|
97496
|
+
comparators.forEach((comparator) => {
|
|
97497
|
+
if (comparator.semver === ANY) comparator = new Comparator(">=0.0.0");
|
|
97498
|
+
high = high || comparator;
|
|
97499
|
+
low = low || comparator;
|
|
97500
|
+
if (gtfn(comparator.semver, high.semver, options)) high = comparator;
|
|
97501
|
+
else if (ltfn(comparator.semver, low.semver, options)) low = comparator;
|
|
97502
|
+
});
|
|
97503
|
+
if (high.operator === comp || high.operator === ecomp) return false;
|
|
97504
|
+
if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) return false;
|
|
97505
|
+
else if (low.operator === ecomp && ltfn(version, low.semver)) return false;
|
|
97506
|
+
}
|
|
97507
|
+
return true;
|
|
97508
|
+
};
|
|
97509
|
+
module.exports = outside;
|
|
97510
|
+
}));
|
|
97511
|
+
//#endregion
|
|
97512
|
+
//#region ../../node_modules/semver/ranges/gtr.js
|
|
97513
|
+
var require_gtr$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97514
|
+
const outside = require_outside$1();
|
|
97515
|
+
const gtr = (version, range, options) => outside(version, range, ">", options);
|
|
97516
|
+
module.exports = gtr;
|
|
97517
|
+
}));
|
|
97518
|
+
//#endregion
|
|
97519
|
+
//#region ../../node_modules/semver/ranges/ltr.js
|
|
97520
|
+
var require_ltr$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97521
|
+
const outside = require_outside$1();
|
|
97522
|
+
const ltr = (version, range, options) => outside(version, range, "<", options);
|
|
97523
|
+
module.exports = ltr;
|
|
97524
|
+
}));
|
|
97525
|
+
//#endregion
|
|
97526
|
+
//#region ../../node_modules/semver/ranges/intersects.js
|
|
97527
|
+
var require_intersects$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97528
|
+
const Range = require_range$1();
|
|
97529
|
+
const intersects = (r1, r2, options) => {
|
|
97530
|
+
r1 = new Range(r1, options);
|
|
97531
|
+
r2 = new Range(r2, options);
|
|
97532
|
+
return r1.intersects(r2, options);
|
|
97533
|
+
};
|
|
97534
|
+
module.exports = intersects;
|
|
97535
|
+
}));
|
|
97536
|
+
//#endregion
|
|
97537
|
+
//#region ../../node_modules/semver/ranges/simplify.js
|
|
97538
|
+
var require_simplify$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97539
|
+
const satisfies = require_satisfies$1();
|
|
97540
|
+
const compare = require_compare$1();
|
|
97541
|
+
module.exports = (versions, range, options) => {
|
|
97542
|
+
const set = [];
|
|
97543
|
+
let first = null;
|
|
97544
|
+
let prev = null;
|
|
97545
|
+
const v = versions.sort((a, b) => compare(a, b, options));
|
|
97546
|
+
for (const version of v) if (satisfies(version, range, options)) {
|
|
97547
|
+
prev = version;
|
|
97548
|
+
if (!first) first = version;
|
|
97549
|
+
} else {
|
|
97550
|
+
if (prev) set.push([first, prev]);
|
|
97551
|
+
prev = null;
|
|
97552
|
+
first = null;
|
|
97553
|
+
}
|
|
97554
|
+
if (first) set.push([first, null]);
|
|
97555
|
+
const ranges = [];
|
|
97556
|
+
for (const [min, max] of set) if (min === max) ranges.push(min);
|
|
97557
|
+
else if (!max && min === v[0]) ranges.push("*");
|
|
97558
|
+
else if (!max) ranges.push(`>=${min}`);
|
|
97559
|
+
else if (min === v[0]) ranges.push(`<=${max}`);
|
|
97560
|
+
else ranges.push(`${min} - ${max}`);
|
|
97561
|
+
const simplified = ranges.join(" || ");
|
|
97562
|
+
const original = typeof range.raw === "string" ? range.raw : String(range);
|
|
97563
|
+
return simplified.length < original.length ? simplified : range;
|
|
97564
|
+
};
|
|
97565
|
+
}));
|
|
97566
|
+
//#endregion
|
|
97567
|
+
//#region ../../node_modules/semver/ranges/subset.js
|
|
97568
|
+
var require_subset$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97569
|
+
const Range = require_range$1();
|
|
97570
|
+
const Comparator = require_comparator$1();
|
|
97571
|
+
const { ANY } = Comparator;
|
|
97572
|
+
const satisfies = require_satisfies$1();
|
|
97573
|
+
const compare = require_compare$1();
|
|
97574
|
+
const subset = (sub, dom, options = {}) => {
|
|
97575
|
+
if (sub === dom) return true;
|
|
97576
|
+
sub = new Range(sub, options);
|
|
97577
|
+
dom = new Range(dom, options);
|
|
97578
|
+
let sawNonNull = false;
|
|
97579
|
+
OUTER: for (const simpleSub of sub.set) {
|
|
97580
|
+
for (const simpleDom of dom.set) {
|
|
97581
|
+
const isSub = simpleSubset(simpleSub, simpleDom, options);
|
|
97582
|
+
sawNonNull = sawNonNull || isSub !== null;
|
|
97583
|
+
if (isSub) continue OUTER;
|
|
97584
|
+
}
|
|
97585
|
+
if (sawNonNull) return false;
|
|
97586
|
+
}
|
|
97587
|
+
return true;
|
|
97588
|
+
};
|
|
97589
|
+
const minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")];
|
|
97590
|
+
const minimumVersion = [new Comparator(">=0.0.0")];
|
|
97591
|
+
const simpleSubset = (sub, dom, options) => {
|
|
97592
|
+
if (sub === dom) return true;
|
|
97593
|
+
if (sub.length === 1 && sub[0].semver === ANY) if (dom.length === 1 && dom[0].semver === ANY) return true;
|
|
97594
|
+
else if (options.includePrerelease) sub = minimumVersionWithPreRelease;
|
|
97595
|
+
else sub = minimumVersion;
|
|
97596
|
+
if (dom.length === 1 && dom[0].semver === ANY) if (options.includePrerelease) return true;
|
|
97597
|
+
else dom = minimumVersion;
|
|
97598
|
+
const eqSet = /* @__PURE__ */ new Set();
|
|
97599
|
+
let gt, lt;
|
|
97600
|
+
for (const c of sub) if (c.operator === ">" || c.operator === ">=") gt = higherGT(gt, c, options);
|
|
97601
|
+
else if (c.operator === "<" || c.operator === "<=") lt = lowerLT(lt, c, options);
|
|
97602
|
+
else eqSet.add(c.semver);
|
|
97603
|
+
if (eqSet.size > 1) return null;
|
|
97604
|
+
let gtltComp;
|
|
97605
|
+
if (gt && lt) {
|
|
97606
|
+
gtltComp = compare(gt.semver, lt.semver, options);
|
|
97607
|
+
if (gtltComp > 0) return null;
|
|
97608
|
+
else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) return null;
|
|
97609
|
+
}
|
|
97610
|
+
for (const eq of eqSet) {
|
|
97611
|
+
if (gt && !satisfies(eq, String(gt), options)) return null;
|
|
97612
|
+
if (lt && !satisfies(eq, String(lt), options)) return null;
|
|
97613
|
+
for (const c of dom) if (!satisfies(eq, String(c), options)) return false;
|
|
97614
|
+
return true;
|
|
97615
|
+
}
|
|
97616
|
+
let higher, lower;
|
|
97617
|
+
let hasDomLT, hasDomGT;
|
|
97618
|
+
let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;
|
|
97619
|
+
let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;
|
|
97620
|
+
if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0) needDomLTPre = false;
|
|
97621
|
+
for (const c of dom) {
|
|
97622
|
+
hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=";
|
|
97623
|
+
hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=";
|
|
97624
|
+
if (gt) {
|
|
97625
|
+
if (needDomGTPre) {
|
|
97626
|
+
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;
|
|
97627
|
+
}
|
|
97628
|
+
if (c.operator === ">" || c.operator === ">=") {
|
|
97629
|
+
higher = higherGT(gt, c, options);
|
|
97630
|
+
if (higher === c && higher !== gt) return false;
|
|
97631
|
+
} else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options)) return false;
|
|
97632
|
+
}
|
|
97633
|
+
if (lt) {
|
|
97634
|
+
if (needDomLTPre) {
|
|
97635
|
+
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;
|
|
97636
|
+
}
|
|
97637
|
+
if (c.operator === "<" || c.operator === "<=") {
|
|
97638
|
+
lower = lowerLT(lt, c, options);
|
|
97639
|
+
if (lower === c && lower !== lt) return false;
|
|
97640
|
+
} else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options)) return false;
|
|
97641
|
+
}
|
|
97642
|
+
if (!c.operator && (lt || gt) && gtltComp !== 0) return false;
|
|
97643
|
+
}
|
|
97644
|
+
if (gt && hasDomLT && !lt && gtltComp !== 0) return false;
|
|
97645
|
+
if (lt && hasDomGT && !gt && gtltComp !== 0) return false;
|
|
97646
|
+
if (needDomGTPre || needDomLTPre) return false;
|
|
97647
|
+
return true;
|
|
97648
|
+
};
|
|
97649
|
+
const higherGT = (a, b, options) => {
|
|
97650
|
+
if (!a) return b;
|
|
97651
|
+
const comp = compare(a.semver, b.semver, options);
|
|
97652
|
+
return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
|
|
97653
|
+
};
|
|
97654
|
+
const lowerLT = (a, b, options) => {
|
|
97655
|
+
if (!a) return b;
|
|
97656
|
+
const comp = compare(a.semver, b.semver, options);
|
|
97657
|
+
return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
|
|
97658
|
+
};
|
|
97659
|
+
module.exports = subset;
|
|
97660
|
+
}));
|
|
97661
|
+
//#endregion
|
|
97662
|
+
//#region ../../node_modules/semver/index.js
|
|
97663
|
+
var require_semver$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97664
|
+
const internalRe = require_re$1();
|
|
97665
|
+
const constants = require_constants$5();
|
|
97666
|
+
const SemVer = require_semver$3();
|
|
97667
|
+
const identifiers = require_identifiers$1();
|
|
97668
|
+
module.exports = {
|
|
97669
|
+
parse: require_parse$3(),
|
|
97670
|
+
valid: require_valid$3(),
|
|
97671
|
+
clean: require_clean$1(),
|
|
97672
|
+
inc: require_inc$1(),
|
|
97673
|
+
diff: require_diff$1(),
|
|
97674
|
+
major: require_major$1(),
|
|
97675
|
+
minor: require_minor$1(),
|
|
97676
|
+
patch: require_patch$1(),
|
|
97677
|
+
prerelease: require_prerelease$1(),
|
|
97678
|
+
compare: require_compare$1(),
|
|
97679
|
+
rcompare: require_rcompare$1(),
|
|
97680
|
+
compareLoose: require_compare_loose$1(),
|
|
97681
|
+
compareBuild: require_compare_build$1(),
|
|
97682
|
+
sort: require_sort$2(),
|
|
97683
|
+
rsort: require_rsort$1(),
|
|
97684
|
+
gt: require_gt$1(),
|
|
97685
|
+
lt: require_lt$1(),
|
|
97686
|
+
eq: require_eq$1(),
|
|
97687
|
+
neq: require_neq$1(),
|
|
97688
|
+
gte: require_gte$1(),
|
|
97689
|
+
lte: require_lte$1(),
|
|
97690
|
+
cmp: require_cmp$1(),
|
|
97691
|
+
coerce: require_coerce$1(),
|
|
97692
|
+
truncate: require_truncate(),
|
|
97693
|
+
Comparator: require_comparator$1(),
|
|
97694
|
+
Range: require_range$1(),
|
|
97695
|
+
satisfies: require_satisfies$1(),
|
|
97696
|
+
toComparators: require_to_comparators$1(),
|
|
97697
|
+
maxSatisfying: require_max_satisfying$1(),
|
|
97698
|
+
minSatisfying: require_min_satisfying$1(),
|
|
97699
|
+
minVersion: require_min_version$1(),
|
|
97700
|
+
validRange: require_valid$2(),
|
|
97701
|
+
outside: require_outside$1(),
|
|
97702
|
+
gtr: require_gtr$1(),
|
|
97703
|
+
ltr: require_ltr$1(),
|
|
97704
|
+
intersects: require_intersects$1(),
|
|
97705
|
+
simplifyRange: require_simplify$1(),
|
|
97706
|
+
subset: require_subset$1(),
|
|
97707
|
+
SemVer,
|
|
97708
|
+
re: internalRe.re,
|
|
97709
|
+
src: internalRe.src,
|
|
97710
|
+
tokens: internalRe.t,
|
|
97711
|
+
SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
|
|
97712
|
+
RELEASE_TYPES: constants.RELEASE_TYPES,
|
|
97713
|
+
compareIdentifiers: identifiers.compareIdentifiers,
|
|
97714
|
+
rcompareIdentifiers: identifiers.rcompareIdentifiers
|
|
97715
|
+
};
|
|
97716
|
+
}));
|
|
97717
|
+
//#endregion
|
|
96178
97718
|
//#region ../../node_modules/@npmcli/git/lib/lines-to-revs.js
|
|
96179
97719
|
var require_lines_to_revs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96180
|
-
const semver = require_semver();
|
|
97720
|
+
const semver = require_semver$2();
|
|
96181
97721
|
module.exports = (lines) => finish(lines.reduce(linesToRevsReducer, {
|
|
96182
97722
|
versions: {},
|
|
96183
97723
|
"dist-tags": {},
|
|
@@ -96444,7 +97984,7 @@ var require_npa = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
96444
97984
|
const path$17 = isWindows ? __require("node:path/win32") : __require("node:path");
|
|
96445
97985
|
const { homedir: homedir$1 } = __require("node:os");
|
|
96446
97986
|
const HostedGit = require_lib$28();
|
|
96447
|
-
const semver = require_semver();
|
|
97987
|
+
const semver = require_semver$2();
|
|
96448
97988
|
const validatePackageName = require_lib$23();
|
|
96449
97989
|
const { log } = require_lib$29();
|
|
96450
97990
|
const hasSlashes = isWindows ? /\\|[/]/ : /[/]/;
|
|
@@ -96817,8 +98357,8 @@ var require_current_env = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
96817
98357
|
//#endregion
|
|
96818
98358
|
//#region ../../node_modules/npm-install-checks/lib/dev-engines.js
|
|
96819
98359
|
var require_dev_engines = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96820
|
-
const satisfies = require_satisfies();
|
|
96821
|
-
const validRange = require_valid();
|
|
98360
|
+
const satisfies = require_satisfies$1();
|
|
98361
|
+
const validRange = require_valid$2();
|
|
96822
98362
|
const recognizedOnFail = [
|
|
96823
98363
|
"ignore",
|
|
96824
98364
|
"warn",
|
|
@@ -96898,7 +98438,7 @@ var require_dev_engines = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
96898
98438
|
//#endregion
|
|
96899
98439
|
//#region ../../node_modules/npm-install-checks/lib/index.js
|
|
96900
98440
|
var require_lib$22 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
96901
|
-
const semver = require_semver();
|
|
98441
|
+
const semver = require_semver$2();
|
|
96902
98442
|
const currentEnv = require_current_env();
|
|
96903
98443
|
const { checkDevEngines } = require_dev_engines();
|
|
96904
98444
|
const checkEngine = (target, npmVer, nodeVer, force = false) => {
|
|
@@ -97007,7 +98547,7 @@ var require_lib$21 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
97007
98547
|
//#region ../../node_modules/npm-pick-manifest/lib/index.js
|
|
97008
98548
|
var require_lib$20 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97009
98549
|
const npa = require_npa();
|
|
97010
|
-
const semver = require_semver();
|
|
98550
|
+
const semver = require_semver$2();
|
|
97011
98551
|
const { checkEngine } = require_lib$22();
|
|
97012
98552
|
const normalizeBin = require_lib$21();
|
|
97013
98553
|
const engineOk = (manifest, npmVersion, nodeVersion) => {
|
|
@@ -97301,8 +98841,8 @@ var require_lib$19 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
97301
98841
|
//#endregion
|
|
97302
98842
|
//#region ../../node_modules/@npmcli/package-json/lib/normalize.js
|
|
97303
98843
|
var require_normalize = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97304
|
-
const valid = require_valid$
|
|
97305
|
-
const clean = require_clean();
|
|
98844
|
+
const valid = require_valid$3();
|
|
98845
|
+
const clean = require_clean$1();
|
|
97306
98846
|
const fs$13 = __require("node:fs/promises");
|
|
97307
98847
|
const path$15 = __require("node:path");
|
|
97308
98848
|
const { log } = require_lib$29();
|
|
@@ -97733,7 +99273,7 @@ var require_read_package = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
97733
99273
|
}));
|
|
97734
99274
|
//#endregion
|
|
97735
99275
|
//#region ../../node_modules/@npmcli/package-json/lib/sort.js
|
|
97736
|
-
var require_sort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
99276
|
+
var require_sort$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97737
99277
|
/**
|
|
97738
99278
|
* arbitrary sort order for package.json largely pulled from:
|
|
97739
99279
|
* https://github.com/keithamus/sort-package-json/blob/main/defaultRules.md
|
|
@@ -97801,7 +99341,7 @@ var require_lib$18 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
97801
99341
|
const updateWorkspaces = require_update_workspaces();
|
|
97802
99342
|
const { normalize, syncNormalize } = require_normalize();
|
|
97803
99343
|
const { read, parse } = require_read_package();
|
|
97804
|
-
const { packageSort } = require_sort();
|
|
99344
|
+
const { packageSort } = require_sort$1();
|
|
97805
99345
|
const knownSteps = new Set([
|
|
97806
99346
|
updateDeps,
|
|
97807
99347
|
updateScripts,
|
|
@@ -98947,7 +100487,7 @@ var require_get_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
98947
100487
|
//#endregion
|
|
98948
100488
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/common/node.js
|
|
98949
100489
|
var require_node$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
98950
|
-
const semver = require_semver();
|
|
100490
|
+
const semver = require_semver$2();
|
|
98951
100491
|
const satisfies = (range) => {
|
|
98952
100492
|
return semver.satisfies(process.version, range, { includePrerelease: true });
|
|
98953
100493
|
};
|
|
@@ -111481,7 +113021,7 @@ var require_errors$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
111481
113021
|
}));
|
|
111482
113022
|
//#endregion
|
|
111483
113023
|
//#region ../../node_modules/minizlib/dist/commonjs/constants.js
|
|
111484
|
-
var require_constants$
|
|
113024
|
+
var require_constants$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
111485
113025
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
111486
113026
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
111487
113027
|
};
|
|
@@ -111652,8 +113192,8 @@ var require_commonjs$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
111652
113192
|
const buffer_1$1 = __require("buffer");
|
|
111653
113193
|
const minipass_1 = require_commonjs$10();
|
|
111654
113194
|
const realZlib = __importStar(__require("zlib"));
|
|
111655
|
-
const constants_js_1 = require_constants$
|
|
111656
|
-
var constants_js_2 = require_constants$
|
|
113195
|
+
const constants_js_1 = require_constants$4();
|
|
113196
|
+
var constants_js_2 = require_constants$4();
|
|
111657
113197
|
Object.defineProperty(exports, "constants", {
|
|
111658
113198
|
enumerable: true,
|
|
111659
113199
|
get: function() {
|
|
@@ -126295,7 +127835,7 @@ var require_smartbuffer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
126295
127835
|
}));
|
|
126296
127836
|
//#endregion
|
|
126297
127837
|
//#region ../../node_modules/socks/build/common/constants.js
|
|
126298
|
-
var require_constants$
|
|
127838
|
+
var require_constants$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
126299
127839
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
126300
127840
|
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;
|
|
126301
127841
|
exports.DEFAULT_TIMEOUT = 3e4;
|
|
@@ -126461,7 +128001,7 @@ var require_common = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
126461
128001
|
}));
|
|
126462
128002
|
//#endregion
|
|
126463
128003
|
//#region ../../node_modules/ip-address/dist/v4/constants.js
|
|
126464
|
-
var require_constants$
|
|
128004
|
+
var require_constants$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
126465
128005
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
126466
128006
|
exports.RE_SUBNET_STRING = exports.RE_ADDRESS = exports.GROUPS = exports.BITS = void 0;
|
|
126467
128007
|
exports.BITS = 32;
|
|
@@ -126520,7 +128060,7 @@ var require_ipv4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
126520
128060
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
126521
128061
|
exports.Address4 = void 0;
|
|
126522
128062
|
const common = __importStar(require_common());
|
|
126523
|
-
const constants = __importStar(require_constants$
|
|
128063
|
+
const constants = __importStar(require_constants$2());
|
|
126524
128064
|
const address_error_1 = require_address_error();
|
|
126525
128065
|
exports.Address4 = class Address4 {
|
|
126526
128066
|
constructor(address) {
|
|
@@ -126814,7 +128354,7 @@ var require_ipv4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
126814
128354
|
}));
|
|
126815
128355
|
//#endregion
|
|
126816
128356
|
//#region ../../node_modules/ip-address/dist/v6/constants.js
|
|
126817
|
-
var require_constants = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
128357
|
+
var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
126818
128358
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
126819
128359
|
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;
|
|
126820
128360
|
exports.BITS = 128;
|
|
@@ -126970,7 +128510,7 @@ var require_regular_expressions = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
126970
128510
|
exports.padGroup = padGroup;
|
|
126971
128511
|
exports.simpleRegularExpression = simpleRegularExpression;
|
|
126972
128512
|
exports.possibleElisions = possibleElisions;
|
|
126973
|
-
const v6 = __importStar(require_constants());
|
|
128513
|
+
const v6 = __importStar(require_constants$1());
|
|
126974
128514
|
function groupPossibilities(possibilities) {
|
|
126975
128515
|
return `(${possibilities.join("|")})`;
|
|
126976
128516
|
}
|
|
@@ -127045,8 +128585,8 @@ var require_ipv6 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
127045
128585
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
127046
128586
|
exports.Address6 = void 0;
|
|
127047
128587
|
const common = __importStar(require_common());
|
|
127048
|
-
const constants4 = __importStar(require_constants$
|
|
127049
|
-
const constants6 = __importStar(require_constants());
|
|
128588
|
+
const constants4 = __importStar(require_constants$2());
|
|
128589
|
+
const constants6 = __importStar(require_constants$1());
|
|
127050
128590
|
const helpers = __importStar(require_helpers$1());
|
|
127051
128591
|
const ipv4_1 = require_ipv4();
|
|
127052
128592
|
const regular_expressions_1 = require_regular_expressions();
|
|
@@ -127866,7 +129406,7 @@ var require_helpers = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
127866
129406
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
127867
129407
|
exports.ipToBuffer = exports.int32ToIpv4 = exports.ipv4ToInt32 = exports.validateSocksClientChainOptions = exports.validateSocksClientOptions = void 0;
|
|
127868
129408
|
const util_1 = require_util$1();
|
|
127869
|
-
const constants_1 = require_constants$
|
|
129409
|
+
const constants_1 = require_constants$3();
|
|
127870
129410
|
const stream = __require("stream");
|
|
127871
129411
|
const ip_address_1 = require_ip_address();
|
|
127872
129412
|
const net$3 = __require("net");
|
|
@@ -128031,7 +129571,7 @@ var require_socksclient = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
128031
129571
|
const events_1 = __require("events");
|
|
128032
129572
|
const net$2 = __require("net");
|
|
128033
129573
|
const smart_buffer_1 = require_smartbuffer();
|
|
128034
|
-
const constants_1 = require_constants$
|
|
129574
|
+
const constants_1 = require_constants$3();
|
|
128035
129575
|
const helpers_1 = require_helpers();
|
|
128036
129576
|
const receivebuffer_1 = require_receivebuffer();
|
|
128037
129577
|
const util_1 = require_util$1();
|
|
@@ -132280,7 +133820,7 @@ var require_length = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
132280
133820
|
}));
|
|
132281
133821
|
//#endregion
|
|
132282
133822
|
//#region ../../node_modules/@sigstore/core/dist/asn1/parse.js
|
|
132283
|
-
var require_parse = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
133823
|
+
var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
132284
133824
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
132285
133825
|
exports.parseInteger = parseInteger;
|
|
132286
133826
|
exports.parseStringASCII = parseStringASCII;
|
|
@@ -132426,7 +133966,7 @@ var require_obj = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
132426
133966
|
const stream_1 = require_stream();
|
|
132427
133967
|
const error_1 = require_error$8();
|
|
132428
133968
|
const length_1 = require_length();
|
|
132429
|
-
const parse_1 = require_parse();
|
|
133969
|
+
const parse_1 = require_parse$1();
|
|
132430
133970
|
const tag_1 = require_tag();
|
|
132431
133971
|
var ASN1Obj = class {
|
|
132432
133972
|
tag;
|
|
@@ -140742,6 +142282,1343 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
140742
142282
|
};
|
|
140743
142283
|
}));
|
|
140744
142284
|
//#endregion
|
|
142285
|
+
//#region ../../packages/core-node/node_modules/semver/internal/constants.js
|
|
142286
|
+
var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142287
|
+
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
142288
|
+
const MAX_LENGTH = 256;
|
|
142289
|
+
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
142290
|
+
module.exports = {
|
|
142291
|
+
MAX_LENGTH,
|
|
142292
|
+
MAX_SAFE_COMPONENT_LENGTH: 16,
|
|
142293
|
+
MAX_SAFE_BUILD_LENGTH: MAX_LENGTH - 6,
|
|
142294
|
+
MAX_SAFE_INTEGER,
|
|
142295
|
+
RELEASE_TYPES: [
|
|
142296
|
+
"major",
|
|
142297
|
+
"premajor",
|
|
142298
|
+
"minor",
|
|
142299
|
+
"preminor",
|
|
142300
|
+
"patch",
|
|
142301
|
+
"prepatch",
|
|
142302
|
+
"prerelease"
|
|
142303
|
+
],
|
|
142304
|
+
SEMVER_SPEC_VERSION,
|
|
142305
|
+
FLAG_INCLUDE_PRERELEASE: 1,
|
|
142306
|
+
FLAG_LOOSE: 2
|
|
142307
|
+
};
|
|
142308
|
+
}));
|
|
142309
|
+
//#endregion
|
|
142310
|
+
//#region ../../packages/core-node/node_modules/semver/internal/debug.js
|
|
142311
|
+
var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142312
|
+
module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
142313
|
+
}));
|
|
142314
|
+
//#endregion
|
|
142315
|
+
//#region ../../packages/core-node/node_modules/semver/internal/re.js
|
|
142316
|
+
var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142317
|
+
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
|
|
142318
|
+
const debug = require_debug();
|
|
142319
|
+
exports = module.exports = {};
|
|
142320
|
+
const re = exports.re = [];
|
|
142321
|
+
const safeRe = exports.safeRe = [];
|
|
142322
|
+
const src = exports.src = [];
|
|
142323
|
+
const safeSrc = exports.safeSrc = [];
|
|
142324
|
+
const t = exports.t = {};
|
|
142325
|
+
let R = 0;
|
|
142326
|
+
const LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
142327
|
+
const safeRegexReplacements = [
|
|
142328
|
+
["\\s", 1],
|
|
142329
|
+
["\\d", MAX_LENGTH],
|
|
142330
|
+
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
|
|
142331
|
+
];
|
|
142332
|
+
const makeSafeRegex = (value) => {
|
|
142333
|
+
for (const [token, max] of safeRegexReplacements) value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
|
|
142334
|
+
return value;
|
|
142335
|
+
};
|
|
142336
|
+
const createToken = (name, value, isGlobal) => {
|
|
142337
|
+
const safe = makeSafeRegex(value);
|
|
142338
|
+
const index = R++;
|
|
142339
|
+
debug(name, index, value);
|
|
142340
|
+
t[name] = index;
|
|
142341
|
+
src[index] = value;
|
|
142342
|
+
safeSrc[index] = safe;
|
|
142343
|
+
re[index] = new RegExp(value, isGlobal ? "g" : void 0);
|
|
142344
|
+
safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
142345
|
+
};
|
|
142346
|
+
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
142347
|
+
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
142348
|
+
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
142349
|
+
createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
|
|
142350
|
+
createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
142351
|
+
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
|
|
142352
|
+
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
142353
|
+
createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
142354
|
+
createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
142355
|
+
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
142356
|
+
createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
|
|
142357
|
+
createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
|
|
142358
|
+
createToken("FULL", `^${src[t.FULLPLAIN]}$`);
|
|
142359
|
+
createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
|
|
142360
|
+
createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
|
|
142361
|
+
createToken("GTLT", "((?:<|>)?=?)");
|
|
142362
|
+
createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
|
142363
|
+
createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
|
|
142364
|
+
createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
|
|
142365
|
+
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
|
|
142366
|
+
createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
|
|
142367
|
+
createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
|
|
142368
|
+
createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
|
142369
|
+
createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
142370
|
+
createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
|
|
142371
|
+
createToken("COERCERTL", src[t.COERCE], true);
|
|
142372
|
+
createToken("COERCERTLFULL", src[t.COERCEFULL], true);
|
|
142373
|
+
createToken("LONETILDE", "(?:~>?)");
|
|
142374
|
+
createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
|
|
142375
|
+
exports.tildeTrimReplace = "$1~";
|
|
142376
|
+
createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
|
|
142377
|
+
createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
142378
|
+
createToken("LONECARET", "(?:\\^)");
|
|
142379
|
+
createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
|
|
142380
|
+
exports.caretTrimReplace = "$1^";
|
|
142381
|
+
createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
|
|
142382
|
+
createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
142383
|
+
createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
|
|
142384
|
+
createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
|
|
142385
|
+
createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
|
|
142386
|
+
exports.comparatorTrimReplace = "$1$2$3";
|
|
142387
|
+
createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
|
|
142388
|
+
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
|
|
142389
|
+
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
142390
|
+
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
142391
|
+
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
142392
|
+
}));
|
|
142393
|
+
//#endregion
|
|
142394
|
+
//#region ../../packages/core-node/node_modules/semver/internal/parse-options.js
|
|
142395
|
+
var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142396
|
+
const looseOption = Object.freeze({ loose: true });
|
|
142397
|
+
const emptyOpts = Object.freeze({});
|
|
142398
|
+
const parseOptions = (options) => {
|
|
142399
|
+
if (!options) return emptyOpts;
|
|
142400
|
+
if (typeof options !== "object") return looseOption;
|
|
142401
|
+
return options;
|
|
142402
|
+
};
|
|
142403
|
+
module.exports = parseOptions;
|
|
142404
|
+
}));
|
|
142405
|
+
//#endregion
|
|
142406
|
+
//#region ../../packages/core-node/node_modules/semver/internal/identifiers.js
|
|
142407
|
+
var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142408
|
+
const numeric = /^[0-9]+$/;
|
|
142409
|
+
const compareIdentifiers = (a, b) => {
|
|
142410
|
+
if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
|
|
142411
|
+
const anum = numeric.test(a);
|
|
142412
|
+
const bnum = numeric.test(b);
|
|
142413
|
+
if (anum && bnum) {
|
|
142414
|
+
a = +a;
|
|
142415
|
+
b = +b;
|
|
142416
|
+
}
|
|
142417
|
+
return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
|
|
142418
|
+
};
|
|
142419
|
+
const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
|
|
142420
|
+
module.exports = {
|
|
142421
|
+
compareIdentifiers,
|
|
142422
|
+
rcompareIdentifiers
|
|
142423
|
+
};
|
|
142424
|
+
}));
|
|
142425
|
+
//#endregion
|
|
142426
|
+
//#region ../../packages/core-node/node_modules/semver/classes/semver.js
|
|
142427
|
+
var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142428
|
+
const debug = require_debug();
|
|
142429
|
+
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
142430
|
+
const { safeRe: re, t } = require_re();
|
|
142431
|
+
const parseOptions = require_parse_options();
|
|
142432
|
+
const { compareIdentifiers } = require_identifiers();
|
|
142433
|
+
module.exports = class SemVer {
|
|
142434
|
+
constructor(version, options) {
|
|
142435
|
+
options = parseOptions(options);
|
|
142436
|
+
if (version instanceof SemVer) if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) return version;
|
|
142437
|
+
else version = version.version;
|
|
142438
|
+
else if (typeof version !== "string") throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
142439
|
+
if (version.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
|
|
142440
|
+
debug("SemVer", version, options);
|
|
142441
|
+
this.options = options;
|
|
142442
|
+
this.loose = !!options.loose;
|
|
142443
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
142444
|
+
const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
|
|
142445
|
+
if (!m) throw new TypeError(`Invalid Version: ${version}`);
|
|
142446
|
+
this.raw = version;
|
|
142447
|
+
this.major = +m[1];
|
|
142448
|
+
this.minor = +m[2];
|
|
142449
|
+
this.patch = +m[3];
|
|
142450
|
+
if (this.major > MAX_SAFE_INTEGER || this.major < 0) throw new TypeError("Invalid major version");
|
|
142451
|
+
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError("Invalid minor version");
|
|
142452
|
+
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError("Invalid patch version");
|
|
142453
|
+
if (!m[4]) this.prerelease = [];
|
|
142454
|
+
else this.prerelease = m[4].split(".").map((id) => {
|
|
142455
|
+
if (/^[0-9]+$/.test(id)) {
|
|
142456
|
+
const num = +id;
|
|
142457
|
+
if (num >= 0 && num < MAX_SAFE_INTEGER) return num;
|
|
142458
|
+
}
|
|
142459
|
+
return id;
|
|
142460
|
+
});
|
|
142461
|
+
this.build = m[5] ? m[5].split(".") : [];
|
|
142462
|
+
this.format();
|
|
142463
|
+
}
|
|
142464
|
+
format() {
|
|
142465
|
+
this.version = `${this.major}.${this.minor}.${this.patch}`;
|
|
142466
|
+
if (this.prerelease.length) this.version += `-${this.prerelease.join(".")}`;
|
|
142467
|
+
return this.version;
|
|
142468
|
+
}
|
|
142469
|
+
toString() {
|
|
142470
|
+
return this.version;
|
|
142471
|
+
}
|
|
142472
|
+
compare(other) {
|
|
142473
|
+
debug("SemVer.compare", this.version, this.options, other);
|
|
142474
|
+
if (!(other instanceof SemVer)) {
|
|
142475
|
+
if (typeof other === "string" && other === this.version) return 0;
|
|
142476
|
+
other = new SemVer(other, this.options);
|
|
142477
|
+
}
|
|
142478
|
+
if (other.version === this.version) return 0;
|
|
142479
|
+
return this.compareMain(other) || this.comparePre(other);
|
|
142480
|
+
}
|
|
142481
|
+
compareMain(other) {
|
|
142482
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
142483
|
+
if (this.major < other.major) return -1;
|
|
142484
|
+
if (this.major > other.major) return 1;
|
|
142485
|
+
if (this.minor < other.minor) return -1;
|
|
142486
|
+
if (this.minor > other.minor) return 1;
|
|
142487
|
+
if (this.patch < other.patch) return -1;
|
|
142488
|
+
if (this.patch > other.patch) return 1;
|
|
142489
|
+
return 0;
|
|
142490
|
+
}
|
|
142491
|
+
comparePre(other) {
|
|
142492
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
142493
|
+
if (this.prerelease.length && !other.prerelease.length) return -1;
|
|
142494
|
+
else if (!this.prerelease.length && other.prerelease.length) return 1;
|
|
142495
|
+
else if (!this.prerelease.length && !other.prerelease.length) return 0;
|
|
142496
|
+
let i = 0;
|
|
142497
|
+
do {
|
|
142498
|
+
const a = this.prerelease[i];
|
|
142499
|
+
const b = other.prerelease[i];
|
|
142500
|
+
debug("prerelease compare", i, a, b);
|
|
142501
|
+
if (a === void 0 && b === void 0) return 0;
|
|
142502
|
+
else if (b === void 0) return 1;
|
|
142503
|
+
else if (a === void 0) return -1;
|
|
142504
|
+
else if (a === b) continue;
|
|
142505
|
+
else return compareIdentifiers(a, b);
|
|
142506
|
+
} while (++i);
|
|
142507
|
+
}
|
|
142508
|
+
compareBuild(other) {
|
|
142509
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
142510
|
+
let i = 0;
|
|
142511
|
+
do {
|
|
142512
|
+
const a = this.build[i];
|
|
142513
|
+
const b = other.build[i];
|
|
142514
|
+
debug("build compare", i, a, b);
|
|
142515
|
+
if (a === void 0 && b === void 0) return 0;
|
|
142516
|
+
else if (b === void 0) return 1;
|
|
142517
|
+
else if (a === void 0) return -1;
|
|
142518
|
+
else if (a === b) continue;
|
|
142519
|
+
else return compareIdentifiers(a, b);
|
|
142520
|
+
} while (++i);
|
|
142521
|
+
}
|
|
142522
|
+
inc(release, identifier, identifierBase) {
|
|
142523
|
+
if (release.startsWith("pre")) {
|
|
142524
|
+
if (!identifier && identifierBase === false) throw new Error("invalid increment argument: identifier is empty");
|
|
142525
|
+
if (identifier) {
|
|
142526
|
+
const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
|
|
142527
|
+
if (!match || match[1] !== identifier) throw new Error(`invalid identifier: ${identifier}`);
|
|
142528
|
+
}
|
|
142529
|
+
}
|
|
142530
|
+
switch (release) {
|
|
142531
|
+
case "premajor":
|
|
142532
|
+
this.prerelease.length = 0;
|
|
142533
|
+
this.patch = 0;
|
|
142534
|
+
this.minor = 0;
|
|
142535
|
+
this.major++;
|
|
142536
|
+
this.inc("pre", identifier, identifierBase);
|
|
142537
|
+
break;
|
|
142538
|
+
case "preminor":
|
|
142539
|
+
this.prerelease.length = 0;
|
|
142540
|
+
this.patch = 0;
|
|
142541
|
+
this.minor++;
|
|
142542
|
+
this.inc("pre", identifier, identifierBase);
|
|
142543
|
+
break;
|
|
142544
|
+
case "prepatch":
|
|
142545
|
+
this.prerelease.length = 0;
|
|
142546
|
+
this.inc("patch", identifier, identifierBase);
|
|
142547
|
+
this.inc("pre", identifier, identifierBase);
|
|
142548
|
+
break;
|
|
142549
|
+
case "prerelease":
|
|
142550
|
+
if (this.prerelease.length === 0) this.inc("patch", identifier, identifierBase);
|
|
142551
|
+
this.inc("pre", identifier, identifierBase);
|
|
142552
|
+
break;
|
|
142553
|
+
case "release":
|
|
142554
|
+
if (this.prerelease.length === 0) throw new Error(`version ${this.raw} is not a prerelease`);
|
|
142555
|
+
this.prerelease.length = 0;
|
|
142556
|
+
break;
|
|
142557
|
+
case "major":
|
|
142558
|
+
if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) this.major++;
|
|
142559
|
+
this.minor = 0;
|
|
142560
|
+
this.patch = 0;
|
|
142561
|
+
this.prerelease = [];
|
|
142562
|
+
break;
|
|
142563
|
+
case "minor":
|
|
142564
|
+
if (this.patch !== 0 || this.prerelease.length === 0) this.minor++;
|
|
142565
|
+
this.patch = 0;
|
|
142566
|
+
this.prerelease = [];
|
|
142567
|
+
break;
|
|
142568
|
+
case "patch":
|
|
142569
|
+
if (this.prerelease.length === 0) this.patch++;
|
|
142570
|
+
this.prerelease = [];
|
|
142571
|
+
break;
|
|
142572
|
+
case "pre": {
|
|
142573
|
+
const base = Number(identifierBase) ? 1 : 0;
|
|
142574
|
+
if (this.prerelease.length === 0) this.prerelease = [base];
|
|
142575
|
+
else {
|
|
142576
|
+
let i = this.prerelease.length;
|
|
142577
|
+
while (--i >= 0) if (typeof this.prerelease[i] === "number") {
|
|
142578
|
+
this.prerelease[i]++;
|
|
142579
|
+
i = -2;
|
|
142580
|
+
}
|
|
142581
|
+
if (i === -1) {
|
|
142582
|
+
if (identifier === this.prerelease.join(".") && identifierBase === false) throw new Error("invalid increment argument: identifier already exists");
|
|
142583
|
+
this.prerelease.push(base);
|
|
142584
|
+
}
|
|
142585
|
+
}
|
|
142586
|
+
if (identifier) {
|
|
142587
|
+
let prerelease = [identifier, base];
|
|
142588
|
+
if (identifierBase === false) prerelease = [identifier];
|
|
142589
|
+
if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
|
|
142590
|
+
if (isNaN(this.prerelease[1])) this.prerelease = prerelease;
|
|
142591
|
+
} else this.prerelease = prerelease;
|
|
142592
|
+
}
|
|
142593
|
+
break;
|
|
142594
|
+
}
|
|
142595
|
+
default: throw new Error(`invalid increment argument: ${release}`);
|
|
142596
|
+
}
|
|
142597
|
+
this.raw = this.format();
|
|
142598
|
+
if (this.build.length) this.raw += `+${this.build.join(".")}`;
|
|
142599
|
+
return this;
|
|
142600
|
+
}
|
|
142601
|
+
};
|
|
142602
|
+
}));
|
|
142603
|
+
//#endregion
|
|
142604
|
+
//#region ../../packages/core-node/node_modules/semver/functions/parse.js
|
|
142605
|
+
var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142606
|
+
const SemVer = require_semver$1();
|
|
142607
|
+
const parse = (version, options, throwErrors = false) => {
|
|
142608
|
+
if (version instanceof SemVer) return version;
|
|
142609
|
+
try {
|
|
142610
|
+
return new SemVer(version, options);
|
|
142611
|
+
} catch (er) {
|
|
142612
|
+
if (!throwErrors) return null;
|
|
142613
|
+
throw er;
|
|
142614
|
+
}
|
|
142615
|
+
};
|
|
142616
|
+
module.exports = parse;
|
|
142617
|
+
}));
|
|
142618
|
+
//#endregion
|
|
142619
|
+
//#region ../../packages/core-node/node_modules/semver/functions/valid.js
|
|
142620
|
+
var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142621
|
+
const parse = require_parse();
|
|
142622
|
+
const valid = (version, options) => {
|
|
142623
|
+
const v = parse(version, options);
|
|
142624
|
+
return v ? v.version : null;
|
|
142625
|
+
};
|
|
142626
|
+
module.exports = valid;
|
|
142627
|
+
}));
|
|
142628
|
+
//#endregion
|
|
142629
|
+
//#region ../../packages/core-node/node_modules/semver/functions/clean.js
|
|
142630
|
+
var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142631
|
+
const parse = require_parse();
|
|
142632
|
+
const clean = (version, options) => {
|
|
142633
|
+
const s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
142634
|
+
return s ? s.version : null;
|
|
142635
|
+
};
|
|
142636
|
+
module.exports = clean;
|
|
142637
|
+
}));
|
|
142638
|
+
//#endregion
|
|
142639
|
+
//#region ../../packages/core-node/node_modules/semver/functions/inc.js
|
|
142640
|
+
var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142641
|
+
const SemVer = require_semver$1();
|
|
142642
|
+
const inc = (version, release, options, identifier, identifierBase) => {
|
|
142643
|
+
if (typeof options === "string") {
|
|
142644
|
+
identifierBase = identifier;
|
|
142645
|
+
identifier = options;
|
|
142646
|
+
options = void 0;
|
|
142647
|
+
}
|
|
142648
|
+
try {
|
|
142649
|
+
return new SemVer(version instanceof SemVer ? version.version : version, options).inc(release, identifier, identifierBase).version;
|
|
142650
|
+
} catch (er) {
|
|
142651
|
+
return null;
|
|
142652
|
+
}
|
|
142653
|
+
};
|
|
142654
|
+
module.exports = inc;
|
|
142655
|
+
}));
|
|
142656
|
+
//#endregion
|
|
142657
|
+
//#region ../../packages/core-node/node_modules/semver/functions/diff.js
|
|
142658
|
+
var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142659
|
+
const parse = require_parse();
|
|
142660
|
+
const diff = (version1, version2) => {
|
|
142661
|
+
const v1 = parse(version1, null, true);
|
|
142662
|
+
const v2 = parse(version2, null, true);
|
|
142663
|
+
const comparison = v1.compare(v2);
|
|
142664
|
+
if (comparison === 0) return null;
|
|
142665
|
+
const v1Higher = comparison > 0;
|
|
142666
|
+
const highVersion = v1Higher ? v1 : v2;
|
|
142667
|
+
const lowVersion = v1Higher ? v2 : v1;
|
|
142668
|
+
const highHasPre = !!highVersion.prerelease.length;
|
|
142669
|
+
if (!!lowVersion.prerelease.length && !highHasPre) {
|
|
142670
|
+
if (!lowVersion.patch && !lowVersion.minor) return "major";
|
|
142671
|
+
if (lowVersion.compareMain(highVersion) === 0) {
|
|
142672
|
+
if (lowVersion.minor && !lowVersion.patch) return "minor";
|
|
142673
|
+
return "patch";
|
|
142674
|
+
}
|
|
142675
|
+
}
|
|
142676
|
+
const prefix = highHasPre ? "pre" : "";
|
|
142677
|
+
if (v1.major !== v2.major) return prefix + "major";
|
|
142678
|
+
if (v1.minor !== v2.minor) return prefix + "minor";
|
|
142679
|
+
if (v1.patch !== v2.patch) return prefix + "patch";
|
|
142680
|
+
return "prerelease";
|
|
142681
|
+
};
|
|
142682
|
+
module.exports = diff;
|
|
142683
|
+
}));
|
|
142684
|
+
//#endregion
|
|
142685
|
+
//#region ../../packages/core-node/node_modules/semver/functions/major.js
|
|
142686
|
+
var require_major = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142687
|
+
const SemVer = require_semver$1();
|
|
142688
|
+
const major = (a, loose) => new SemVer(a, loose).major;
|
|
142689
|
+
module.exports = major;
|
|
142690
|
+
}));
|
|
142691
|
+
//#endregion
|
|
142692
|
+
//#region ../../packages/core-node/node_modules/semver/functions/minor.js
|
|
142693
|
+
var require_minor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142694
|
+
const SemVer = require_semver$1();
|
|
142695
|
+
const minor = (a, loose) => new SemVer(a, loose).minor;
|
|
142696
|
+
module.exports = minor;
|
|
142697
|
+
}));
|
|
142698
|
+
//#endregion
|
|
142699
|
+
//#region ../../packages/core-node/node_modules/semver/functions/patch.js
|
|
142700
|
+
var require_patch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142701
|
+
const SemVer = require_semver$1();
|
|
142702
|
+
const patch = (a, loose) => new SemVer(a, loose).patch;
|
|
142703
|
+
module.exports = patch;
|
|
142704
|
+
}));
|
|
142705
|
+
//#endregion
|
|
142706
|
+
//#region ../../packages/core-node/node_modules/semver/functions/prerelease.js
|
|
142707
|
+
var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142708
|
+
const parse = require_parse();
|
|
142709
|
+
const prerelease = (version, options) => {
|
|
142710
|
+
const parsed = parse(version, options);
|
|
142711
|
+
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
142712
|
+
};
|
|
142713
|
+
module.exports = prerelease;
|
|
142714
|
+
}));
|
|
142715
|
+
//#endregion
|
|
142716
|
+
//#region ../../packages/core-node/node_modules/semver/functions/compare.js
|
|
142717
|
+
var require_compare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142718
|
+
const SemVer = require_semver$1();
|
|
142719
|
+
const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
142720
|
+
module.exports = compare;
|
|
142721
|
+
}));
|
|
142722
|
+
//#endregion
|
|
142723
|
+
//#region ../../packages/core-node/node_modules/semver/functions/rcompare.js
|
|
142724
|
+
var require_rcompare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142725
|
+
const compare = require_compare();
|
|
142726
|
+
const rcompare = (a, b, loose) => compare(b, a, loose);
|
|
142727
|
+
module.exports = rcompare;
|
|
142728
|
+
}));
|
|
142729
|
+
//#endregion
|
|
142730
|
+
//#region ../../packages/core-node/node_modules/semver/functions/compare-loose.js
|
|
142731
|
+
var require_compare_loose = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142732
|
+
const compare = require_compare();
|
|
142733
|
+
const compareLoose = (a, b) => compare(a, b, true);
|
|
142734
|
+
module.exports = compareLoose;
|
|
142735
|
+
}));
|
|
142736
|
+
//#endregion
|
|
142737
|
+
//#region ../../packages/core-node/node_modules/semver/functions/compare-build.js
|
|
142738
|
+
var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142739
|
+
const SemVer = require_semver$1();
|
|
142740
|
+
const compareBuild = (a, b, loose) => {
|
|
142741
|
+
const versionA = new SemVer(a, loose);
|
|
142742
|
+
const versionB = new SemVer(b, loose);
|
|
142743
|
+
return versionA.compare(versionB) || versionA.compareBuild(versionB);
|
|
142744
|
+
};
|
|
142745
|
+
module.exports = compareBuild;
|
|
142746
|
+
}));
|
|
142747
|
+
//#endregion
|
|
142748
|
+
//#region ../../packages/core-node/node_modules/semver/functions/sort.js
|
|
142749
|
+
var require_sort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142750
|
+
const compareBuild = require_compare_build();
|
|
142751
|
+
const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
142752
|
+
module.exports = sort;
|
|
142753
|
+
}));
|
|
142754
|
+
//#endregion
|
|
142755
|
+
//#region ../../packages/core-node/node_modules/semver/functions/rsort.js
|
|
142756
|
+
var require_rsort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142757
|
+
const compareBuild = require_compare_build();
|
|
142758
|
+
const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
142759
|
+
module.exports = rsort;
|
|
142760
|
+
}));
|
|
142761
|
+
//#endregion
|
|
142762
|
+
//#region ../../packages/core-node/node_modules/semver/functions/gt.js
|
|
142763
|
+
var require_gt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142764
|
+
const compare = require_compare();
|
|
142765
|
+
const gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
142766
|
+
module.exports = gt;
|
|
142767
|
+
}));
|
|
142768
|
+
//#endregion
|
|
142769
|
+
//#region ../../packages/core-node/node_modules/semver/functions/lt.js
|
|
142770
|
+
var require_lt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142771
|
+
const compare = require_compare();
|
|
142772
|
+
const lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
142773
|
+
module.exports = lt;
|
|
142774
|
+
}));
|
|
142775
|
+
//#endregion
|
|
142776
|
+
//#region ../../packages/core-node/node_modules/semver/functions/eq.js
|
|
142777
|
+
var require_eq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142778
|
+
const compare = require_compare();
|
|
142779
|
+
const eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
142780
|
+
module.exports = eq;
|
|
142781
|
+
}));
|
|
142782
|
+
//#endregion
|
|
142783
|
+
//#region ../../packages/core-node/node_modules/semver/functions/neq.js
|
|
142784
|
+
var require_neq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142785
|
+
const compare = require_compare();
|
|
142786
|
+
const neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
142787
|
+
module.exports = neq;
|
|
142788
|
+
}));
|
|
142789
|
+
//#endregion
|
|
142790
|
+
//#region ../../packages/core-node/node_modules/semver/functions/gte.js
|
|
142791
|
+
var require_gte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142792
|
+
const compare = require_compare();
|
|
142793
|
+
const gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
142794
|
+
module.exports = gte;
|
|
142795
|
+
}));
|
|
142796
|
+
//#endregion
|
|
142797
|
+
//#region ../../packages/core-node/node_modules/semver/functions/lte.js
|
|
142798
|
+
var require_lte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142799
|
+
const compare = require_compare();
|
|
142800
|
+
const lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
142801
|
+
module.exports = lte;
|
|
142802
|
+
}));
|
|
142803
|
+
//#endregion
|
|
142804
|
+
//#region ../../packages/core-node/node_modules/semver/functions/cmp.js
|
|
142805
|
+
var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142806
|
+
const eq = require_eq();
|
|
142807
|
+
const neq = require_neq();
|
|
142808
|
+
const gt = require_gt();
|
|
142809
|
+
const gte = require_gte();
|
|
142810
|
+
const lt = require_lt();
|
|
142811
|
+
const lte = require_lte();
|
|
142812
|
+
const cmp = (a, op, b, loose) => {
|
|
142813
|
+
switch (op) {
|
|
142814
|
+
case "===":
|
|
142815
|
+
if (typeof a === "object") a = a.version;
|
|
142816
|
+
if (typeof b === "object") b = b.version;
|
|
142817
|
+
return a === b;
|
|
142818
|
+
case "!==":
|
|
142819
|
+
if (typeof a === "object") a = a.version;
|
|
142820
|
+
if (typeof b === "object") b = b.version;
|
|
142821
|
+
return a !== b;
|
|
142822
|
+
case "":
|
|
142823
|
+
case "=":
|
|
142824
|
+
case "==": return eq(a, b, loose);
|
|
142825
|
+
case "!=": return neq(a, b, loose);
|
|
142826
|
+
case ">": return gt(a, b, loose);
|
|
142827
|
+
case ">=": return gte(a, b, loose);
|
|
142828
|
+
case "<": return lt(a, b, loose);
|
|
142829
|
+
case "<=": return lte(a, b, loose);
|
|
142830
|
+
default: throw new TypeError(`Invalid operator: ${op}`);
|
|
142831
|
+
}
|
|
142832
|
+
};
|
|
142833
|
+
module.exports = cmp;
|
|
142834
|
+
}));
|
|
142835
|
+
//#endregion
|
|
142836
|
+
//#region ../../packages/core-node/node_modules/semver/functions/coerce.js
|
|
142837
|
+
var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142838
|
+
const SemVer = require_semver$1();
|
|
142839
|
+
const parse = require_parse();
|
|
142840
|
+
const { safeRe: re, t } = require_re();
|
|
142841
|
+
const coerce = (version, options) => {
|
|
142842
|
+
if (version instanceof SemVer) return version;
|
|
142843
|
+
if (typeof version === "number") version = String(version);
|
|
142844
|
+
if (typeof version !== "string") return null;
|
|
142845
|
+
options = options || {};
|
|
142846
|
+
let match = null;
|
|
142847
|
+
if (!options.rtl) match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
|
|
142848
|
+
else {
|
|
142849
|
+
const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL];
|
|
142850
|
+
let next;
|
|
142851
|
+
while ((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)) {
|
|
142852
|
+
if (!match || next.index + next[0].length !== match.index + match[0].length) match = next;
|
|
142853
|
+
coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
|
142854
|
+
}
|
|
142855
|
+
coerceRtlRegex.lastIndex = -1;
|
|
142856
|
+
}
|
|
142857
|
+
if (match === null) return null;
|
|
142858
|
+
const major = match[2];
|
|
142859
|
+
return parse(`${major}.${match[3] || "0"}.${match[4] || "0"}${options.includePrerelease && match[5] ? `-${match[5]}` : ""}${options.includePrerelease && match[6] ? `+${match[6]}` : ""}`, options);
|
|
142860
|
+
};
|
|
142861
|
+
module.exports = coerce;
|
|
142862
|
+
}));
|
|
142863
|
+
//#endregion
|
|
142864
|
+
//#region ../../packages/core-node/node_modules/semver/internal/lrucache.js
|
|
142865
|
+
var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142866
|
+
var LRUCache = class {
|
|
142867
|
+
constructor() {
|
|
142868
|
+
this.max = 1e3;
|
|
142869
|
+
this.map = /* @__PURE__ */ new Map();
|
|
142870
|
+
}
|
|
142871
|
+
get(key) {
|
|
142872
|
+
const value = this.map.get(key);
|
|
142873
|
+
if (value === void 0) return;
|
|
142874
|
+
else {
|
|
142875
|
+
this.map.delete(key);
|
|
142876
|
+
this.map.set(key, value);
|
|
142877
|
+
return value;
|
|
142878
|
+
}
|
|
142879
|
+
}
|
|
142880
|
+
delete(key) {
|
|
142881
|
+
return this.map.delete(key);
|
|
142882
|
+
}
|
|
142883
|
+
set(key, value) {
|
|
142884
|
+
if (!this.delete(key) && value !== void 0) {
|
|
142885
|
+
if (this.map.size >= this.max) {
|
|
142886
|
+
const firstKey = this.map.keys().next().value;
|
|
142887
|
+
this.delete(firstKey);
|
|
142888
|
+
}
|
|
142889
|
+
this.map.set(key, value);
|
|
142890
|
+
}
|
|
142891
|
+
return this;
|
|
142892
|
+
}
|
|
142893
|
+
};
|
|
142894
|
+
module.exports = LRUCache;
|
|
142895
|
+
}));
|
|
142896
|
+
//#endregion
|
|
142897
|
+
//#region ../../packages/core-node/node_modules/semver/classes/range.js
|
|
142898
|
+
var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142899
|
+
const SPACE_CHARACTERS = /\s+/g;
|
|
142900
|
+
module.exports = class Range {
|
|
142901
|
+
constructor(range, options) {
|
|
142902
|
+
options = parseOptions(options);
|
|
142903
|
+
if (range instanceof Range) if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) return range;
|
|
142904
|
+
else return new Range(range.raw, options);
|
|
142905
|
+
if (range instanceof Comparator) {
|
|
142906
|
+
this.raw = range.value;
|
|
142907
|
+
this.set = [[range]];
|
|
142908
|
+
this.formatted = void 0;
|
|
142909
|
+
return this;
|
|
142910
|
+
}
|
|
142911
|
+
this.options = options;
|
|
142912
|
+
this.loose = !!options.loose;
|
|
142913
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
142914
|
+
this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
|
|
142915
|
+
this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
|
|
142916
|
+
if (!this.set.length) throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
142917
|
+
if (this.set.length > 1) {
|
|
142918
|
+
const first = this.set[0];
|
|
142919
|
+
this.set = this.set.filter((c) => !isNullSet(c[0]));
|
|
142920
|
+
if (this.set.length === 0) this.set = [first];
|
|
142921
|
+
else if (this.set.length > 1) {
|
|
142922
|
+
for (const c of this.set) if (c.length === 1 && isAny(c[0])) {
|
|
142923
|
+
this.set = [c];
|
|
142924
|
+
break;
|
|
142925
|
+
}
|
|
142926
|
+
}
|
|
142927
|
+
}
|
|
142928
|
+
this.formatted = void 0;
|
|
142929
|
+
}
|
|
142930
|
+
get range() {
|
|
142931
|
+
if (this.formatted === void 0) {
|
|
142932
|
+
this.formatted = "";
|
|
142933
|
+
for (let i = 0; i < this.set.length; i++) {
|
|
142934
|
+
if (i > 0) this.formatted += "||";
|
|
142935
|
+
const comps = this.set[i];
|
|
142936
|
+
for (let k = 0; k < comps.length; k++) {
|
|
142937
|
+
if (k > 0) this.formatted += " ";
|
|
142938
|
+
this.formatted += comps[k].toString().trim();
|
|
142939
|
+
}
|
|
142940
|
+
}
|
|
142941
|
+
}
|
|
142942
|
+
return this.formatted;
|
|
142943
|
+
}
|
|
142944
|
+
format() {
|
|
142945
|
+
return this.range;
|
|
142946
|
+
}
|
|
142947
|
+
toString() {
|
|
142948
|
+
return this.range;
|
|
142949
|
+
}
|
|
142950
|
+
parseRange(range) {
|
|
142951
|
+
const memoKey = ((this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE)) + ":" + range;
|
|
142952
|
+
const cached = cache.get(memoKey);
|
|
142953
|
+
if (cached) return cached;
|
|
142954
|
+
const loose = this.options.loose;
|
|
142955
|
+
const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
|
|
142956
|
+
range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
|
|
142957
|
+
debug("hyphen replace", range);
|
|
142958
|
+
range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace);
|
|
142959
|
+
debug("comparator trim", range);
|
|
142960
|
+
range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
|
|
142961
|
+
debug("tilde trim", range);
|
|
142962
|
+
range = range.replace(re[t.CARETTRIM], caretTrimReplace);
|
|
142963
|
+
debug("caret trim", range);
|
|
142964
|
+
let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
|
|
142965
|
+
if (loose) rangeList = rangeList.filter((comp) => {
|
|
142966
|
+
debug("loose invalid filter", comp, this.options);
|
|
142967
|
+
return !!comp.match(re[t.COMPARATORLOOSE]);
|
|
142968
|
+
});
|
|
142969
|
+
debug("range list", rangeList);
|
|
142970
|
+
const rangeMap = /* @__PURE__ */ new Map();
|
|
142971
|
+
const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
|
|
142972
|
+
for (const comp of comparators) {
|
|
142973
|
+
if (isNullSet(comp)) return [comp];
|
|
142974
|
+
rangeMap.set(comp.value, comp);
|
|
142975
|
+
}
|
|
142976
|
+
if (rangeMap.size > 1 && rangeMap.has("")) rangeMap.delete("");
|
|
142977
|
+
const result = [...rangeMap.values()];
|
|
142978
|
+
cache.set(memoKey, result);
|
|
142979
|
+
return result;
|
|
142980
|
+
}
|
|
142981
|
+
intersects(range, options) {
|
|
142982
|
+
if (!(range instanceof Range)) throw new TypeError("a Range is required");
|
|
142983
|
+
return this.set.some((thisComparators) => {
|
|
142984
|
+
return isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => {
|
|
142985
|
+
return isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => {
|
|
142986
|
+
return rangeComparators.every((rangeComparator) => {
|
|
142987
|
+
return thisComparator.intersects(rangeComparator, options);
|
|
142988
|
+
});
|
|
142989
|
+
});
|
|
142990
|
+
});
|
|
142991
|
+
});
|
|
142992
|
+
}
|
|
142993
|
+
test(version) {
|
|
142994
|
+
if (!version) return false;
|
|
142995
|
+
if (typeof version === "string") try {
|
|
142996
|
+
version = new SemVer(version, this.options);
|
|
142997
|
+
} catch (er) {
|
|
142998
|
+
return false;
|
|
142999
|
+
}
|
|
143000
|
+
for (let i = 0; i < this.set.length; i++) if (testSet(this.set[i], version, this.options)) return true;
|
|
143001
|
+
return false;
|
|
143002
|
+
}
|
|
143003
|
+
};
|
|
143004
|
+
const cache = new (require_lrucache())();
|
|
143005
|
+
const parseOptions = require_parse_options();
|
|
143006
|
+
const Comparator = require_comparator();
|
|
143007
|
+
const debug = require_debug();
|
|
143008
|
+
const SemVer = require_semver$1();
|
|
143009
|
+
const { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re();
|
|
143010
|
+
const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants();
|
|
143011
|
+
const isNullSet = (c) => c.value === "<0.0.0-0";
|
|
143012
|
+
const isAny = (c) => c.value === "";
|
|
143013
|
+
const isSatisfiable = (comparators, options) => {
|
|
143014
|
+
let result = true;
|
|
143015
|
+
const remainingComparators = comparators.slice();
|
|
143016
|
+
let testComparator = remainingComparators.pop();
|
|
143017
|
+
while (result && remainingComparators.length) {
|
|
143018
|
+
result = remainingComparators.every((otherComparator) => {
|
|
143019
|
+
return testComparator.intersects(otherComparator, options);
|
|
143020
|
+
});
|
|
143021
|
+
testComparator = remainingComparators.pop();
|
|
143022
|
+
}
|
|
143023
|
+
return result;
|
|
143024
|
+
};
|
|
143025
|
+
const parseComparator = (comp, options) => {
|
|
143026
|
+
comp = comp.replace(re[t.BUILD], "");
|
|
143027
|
+
debug("comp", comp, options);
|
|
143028
|
+
comp = replaceCarets(comp, options);
|
|
143029
|
+
debug("caret", comp);
|
|
143030
|
+
comp = replaceTildes(comp, options);
|
|
143031
|
+
debug("tildes", comp);
|
|
143032
|
+
comp = replaceXRanges(comp, options);
|
|
143033
|
+
debug("xrange", comp);
|
|
143034
|
+
comp = replaceStars(comp, options);
|
|
143035
|
+
debug("stars", comp);
|
|
143036
|
+
return comp;
|
|
143037
|
+
};
|
|
143038
|
+
const isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
|
|
143039
|
+
const replaceTildes = (comp, options) => {
|
|
143040
|
+
return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
|
|
143041
|
+
};
|
|
143042
|
+
const replaceTilde = (comp, options) => {
|
|
143043
|
+
const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
|
|
143044
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
143045
|
+
debug("tilde", comp, _, M, m, p, pr);
|
|
143046
|
+
let ret;
|
|
143047
|
+
if (isX(M)) ret = "";
|
|
143048
|
+
else if (isX(m)) ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
|
|
143049
|
+
else if (isX(p)) ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
|
|
143050
|
+
else if (pr) {
|
|
143051
|
+
debug("replaceTilde pr", pr);
|
|
143052
|
+
ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
143053
|
+
} else ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
|
|
143054
|
+
debug("tilde return", ret);
|
|
143055
|
+
return ret;
|
|
143056
|
+
});
|
|
143057
|
+
};
|
|
143058
|
+
const replaceCarets = (comp, options) => {
|
|
143059
|
+
return comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" ");
|
|
143060
|
+
};
|
|
143061
|
+
const replaceCaret = (comp, options) => {
|
|
143062
|
+
debug("caret", comp, options);
|
|
143063
|
+
const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET];
|
|
143064
|
+
const z = options.includePrerelease ? "-0" : "";
|
|
143065
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
143066
|
+
debug("caret", comp, _, M, m, p, pr);
|
|
143067
|
+
let ret;
|
|
143068
|
+
if (isX(M)) ret = "";
|
|
143069
|
+
else if (isX(m)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
|
|
143070
|
+
else if (isX(p)) if (M === "0") ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
|
|
143071
|
+
else ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
|
|
143072
|
+
else if (pr) {
|
|
143073
|
+
debug("replaceCaret pr", pr);
|
|
143074
|
+
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;
|
|
143075
|
+
else ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
143076
|
+
else ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
|
|
143077
|
+
} else {
|
|
143078
|
+
debug("no pr");
|
|
143079
|
+
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0`;
|
|
143080
|
+
else ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0`;
|
|
143081
|
+
else ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
|
|
143082
|
+
}
|
|
143083
|
+
debug("caret return", ret);
|
|
143084
|
+
return ret;
|
|
143085
|
+
});
|
|
143086
|
+
};
|
|
143087
|
+
const replaceXRanges = (comp, options) => {
|
|
143088
|
+
debug("replaceXRanges", comp, options);
|
|
143089
|
+
return comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ");
|
|
143090
|
+
};
|
|
143091
|
+
const replaceXRange = (comp, options) => {
|
|
143092
|
+
comp = comp.trim();
|
|
143093
|
+
const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
|
|
143094
|
+
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
|
|
143095
|
+
debug("xRange", comp, ret, gtlt, M, m, p, pr);
|
|
143096
|
+
const xM = isX(M);
|
|
143097
|
+
const xm = xM || isX(m);
|
|
143098
|
+
const xp = xm || isX(p);
|
|
143099
|
+
const anyX = xp;
|
|
143100
|
+
if (gtlt === "=" && anyX) gtlt = "";
|
|
143101
|
+
pr = options.includePrerelease ? "-0" : "";
|
|
143102
|
+
if (xM) if (gtlt === ">" || gtlt === "<") ret = "<0.0.0-0";
|
|
143103
|
+
else ret = "*";
|
|
143104
|
+
else if (gtlt && anyX) {
|
|
143105
|
+
if (xm) m = 0;
|
|
143106
|
+
p = 0;
|
|
143107
|
+
if (gtlt === ">") {
|
|
143108
|
+
gtlt = ">=";
|
|
143109
|
+
if (xm) {
|
|
143110
|
+
M = +M + 1;
|
|
143111
|
+
m = 0;
|
|
143112
|
+
p = 0;
|
|
143113
|
+
} else {
|
|
143114
|
+
m = +m + 1;
|
|
143115
|
+
p = 0;
|
|
143116
|
+
}
|
|
143117
|
+
} else if (gtlt === "<=") {
|
|
143118
|
+
gtlt = "<";
|
|
143119
|
+
if (xm) M = +M + 1;
|
|
143120
|
+
else m = +m + 1;
|
|
143121
|
+
}
|
|
143122
|
+
if (gtlt === "<") pr = "-0";
|
|
143123
|
+
ret = `${gtlt + M}.${m}.${p}${pr}`;
|
|
143124
|
+
} else if (xm) ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
|
|
143125
|
+
else if (xp) ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;
|
|
143126
|
+
debug("xRange return", ret);
|
|
143127
|
+
return ret;
|
|
143128
|
+
});
|
|
143129
|
+
};
|
|
143130
|
+
const replaceStars = (comp, options) => {
|
|
143131
|
+
debug("replaceStars", comp, options);
|
|
143132
|
+
return comp.trim().replace(re[t.STAR], "");
|
|
143133
|
+
};
|
|
143134
|
+
const replaceGTE0 = (comp, options) => {
|
|
143135
|
+
debug("replaceGTE0", comp, options);
|
|
143136
|
+
return comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
|
|
143137
|
+
};
|
|
143138
|
+
const hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
|
|
143139
|
+
if (isX(fM)) from = "";
|
|
143140
|
+
else if (isX(fm)) from = `>=${fM}.0.0${incPr ? "-0" : ""}`;
|
|
143141
|
+
else if (isX(fp)) from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}`;
|
|
143142
|
+
else if (fpr) from = `>=${from}`;
|
|
143143
|
+
else from = `>=${from}${incPr ? "-0" : ""}`;
|
|
143144
|
+
if (isX(tM)) to = "";
|
|
143145
|
+
else if (isX(tm)) to = `<${+tM + 1}.0.0-0`;
|
|
143146
|
+
else if (isX(tp)) to = `<${tM}.${+tm + 1}.0-0`;
|
|
143147
|
+
else if (tpr) to = `<=${tM}.${tm}.${tp}-${tpr}`;
|
|
143148
|
+
else if (incPr) to = `<${tM}.${tm}.${+tp + 1}-0`;
|
|
143149
|
+
else to = `<=${to}`;
|
|
143150
|
+
return `${from} ${to}`.trim();
|
|
143151
|
+
};
|
|
143152
|
+
const testSet = (set, version, options) => {
|
|
143153
|
+
for (let i = 0; i < set.length; i++) if (!set[i].test(version)) return false;
|
|
143154
|
+
if (version.prerelease.length && !options.includePrerelease) {
|
|
143155
|
+
for (let i = 0; i < set.length; i++) {
|
|
143156
|
+
debug(set[i].semver);
|
|
143157
|
+
if (set[i].semver === Comparator.ANY) continue;
|
|
143158
|
+
if (set[i].semver.prerelease.length > 0) {
|
|
143159
|
+
const allowed = set[i].semver;
|
|
143160
|
+
if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) return true;
|
|
143161
|
+
}
|
|
143162
|
+
}
|
|
143163
|
+
return false;
|
|
143164
|
+
}
|
|
143165
|
+
return true;
|
|
143166
|
+
};
|
|
143167
|
+
}));
|
|
143168
|
+
//#endregion
|
|
143169
|
+
//#region ../../packages/core-node/node_modules/semver/classes/comparator.js
|
|
143170
|
+
var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143171
|
+
const ANY = Symbol("SemVer ANY");
|
|
143172
|
+
module.exports = class Comparator {
|
|
143173
|
+
static get ANY() {
|
|
143174
|
+
return ANY;
|
|
143175
|
+
}
|
|
143176
|
+
constructor(comp, options) {
|
|
143177
|
+
options = parseOptions(options);
|
|
143178
|
+
if (comp instanceof Comparator) if (comp.loose === !!options.loose) return comp;
|
|
143179
|
+
else comp = comp.value;
|
|
143180
|
+
comp = comp.trim().split(/\s+/).join(" ");
|
|
143181
|
+
debug("comparator", comp, options);
|
|
143182
|
+
this.options = options;
|
|
143183
|
+
this.loose = !!options.loose;
|
|
143184
|
+
this.parse(comp);
|
|
143185
|
+
if (this.semver === ANY) this.value = "";
|
|
143186
|
+
else this.value = this.operator + this.semver.version;
|
|
143187
|
+
debug("comp", this);
|
|
143188
|
+
}
|
|
143189
|
+
parse(comp) {
|
|
143190
|
+
const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR];
|
|
143191
|
+
const m = comp.match(r);
|
|
143192
|
+
if (!m) throw new TypeError(`Invalid comparator: ${comp}`);
|
|
143193
|
+
this.operator = m[1] !== void 0 ? m[1] : "";
|
|
143194
|
+
if (this.operator === "=") this.operator = "";
|
|
143195
|
+
if (!m[2]) this.semver = ANY;
|
|
143196
|
+
else this.semver = new SemVer(m[2], this.options.loose);
|
|
143197
|
+
}
|
|
143198
|
+
toString() {
|
|
143199
|
+
return this.value;
|
|
143200
|
+
}
|
|
143201
|
+
test(version) {
|
|
143202
|
+
debug("Comparator.test", version, this.options.loose);
|
|
143203
|
+
if (this.semver === ANY || version === ANY) return true;
|
|
143204
|
+
if (typeof version === "string") try {
|
|
143205
|
+
version = new SemVer(version, this.options);
|
|
143206
|
+
} catch (er) {
|
|
143207
|
+
return false;
|
|
143208
|
+
}
|
|
143209
|
+
return cmp(version, this.operator, this.semver, this.options);
|
|
143210
|
+
}
|
|
143211
|
+
intersects(comp, options) {
|
|
143212
|
+
if (!(comp instanceof Comparator)) throw new TypeError("a Comparator is required");
|
|
143213
|
+
if (this.operator === "") {
|
|
143214
|
+
if (this.value === "") return true;
|
|
143215
|
+
return new Range(comp.value, options).test(this.value);
|
|
143216
|
+
} else if (comp.operator === "") {
|
|
143217
|
+
if (comp.value === "") return true;
|
|
143218
|
+
return new Range(this.value, options).test(comp.semver);
|
|
143219
|
+
}
|
|
143220
|
+
options = parseOptions(options);
|
|
143221
|
+
if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) return false;
|
|
143222
|
+
if (!options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0"))) return false;
|
|
143223
|
+
if (this.operator.startsWith(">") && comp.operator.startsWith(">")) return true;
|
|
143224
|
+
if (this.operator.startsWith("<") && comp.operator.startsWith("<")) return true;
|
|
143225
|
+
if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) return true;
|
|
143226
|
+
if (cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) return true;
|
|
143227
|
+
if (cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) return true;
|
|
143228
|
+
return false;
|
|
143229
|
+
}
|
|
143230
|
+
};
|
|
143231
|
+
const parseOptions = require_parse_options();
|
|
143232
|
+
const { safeRe: re, t } = require_re();
|
|
143233
|
+
const cmp = require_cmp();
|
|
143234
|
+
const debug = require_debug();
|
|
143235
|
+
const SemVer = require_semver$1();
|
|
143236
|
+
const Range = require_range();
|
|
143237
|
+
}));
|
|
143238
|
+
//#endregion
|
|
143239
|
+
//#region ../../packages/core-node/node_modules/semver/functions/satisfies.js
|
|
143240
|
+
var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143241
|
+
const Range = require_range();
|
|
143242
|
+
const satisfies = (version, range, options) => {
|
|
143243
|
+
try {
|
|
143244
|
+
range = new Range(range, options);
|
|
143245
|
+
} catch (er) {
|
|
143246
|
+
return false;
|
|
143247
|
+
}
|
|
143248
|
+
return range.test(version);
|
|
143249
|
+
};
|
|
143250
|
+
module.exports = satisfies;
|
|
143251
|
+
}));
|
|
143252
|
+
//#endregion
|
|
143253
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/to-comparators.js
|
|
143254
|
+
var require_to_comparators = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143255
|
+
const Range = require_range();
|
|
143256
|
+
const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
143257
|
+
module.exports = toComparators;
|
|
143258
|
+
}));
|
|
143259
|
+
//#endregion
|
|
143260
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/max-satisfying.js
|
|
143261
|
+
var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143262
|
+
const SemVer = require_semver$1();
|
|
143263
|
+
const Range = require_range();
|
|
143264
|
+
const maxSatisfying = (versions, range, options) => {
|
|
143265
|
+
let max = null;
|
|
143266
|
+
let maxSV = null;
|
|
143267
|
+
let rangeObj = null;
|
|
143268
|
+
try {
|
|
143269
|
+
rangeObj = new Range(range, options);
|
|
143270
|
+
} catch (er) {
|
|
143271
|
+
return null;
|
|
143272
|
+
}
|
|
143273
|
+
versions.forEach((v) => {
|
|
143274
|
+
if (rangeObj.test(v)) {
|
|
143275
|
+
if (!max || maxSV.compare(v) === -1) {
|
|
143276
|
+
max = v;
|
|
143277
|
+
maxSV = new SemVer(max, options);
|
|
143278
|
+
}
|
|
143279
|
+
}
|
|
143280
|
+
});
|
|
143281
|
+
return max;
|
|
143282
|
+
};
|
|
143283
|
+
module.exports = maxSatisfying;
|
|
143284
|
+
}));
|
|
143285
|
+
//#endregion
|
|
143286
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/min-satisfying.js
|
|
143287
|
+
var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143288
|
+
const SemVer = require_semver$1();
|
|
143289
|
+
const Range = require_range();
|
|
143290
|
+
const minSatisfying = (versions, range, options) => {
|
|
143291
|
+
let min = null;
|
|
143292
|
+
let minSV = null;
|
|
143293
|
+
let rangeObj = null;
|
|
143294
|
+
try {
|
|
143295
|
+
rangeObj = new Range(range, options);
|
|
143296
|
+
} catch (er) {
|
|
143297
|
+
return null;
|
|
143298
|
+
}
|
|
143299
|
+
versions.forEach((v) => {
|
|
143300
|
+
if (rangeObj.test(v)) {
|
|
143301
|
+
if (!min || minSV.compare(v) === 1) {
|
|
143302
|
+
min = v;
|
|
143303
|
+
minSV = new SemVer(min, options);
|
|
143304
|
+
}
|
|
143305
|
+
}
|
|
143306
|
+
});
|
|
143307
|
+
return min;
|
|
143308
|
+
};
|
|
143309
|
+
module.exports = minSatisfying;
|
|
143310
|
+
}));
|
|
143311
|
+
//#endregion
|
|
143312
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/min-version.js
|
|
143313
|
+
var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143314
|
+
const SemVer = require_semver$1();
|
|
143315
|
+
const Range = require_range();
|
|
143316
|
+
const gt = require_gt();
|
|
143317
|
+
const minVersion = (range, loose) => {
|
|
143318
|
+
range = new Range(range, loose);
|
|
143319
|
+
let minver = new SemVer("0.0.0");
|
|
143320
|
+
if (range.test(minver)) return minver;
|
|
143321
|
+
minver = new SemVer("0.0.0-0");
|
|
143322
|
+
if (range.test(minver)) return minver;
|
|
143323
|
+
minver = null;
|
|
143324
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
143325
|
+
const comparators = range.set[i];
|
|
143326
|
+
let setMin = null;
|
|
143327
|
+
comparators.forEach((comparator) => {
|
|
143328
|
+
const compver = new SemVer(comparator.semver.version);
|
|
143329
|
+
switch (comparator.operator) {
|
|
143330
|
+
case ">":
|
|
143331
|
+
if (compver.prerelease.length === 0) compver.patch++;
|
|
143332
|
+
else compver.prerelease.push(0);
|
|
143333
|
+
compver.raw = compver.format();
|
|
143334
|
+
case "":
|
|
143335
|
+
case ">=":
|
|
143336
|
+
if (!setMin || gt(compver, setMin)) setMin = compver;
|
|
143337
|
+
break;
|
|
143338
|
+
case "<":
|
|
143339
|
+
case "<=": break;
|
|
143340
|
+
default: throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
143341
|
+
}
|
|
143342
|
+
});
|
|
143343
|
+
if (setMin && (!minver || gt(minver, setMin))) minver = setMin;
|
|
143344
|
+
}
|
|
143345
|
+
if (minver && range.test(minver)) return minver;
|
|
143346
|
+
return null;
|
|
143347
|
+
};
|
|
143348
|
+
module.exports = minVersion;
|
|
143349
|
+
}));
|
|
143350
|
+
//#endregion
|
|
143351
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/valid.js
|
|
143352
|
+
var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143353
|
+
const Range = require_range();
|
|
143354
|
+
const validRange = (range, options) => {
|
|
143355
|
+
try {
|
|
143356
|
+
return new Range(range, options).range || "*";
|
|
143357
|
+
} catch (er) {
|
|
143358
|
+
return null;
|
|
143359
|
+
}
|
|
143360
|
+
};
|
|
143361
|
+
module.exports = validRange;
|
|
143362
|
+
}));
|
|
143363
|
+
//#endregion
|
|
143364
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/outside.js
|
|
143365
|
+
var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143366
|
+
const SemVer = require_semver$1();
|
|
143367
|
+
const Comparator = require_comparator();
|
|
143368
|
+
const { ANY } = Comparator;
|
|
143369
|
+
const Range = require_range();
|
|
143370
|
+
const satisfies = require_satisfies();
|
|
143371
|
+
const gt = require_gt();
|
|
143372
|
+
const lt = require_lt();
|
|
143373
|
+
const lte = require_lte();
|
|
143374
|
+
const gte = require_gte();
|
|
143375
|
+
const outside = (version, range, hilo, options) => {
|
|
143376
|
+
version = new SemVer(version, options);
|
|
143377
|
+
range = new Range(range, options);
|
|
143378
|
+
let gtfn, ltefn, ltfn, comp, ecomp;
|
|
143379
|
+
switch (hilo) {
|
|
143380
|
+
case ">":
|
|
143381
|
+
gtfn = gt;
|
|
143382
|
+
ltefn = lte;
|
|
143383
|
+
ltfn = lt;
|
|
143384
|
+
comp = ">";
|
|
143385
|
+
ecomp = ">=";
|
|
143386
|
+
break;
|
|
143387
|
+
case "<":
|
|
143388
|
+
gtfn = lt;
|
|
143389
|
+
ltefn = gte;
|
|
143390
|
+
ltfn = gt;
|
|
143391
|
+
comp = "<";
|
|
143392
|
+
ecomp = "<=";
|
|
143393
|
+
break;
|
|
143394
|
+
default: throw new TypeError("Must provide a hilo val of \"<\" or \">\"");
|
|
143395
|
+
}
|
|
143396
|
+
if (satisfies(version, range, options)) return false;
|
|
143397
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
143398
|
+
const comparators = range.set[i];
|
|
143399
|
+
let high = null;
|
|
143400
|
+
let low = null;
|
|
143401
|
+
comparators.forEach((comparator) => {
|
|
143402
|
+
if (comparator.semver === ANY) comparator = new Comparator(">=0.0.0");
|
|
143403
|
+
high = high || comparator;
|
|
143404
|
+
low = low || comparator;
|
|
143405
|
+
if (gtfn(comparator.semver, high.semver, options)) high = comparator;
|
|
143406
|
+
else if (ltfn(comparator.semver, low.semver, options)) low = comparator;
|
|
143407
|
+
});
|
|
143408
|
+
if (high.operator === comp || high.operator === ecomp) return false;
|
|
143409
|
+
if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) return false;
|
|
143410
|
+
else if (low.operator === ecomp && ltfn(version, low.semver)) return false;
|
|
143411
|
+
}
|
|
143412
|
+
return true;
|
|
143413
|
+
};
|
|
143414
|
+
module.exports = outside;
|
|
143415
|
+
}));
|
|
143416
|
+
//#endregion
|
|
143417
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/gtr.js
|
|
143418
|
+
var require_gtr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143419
|
+
const outside = require_outside();
|
|
143420
|
+
const gtr = (version, range, options) => outside(version, range, ">", options);
|
|
143421
|
+
module.exports = gtr;
|
|
143422
|
+
}));
|
|
143423
|
+
//#endregion
|
|
143424
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/ltr.js
|
|
143425
|
+
var require_ltr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143426
|
+
const outside = require_outside();
|
|
143427
|
+
const ltr = (version, range, options) => outside(version, range, "<", options);
|
|
143428
|
+
module.exports = ltr;
|
|
143429
|
+
}));
|
|
143430
|
+
//#endregion
|
|
143431
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/intersects.js
|
|
143432
|
+
var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143433
|
+
const Range = require_range();
|
|
143434
|
+
const intersects = (r1, r2, options) => {
|
|
143435
|
+
r1 = new Range(r1, options);
|
|
143436
|
+
r2 = new Range(r2, options);
|
|
143437
|
+
return r1.intersects(r2, options);
|
|
143438
|
+
};
|
|
143439
|
+
module.exports = intersects;
|
|
143440
|
+
}));
|
|
143441
|
+
//#endregion
|
|
143442
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/simplify.js
|
|
143443
|
+
var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143444
|
+
const satisfies = require_satisfies();
|
|
143445
|
+
const compare = require_compare();
|
|
143446
|
+
module.exports = (versions, range, options) => {
|
|
143447
|
+
const set = [];
|
|
143448
|
+
let first = null;
|
|
143449
|
+
let prev = null;
|
|
143450
|
+
const v = versions.sort((a, b) => compare(a, b, options));
|
|
143451
|
+
for (const version of v) if (satisfies(version, range, options)) {
|
|
143452
|
+
prev = version;
|
|
143453
|
+
if (!first) first = version;
|
|
143454
|
+
} else {
|
|
143455
|
+
if (prev) set.push([first, prev]);
|
|
143456
|
+
prev = null;
|
|
143457
|
+
first = null;
|
|
143458
|
+
}
|
|
143459
|
+
if (first) set.push([first, null]);
|
|
143460
|
+
const ranges = [];
|
|
143461
|
+
for (const [min, max] of set) if (min === max) ranges.push(min);
|
|
143462
|
+
else if (!max && min === v[0]) ranges.push("*");
|
|
143463
|
+
else if (!max) ranges.push(`>=${min}`);
|
|
143464
|
+
else if (min === v[0]) ranges.push(`<=${max}`);
|
|
143465
|
+
else ranges.push(`${min} - ${max}`);
|
|
143466
|
+
const simplified = ranges.join(" || ");
|
|
143467
|
+
const original = typeof range.raw === "string" ? range.raw : String(range);
|
|
143468
|
+
return simplified.length < original.length ? simplified : range;
|
|
143469
|
+
};
|
|
143470
|
+
}));
|
|
143471
|
+
//#endregion
|
|
143472
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/subset.js
|
|
143473
|
+
var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143474
|
+
const Range = require_range();
|
|
143475
|
+
const Comparator = require_comparator();
|
|
143476
|
+
const { ANY } = Comparator;
|
|
143477
|
+
const satisfies = require_satisfies();
|
|
143478
|
+
const compare = require_compare();
|
|
143479
|
+
const subset = (sub, dom, options = {}) => {
|
|
143480
|
+
if (sub === dom) return true;
|
|
143481
|
+
sub = new Range(sub, options);
|
|
143482
|
+
dom = new Range(dom, options);
|
|
143483
|
+
let sawNonNull = false;
|
|
143484
|
+
OUTER: for (const simpleSub of sub.set) {
|
|
143485
|
+
for (const simpleDom of dom.set) {
|
|
143486
|
+
const isSub = simpleSubset(simpleSub, simpleDom, options);
|
|
143487
|
+
sawNonNull = sawNonNull || isSub !== null;
|
|
143488
|
+
if (isSub) continue OUTER;
|
|
143489
|
+
}
|
|
143490
|
+
if (sawNonNull) return false;
|
|
143491
|
+
}
|
|
143492
|
+
return true;
|
|
143493
|
+
};
|
|
143494
|
+
const minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")];
|
|
143495
|
+
const minimumVersion = [new Comparator(">=0.0.0")];
|
|
143496
|
+
const simpleSubset = (sub, dom, options) => {
|
|
143497
|
+
if (sub === dom) return true;
|
|
143498
|
+
if (sub.length === 1 && sub[0].semver === ANY) if (dom.length === 1 && dom[0].semver === ANY) return true;
|
|
143499
|
+
else if (options.includePrerelease) sub = minimumVersionWithPreRelease;
|
|
143500
|
+
else sub = minimumVersion;
|
|
143501
|
+
if (dom.length === 1 && dom[0].semver === ANY) if (options.includePrerelease) return true;
|
|
143502
|
+
else dom = minimumVersion;
|
|
143503
|
+
const eqSet = /* @__PURE__ */ new Set();
|
|
143504
|
+
let gt, lt;
|
|
143505
|
+
for (const c of sub) if (c.operator === ">" || c.operator === ">=") gt = higherGT(gt, c, options);
|
|
143506
|
+
else if (c.operator === "<" || c.operator === "<=") lt = lowerLT(lt, c, options);
|
|
143507
|
+
else eqSet.add(c.semver);
|
|
143508
|
+
if (eqSet.size > 1) return null;
|
|
143509
|
+
let gtltComp;
|
|
143510
|
+
if (gt && lt) {
|
|
143511
|
+
gtltComp = compare(gt.semver, lt.semver, options);
|
|
143512
|
+
if (gtltComp > 0) return null;
|
|
143513
|
+
else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) return null;
|
|
143514
|
+
}
|
|
143515
|
+
for (const eq of eqSet) {
|
|
143516
|
+
if (gt && !satisfies(eq, String(gt), options)) return null;
|
|
143517
|
+
if (lt && !satisfies(eq, String(lt), options)) return null;
|
|
143518
|
+
for (const c of dom) if (!satisfies(eq, String(c), options)) return false;
|
|
143519
|
+
return true;
|
|
143520
|
+
}
|
|
143521
|
+
let higher, lower;
|
|
143522
|
+
let hasDomLT, hasDomGT;
|
|
143523
|
+
let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;
|
|
143524
|
+
let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;
|
|
143525
|
+
if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0) needDomLTPre = false;
|
|
143526
|
+
for (const c of dom) {
|
|
143527
|
+
hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=";
|
|
143528
|
+
hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=";
|
|
143529
|
+
if (gt) {
|
|
143530
|
+
if (needDomGTPre) {
|
|
143531
|
+
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;
|
|
143532
|
+
}
|
|
143533
|
+
if (c.operator === ">" || c.operator === ">=") {
|
|
143534
|
+
higher = higherGT(gt, c, options);
|
|
143535
|
+
if (higher === c && higher !== gt) return false;
|
|
143536
|
+
} else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options)) return false;
|
|
143537
|
+
}
|
|
143538
|
+
if (lt) {
|
|
143539
|
+
if (needDomLTPre) {
|
|
143540
|
+
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;
|
|
143541
|
+
}
|
|
143542
|
+
if (c.operator === "<" || c.operator === "<=") {
|
|
143543
|
+
lower = lowerLT(lt, c, options);
|
|
143544
|
+
if (lower === c && lower !== lt) return false;
|
|
143545
|
+
} else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options)) return false;
|
|
143546
|
+
}
|
|
143547
|
+
if (!c.operator && (lt || gt) && gtltComp !== 0) return false;
|
|
143548
|
+
}
|
|
143549
|
+
if (gt && hasDomLT && !lt && gtltComp !== 0) return false;
|
|
143550
|
+
if (lt && hasDomGT && !gt && gtltComp !== 0) return false;
|
|
143551
|
+
if (needDomGTPre || needDomLTPre) return false;
|
|
143552
|
+
return true;
|
|
143553
|
+
};
|
|
143554
|
+
const higherGT = (a, b, options) => {
|
|
143555
|
+
if (!a) return b;
|
|
143556
|
+
const comp = compare(a.semver, b.semver, options);
|
|
143557
|
+
return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
|
|
143558
|
+
};
|
|
143559
|
+
const lowerLT = (a, b, options) => {
|
|
143560
|
+
if (!a) return b;
|
|
143561
|
+
const comp = compare(a.semver, b.semver, options);
|
|
143562
|
+
return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
|
|
143563
|
+
};
|
|
143564
|
+
module.exports = subset;
|
|
143565
|
+
}));
|
|
143566
|
+
//#endregion
|
|
143567
|
+
//#region ../../packages/core-node/node_modules/semver/index.js
|
|
143568
|
+
var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
143569
|
+
const internalRe = require_re();
|
|
143570
|
+
const constants = require_constants();
|
|
143571
|
+
const SemVer = require_semver$1();
|
|
143572
|
+
const identifiers = require_identifiers();
|
|
143573
|
+
module.exports = {
|
|
143574
|
+
parse: require_parse(),
|
|
143575
|
+
valid: require_valid$1(),
|
|
143576
|
+
clean: require_clean(),
|
|
143577
|
+
inc: require_inc(),
|
|
143578
|
+
diff: require_diff(),
|
|
143579
|
+
major: require_major(),
|
|
143580
|
+
minor: require_minor(),
|
|
143581
|
+
patch: require_patch(),
|
|
143582
|
+
prerelease: require_prerelease(),
|
|
143583
|
+
compare: require_compare(),
|
|
143584
|
+
rcompare: require_rcompare(),
|
|
143585
|
+
compareLoose: require_compare_loose(),
|
|
143586
|
+
compareBuild: require_compare_build(),
|
|
143587
|
+
sort: require_sort(),
|
|
143588
|
+
rsort: require_rsort(),
|
|
143589
|
+
gt: require_gt(),
|
|
143590
|
+
lt: require_lt(),
|
|
143591
|
+
eq: require_eq(),
|
|
143592
|
+
neq: require_neq(),
|
|
143593
|
+
gte: require_gte(),
|
|
143594
|
+
lte: require_lte(),
|
|
143595
|
+
cmp: require_cmp(),
|
|
143596
|
+
coerce: require_coerce(),
|
|
143597
|
+
Comparator: require_comparator(),
|
|
143598
|
+
Range: require_range(),
|
|
143599
|
+
satisfies: require_satisfies(),
|
|
143600
|
+
toComparators: require_to_comparators(),
|
|
143601
|
+
maxSatisfying: require_max_satisfying(),
|
|
143602
|
+
minSatisfying: require_min_satisfying(),
|
|
143603
|
+
minVersion: require_min_version(),
|
|
143604
|
+
validRange: require_valid(),
|
|
143605
|
+
outside: require_outside(),
|
|
143606
|
+
gtr: require_gtr(),
|
|
143607
|
+
ltr: require_ltr(),
|
|
143608
|
+
intersects: require_intersects(),
|
|
143609
|
+
simplifyRange: require_simplify(),
|
|
143610
|
+
subset: require_subset(),
|
|
143611
|
+
SemVer,
|
|
143612
|
+
re: internalRe.re,
|
|
143613
|
+
src: internalRe.src,
|
|
143614
|
+
tokens: internalRe.t,
|
|
143615
|
+
SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
|
|
143616
|
+
RELEASE_TYPES: constants.RELEASE_TYPES,
|
|
143617
|
+
compareIdentifiers: identifiers.compareIdentifiers,
|
|
143618
|
+
rcompareIdentifiers: identifiers.rcompareIdentifiers
|
|
143619
|
+
};
|
|
143620
|
+
}));
|
|
143621
|
+
//#endregion
|
|
140745
143622
|
//#region ../../node_modules/serve-handler/src/glob-slash.js
|
|
140746
143623
|
var require_glob_slash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
140747
143624
|
const path$4 = __require("path");
|
|
@@ -148131,11 +151008,32 @@ var require_error = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
148131
151008
|
stream.pipe(response);
|
|
148132
151009
|
};
|
|
148133
151010
|
})))();
|
|
151011
|
+
require_semver();
|
|
148134
151012
|
require_lib();
|
|
148135
151013
|
//#endregion
|
|
148136
151014
|
//#region ../../packages/core-node/src/handler-func.ts
|
|
148137
151015
|
const { join: join$1 } = path;
|
|
148138
151016
|
//#endregion
|
|
151017
|
+
//#region ../../packages/core-node/src/handlers/plugins.ts
|
|
151018
|
+
const localPluginsMap = /* @__PURE__ */ new Map();
|
|
151019
|
+
if (isDev && projectRoot) {
|
|
151020
|
+
const pluginsDir = join(projectRoot, "plugins");
|
|
151021
|
+
if (existsSync(pluginsDir)) try {
|
|
151022
|
+
const entries = readdirSync(pluginsDir, { withFileTypes: true });
|
|
151023
|
+
for (const entry of entries) if (entry.isDirectory()) {
|
|
151024
|
+
const pkgPath = join(pluginsDir, entry.name, "package.json");
|
|
151025
|
+
if (existsSync(pkgPath)) try {
|
|
151026
|
+
const pkg = JSON.parse(readFileSync(pkgPath, "utf-8"));
|
|
151027
|
+
if (pkg.name) localPluginsMap.set(pkg.name, join(pluginsDir, entry.name));
|
|
151028
|
+
} catch (e) {
|
|
151029
|
+
console.error(`[Plugins] Failed to parse package.json for ${entry.name}:`, e);
|
|
151030
|
+
}
|
|
151031
|
+
}
|
|
151032
|
+
} catch (e) {
|
|
151033
|
+
console.error(`[Plugins] Failed to scan local workspace plugins directory:`, e);
|
|
151034
|
+
}
|
|
151035
|
+
}
|
|
151036
|
+
//#endregion
|
|
148139
151037
|
//#region ../plugin-core/src/pipelab.ts
|
|
148140
151038
|
const createActionRunner = (runner) => runner;
|
|
148141
151039
|
//#endregion
|
|
@@ -148228,89 +151126,77 @@ const ensureButler = async (thirdpartyDir, version = "LATEST") => {
|
|
|
148228
151126
|
});
|
|
148229
151127
|
return finalButlerPath;
|
|
148230
151128
|
};
|
|
148231
|
-
const uploadToItch = createAction({
|
|
148232
|
-
id: "itch-upload",
|
|
148233
|
-
name: "Upload to Itch.io",
|
|
148234
|
-
description: "",
|
|
148235
|
-
icon: "",
|
|
148236
|
-
displayString: "`Upload ${fmt.param(params['input-folder'], 'primary', 'No path selected')} to ${fmt.param(params['user'], 'primary', 'No project')}/${fmt.param(params['project'], 'primary', 'No project')}:${fmt.param(params['channel'], 'primary', 'No channel')}`",
|
|
148237
|
-
meta: {},
|
|
148238
|
-
params: {
|
|
148239
|
-
"input-folder": createPathParam("", {
|
|
148240
|
-
required: true,
|
|
148241
|
-
label: "Folder to Upload",
|
|
148242
|
-
control: {
|
|
148243
|
-
type: "path",
|
|
148244
|
-
options: { properties: ["openDirectory"] }
|
|
148245
|
-
}
|
|
148246
|
-
}),
|
|
148247
|
-
user: createStringParam("", {
|
|
148248
|
-
required: true,
|
|
148249
|
-
label: "User"
|
|
148250
|
-
}),
|
|
148251
|
-
project: createStringParam("", {
|
|
148252
|
-
required: true,
|
|
148253
|
-
label: "Project"
|
|
148254
|
-
}),
|
|
148255
|
-
channel: createStringParam("", {
|
|
148256
|
-
required: true,
|
|
148257
|
-
label: "Channel"
|
|
148258
|
-
}),
|
|
148259
|
-
"api-key": createStringParam("", {
|
|
148260
|
-
required: true,
|
|
148261
|
-
label: "API key"
|
|
148262
|
-
})
|
|
148263
|
-
},
|
|
148264
|
-
outputs: {}
|
|
148265
|
-
});
|
|
148266
|
-
const uploadToItchRunner = createActionRunner(async ({ log, inputs, cwd, abortSignal, paths }) => {
|
|
148267
|
-
const { node, thirdparty } = paths;
|
|
148268
|
-
const butlerPath = await ensureButler(thirdparty);
|
|
148269
|
-
log("Uploading to itch");
|
|
148270
|
-
await runWithLiveLogs(butlerPath, [
|
|
148271
|
-
"push",
|
|
148272
|
-
inputs["input-folder"],
|
|
148273
|
-
`${inputs.user}/${inputs.project}:${inputs.channel}`,
|
|
148274
|
-
"--json"
|
|
148275
|
-
], {
|
|
148276
|
-
env: {
|
|
148277
|
-
...process.env,
|
|
148278
|
-
PATH: `${dirname(node)}${delimiter}${process.env.PATH}`,
|
|
148279
|
-
BUTLER_API_KEY: inputs["api-key"]
|
|
148280
|
-
},
|
|
148281
|
-
cancelSignal: abortSignal
|
|
148282
|
-
}, log, { onStdout(data, subprocess) {
|
|
148283
|
-
const jsons = data.trim().split("\n");
|
|
148284
|
-
for (const jsonData of jsons) {
|
|
148285
|
-
const json = JSON.parse(jsonData);
|
|
148286
|
-
switch (json.type) {
|
|
148287
|
-
case "log":
|
|
148288
|
-
log(json.message);
|
|
148289
|
-
break;
|
|
148290
|
-
case "progress":
|
|
148291
|
-
log(`${json.progress}% - ETA: ${json.eta}s`);
|
|
148292
|
-
break;
|
|
148293
|
-
}
|
|
148294
|
-
}
|
|
148295
|
-
} });
|
|
148296
|
-
log("Uploaded to itch");
|
|
148297
|
-
});
|
|
148298
151129
|
//#endregion
|
|
148299
151130
|
//#region src/index.ts
|
|
148300
|
-
|
|
148301
|
-
|
|
148302
|
-
|
|
148303
|
-
|
|
148304
|
-
|
|
148305
|
-
|
|
148306
|
-
|
|
148307
|
-
|
|
148308
|
-
|
|
148309
|
-
|
|
148310
|
-
|
|
148311
|
-
|
|
148312
|
-
|
|
148313
|
-
|
|
151131
|
+
var src_default = createNodeDefinition({ nodes: [{
|
|
151132
|
+
node: createAction({
|
|
151133
|
+
id: "itch-upload",
|
|
151134
|
+
name: "Upload to Itch.io",
|
|
151135
|
+
description: "",
|
|
151136
|
+
icon: "",
|
|
151137
|
+
displayString: "`Upload ${fmt.param(params['input-folder'], 'primary', 'No path selected')} to ${fmt.param(params['user'], 'primary', 'No project')}/${fmt.param(params['project'], 'primary', 'No project')}:${fmt.param(params['channel'], 'primary', 'No channel')}`",
|
|
151138
|
+
meta: {},
|
|
151139
|
+
params: {
|
|
151140
|
+
"input-folder": createPathParam("", {
|
|
151141
|
+
required: true,
|
|
151142
|
+
label: "Folder to Upload",
|
|
151143
|
+
control: {
|
|
151144
|
+
type: "path",
|
|
151145
|
+
options: { properties: ["openDirectory"] }
|
|
151146
|
+
}
|
|
151147
|
+
}),
|
|
151148
|
+
user: createStringParam("", {
|
|
151149
|
+
required: true,
|
|
151150
|
+
label: "User"
|
|
151151
|
+
}),
|
|
151152
|
+
project: createStringParam("", {
|
|
151153
|
+
required: true,
|
|
151154
|
+
label: "Project"
|
|
151155
|
+
}),
|
|
151156
|
+
channel: createStringParam("", {
|
|
151157
|
+
required: true,
|
|
151158
|
+
label: "Channel"
|
|
151159
|
+
}),
|
|
151160
|
+
"api-key": createStringParam("", {
|
|
151161
|
+
required: true,
|
|
151162
|
+
label: "API key"
|
|
151163
|
+
})
|
|
151164
|
+
},
|
|
151165
|
+
outputs: {}
|
|
151166
|
+
}),
|
|
151167
|
+
runner: createActionRunner(async ({ log, inputs, cwd, abortSignal, paths }) => {
|
|
151168
|
+
const { node, thirdparty } = paths;
|
|
151169
|
+
const butlerPath = await ensureButler(thirdparty);
|
|
151170
|
+
log("Uploading to itch");
|
|
151171
|
+
await runWithLiveLogs(butlerPath, [
|
|
151172
|
+
"push",
|
|
151173
|
+
inputs["input-folder"],
|
|
151174
|
+
`${inputs.user}/${inputs.project}:${inputs.channel}`,
|
|
151175
|
+
"--json"
|
|
151176
|
+
], {
|
|
151177
|
+
env: {
|
|
151178
|
+
...process.env,
|
|
151179
|
+
PATH: `${dirname(node)}${delimiter}${process.env.PATH}`,
|
|
151180
|
+
BUTLER_API_KEY: inputs["api-key"]
|
|
151181
|
+
},
|
|
151182
|
+
cancelSignal: abortSignal
|
|
151183
|
+
}, log, { onStdout(data, subprocess) {
|
|
151184
|
+
const jsons = data.trim().split("\n");
|
|
151185
|
+
for (const jsonData of jsons) {
|
|
151186
|
+
const json = JSON.parse(jsonData);
|
|
151187
|
+
switch (json.type) {
|
|
151188
|
+
case "log":
|
|
151189
|
+
log(json.message);
|
|
151190
|
+
break;
|
|
151191
|
+
case "progress":
|
|
151192
|
+
log(`${json.progress}% - ETA: ${json.eta}s`);
|
|
151193
|
+
break;
|
|
151194
|
+
}
|
|
151195
|
+
}
|
|
151196
|
+
} });
|
|
151197
|
+
log("Uploaded to itch");
|
|
151198
|
+
})
|
|
151199
|
+
}] });
|
|
148314
151200
|
//#endregion
|
|
148315
151201
|
export { src_default as default };
|
|
148316
151202
|
|