@cloudsnorkel/cdk-github-runners 0.14.1 → 0.14.2
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 +4 -4
- package/README.md +1 -1
- package/assets/delete-failed-runner.lambda/index.js +44 -20
- package/assets/idle-runner-repear.lambda/index.js +44 -20
- package/assets/image-builders/aws-image-builder/versioner.lambda/index.js +28 -4
- package/assets/setup.lambda/index.js +16 -16
- package/assets/status.lambda/index.js +44 -20
- package/assets/token-retriever.lambda/index.js +44 -20
- package/assets/webhook-handler.lambda/index.js +44 -20
- package/lib/access.js +1 -1
- package/lib/image-builders/api.js +1 -1
- package/lib/image-builders/aws-image-builder/builder.js +1 -1
- package/lib/image-builders/aws-image-builder/deprecated/ami.js +1 -1
- package/lib/image-builders/aws-image-builder/deprecated/container.js +1 -1
- package/lib/image-builders/aws-image-builder/deprecated/linux-components.js +1 -1
- 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 +1 -1
- package/lib/image-builders/static.js +1 -1
- package/lib/providers/codebuild.js +2 -2
- package/lib/providers/common.js +3 -3
- package/lib/providers/ec2.js +2 -2
- package/lib/providers/ecs.js +1 -1
- package/lib/providers/fargate.js +2 -2
- package/lib/providers/lambda.js +2 -2
- package/lib/runner.js +1 -1
- package/lib/secrets.js +1 -1
- package/package.json +23 -22
|
@@ -364,6 +364,8 @@ var require_semver = __commonJS({
|
|
|
364
364
|
this.inc("patch", identifier, identifierBase);
|
|
365
365
|
this.inc("pre", identifier, identifierBase);
|
|
366
366
|
break;
|
|
367
|
+
// If the input is a non-prerelease version, this acts the same as
|
|
368
|
+
// prepatch.
|
|
367
369
|
case "prerelease":
|
|
368
370
|
if (this.prerelease.length === 0) {
|
|
369
371
|
this.inc("patch", identifier, identifierBase);
|
|
@@ -391,6 +393,8 @@ var require_semver = __commonJS({
|
|
|
391
393
|
}
|
|
392
394
|
this.prerelease = [];
|
|
393
395
|
break;
|
|
396
|
+
// This probably shouldn't be used publicly.
|
|
397
|
+
// 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
|
|
394
398
|
case "pre": {
|
|
395
399
|
const base = Number(identifierBase) ? 1 : 0;
|
|
396
400
|
if (!identifier && identifierBase === false) {
|
|
@@ -864,6 +868,7 @@ var require_lrucache = __commonJS({
|
|
|
864
868
|
var require_range = __commonJS({
|
|
865
869
|
"node_modules/semver/classes/range.js"(exports2, module2) {
|
|
866
870
|
"use strict";
|
|
871
|
+
var SPACE_CHARACTERS = /\s+/g;
|
|
867
872
|
var Range = class _Range {
|
|
868
873
|
constructor(range, options) {
|
|
869
874
|
options = parseOptions(options);
|
|
@@ -877,13 +882,13 @@ var require_range = __commonJS({
|
|
|
877
882
|
if (range instanceof Comparator) {
|
|
878
883
|
this.raw = range.value;
|
|
879
884
|
this.set = [[range]];
|
|
880
|
-
this.
|
|
885
|
+
this.formatted = void 0;
|
|
881
886
|
return this;
|
|
882
887
|
}
|
|
883
888
|
this.options = options;
|
|
884
889
|
this.loose = !!options.loose;
|
|
885
890
|
this.includePrerelease = !!options.includePrerelease;
|
|
886
|
-
this.raw = range.trim().
|
|
891
|
+
this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
|
|
887
892
|
this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
|
|
888
893
|
if (!this.set.length) {
|
|
889
894
|
throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
@@ -902,10 +907,27 @@ var require_range = __commonJS({
|
|
|
902
907
|
}
|
|
903
908
|
}
|
|
904
909
|
}
|
|
905
|
-
this.
|
|
910
|
+
this.formatted = void 0;
|
|
911
|
+
}
|
|
912
|
+
get range() {
|
|
913
|
+
if (this.formatted === void 0) {
|
|
914
|
+
this.formatted = "";
|
|
915
|
+
for (let i = 0; i < this.set.length; i++) {
|
|
916
|
+
if (i > 0) {
|
|
917
|
+
this.formatted += "||";
|
|
918
|
+
}
|
|
919
|
+
const comps = this.set[i];
|
|
920
|
+
for (let k = 0; k < comps.length; k++) {
|
|
921
|
+
if (k > 0) {
|
|
922
|
+
this.formatted += " ";
|
|
923
|
+
}
|
|
924
|
+
this.formatted += comps[k].toString().trim();
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
return this.formatted;
|
|
906
929
|
}
|
|
907
930
|
format() {
|
|
908
|
-
this.range = this.set.map((comps) => comps.join(" ").trim()).join("||").trim();
|
|
909
931
|
return this.range;
|
|
910
932
|
}
|
|
911
933
|
toString() {
|
|
@@ -1447,6 +1469,7 @@ var require_min_version = __commonJS({
|
|
|
1447
1469
|
compver.prerelease.push(0);
|
|
1448
1470
|
}
|
|
1449
1471
|
compver.raw = compver.format();
|
|
1472
|
+
/* fallthrough */
|
|
1450
1473
|
case "":
|
|
1451
1474
|
case ">=":
|
|
1452
1475
|
if (!setMin || gt(compver, setMin)) {
|
|
@@ -1456,6 +1479,7 @@ var require_min_version = __commonJS({
|
|
|
1456
1479
|
case "<":
|
|
1457
1480
|
case "<=":
|
|
1458
1481
|
break;
|
|
1482
|
+
/* istanbul ignore next */
|
|
1459
1483
|
default:
|
|
1460
1484
|
throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
1461
1485
|
}
|