@cloudsnorkel/cdk-github-runners 0.10.5 → 0.10.7
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/.jsii +120 -120
- package/README.md +1 -1
- package/assets/delete-failed-runner.lambda/index.js +2117 -972
- package/assets/docker-images/codebuild/linux-arm64/Dockerfile +1 -2
- package/assets/docker-images/codebuild/linux-x64/Dockerfile +1 -2
- package/assets/docker-images/fargate/linux-arm64/Dockerfile +1 -2
- package/assets/docker-images/fargate/linux-x64/Dockerfile +1 -2
- package/assets/idle-runner-repear.lambda/index.js +2113 -968
- package/assets/image-builders/aws-image-builder/versioner.lambda/index.js +118 -54
- package/assets/setup.lambda/index.html +13 -13
- package/assets/setup.lambda/index.js +1552 -616
- package/assets/status.lambda/index.js +704 -432
- package/assets/token-retriever.lambda/index.js +2115 -970
- package/assets/webhook-handler.lambda/index.js +10 -8
- package/lib/access.js +1 -1
- package/lib/image-builders/api.js +1 -1
- package/lib/image-builders/aws-image-builder/ami.d.ts +1 -1
- package/lib/image-builders/aws-image-builder/ami.js +9 -9
- package/lib/image-builders/aws-image-builder/builder.js +1 -1
- package/lib/image-builders/aws-image-builder/deprecated/ami.d.ts +1 -1
- package/lib/image-builders/aws-image-builder/deprecated/ami.js +9 -9
- package/lib/image-builders/aws-image-builder/deprecated/common.d.ts +1 -1
- package/lib/image-builders/aws-image-builder/deprecated/common.js +10 -10
- package/lib/image-builders/aws-image-builder/deprecated/container.js +1 -1
- package/lib/image-builders/aws-image-builder/deprecated/linux-components.d.ts +1 -1
- package/lib/image-builders/aws-image-builder/deprecated/linux-components.js +11 -12
- package/lib/image-builders/aws-image-builder/deprecated/windows-components.js +1 -1
- package/lib/image-builders/codebuild-deprecated.js +1 -1
- package/lib/image-builders/components.js +3 -4
- package/lib/image-builders/static.js +1 -1
- package/lib/providers/codebuild.js +7 -5
- package/lib/providers/common.d.ts +2 -1
- package/lib/providers/common.js +5 -6
- package/lib/providers/ec2.d.ts +1 -0
- package/lib/providers/ec2.js +16 -11
- package/lib/providers/ecs.js +12 -5
- package/lib/providers/fargate.js +6 -3
- package/lib/providers/lambda.js +2 -2
- package/lib/runner.js +1 -1
- package/lib/secrets.js +1 -1
- package/lib/status.lambda.js +12 -7
- package/lib/utils.d.ts +19 -1
- package/lib/utils.js +48 -2
- package/lib/webhook-handler.lambda.js +11 -9
- package/package.json +12 -11
|
@@ -33,11 +33,13 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
33
33
|
// node_modules/semver/internal/constants.js
|
|
34
34
|
var require_constants = __commonJS({
|
|
35
35
|
"node_modules/semver/internal/constants.js"(exports, module2) {
|
|
36
|
+
"use strict";
|
|
36
37
|
var SEMVER_SPEC_VERSION = "2.0.0";
|
|
37
38
|
var MAX_LENGTH = 256;
|
|
38
39
|
var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
|
|
39
40
|
9007199254740991;
|
|
40
41
|
var MAX_SAFE_COMPONENT_LENGTH = 16;
|
|
42
|
+
var MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6;
|
|
41
43
|
var RELEASE_TYPES = [
|
|
42
44
|
"major",
|
|
43
45
|
"premajor",
|
|
@@ -50,6 +52,7 @@ var require_constants = __commonJS({
|
|
|
50
52
|
module2.exports = {
|
|
51
53
|
MAX_LENGTH,
|
|
52
54
|
MAX_SAFE_COMPONENT_LENGTH,
|
|
55
|
+
MAX_SAFE_BUILD_LENGTH,
|
|
53
56
|
MAX_SAFE_INTEGER,
|
|
54
57
|
RELEASE_TYPES,
|
|
55
58
|
SEMVER_SPEC_VERSION,
|
|
@@ -62,6 +65,7 @@ var require_constants = __commonJS({
|
|
|
62
65
|
// node_modules/semver/internal/debug.js
|
|
63
66
|
var require_debug = __commonJS({
|
|
64
67
|
"node_modules/semver/internal/debug.js"(exports, module2) {
|
|
68
|
+
"use strict";
|
|
65
69
|
var debug = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
|
|
66
70
|
};
|
|
67
71
|
module2.exports = debug;
|
|
@@ -71,30 +75,46 @@ var require_debug = __commonJS({
|
|
|
71
75
|
// node_modules/semver/internal/re.js
|
|
72
76
|
var require_re = __commonJS({
|
|
73
77
|
"node_modules/semver/internal/re.js"(exports, module2) {
|
|
74
|
-
|
|
78
|
+
"use strict";
|
|
79
|
+
var { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH } = require_constants();
|
|
75
80
|
var debug = require_debug();
|
|
76
81
|
exports = module2.exports = {};
|
|
77
82
|
var re = exports.re = [];
|
|
83
|
+
var safeRe = exports.safeRe = [];
|
|
78
84
|
var src = exports.src = [];
|
|
79
85
|
var t = exports.t = {};
|
|
80
86
|
var R = 0;
|
|
87
|
+
var LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
88
|
+
var safeRegexReplacements = [
|
|
89
|
+
["\\s", 1],
|
|
90
|
+
["\\d", MAX_SAFE_COMPONENT_LENGTH],
|
|
91
|
+
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
|
|
92
|
+
];
|
|
93
|
+
var makeSafeRegex = (value) => {
|
|
94
|
+
for (const [token, max] of safeRegexReplacements) {
|
|
95
|
+
value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
|
|
96
|
+
}
|
|
97
|
+
return value;
|
|
98
|
+
};
|
|
81
99
|
var createToken = (name, value, isGlobal) => {
|
|
100
|
+
const safe = makeSafeRegex(value);
|
|
82
101
|
const index = R++;
|
|
83
102
|
debug(name, index, value);
|
|
84
103
|
t[name] = index;
|
|
85
104
|
src[index] = value;
|
|
86
105
|
re[index] = new RegExp(value, isGlobal ? "g" : void 0);
|
|
106
|
+
safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
87
107
|
};
|
|
88
108
|
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
89
|
-
createToken("NUMERICIDENTIFIERLOOSE", "
|
|
90
|
-
createToken("NONNUMERICIDENTIFIER",
|
|
109
|
+
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
110
|
+
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
91
111
|
createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
|
|
92
112
|
createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
93
113
|
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`);
|
|
94
114
|
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NUMERICIDENTIFIERLOOSE]}|${src[t.NONNUMERICIDENTIFIER]})`);
|
|
95
115
|
createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
96
116
|
createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
97
|
-
createToken("BUILDIDENTIFIER",
|
|
117
|
+
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
98
118
|
createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
|
|
99
119
|
createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
|
|
100
120
|
createToken("FULL", `^${src[t.FULLPLAIN]}$`);
|
|
@@ -134,6 +154,7 @@ var require_re = __commonJS({
|
|
|
134
154
|
// node_modules/semver/internal/parse-options.js
|
|
135
155
|
var require_parse_options = __commonJS({
|
|
136
156
|
"node_modules/semver/internal/parse-options.js"(exports, module2) {
|
|
157
|
+
"use strict";
|
|
137
158
|
var looseOption = Object.freeze({ loose: true });
|
|
138
159
|
var emptyOpts = Object.freeze({});
|
|
139
160
|
var parseOptions = (options) => {
|
|
@@ -152,6 +173,7 @@ var require_parse_options = __commonJS({
|
|
|
152
173
|
// node_modules/semver/internal/identifiers.js
|
|
153
174
|
var require_identifiers = __commonJS({
|
|
154
175
|
"node_modules/semver/internal/identifiers.js"(exports, module2) {
|
|
176
|
+
"use strict";
|
|
155
177
|
var numeric = /^[0-9]+$/;
|
|
156
178
|
var compareIdentifiers = (a, b) => {
|
|
157
179
|
const anum = numeric.test(a);
|
|
@@ -173,15 +195,16 @@ var require_identifiers = __commonJS({
|
|
|
173
195
|
// node_modules/semver/classes/semver.js
|
|
174
196
|
var require_semver = __commonJS({
|
|
175
197
|
"node_modules/semver/classes/semver.js"(exports, module2) {
|
|
198
|
+
"use strict";
|
|
176
199
|
var debug = require_debug();
|
|
177
200
|
var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
178
|
-
var { re, t } = require_re();
|
|
201
|
+
var { safeRe: re, t } = require_re();
|
|
179
202
|
var parseOptions = require_parse_options();
|
|
180
203
|
var { compareIdentifiers } = require_identifiers();
|
|
181
|
-
var SemVer = class {
|
|
204
|
+
var SemVer = class _SemVer {
|
|
182
205
|
constructor(version, options) {
|
|
183
206
|
options = parseOptions(options);
|
|
184
|
-
if (version instanceof
|
|
207
|
+
if (version instanceof _SemVer) {
|
|
185
208
|
if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) {
|
|
186
209
|
return version;
|
|
187
210
|
} else {
|
|
@@ -244,11 +267,11 @@ var require_semver = __commonJS({
|
|
|
244
267
|
}
|
|
245
268
|
compare(other) {
|
|
246
269
|
debug("SemVer.compare", this.version, this.options, other);
|
|
247
|
-
if (!(other instanceof
|
|
270
|
+
if (!(other instanceof _SemVer)) {
|
|
248
271
|
if (typeof other === "string" && other === this.version) {
|
|
249
272
|
return 0;
|
|
250
273
|
}
|
|
251
|
-
other = new
|
|
274
|
+
other = new _SemVer(other, this.options);
|
|
252
275
|
}
|
|
253
276
|
if (other.version === this.version) {
|
|
254
277
|
return 0;
|
|
@@ -256,14 +279,14 @@ var require_semver = __commonJS({
|
|
|
256
279
|
return this.compareMain(other) || this.comparePre(other);
|
|
257
280
|
}
|
|
258
281
|
compareMain(other) {
|
|
259
|
-
if (!(other instanceof
|
|
260
|
-
other = new
|
|
282
|
+
if (!(other instanceof _SemVer)) {
|
|
283
|
+
other = new _SemVer(other, this.options);
|
|
261
284
|
}
|
|
262
285
|
return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);
|
|
263
286
|
}
|
|
264
287
|
comparePre(other) {
|
|
265
|
-
if (!(other instanceof
|
|
266
|
-
other = new
|
|
288
|
+
if (!(other instanceof _SemVer)) {
|
|
289
|
+
other = new _SemVer(other, this.options);
|
|
267
290
|
}
|
|
268
291
|
if (this.prerelease.length && !other.prerelease.length) {
|
|
269
292
|
return -1;
|
|
@@ -291,8 +314,8 @@ var require_semver = __commonJS({
|
|
|
291
314
|
} while (++i);
|
|
292
315
|
}
|
|
293
316
|
compareBuild(other) {
|
|
294
|
-
if (!(other instanceof
|
|
295
|
-
other = new
|
|
317
|
+
if (!(other instanceof _SemVer)) {
|
|
318
|
+
other = new _SemVer(other, this.options);
|
|
296
319
|
}
|
|
297
320
|
let i = 0;
|
|
298
321
|
do {
|
|
@@ -401,8 +424,10 @@ var require_semver = __commonJS({
|
|
|
401
424
|
default:
|
|
402
425
|
throw new Error(`invalid increment argument: ${release}`);
|
|
403
426
|
}
|
|
404
|
-
this.format();
|
|
405
|
-
this.
|
|
427
|
+
this.raw = this.format();
|
|
428
|
+
if (this.build.length) {
|
|
429
|
+
this.raw += `+${this.build.join(".")}`;
|
|
430
|
+
}
|
|
406
431
|
return this;
|
|
407
432
|
}
|
|
408
433
|
};
|
|
@@ -413,6 +438,7 @@ var require_semver = __commonJS({
|
|
|
413
438
|
// node_modules/semver/functions/parse.js
|
|
414
439
|
var require_parse = __commonJS({
|
|
415
440
|
"node_modules/semver/functions/parse.js"(exports, module2) {
|
|
441
|
+
"use strict";
|
|
416
442
|
var SemVer = require_semver();
|
|
417
443
|
var parse = (version, options, throwErrors = false) => {
|
|
418
444
|
if (version instanceof SemVer) {
|
|
@@ -434,6 +460,7 @@ var require_parse = __commonJS({
|
|
|
434
460
|
// node_modules/semver/functions/valid.js
|
|
435
461
|
var require_valid = __commonJS({
|
|
436
462
|
"node_modules/semver/functions/valid.js"(exports, module2) {
|
|
463
|
+
"use strict";
|
|
437
464
|
var parse = require_parse();
|
|
438
465
|
var valid = (version, options) => {
|
|
439
466
|
const v = parse(version, options);
|
|
@@ -446,6 +473,7 @@ var require_valid = __commonJS({
|
|
|
446
473
|
// node_modules/semver/functions/clean.js
|
|
447
474
|
var require_clean = __commonJS({
|
|
448
475
|
"node_modules/semver/functions/clean.js"(exports, module2) {
|
|
476
|
+
"use strict";
|
|
449
477
|
var parse = require_parse();
|
|
450
478
|
var clean = (version, options) => {
|
|
451
479
|
const s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
@@ -458,6 +486,7 @@ var require_clean = __commonJS({
|
|
|
458
486
|
// node_modules/semver/functions/inc.js
|
|
459
487
|
var require_inc = __commonJS({
|
|
460
488
|
"node_modules/semver/functions/inc.js"(exports, module2) {
|
|
489
|
+
"use strict";
|
|
461
490
|
var SemVer = require_semver();
|
|
462
491
|
var inc2 = (version, release, options, identifier, identifierBase) => {
|
|
463
492
|
if (typeof options === "string") {
|
|
@@ -481,6 +510,7 @@ var require_inc = __commonJS({
|
|
|
481
510
|
// node_modules/semver/functions/diff.js
|
|
482
511
|
var require_diff = __commonJS({
|
|
483
512
|
"node_modules/semver/functions/diff.js"(exports, module2) {
|
|
513
|
+
"use strict";
|
|
484
514
|
var parse = require_parse();
|
|
485
515
|
var diff = (version1, version2) => {
|
|
486
516
|
const v1 = parse(version1, null, true);
|
|
@@ -493,6 +523,19 @@ var require_diff = __commonJS({
|
|
|
493
523
|
const highVersion = v1Higher ? v1 : v2;
|
|
494
524
|
const lowVersion = v1Higher ? v2 : v1;
|
|
495
525
|
const highHasPre = !!highVersion.prerelease.length;
|
|
526
|
+
const lowHasPre = !!lowVersion.prerelease.length;
|
|
527
|
+
if (lowHasPre && !highHasPre) {
|
|
528
|
+
if (!lowVersion.patch && !lowVersion.minor) {
|
|
529
|
+
return "major";
|
|
530
|
+
}
|
|
531
|
+
if (highVersion.patch) {
|
|
532
|
+
return "patch";
|
|
533
|
+
}
|
|
534
|
+
if (highVersion.minor) {
|
|
535
|
+
return "minor";
|
|
536
|
+
}
|
|
537
|
+
return "major";
|
|
538
|
+
}
|
|
496
539
|
const prefix = highHasPre ? "pre" : "";
|
|
497
540
|
if (v1.major !== v2.major) {
|
|
498
541
|
return prefix + "major";
|
|
@@ -503,16 +546,7 @@ var require_diff = __commonJS({
|
|
|
503
546
|
if (v1.patch !== v2.patch) {
|
|
504
547
|
return prefix + "patch";
|
|
505
548
|
}
|
|
506
|
-
|
|
507
|
-
return "prerelease";
|
|
508
|
-
}
|
|
509
|
-
if (lowVersion.patch) {
|
|
510
|
-
return "patch";
|
|
511
|
-
}
|
|
512
|
-
if (lowVersion.minor) {
|
|
513
|
-
return "minor";
|
|
514
|
-
}
|
|
515
|
-
return "major";
|
|
549
|
+
return "prerelease";
|
|
516
550
|
};
|
|
517
551
|
module2.exports = diff;
|
|
518
552
|
}
|
|
@@ -521,6 +555,7 @@ var require_diff = __commonJS({
|
|
|
521
555
|
// node_modules/semver/functions/major.js
|
|
522
556
|
var require_major = __commonJS({
|
|
523
557
|
"node_modules/semver/functions/major.js"(exports, module2) {
|
|
558
|
+
"use strict";
|
|
524
559
|
var SemVer = require_semver();
|
|
525
560
|
var major = (a, loose) => new SemVer(a, loose).major;
|
|
526
561
|
module2.exports = major;
|
|
@@ -530,6 +565,7 @@ var require_major = __commonJS({
|
|
|
530
565
|
// node_modules/semver/functions/minor.js
|
|
531
566
|
var require_minor = __commonJS({
|
|
532
567
|
"node_modules/semver/functions/minor.js"(exports, module2) {
|
|
568
|
+
"use strict";
|
|
533
569
|
var SemVer = require_semver();
|
|
534
570
|
var minor = (a, loose) => new SemVer(a, loose).minor;
|
|
535
571
|
module2.exports = minor;
|
|
@@ -539,6 +575,7 @@ var require_minor = __commonJS({
|
|
|
539
575
|
// node_modules/semver/functions/patch.js
|
|
540
576
|
var require_patch = __commonJS({
|
|
541
577
|
"node_modules/semver/functions/patch.js"(exports, module2) {
|
|
578
|
+
"use strict";
|
|
542
579
|
var SemVer = require_semver();
|
|
543
580
|
var patch = (a, loose) => new SemVer(a, loose).patch;
|
|
544
581
|
module2.exports = patch;
|
|
@@ -548,6 +585,7 @@ var require_patch = __commonJS({
|
|
|
548
585
|
// node_modules/semver/functions/prerelease.js
|
|
549
586
|
var require_prerelease = __commonJS({
|
|
550
587
|
"node_modules/semver/functions/prerelease.js"(exports, module2) {
|
|
588
|
+
"use strict";
|
|
551
589
|
var parse = require_parse();
|
|
552
590
|
var prerelease = (version, options) => {
|
|
553
591
|
const parsed = parse(version, options);
|
|
@@ -560,6 +598,7 @@ var require_prerelease = __commonJS({
|
|
|
560
598
|
// node_modules/semver/functions/compare.js
|
|
561
599
|
var require_compare = __commonJS({
|
|
562
600
|
"node_modules/semver/functions/compare.js"(exports, module2) {
|
|
601
|
+
"use strict";
|
|
563
602
|
var SemVer = require_semver();
|
|
564
603
|
var compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
565
604
|
module2.exports = compare;
|
|
@@ -569,6 +608,7 @@ var require_compare = __commonJS({
|
|
|
569
608
|
// node_modules/semver/functions/rcompare.js
|
|
570
609
|
var require_rcompare = __commonJS({
|
|
571
610
|
"node_modules/semver/functions/rcompare.js"(exports, module2) {
|
|
611
|
+
"use strict";
|
|
572
612
|
var compare = require_compare();
|
|
573
613
|
var rcompare = (a, b, loose) => compare(b, a, loose);
|
|
574
614
|
module2.exports = rcompare;
|
|
@@ -578,6 +618,7 @@ var require_rcompare = __commonJS({
|
|
|
578
618
|
// node_modules/semver/functions/compare-loose.js
|
|
579
619
|
var require_compare_loose = __commonJS({
|
|
580
620
|
"node_modules/semver/functions/compare-loose.js"(exports, module2) {
|
|
621
|
+
"use strict";
|
|
581
622
|
var compare = require_compare();
|
|
582
623
|
var compareLoose = (a, b) => compare(a, b, true);
|
|
583
624
|
module2.exports = compareLoose;
|
|
@@ -587,6 +628,7 @@ var require_compare_loose = __commonJS({
|
|
|
587
628
|
// node_modules/semver/functions/compare-build.js
|
|
588
629
|
var require_compare_build = __commonJS({
|
|
589
630
|
"node_modules/semver/functions/compare-build.js"(exports, module2) {
|
|
631
|
+
"use strict";
|
|
590
632
|
var SemVer = require_semver();
|
|
591
633
|
var compareBuild = (a, b, loose) => {
|
|
592
634
|
const versionA = new SemVer(a, loose);
|
|
@@ -600,6 +642,7 @@ var require_compare_build = __commonJS({
|
|
|
600
642
|
// node_modules/semver/functions/sort.js
|
|
601
643
|
var require_sort = __commonJS({
|
|
602
644
|
"node_modules/semver/functions/sort.js"(exports, module2) {
|
|
645
|
+
"use strict";
|
|
603
646
|
var compareBuild = require_compare_build();
|
|
604
647
|
var sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
605
648
|
module2.exports = sort;
|
|
@@ -609,6 +652,7 @@ var require_sort = __commonJS({
|
|
|
609
652
|
// node_modules/semver/functions/rsort.js
|
|
610
653
|
var require_rsort = __commonJS({
|
|
611
654
|
"node_modules/semver/functions/rsort.js"(exports, module2) {
|
|
655
|
+
"use strict";
|
|
612
656
|
var compareBuild = require_compare_build();
|
|
613
657
|
var rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
614
658
|
module2.exports = rsort;
|
|
@@ -618,6 +662,7 @@ var require_rsort = __commonJS({
|
|
|
618
662
|
// node_modules/semver/functions/gt.js
|
|
619
663
|
var require_gt = __commonJS({
|
|
620
664
|
"node_modules/semver/functions/gt.js"(exports, module2) {
|
|
665
|
+
"use strict";
|
|
621
666
|
var compare = require_compare();
|
|
622
667
|
var gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
623
668
|
module2.exports = gt;
|
|
@@ -627,6 +672,7 @@ var require_gt = __commonJS({
|
|
|
627
672
|
// node_modules/semver/functions/lt.js
|
|
628
673
|
var require_lt = __commonJS({
|
|
629
674
|
"node_modules/semver/functions/lt.js"(exports, module2) {
|
|
675
|
+
"use strict";
|
|
630
676
|
var compare = require_compare();
|
|
631
677
|
var lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
632
678
|
module2.exports = lt;
|
|
@@ -636,6 +682,7 @@ var require_lt = __commonJS({
|
|
|
636
682
|
// node_modules/semver/functions/eq.js
|
|
637
683
|
var require_eq = __commonJS({
|
|
638
684
|
"node_modules/semver/functions/eq.js"(exports, module2) {
|
|
685
|
+
"use strict";
|
|
639
686
|
var compare = require_compare();
|
|
640
687
|
var eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
641
688
|
module2.exports = eq;
|
|
@@ -645,6 +692,7 @@ var require_eq = __commonJS({
|
|
|
645
692
|
// node_modules/semver/functions/neq.js
|
|
646
693
|
var require_neq = __commonJS({
|
|
647
694
|
"node_modules/semver/functions/neq.js"(exports, module2) {
|
|
695
|
+
"use strict";
|
|
648
696
|
var compare = require_compare();
|
|
649
697
|
var neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
650
698
|
module2.exports = neq;
|
|
@@ -654,6 +702,7 @@ var require_neq = __commonJS({
|
|
|
654
702
|
// node_modules/semver/functions/gte.js
|
|
655
703
|
var require_gte = __commonJS({
|
|
656
704
|
"node_modules/semver/functions/gte.js"(exports, module2) {
|
|
705
|
+
"use strict";
|
|
657
706
|
var compare = require_compare();
|
|
658
707
|
var gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
659
708
|
module2.exports = gte;
|
|
@@ -663,6 +712,7 @@ var require_gte = __commonJS({
|
|
|
663
712
|
// node_modules/semver/functions/lte.js
|
|
664
713
|
var require_lte = __commonJS({
|
|
665
714
|
"node_modules/semver/functions/lte.js"(exports, module2) {
|
|
715
|
+
"use strict";
|
|
666
716
|
var compare = require_compare();
|
|
667
717
|
var lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
668
718
|
module2.exports = lte;
|
|
@@ -672,6 +722,7 @@ var require_lte = __commonJS({
|
|
|
672
722
|
// node_modules/semver/functions/cmp.js
|
|
673
723
|
var require_cmp = __commonJS({
|
|
674
724
|
"node_modules/semver/functions/cmp.js"(exports, module2) {
|
|
725
|
+
"use strict";
|
|
675
726
|
var eq = require_eq();
|
|
676
727
|
var neq = require_neq();
|
|
677
728
|
var gt = require_gt();
|
|
@@ -721,9 +772,10 @@ var require_cmp = __commonJS({
|
|
|
721
772
|
// node_modules/semver/functions/coerce.js
|
|
722
773
|
var require_coerce = __commonJS({
|
|
723
774
|
"node_modules/semver/functions/coerce.js"(exports, module2) {
|
|
775
|
+
"use strict";
|
|
724
776
|
var SemVer = require_semver();
|
|
725
777
|
var parse = require_parse();
|
|
726
|
-
var { re, t } = require_re();
|
|
778
|
+
var { safeRe: re, t } = require_re();
|
|
727
779
|
var coerce = (version, options) => {
|
|
728
780
|
if (version instanceof SemVer) {
|
|
729
781
|
return version;
|
|
@@ -1413,14 +1465,15 @@ var require_lru_cache = __commonJS({
|
|
|
1413
1465
|
// node_modules/semver/classes/range.js
|
|
1414
1466
|
var require_range = __commonJS({
|
|
1415
1467
|
"node_modules/semver/classes/range.js"(exports, module2) {
|
|
1416
|
-
|
|
1468
|
+
"use strict";
|
|
1469
|
+
var Range = class _Range {
|
|
1417
1470
|
constructor(range, options) {
|
|
1418
1471
|
options = parseOptions(options);
|
|
1419
|
-
if (range instanceof
|
|
1472
|
+
if (range instanceof _Range) {
|
|
1420
1473
|
if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) {
|
|
1421
1474
|
return range;
|
|
1422
1475
|
} else {
|
|
1423
|
-
return new
|
|
1476
|
+
return new _Range(range.raw, options);
|
|
1424
1477
|
}
|
|
1425
1478
|
}
|
|
1426
1479
|
if (range instanceof Comparator) {
|
|
@@ -1432,10 +1485,10 @@ var require_range = __commonJS({
|
|
|
1432
1485
|
this.options = options;
|
|
1433
1486
|
this.loose = !!options.loose;
|
|
1434
1487
|
this.includePrerelease = !!options.includePrerelease;
|
|
1435
|
-
this.raw = range;
|
|
1436
|
-
this.set =
|
|
1488
|
+
this.raw = range.trim().split(/\s+/).join(" ");
|
|
1489
|
+
this.set = this.raw.split("||").map((r) => this.parseRange(r)).filter((c) => c.length);
|
|
1437
1490
|
if (!this.set.length) {
|
|
1438
|
-
throw new TypeError(`Invalid SemVer Range: ${
|
|
1491
|
+
throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
1439
1492
|
}
|
|
1440
1493
|
if (this.set.length > 1) {
|
|
1441
1494
|
const first = this.set[0];
|
|
@@ -1454,16 +1507,13 @@ var require_range = __commonJS({
|
|
|
1454
1507
|
this.format();
|
|
1455
1508
|
}
|
|
1456
1509
|
format() {
|
|
1457
|
-
this.range = this.set.map((comps) =>
|
|
1458
|
-
return comps.join(" ").trim();
|
|
1459
|
-
}).join("||").trim();
|
|
1510
|
+
this.range = this.set.map((comps) => comps.join(" ").trim()).join("||").trim();
|
|
1460
1511
|
return this.range;
|
|
1461
1512
|
}
|
|
1462
1513
|
toString() {
|
|
1463
1514
|
return this.range;
|
|
1464
1515
|
}
|
|
1465
1516
|
parseRange(range) {
|
|
1466
|
-
range = range.trim();
|
|
1467
1517
|
const memoOpts = (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE);
|
|
1468
1518
|
const memoKey = memoOpts + ":" + range;
|
|
1469
1519
|
const cached = cache.get(memoKey);
|
|
@@ -1477,8 +1527,9 @@ var require_range = __commonJS({
|
|
|
1477
1527
|
range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace);
|
|
1478
1528
|
debug("comparator trim", range);
|
|
1479
1529
|
range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
|
|
1530
|
+
debug("tilde trim", range);
|
|
1480
1531
|
range = range.replace(re[t.CARETTRIM], caretTrimReplace);
|
|
1481
|
-
|
|
1532
|
+
debug("caret trim", range);
|
|
1482
1533
|
let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
|
|
1483
1534
|
if (loose) {
|
|
1484
1535
|
rangeList = rangeList.filter((comp) => {
|
|
@@ -1503,7 +1554,7 @@ var require_range = __commonJS({
|
|
|
1503
1554
|
return result;
|
|
1504
1555
|
}
|
|
1505
1556
|
intersects(range, options) {
|
|
1506
|
-
if (!(range instanceof
|
|
1557
|
+
if (!(range instanceof _Range)) {
|
|
1507
1558
|
throw new TypeError("a Range is required");
|
|
1508
1559
|
}
|
|
1509
1560
|
return this.set.some((thisComparators) => {
|
|
@@ -1544,7 +1595,7 @@ var require_range = __commonJS({
|
|
|
1544
1595
|
var debug = require_debug();
|
|
1545
1596
|
var SemVer = require_semver();
|
|
1546
1597
|
var {
|
|
1547
|
-
re,
|
|
1598
|
+
safeRe: re,
|
|
1548
1599
|
t,
|
|
1549
1600
|
comparatorTrimReplace,
|
|
1550
1601
|
tildeTrimReplace,
|
|
@@ -1578,9 +1629,9 @@ var require_range = __commonJS({
|
|
|
1578
1629
|
return comp;
|
|
1579
1630
|
};
|
|
1580
1631
|
var isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
|
|
1581
|
-
var replaceTildes = (comp, options) =>
|
|
1582
|
-
return replaceTilde(c, options);
|
|
1583
|
-
}
|
|
1632
|
+
var replaceTildes = (comp, options) => {
|
|
1633
|
+
return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
|
|
1634
|
+
};
|
|
1584
1635
|
var replaceTilde = (comp, options) => {
|
|
1585
1636
|
const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
|
|
1586
1637
|
return comp.replace(r, (_, M, m, p, pr) => {
|
|
@@ -1602,9 +1653,9 @@ var require_range = __commonJS({
|
|
|
1602
1653
|
return ret;
|
|
1603
1654
|
});
|
|
1604
1655
|
};
|
|
1605
|
-
var replaceCarets = (comp, options) =>
|
|
1606
|
-
return replaceCaret(c, options);
|
|
1607
|
-
}
|
|
1656
|
+
var replaceCarets = (comp, options) => {
|
|
1657
|
+
return comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" ");
|
|
1658
|
+
};
|
|
1608
1659
|
var replaceCaret = (comp, options) => {
|
|
1609
1660
|
debug("caret", comp, options);
|
|
1610
1661
|
const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET];
|
|
@@ -1651,9 +1702,7 @@ var require_range = __commonJS({
|
|
|
1651
1702
|
};
|
|
1652
1703
|
var replaceXRanges = (comp, options) => {
|
|
1653
1704
|
debug("replaceXRanges", comp, options);
|
|
1654
|
-
return comp.split(/\s+/).map((c) =>
|
|
1655
|
-
return replaceXRange(c, options);
|
|
1656
|
-
}).join(" ");
|
|
1705
|
+
return comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ");
|
|
1657
1706
|
};
|
|
1658
1707
|
var replaceXRange = (comp, options) => {
|
|
1659
1708
|
comp = comp.trim();
|
|
@@ -1774,20 +1823,22 @@ var require_range = __commonJS({
|
|
|
1774
1823
|
// node_modules/semver/classes/comparator.js
|
|
1775
1824
|
var require_comparator = __commonJS({
|
|
1776
1825
|
"node_modules/semver/classes/comparator.js"(exports, module2) {
|
|
1826
|
+
"use strict";
|
|
1777
1827
|
var ANY = Symbol("SemVer ANY");
|
|
1778
|
-
var Comparator = class {
|
|
1828
|
+
var Comparator = class _Comparator {
|
|
1779
1829
|
static get ANY() {
|
|
1780
1830
|
return ANY;
|
|
1781
1831
|
}
|
|
1782
1832
|
constructor(comp, options) {
|
|
1783
1833
|
options = parseOptions(options);
|
|
1784
|
-
if (comp instanceof
|
|
1834
|
+
if (comp instanceof _Comparator) {
|
|
1785
1835
|
if (comp.loose === !!options.loose) {
|
|
1786
1836
|
return comp;
|
|
1787
1837
|
} else {
|
|
1788
1838
|
comp = comp.value;
|
|
1789
1839
|
}
|
|
1790
1840
|
}
|
|
1841
|
+
comp = comp.trim().split(/\s+/).join(" ");
|
|
1791
1842
|
debug("comparator", comp, options);
|
|
1792
1843
|
this.options = options;
|
|
1793
1844
|
this.loose = !!options.loose;
|
|
@@ -1833,7 +1884,7 @@ var require_comparator = __commonJS({
|
|
|
1833
1884
|
return cmp(version, this.operator, this.semver, this.options);
|
|
1834
1885
|
}
|
|
1835
1886
|
intersects(comp, options) {
|
|
1836
|
-
if (!(comp instanceof
|
|
1887
|
+
if (!(comp instanceof _Comparator)) {
|
|
1837
1888
|
throw new TypeError("a Comparator is required");
|
|
1838
1889
|
}
|
|
1839
1890
|
if (this.operator === "") {
|
|
@@ -1874,7 +1925,7 @@ var require_comparator = __commonJS({
|
|
|
1874
1925
|
};
|
|
1875
1926
|
module2.exports = Comparator;
|
|
1876
1927
|
var parseOptions = require_parse_options();
|
|
1877
|
-
var { re, t } = require_re();
|
|
1928
|
+
var { safeRe: re, t } = require_re();
|
|
1878
1929
|
var cmp = require_cmp();
|
|
1879
1930
|
var debug = require_debug();
|
|
1880
1931
|
var SemVer = require_semver();
|
|
@@ -1885,6 +1936,7 @@ var require_comparator = __commonJS({
|
|
|
1885
1936
|
// node_modules/semver/functions/satisfies.js
|
|
1886
1937
|
var require_satisfies = __commonJS({
|
|
1887
1938
|
"node_modules/semver/functions/satisfies.js"(exports, module2) {
|
|
1939
|
+
"use strict";
|
|
1888
1940
|
var Range = require_range();
|
|
1889
1941
|
var satisfies = (version, range, options) => {
|
|
1890
1942
|
try {
|
|
@@ -1901,6 +1953,7 @@ var require_satisfies = __commonJS({
|
|
|
1901
1953
|
// node_modules/semver/ranges/to-comparators.js
|
|
1902
1954
|
var require_to_comparators = __commonJS({
|
|
1903
1955
|
"node_modules/semver/ranges/to-comparators.js"(exports, module2) {
|
|
1956
|
+
"use strict";
|
|
1904
1957
|
var Range = require_range();
|
|
1905
1958
|
var toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
1906
1959
|
module2.exports = toComparators;
|
|
@@ -1910,6 +1963,7 @@ var require_to_comparators = __commonJS({
|
|
|
1910
1963
|
// node_modules/semver/ranges/max-satisfying.js
|
|
1911
1964
|
var require_max_satisfying = __commonJS({
|
|
1912
1965
|
"node_modules/semver/ranges/max-satisfying.js"(exports, module2) {
|
|
1966
|
+
"use strict";
|
|
1913
1967
|
var SemVer = require_semver();
|
|
1914
1968
|
var Range = require_range();
|
|
1915
1969
|
var maxSatisfying2 = (versions, range, options) => {
|
|
@@ -1938,6 +1992,7 @@ var require_max_satisfying = __commonJS({
|
|
|
1938
1992
|
// node_modules/semver/ranges/min-satisfying.js
|
|
1939
1993
|
var require_min_satisfying = __commonJS({
|
|
1940
1994
|
"node_modules/semver/ranges/min-satisfying.js"(exports, module2) {
|
|
1995
|
+
"use strict";
|
|
1941
1996
|
var SemVer = require_semver();
|
|
1942
1997
|
var Range = require_range();
|
|
1943
1998
|
var minSatisfying = (versions, range, options) => {
|
|
@@ -1966,6 +2021,7 @@ var require_min_satisfying = __commonJS({
|
|
|
1966
2021
|
// node_modules/semver/ranges/min-version.js
|
|
1967
2022
|
var require_min_version = __commonJS({
|
|
1968
2023
|
"node_modules/semver/ranges/min-version.js"(exports, module2) {
|
|
2024
|
+
"use strict";
|
|
1969
2025
|
var SemVer = require_semver();
|
|
1970
2026
|
var Range = require_range();
|
|
1971
2027
|
var gt = require_gt();
|
|
@@ -2022,6 +2078,7 @@ var require_min_version = __commonJS({
|
|
|
2022
2078
|
// node_modules/semver/ranges/valid.js
|
|
2023
2079
|
var require_valid2 = __commonJS({
|
|
2024
2080
|
"node_modules/semver/ranges/valid.js"(exports, module2) {
|
|
2081
|
+
"use strict";
|
|
2025
2082
|
var Range = require_range();
|
|
2026
2083
|
var validRange = (range, options) => {
|
|
2027
2084
|
try {
|
|
@@ -2037,6 +2094,7 @@ var require_valid2 = __commonJS({
|
|
|
2037
2094
|
// node_modules/semver/ranges/outside.js
|
|
2038
2095
|
var require_outside = __commonJS({
|
|
2039
2096
|
"node_modules/semver/ranges/outside.js"(exports, module2) {
|
|
2097
|
+
"use strict";
|
|
2040
2098
|
var SemVer = require_semver();
|
|
2041
2099
|
var Comparator = require_comparator();
|
|
2042
2100
|
var { ANY } = Comparator;
|
|
@@ -2105,6 +2163,7 @@ var require_outside = __commonJS({
|
|
|
2105
2163
|
// node_modules/semver/ranges/gtr.js
|
|
2106
2164
|
var require_gtr = __commonJS({
|
|
2107
2165
|
"node_modules/semver/ranges/gtr.js"(exports, module2) {
|
|
2166
|
+
"use strict";
|
|
2108
2167
|
var outside = require_outside();
|
|
2109
2168
|
var gtr = (version, range, options) => outside(version, range, ">", options);
|
|
2110
2169
|
module2.exports = gtr;
|
|
@@ -2114,6 +2173,7 @@ var require_gtr = __commonJS({
|
|
|
2114
2173
|
// node_modules/semver/ranges/ltr.js
|
|
2115
2174
|
var require_ltr = __commonJS({
|
|
2116
2175
|
"node_modules/semver/ranges/ltr.js"(exports, module2) {
|
|
2176
|
+
"use strict";
|
|
2117
2177
|
var outside = require_outside();
|
|
2118
2178
|
var ltr = (version, range, options) => outside(version, range, "<", options);
|
|
2119
2179
|
module2.exports = ltr;
|
|
@@ -2123,6 +2183,7 @@ var require_ltr = __commonJS({
|
|
|
2123
2183
|
// node_modules/semver/ranges/intersects.js
|
|
2124
2184
|
var require_intersects = __commonJS({
|
|
2125
2185
|
"node_modules/semver/ranges/intersects.js"(exports, module2) {
|
|
2186
|
+
"use strict";
|
|
2126
2187
|
var Range = require_range();
|
|
2127
2188
|
var intersects = (r1, r2, options) => {
|
|
2128
2189
|
r1 = new Range(r1, options);
|
|
@@ -2136,6 +2197,7 @@ var require_intersects = __commonJS({
|
|
|
2136
2197
|
// node_modules/semver/ranges/simplify.js
|
|
2137
2198
|
var require_simplify = __commonJS({
|
|
2138
2199
|
"node_modules/semver/ranges/simplify.js"(exports, module2) {
|
|
2200
|
+
"use strict";
|
|
2139
2201
|
var satisfies = require_satisfies();
|
|
2140
2202
|
var compare = require_compare();
|
|
2141
2203
|
module2.exports = (versions, range, options) => {
|
|
@@ -2185,6 +2247,7 @@ var require_simplify = __commonJS({
|
|
|
2185
2247
|
// node_modules/semver/ranges/subset.js
|
|
2186
2248
|
var require_subset = __commonJS({
|
|
2187
2249
|
"node_modules/semver/ranges/subset.js"(exports, module2) {
|
|
2250
|
+
"use strict";
|
|
2188
2251
|
var Range = require_range();
|
|
2189
2252
|
var Comparator = require_comparator();
|
|
2190
2253
|
var { ANY } = Comparator;
|
|
@@ -2347,6 +2410,7 @@ var require_subset = __commonJS({
|
|
|
2347
2410
|
// node_modules/semver/index.js
|
|
2348
2411
|
var require_semver2 = __commonJS({
|
|
2349
2412
|
"node_modules/semver/index.js"(exports, module2) {
|
|
2413
|
+
"use strict";
|
|
2350
2414
|
var internalRe = require_re();
|
|
2351
2415
|
var constants = require_constants();
|
|
2352
2416
|
var SemVer = require_semver();
|