construct-hub 0.4.408 → 0.4.410
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 +377 -88
- package/.node-version +1 -0
- package/lib/backend/catalog-builder/catalog-builder.js +2 -2
- package/lib/backend/deny-list/prune-handler.js +2 -2
- package/lib/backend/deny-list/prune-queue-handler.js +2 -2
- package/lib/backend/ecs-task-monitor/monitor.js +2 -2
- package/lib/backend/feed-builder/update-feed.js +2 -2
- package/lib/backend/ingestion/ingestion.js +2 -2
- package/lib/backend/ingestion/re-ingest.js +2 -2
- package/lib/backend/inventory/canary.js +2 -2
- package/lib/backend/inventory/package-versions-table-widget-function.js +2 -2
- package/lib/backend/orchestration/needs-catalog-update.js +2 -2
- package/lib/backend/orchestration/redrive-state-machine.js +2 -2
- package/lib/backend/package-stats/package-stats.js +2 -2
- package/lib/backend/release-notes/generate-release-notes.js +2 -2
- package/lib/backend/release-notes/get-messages-from-worker-queue.js +2 -2
- package/lib/backend/release-notes/release-notes-trigger.js +2 -2
- package/lib/backend/transliterator/transliterator.ecs-entrypoint.bundle/Dockerfile +3 -9
- package/lib/backend/version-tracker/version-tracker.js +2 -2
- package/lib/construct-hub.js +1 -1
- package/lib/monitored-certificate/certificate-monitor.js +2 -2
- package/lib/monitoring/http-get-function.js +2 -2
- package/lib/overview-dashboard/sqs-dlq-stats-widget-function.js +2 -2
- package/lib/package-sources/code-artifact.js +1 -1
- package/lib/package-sources/codeartifact/code-artifact-forwarder.js +2 -2
- package/lib/package-sources/npmjs/canary/npmjs-package-canary.js +2 -2
- package/lib/package-sources/npmjs/canary/npmjs-package-canary.lambda.bundle/index.js +30 -818
- package/lib/package-sources/npmjs/canary/npmjs-package-canary.lambda.bundle/index.js.map +4 -4
- package/lib/package-sources/npmjs/canary/npmjs-package-canary.lambda.js +8 -9
- package/lib/package-sources/npmjs/couch-changes.lambda-shared.js +10 -10
- package/lib/package-sources/npmjs/npm-js-follower.js +2 -2
- package/lib/package-sources/npmjs/npm-js-follower.lambda.bundle/index.js +41 -821
- package/lib/package-sources/npmjs/npm-js-follower.lambda.bundle/index.js.map +4 -4
- package/lib/package-sources/npmjs/npm-js-follower.lambda.js +2 -2
- package/lib/package-sources/npmjs/re-stage-package-version.js +2 -2
- package/lib/package-sources/npmjs/stage-and-notify.js +2 -2
- package/lib/package-sources/npmjs.js +1 -1
- package/lib/package-tag/index.js +3 -3
- package/lib/package-tag-group/index.js +2 -2
- package/lib/preload-file/index.js +1 -1
- package/lib/s3/storage.js +1 -1
- package/lib/spdx-license.js +1 -1
- package/package.json +8 -9
@@ -7856,7 +7856,7 @@ var init_jsonReplacer = __esm({
|
|
7856
7856
|
return value;
|
7857
7857
|
};
|
7858
7858
|
}
|
7859
|
-
replaceInJson(
|
7859
|
+
replaceInJson(json2) {
|
7860
7860
|
if (this.stage === 0) {
|
7861
7861
|
throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");
|
7862
7862
|
}
|
@@ -7865,12 +7865,12 @@ var init_jsonReplacer = __esm({
|
|
7865
7865
|
}
|
7866
7866
|
this.stage = 2;
|
7867
7867
|
if (this.counter === 0) {
|
7868
|
-
return
|
7868
|
+
return json2;
|
7869
7869
|
}
|
7870
7870
|
for (const [key, value] of this.values) {
|
7871
|
-
|
7871
|
+
json2 = json2.replace(key, value);
|
7872
7872
|
}
|
7873
|
-
return
|
7873
|
+
return json2;
|
7874
7874
|
}
|
7875
7875
|
};
|
7876
7876
|
}
|
@@ -13387,12 +13387,12 @@ var require_dist_cjs30 = __commonJS({
|
|
13387
13387
|
var index_exports = {};
|
13388
13388
|
__export2(index_exports, {
|
13389
13389
|
build: () => build,
|
13390
|
-
parse: () =>
|
13390
|
+
parse: () => parse2,
|
13391
13391
|
validate: () => validate2
|
13392
13392
|
});
|
13393
13393
|
module2.exports = __toCommonJS2(index_exports);
|
13394
13394
|
var validate2 = /* @__PURE__ */ __name((str) => typeof str === "string" && str.indexOf("arn:") === 0 && str.split(":").length >= 6, "validate");
|
13395
|
-
var
|
13395
|
+
var parse2 = /* @__PURE__ */ __name((arn) => {
|
13396
13396
|
const segments = arn.split(":");
|
13397
13397
|
if (segments.length < 6 || segments[0] !== "arn") throw new Error("Malformed ARN");
|
13398
13398
|
const [
|
@@ -38295,786 +38295,6 @@ var require_lib = __commonJS({
|
|
38295
38295
|
}
|
38296
38296
|
});
|
38297
38297
|
|
38298
|
-
// node_modules/jsonparse/jsonparse.js
|
38299
|
-
var require_jsonparse = __commonJS({
|
38300
|
-
"node_modules/jsonparse/jsonparse.js"(exports2, module2) {
|
38301
|
-
"use strict";
|
38302
|
-
var C2 = {};
|
38303
|
-
var LEFT_BRACE = C2.LEFT_BRACE = 1;
|
38304
|
-
var RIGHT_BRACE = C2.RIGHT_BRACE = 2;
|
38305
|
-
var LEFT_BRACKET = C2.LEFT_BRACKET = 3;
|
38306
|
-
var RIGHT_BRACKET = C2.RIGHT_BRACKET = 4;
|
38307
|
-
var COLON = C2.COLON = 5;
|
38308
|
-
var COMMA = C2.COMMA = 6;
|
38309
|
-
var TRUE = C2.TRUE = 7;
|
38310
|
-
var FALSE = C2.FALSE = 8;
|
38311
|
-
var NULL = C2.NULL = 9;
|
38312
|
-
var STRING = C2.STRING = 10;
|
38313
|
-
var NUMBER = C2.NUMBER = 11;
|
38314
|
-
var START = C2.START = 17;
|
38315
|
-
var STOP = C2.STOP = 18;
|
38316
|
-
var TRUE1 = C2.TRUE1 = 33;
|
38317
|
-
var TRUE2 = C2.TRUE2 = 34;
|
38318
|
-
var TRUE3 = C2.TRUE3 = 35;
|
38319
|
-
var FALSE1 = C2.FALSE1 = 49;
|
38320
|
-
var FALSE2 = C2.FALSE2 = 50;
|
38321
|
-
var FALSE3 = C2.FALSE3 = 51;
|
38322
|
-
var FALSE4 = C2.FALSE4 = 52;
|
38323
|
-
var NULL1 = C2.NULL1 = 65;
|
38324
|
-
var NULL2 = C2.NULL2 = 66;
|
38325
|
-
var NULL3 = C2.NULL3 = 67;
|
38326
|
-
var NUMBER1 = C2.NUMBER1 = 81;
|
38327
|
-
var NUMBER3 = C2.NUMBER3 = 83;
|
38328
|
-
var STRING1 = C2.STRING1 = 97;
|
38329
|
-
var STRING2 = C2.STRING2 = 98;
|
38330
|
-
var STRING3 = C2.STRING3 = 99;
|
38331
|
-
var STRING4 = C2.STRING4 = 100;
|
38332
|
-
var STRING5 = C2.STRING5 = 101;
|
38333
|
-
var STRING6 = C2.STRING6 = 102;
|
38334
|
-
var VALUE = C2.VALUE = 113;
|
38335
|
-
var KEY = C2.KEY = 114;
|
38336
|
-
var OBJECT = C2.OBJECT = 129;
|
38337
|
-
var ARRAY = C2.ARRAY = 130;
|
38338
|
-
var BACK_SLASH = "\\".charCodeAt(0);
|
38339
|
-
var FORWARD_SLASH = "/".charCodeAt(0);
|
38340
|
-
var BACKSPACE = "\b".charCodeAt(0);
|
38341
|
-
var FORM_FEED = "\f".charCodeAt(0);
|
38342
|
-
var NEWLINE = "\n".charCodeAt(0);
|
38343
|
-
var CARRIAGE_RETURN = "\r".charCodeAt(0);
|
38344
|
-
var TAB = " ".charCodeAt(0);
|
38345
|
-
var STRING_BUFFER_SIZE = 64 * 1024;
|
38346
|
-
function Parser() {
|
38347
|
-
this.tState = START;
|
38348
|
-
this.value = void 0;
|
38349
|
-
this.string = void 0;
|
38350
|
-
this.stringBuffer = Buffer.alloc ? Buffer.alloc(STRING_BUFFER_SIZE) : new Buffer(STRING_BUFFER_SIZE);
|
38351
|
-
this.stringBufferOffset = 0;
|
38352
|
-
this.unicode = void 0;
|
38353
|
-
this.highSurrogate = void 0;
|
38354
|
-
this.key = void 0;
|
38355
|
-
this.mode = void 0;
|
38356
|
-
this.stack = [];
|
38357
|
-
this.state = VALUE;
|
38358
|
-
this.bytes_remaining = 0;
|
38359
|
-
this.bytes_in_sequence = 0;
|
38360
|
-
this.temp_buffs = { "2": new Buffer(2), "3": new Buffer(3), "4": new Buffer(4) };
|
38361
|
-
this.offset = -1;
|
38362
|
-
}
|
38363
|
-
Parser.toknam = function(code) {
|
38364
|
-
var keys = Object.keys(C2);
|
38365
|
-
for (var i3 = 0, l3 = keys.length; i3 < l3; i3++) {
|
38366
|
-
var key = keys[i3];
|
38367
|
-
if (C2[key] === code) {
|
38368
|
-
return key;
|
38369
|
-
}
|
38370
|
-
}
|
38371
|
-
return code && "0x" + code.toString(16);
|
38372
|
-
};
|
38373
|
-
var proto = Parser.prototype;
|
38374
|
-
proto.onError = function(err) {
|
38375
|
-
throw err;
|
38376
|
-
};
|
38377
|
-
proto.charError = function(buffer, i3) {
|
38378
|
-
this.tState = STOP;
|
38379
|
-
this.onError(new Error("Unexpected " + JSON.stringify(String.fromCharCode(buffer[i3])) + " at position " + i3 + " in state " + Parser.toknam(this.tState)));
|
38380
|
-
};
|
38381
|
-
proto.appendStringChar = function(char) {
|
38382
|
-
if (this.stringBufferOffset >= STRING_BUFFER_SIZE) {
|
38383
|
-
this.string += this.stringBuffer.toString("utf8");
|
38384
|
-
this.stringBufferOffset = 0;
|
38385
|
-
}
|
38386
|
-
this.stringBuffer[this.stringBufferOffset++] = char;
|
38387
|
-
};
|
38388
|
-
proto.appendStringBuf = function(buf, start, end) {
|
38389
|
-
var size = buf.length;
|
38390
|
-
if (typeof start === "number") {
|
38391
|
-
if (typeof end === "number") {
|
38392
|
-
if (end < 0) {
|
38393
|
-
size = buf.length - start + end;
|
38394
|
-
} else {
|
38395
|
-
size = end - start;
|
38396
|
-
}
|
38397
|
-
} else {
|
38398
|
-
size = buf.length - start;
|
38399
|
-
}
|
38400
|
-
}
|
38401
|
-
if (size < 0) {
|
38402
|
-
size = 0;
|
38403
|
-
}
|
38404
|
-
if (this.stringBufferOffset + size > STRING_BUFFER_SIZE) {
|
38405
|
-
this.string += this.stringBuffer.toString("utf8", 0, this.stringBufferOffset);
|
38406
|
-
this.stringBufferOffset = 0;
|
38407
|
-
}
|
38408
|
-
buf.copy(this.stringBuffer, this.stringBufferOffset, start, end);
|
38409
|
-
this.stringBufferOffset += size;
|
38410
|
-
};
|
38411
|
-
proto.write = function(buffer) {
|
38412
|
-
if (typeof buffer === "string") buffer = new Buffer(buffer);
|
38413
|
-
var n3;
|
38414
|
-
for (var i3 = 0, l3 = buffer.length; i3 < l3; i3++) {
|
38415
|
-
if (this.tState === START) {
|
38416
|
-
n3 = buffer[i3];
|
38417
|
-
this.offset++;
|
38418
|
-
if (n3 === 123) {
|
38419
|
-
this.onToken(LEFT_BRACE, "{");
|
38420
|
-
} else if (n3 === 125) {
|
38421
|
-
this.onToken(RIGHT_BRACE, "}");
|
38422
|
-
} else if (n3 === 91) {
|
38423
|
-
this.onToken(LEFT_BRACKET, "[");
|
38424
|
-
} else if (n3 === 93) {
|
38425
|
-
this.onToken(RIGHT_BRACKET, "]");
|
38426
|
-
} else if (n3 === 58) {
|
38427
|
-
this.onToken(COLON, ":");
|
38428
|
-
} else if (n3 === 44) {
|
38429
|
-
this.onToken(COMMA, ",");
|
38430
|
-
} else if (n3 === 116) {
|
38431
|
-
this.tState = TRUE1;
|
38432
|
-
} else if (n3 === 102) {
|
38433
|
-
this.tState = FALSE1;
|
38434
|
-
} else if (n3 === 110) {
|
38435
|
-
this.tState = NULL1;
|
38436
|
-
} else if (n3 === 34) {
|
38437
|
-
this.string = "";
|
38438
|
-
this.stringBufferOffset = 0;
|
38439
|
-
this.tState = STRING1;
|
38440
|
-
} else if (n3 === 45) {
|
38441
|
-
this.string = "-";
|
38442
|
-
this.tState = NUMBER1;
|
38443
|
-
} else {
|
38444
|
-
if (n3 >= 48 && n3 < 64) {
|
38445
|
-
this.string = String.fromCharCode(n3);
|
38446
|
-
this.tState = NUMBER3;
|
38447
|
-
} else if (n3 === 32 || n3 === 9 || n3 === 10 || n3 === 13) {
|
38448
|
-
} else {
|
38449
|
-
return this.charError(buffer, i3);
|
38450
|
-
}
|
38451
|
-
}
|
38452
|
-
} else if (this.tState === STRING1) {
|
38453
|
-
n3 = buffer[i3];
|
38454
|
-
if (this.bytes_remaining > 0) {
|
38455
|
-
for (var j3 = 0; j3 < this.bytes_remaining; j3++) {
|
38456
|
-
this.temp_buffs[this.bytes_in_sequence][this.bytes_in_sequence - this.bytes_remaining + j3] = buffer[j3];
|
38457
|
-
}
|
38458
|
-
this.appendStringBuf(this.temp_buffs[this.bytes_in_sequence]);
|
38459
|
-
this.bytes_in_sequence = this.bytes_remaining = 0;
|
38460
|
-
i3 = i3 + j3 - 1;
|
38461
|
-
} else if (this.bytes_remaining === 0 && n3 >= 128) {
|
38462
|
-
if (n3 <= 193 || n3 > 244) {
|
38463
|
-
return this.onError(new Error("Invalid UTF-8 character at position " + i3 + " in state " + Parser.toknam(this.tState)));
|
38464
|
-
}
|
38465
|
-
if (n3 >= 194 && n3 <= 223) this.bytes_in_sequence = 2;
|
38466
|
-
if (n3 >= 224 && n3 <= 239) this.bytes_in_sequence = 3;
|
38467
|
-
if (n3 >= 240 && n3 <= 244) this.bytes_in_sequence = 4;
|
38468
|
-
if (this.bytes_in_sequence + i3 > buffer.length) {
|
38469
|
-
for (var k3 = 0; k3 <= buffer.length - 1 - i3; k3++) {
|
38470
|
-
this.temp_buffs[this.bytes_in_sequence][k3] = buffer[i3 + k3];
|
38471
|
-
}
|
38472
|
-
this.bytes_remaining = i3 + this.bytes_in_sequence - buffer.length;
|
38473
|
-
i3 = buffer.length - 1;
|
38474
|
-
} else {
|
38475
|
-
this.appendStringBuf(buffer, i3, i3 + this.bytes_in_sequence);
|
38476
|
-
i3 = i3 + this.bytes_in_sequence - 1;
|
38477
|
-
}
|
38478
|
-
} else if (n3 === 34) {
|
38479
|
-
this.tState = START;
|
38480
|
-
this.string += this.stringBuffer.toString("utf8", 0, this.stringBufferOffset);
|
38481
|
-
this.stringBufferOffset = 0;
|
38482
|
-
this.onToken(STRING, this.string);
|
38483
|
-
this.offset += Buffer.byteLength(this.string, "utf8") + 1;
|
38484
|
-
this.string = void 0;
|
38485
|
-
} else if (n3 === 92) {
|
38486
|
-
this.tState = STRING2;
|
38487
|
-
} else if (n3 >= 32) {
|
38488
|
-
this.appendStringChar(n3);
|
38489
|
-
} else {
|
38490
|
-
return this.charError(buffer, i3);
|
38491
|
-
}
|
38492
|
-
} else if (this.tState === STRING2) {
|
38493
|
-
n3 = buffer[i3];
|
38494
|
-
if (n3 === 34) {
|
38495
|
-
this.appendStringChar(n3);
|
38496
|
-
this.tState = STRING1;
|
38497
|
-
} else if (n3 === 92) {
|
38498
|
-
this.appendStringChar(BACK_SLASH);
|
38499
|
-
this.tState = STRING1;
|
38500
|
-
} else if (n3 === 47) {
|
38501
|
-
this.appendStringChar(FORWARD_SLASH);
|
38502
|
-
this.tState = STRING1;
|
38503
|
-
} else if (n3 === 98) {
|
38504
|
-
this.appendStringChar(BACKSPACE);
|
38505
|
-
this.tState = STRING1;
|
38506
|
-
} else if (n3 === 102) {
|
38507
|
-
this.appendStringChar(FORM_FEED);
|
38508
|
-
this.tState = STRING1;
|
38509
|
-
} else if (n3 === 110) {
|
38510
|
-
this.appendStringChar(NEWLINE);
|
38511
|
-
this.tState = STRING1;
|
38512
|
-
} else if (n3 === 114) {
|
38513
|
-
this.appendStringChar(CARRIAGE_RETURN);
|
38514
|
-
this.tState = STRING1;
|
38515
|
-
} else if (n3 === 116) {
|
38516
|
-
this.appendStringChar(TAB);
|
38517
|
-
this.tState = STRING1;
|
38518
|
-
} else if (n3 === 117) {
|
38519
|
-
this.unicode = "";
|
38520
|
-
this.tState = STRING3;
|
38521
|
-
} else {
|
38522
|
-
return this.charError(buffer, i3);
|
38523
|
-
}
|
38524
|
-
} else if (this.tState === STRING3 || this.tState === STRING4 || this.tState === STRING5 || this.tState === STRING6) {
|
38525
|
-
n3 = buffer[i3];
|
38526
|
-
if (n3 >= 48 && n3 < 64 || n3 > 64 && n3 <= 70 || n3 > 96 && n3 <= 102) {
|
38527
|
-
this.unicode += String.fromCharCode(n3);
|
38528
|
-
if (this.tState++ === STRING6) {
|
38529
|
-
var intVal = parseInt(this.unicode, 16);
|
38530
|
-
this.unicode = void 0;
|
38531
|
-
if (this.highSurrogate !== void 0 && intVal >= 56320 && intVal < 57343 + 1) {
|
38532
|
-
this.appendStringBuf(new Buffer(String.fromCharCode(this.highSurrogate, intVal)));
|
38533
|
-
this.highSurrogate = void 0;
|
38534
|
-
} else if (this.highSurrogate === void 0 && intVal >= 55296 && intVal < 56319 + 1) {
|
38535
|
-
this.highSurrogate = intVal;
|
38536
|
-
} else {
|
38537
|
-
if (this.highSurrogate !== void 0) {
|
38538
|
-
this.appendStringBuf(new Buffer(String.fromCharCode(this.highSurrogate)));
|
38539
|
-
this.highSurrogate = void 0;
|
38540
|
-
}
|
38541
|
-
this.appendStringBuf(new Buffer(String.fromCharCode(intVal)));
|
38542
|
-
}
|
38543
|
-
this.tState = STRING1;
|
38544
|
-
}
|
38545
|
-
} else {
|
38546
|
-
return this.charError(buffer, i3);
|
38547
|
-
}
|
38548
|
-
} else if (this.tState === NUMBER1 || this.tState === NUMBER3) {
|
38549
|
-
n3 = buffer[i3];
|
38550
|
-
switch (n3) {
|
38551
|
-
case 48:
|
38552
|
-
// 0
|
38553
|
-
case 49:
|
38554
|
-
// 1
|
38555
|
-
case 50:
|
38556
|
-
// 2
|
38557
|
-
case 51:
|
38558
|
-
// 3
|
38559
|
-
case 52:
|
38560
|
-
// 4
|
38561
|
-
case 53:
|
38562
|
-
// 5
|
38563
|
-
case 54:
|
38564
|
-
// 6
|
38565
|
-
case 55:
|
38566
|
-
// 7
|
38567
|
-
case 56:
|
38568
|
-
// 8
|
38569
|
-
case 57:
|
38570
|
-
// 9
|
38571
|
-
case 46:
|
38572
|
-
// .
|
38573
|
-
case 101:
|
38574
|
-
// e
|
38575
|
-
case 69:
|
38576
|
-
// E
|
38577
|
-
case 43:
|
38578
|
-
// +
|
38579
|
-
case 45:
|
38580
|
-
this.string += String.fromCharCode(n3);
|
38581
|
-
this.tState = NUMBER3;
|
38582
|
-
break;
|
38583
|
-
default:
|
38584
|
-
this.tState = START;
|
38585
|
-
var result = Number(this.string);
|
38586
|
-
if (isNaN(result)) {
|
38587
|
-
return this.charError(buffer, i3);
|
38588
|
-
}
|
38589
|
-
if (this.string.match(/[0-9]+/) == this.string && result.toString() != this.string) {
|
38590
|
-
this.onToken(STRING, this.string);
|
38591
|
-
} else {
|
38592
|
-
this.onToken(NUMBER, result);
|
38593
|
-
}
|
38594
|
-
this.offset += this.string.length - 1;
|
38595
|
-
this.string = void 0;
|
38596
|
-
i3--;
|
38597
|
-
break;
|
38598
|
-
}
|
38599
|
-
} else if (this.tState === TRUE1) {
|
38600
|
-
if (buffer[i3] === 114) {
|
38601
|
-
this.tState = TRUE2;
|
38602
|
-
} else {
|
38603
|
-
return this.charError(buffer, i3);
|
38604
|
-
}
|
38605
|
-
} else if (this.tState === TRUE2) {
|
38606
|
-
if (buffer[i3] === 117) {
|
38607
|
-
this.tState = TRUE3;
|
38608
|
-
} else {
|
38609
|
-
return this.charError(buffer, i3);
|
38610
|
-
}
|
38611
|
-
} else if (this.tState === TRUE3) {
|
38612
|
-
if (buffer[i3] === 101) {
|
38613
|
-
this.tState = START;
|
38614
|
-
this.onToken(TRUE, true);
|
38615
|
-
this.offset += 3;
|
38616
|
-
} else {
|
38617
|
-
return this.charError(buffer, i3);
|
38618
|
-
}
|
38619
|
-
} else if (this.tState === FALSE1) {
|
38620
|
-
if (buffer[i3] === 97) {
|
38621
|
-
this.tState = FALSE2;
|
38622
|
-
} else {
|
38623
|
-
return this.charError(buffer, i3);
|
38624
|
-
}
|
38625
|
-
} else if (this.tState === FALSE2) {
|
38626
|
-
if (buffer[i3] === 108) {
|
38627
|
-
this.tState = FALSE3;
|
38628
|
-
} else {
|
38629
|
-
return this.charError(buffer, i3);
|
38630
|
-
}
|
38631
|
-
} else if (this.tState === FALSE3) {
|
38632
|
-
if (buffer[i3] === 115) {
|
38633
|
-
this.tState = FALSE4;
|
38634
|
-
} else {
|
38635
|
-
return this.charError(buffer, i3);
|
38636
|
-
}
|
38637
|
-
} else if (this.tState === FALSE4) {
|
38638
|
-
if (buffer[i3] === 101) {
|
38639
|
-
this.tState = START;
|
38640
|
-
this.onToken(FALSE, false);
|
38641
|
-
this.offset += 4;
|
38642
|
-
} else {
|
38643
|
-
return this.charError(buffer, i3);
|
38644
|
-
}
|
38645
|
-
} else if (this.tState === NULL1) {
|
38646
|
-
if (buffer[i3] === 117) {
|
38647
|
-
this.tState = NULL2;
|
38648
|
-
} else {
|
38649
|
-
return this.charError(buffer, i3);
|
38650
|
-
}
|
38651
|
-
} else if (this.tState === NULL2) {
|
38652
|
-
if (buffer[i3] === 108) {
|
38653
|
-
this.tState = NULL3;
|
38654
|
-
} else {
|
38655
|
-
return this.charError(buffer, i3);
|
38656
|
-
}
|
38657
|
-
} else if (this.tState === NULL3) {
|
38658
|
-
if (buffer[i3] === 108) {
|
38659
|
-
this.tState = START;
|
38660
|
-
this.onToken(NULL, null);
|
38661
|
-
this.offset += 3;
|
38662
|
-
} else {
|
38663
|
-
return this.charError(buffer, i3);
|
38664
|
-
}
|
38665
|
-
}
|
38666
|
-
}
|
38667
|
-
};
|
38668
|
-
proto.onToken = function(token, value) {
|
38669
|
-
};
|
38670
|
-
proto.parseError = function(token, value) {
|
38671
|
-
this.tState = STOP;
|
38672
|
-
this.onError(new Error("Unexpected " + Parser.toknam(token) + (value ? "(" + JSON.stringify(value) + ")" : "") + " in state " + Parser.toknam(this.state)));
|
38673
|
-
};
|
38674
|
-
proto.push = function() {
|
38675
|
-
this.stack.push({ value: this.value, key: this.key, mode: this.mode });
|
38676
|
-
};
|
38677
|
-
proto.pop = function() {
|
38678
|
-
var value = this.value;
|
38679
|
-
var parent = this.stack.pop();
|
38680
|
-
this.value = parent.value;
|
38681
|
-
this.key = parent.key;
|
38682
|
-
this.mode = parent.mode;
|
38683
|
-
this.emit(value);
|
38684
|
-
if (!this.mode) {
|
38685
|
-
this.state = VALUE;
|
38686
|
-
}
|
38687
|
-
};
|
38688
|
-
proto.emit = function(value) {
|
38689
|
-
if (this.mode) {
|
38690
|
-
this.state = COMMA;
|
38691
|
-
}
|
38692
|
-
this.onValue(value);
|
38693
|
-
};
|
38694
|
-
proto.onValue = function(value) {
|
38695
|
-
};
|
38696
|
-
proto.onToken = function(token, value) {
|
38697
|
-
if (this.state === VALUE) {
|
38698
|
-
if (token === STRING || token === NUMBER || token === TRUE || token === FALSE || token === NULL) {
|
38699
|
-
if (this.value) {
|
38700
|
-
this.value[this.key] = value;
|
38701
|
-
}
|
38702
|
-
this.emit(value);
|
38703
|
-
} else if (token === LEFT_BRACE) {
|
38704
|
-
this.push();
|
38705
|
-
if (this.value) {
|
38706
|
-
this.value = this.value[this.key] = {};
|
38707
|
-
} else {
|
38708
|
-
this.value = {};
|
38709
|
-
}
|
38710
|
-
this.key = void 0;
|
38711
|
-
this.state = KEY;
|
38712
|
-
this.mode = OBJECT;
|
38713
|
-
} else if (token === LEFT_BRACKET) {
|
38714
|
-
this.push();
|
38715
|
-
if (this.value) {
|
38716
|
-
this.value = this.value[this.key] = [];
|
38717
|
-
} else {
|
38718
|
-
this.value = [];
|
38719
|
-
}
|
38720
|
-
this.key = 0;
|
38721
|
-
this.mode = ARRAY;
|
38722
|
-
this.state = VALUE;
|
38723
|
-
} else if (token === RIGHT_BRACE) {
|
38724
|
-
if (this.mode === OBJECT) {
|
38725
|
-
this.pop();
|
38726
|
-
} else {
|
38727
|
-
return this.parseError(token, value);
|
38728
|
-
}
|
38729
|
-
} else if (token === RIGHT_BRACKET) {
|
38730
|
-
if (this.mode === ARRAY) {
|
38731
|
-
this.pop();
|
38732
|
-
} else {
|
38733
|
-
return this.parseError(token, value);
|
38734
|
-
}
|
38735
|
-
} else {
|
38736
|
-
return this.parseError(token, value);
|
38737
|
-
}
|
38738
|
-
} else if (this.state === KEY) {
|
38739
|
-
if (token === STRING) {
|
38740
|
-
this.key = value;
|
38741
|
-
this.state = COLON;
|
38742
|
-
} else if (token === RIGHT_BRACE) {
|
38743
|
-
this.pop();
|
38744
|
-
} else {
|
38745
|
-
return this.parseError(token, value);
|
38746
|
-
}
|
38747
|
-
} else if (this.state === COLON) {
|
38748
|
-
if (token === COLON) {
|
38749
|
-
this.state = VALUE;
|
38750
|
-
} else {
|
38751
|
-
return this.parseError(token, value);
|
38752
|
-
}
|
38753
|
-
} else if (this.state === COMMA) {
|
38754
|
-
if (token === COMMA) {
|
38755
|
-
if (this.mode === ARRAY) {
|
38756
|
-
this.key++;
|
38757
|
-
this.state = VALUE;
|
38758
|
-
} else if (this.mode === OBJECT) {
|
38759
|
-
this.state = KEY;
|
38760
|
-
}
|
38761
|
-
} else if (token === RIGHT_BRACKET && this.mode === ARRAY || token === RIGHT_BRACE && this.mode === OBJECT) {
|
38762
|
-
this.pop();
|
38763
|
-
} else {
|
38764
|
-
return this.parseError(token, value);
|
38765
|
-
}
|
38766
|
-
} else {
|
38767
|
-
return this.parseError(token, value);
|
38768
|
-
}
|
38769
|
-
};
|
38770
|
-
Parser.C = C2;
|
38771
|
-
module2.exports = Parser;
|
38772
|
-
}
|
38773
|
-
});
|
38774
|
-
|
38775
|
-
// node_modules/through/index.js
|
38776
|
-
var require_through = __commonJS({
|
38777
|
-
"node_modules/through/index.js"(exports2, module2) {
|
38778
|
-
"use strict";
|
38779
|
-
var Stream = require("stream");
|
38780
|
-
exports2 = module2.exports = through;
|
38781
|
-
through.through = through;
|
38782
|
-
function through(write, end, opts) {
|
38783
|
-
write = write || function(data) {
|
38784
|
-
this.queue(data);
|
38785
|
-
};
|
38786
|
-
end = end || function() {
|
38787
|
-
this.queue(null);
|
38788
|
-
};
|
38789
|
-
var ended = false, destroyed = false, buffer = [], _ended = false;
|
38790
|
-
var stream = new Stream();
|
38791
|
-
stream.readable = stream.writable = true;
|
38792
|
-
stream.paused = false;
|
38793
|
-
stream.autoDestroy = !(opts && opts.autoDestroy === false);
|
38794
|
-
stream.write = function(data) {
|
38795
|
-
write.call(this, data);
|
38796
|
-
return !stream.paused;
|
38797
|
-
};
|
38798
|
-
function drain() {
|
38799
|
-
while (buffer.length && !stream.paused) {
|
38800
|
-
var data = buffer.shift();
|
38801
|
-
if (null === data)
|
38802
|
-
return stream.emit("end");
|
38803
|
-
else
|
38804
|
-
stream.emit("data", data);
|
38805
|
-
}
|
38806
|
-
}
|
38807
|
-
stream.queue = stream.push = function(data) {
|
38808
|
-
if (_ended) return stream;
|
38809
|
-
if (data === null) _ended = true;
|
38810
|
-
buffer.push(data);
|
38811
|
-
drain();
|
38812
|
-
return stream;
|
38813
|
-
};
|
38814
|
-
stream.on("end", function() {
|
38815
|
-
stream.readable = false;
|
38816
|
-
if (!stream.writable && stream.autoDestroy)
|
38817
|
-
process.nextTick(function() {
|
38818
|
-
stream.destroy();
|
38819
|
-
});
|
38820
|
-
});
|
38821
|
-
function _end() {
|
38822
|
-
stream.writable = false;
|
38823
|
-
end.call(stream);
|
38824
|
-
if (!stream.readable && stream.autoDestroy)
|
38825
|
-
stream.destroy();
|
38826
|
-
}
|
38827
|
-
stream.end = function(data) {
|
38828
|
-
if (ended) return;
|
38829
|
-
ended = true;
|
38830
|
-
if (arguments.length) stream.write(data);
|
38831
|
-
_end();
|
38832
|
-
return stream;
|
38833
|
-
};
|
38834
|
-
stream.destroy = function() {
|
38835
|
-
if (destroyed) return;
|
38836
|
-
destroyed = true;
|
38837
|
-
ended = true;
|
38838
|
-
buffer.length = 0;
|
38839
|
-
stream.writable = stream.readable = false;
|
38840
|
-
stream.emit("close");
|
38841
|
-
return stream;
|
38842
|
-
};
|
38843
|
-
stream.pause = function() {
|
38844
|
-
if (stream.paused) return;
|
38845
|
-
stream.paused = true;
|
38846
|
-
return stream;
|
38847
|
-
};
|
38848
|
-
stream.resume = function() {
|
38849
|
-
if (stream.paused) {
|
38850
|
-
stream.paused = false;
|
38851
|
-
stream.emit("resume");
|
38852
|
-
}
|
38853
|
-
drain();
|
38854
|
-
if (!stream.paused)
|
38855
|
-
stream.emit("drain");
|
38856
|
-
return stream;
|
38857
|
-
};
|
38858
|
-
return stream;
|
38859
|
-
}
|
38860
|
-
}
|
38861
|
-
});
|
38862
|
-
|
38863
|
-
// node_modules/JSONStream/index.js
|
38864
|
-
var require_JSONStream = __commonJS({
|
38865
|
-
"node_modules/JSONStream/index.js"(exports2) {
|
38866
|
-
"use strict";
|
38867
|
-
var Parser = require_jsonparse();
|
38868
|
-
var through = require_through();
|
38869
|
-
var bufferFrom = Buffer.from && Buffer.from !== Uint8Array.from;
|
38870
|
-
exports2.parse = function(path, map2) {
|
38871
|
-
var header, footer;
|
38872
|
-
var parser = new Parser();
|
38873
|
-
var stream = through(
|
38874
|
-
function(chunk) {
|
38875
|
-
if ("string" === typeof chunk)
|
38876
|
-
chunk = bufferFrom ? Buffer.from(chunk) : new Buffer(chunk);
|
38877
|
-
parser.write(chunk);
|
38878
|
-
},
|
38879
|
-
function(data) {
|
38880
|
-
if (data)
|
38881
|
-
stream.write(data);
|
38882
|
-
if (header)
|
38883
|
-
stream.emit("header", header);
|
38884
|
-
if (footer)
|
38885
|
-
stream.emit("footer", footer);
|
38886
|
-
stream.queue(null);
|
38887
|
-
}
|
38888
|
-
);
|
38889
|
-
if ("string" === typeof path)
|
38890
|
-
path = path.split(".").map(function(e3) {
|
38891
|
-
if (e3 === "$*")
|
38892
|
-
return { emitKey: true };
|
38893
|
-
else if (e3 === "*")
|
38894
|
-
return true;
|
38895
|
-
else if (e3 === "")
|
38896
|
-
return { recurse: true };
|
38897
|
-
else
|
38898
|
-
return e3;
|
38899
|
-
});
|
38900
|
-
var count = 0, _key;
|
38901
|
-
if (!path || !path.length)
|
38902
|
-
path = null;
|
38903
|
-
parser.onValue = function(value) {
|
38904
|
-
if (!this.root)
|
38905
|
-
stream.root = value;
|
38906
|
-
if (!path) return;
|
38907
|
-
var i3 = 0;
|
38908
|
-
var j3 = 0;
|
38909
|
-
var emitKey = false;
|
38910
|
-
var emitPath = false;
|
38911
|
-
while (i3 < path.length) {
|
38912
|
-
var key = path[i3];
|
38913
|
-
var c3;
|
38914
|
-
j3++;
|
38915
|
-
if (key && !key.recurse) {
|
38916
|
-
c3 = j3 === this.stack.length ? this : this.stack[j3];
|
38917
|
-
if (!c3) return;
|
38918
|
-
if (!check(key, c3.key)) {
|
38919
|
-
setHeaderFooter(c3.key, value);
|
38920
|
-
return;
|
38921
|
-
}
|
38922
|
-
emitKey = !!key.emitKey;
|
38923
|
-
emitPath = !!key.emitPath;
|
38924
|
-
i3++;
|
38925
|
-
} else {
|
38926
|
-
i3++;
|
38927
|
-
var nextKey = path[i3];
|
38928
|
-
if (!nextKey) return;
|
38929
|
-
while (true) {
|
38930
|
-
c3 = j3 === this.stack.length ? this : this.stack[j3];
|
38931
|
-
if (!c3) return;
|
38932
|
-
if (check(nextKey, c3.key)) {
|
38933
|
-
i3++;
|
38934
|
-
if (!Object.isFrozen(this.stack[j3]))
|
38935
|
-
this.stack[j3].value = null;
|
38936
|
-
break;
|
38937
|
-
} else {
|
38938
|
-
setHeaderFooter(c3.key, value);
|
38939
|
-
}
|
38940
|
-
j3++;
|
38941
|
-
}
|
38942
|
-
}
|
38943
|
-
}
|
38944
|
-
if (header) {
|
38945
|
-
stream.emit("header", header);
|
38946
|
-
header = false;
|
38947
|
-
}
|
38948
|
-
if (j3 !== this.stack.length) return;
|
38949
|
-
count++;
|
38950
|
-
var actualPath = this.stack.slice(1).map(function(element) {
|
38951
|
-
return element.key;
|
38952
|
-
}).concat([this.key]);
|
38953
|
-
var data = value;
|
38954
|
-
if (null != data) {
|
38955
|
-
if (null != (data = map2 ? map2(data, actualPath) : data)) {
|
38956
|
-
if (emitKey || emitPath) {
|
38957
|
-
data = { value: data };
|
38958
|
-
if (emitKey)
|
38959
|
-
data["key"] = this.key;
|
38960
|
-
if (emitPath)
|
38961
|
-
data["path"] = actualPath;
|
38962
|
-
}
|
38963
|
-
stream.queue(data);
|
38964
|
-
}
|
38965
|
-
}
|
38966
|
-
if (this.value) delete this.value[this.key];
|
38967
|
-
for (var k3 in this.stack)
|
38968
|
-
if (!Object.isFrozen(this.stack[k3]))
|
38969
|
-
this.stack[k3].value = null;
|
38970
|
-
};
|
38971
|
-
parser._onToken = parser.onToken;
|
38972
|
-
parser.onToken = function(token, value) {
|
38973
|
-
parser._onToken(token, value);
|
38974
|
-
if (this.stack.length === 0) {
|
38975
|
-
if (stream.root) {
|
38976
|
-
if (!path)
|
38977
|
-
stream.queue(stream.root);
|
38978
|
-
count = 0;
|
38979
|
-
stream.root = null;
|
38980
|
-
}
|
38981
|
-
}
|
38982
|
-
};
|
38983
|
-
parser.onError = function(err) {
|
38984
|
-
if (err.message.indexOf("at position") > -1)
|
38985
|
-
err.message = "Invalid JSON (" + err.message + ")";
|
38986
|
-
stream.emit("error", err);
|
38987
|
-
};
|
38988
|
-
return stream;
|
38989
|
-
function setHeaderFooter(key, value) {
|
38990
|
-
if (header !== false) {
|
38991
|
-
header = header || {};
|
38992
|
-
header[key] = value;
|
38993
|
-
}
|
38994
|
-
if (footer !== false && header === false) {
|
38995
|
-
footer = footer || {};
|
38996
|
-
footer[key] = value;
|
38997
|
-
}
|
38998
|
-
}
|
38999
|
-
};
|
39000
|
-
function check(x3, y2) {
|
39001
|
-
if ("string" === typeof x3)
|
39002
|
-
return y2 == x3;
|
39003
|
-
else if (x3 && "function" === typeof x3.exec)
|
39004
|
-
return x3.exec(y2);
|
39005
|
-
else if ("boolean" === typeof x3 || "object" === typeof x3)
|
39006
|
-
return x3;
|
39007
|
-
else if ("function" === typeof x3)
|
39008
|
-
return x3(y2);
|
39009
|
-
return false;
|
39010
|
-
}
|
39011
|
-
exports2.stringify = function(op, sep, cl, indent) {
|
39012
|
-
indent = indent || 0;
|
39013
|
-
if (op === false) {
|
39014
|
-
op = "";
|
39015
|
-
sep = "\n";
|
39016
|
-
cl = "";
|
39017
|
-
} else if (op == null) {
|
39018
|
-
op = "[\n";
|
39019
|
-
sep = "\n,\n";
|
39020
|
-
cl = "\n]\n";
|
39021
|
-
}
|
39022
|
-
var stream, first = true, anyData = false;
|
39023
|
-
stream = through(
|
39024
|
-
function(data) {
|
39025
|
-
anyData = true;
|
39026
|
-
try {
|
39027
|
-
var json = JSON.stringify(data, null, indent);
|
39028
|
-
} catch (err) {
|
39029
|
-
return stream.emit("error", err);
|
39030
|
-
}
|
39031
|
-
if (first) {
|
39032
|
-
first = false;
|
39033
|
-
stream.queue(op + json);
|
39034
|
-
} else stream.queue(sep + json);
|
39035
|
-
},
|
39036
|
-
function(data) {
|
39037
|
-
if (!anyData)
|
39038
|
-
stream.queue(op);
|
39039
|
-
stream.queue(cl);
|
39040
|
-
stream.queue(null);
|
39041
|
-
}
|
39042
|
-
);
|
39043
|
-
return stream;
|
39044
|
-
};
|
39045
|
-
exports2.stringifyObject = function(op, sep, cl, indent) {
|
39046
|
-
indent = indent || 0;
|
39047
|
-
if (op === false) {
|
39048
|
-
op = "";
|
39049
|
-
sep = "\n";
|
39050
|
-
cl = "";
|
39051
|
-
} else if (op == null) {
|
39052
|
-
op = "{\n";
|
39053
|
-
sep = "\n,\n";
|
39054
|
-
cl = "\n}\n";
|
39055
|
-
}
|
39056
|
-
var first = true;
|
39057
|
-
var anyData = false;
|
39058
|
-
var stream = through(
|
39059
|
-
function(data) {
|
39060
|
-
anyData = true;
|
39061
|
-
var json = JSON.stringify(data[0]) + ":" + JSON.stringify(data[1], null, indent);
|
39062
|
-
if (first) {
|
39063
|
-
first = false;
|
39064
|
-
this.queue(op + json);
|
39065
|
-
} else this.queue(sep + json);
|
39066
|
-
},
|
39067
|
-
function(data) {
|
39068
|
-
if (!anyData) this.queue(op);
|
39069
|
-
this.queue(cl);
|
39070
|
-
this.queue(null);
|
39071
|
-
}
|
39072
|
-
);
|
39073
|
-
return stream;
|
39074
|
-
};
|
39075
|
-
}
|
39076
|
-
});
|
39077
|
-
|
39078
38298
|
// node_modules/@aws-sdk/client-ecs/dist-cjs/auth/httpAuthSchemeProvider.js
|
39079
38299
|
var require_httpAuthSchemeProvider3 = __commonJS({
|
39080
38300
|
"node_modules/@aws-sdk/client-ecs/dist-cjs/auth/httpAuthSchemeProvider.js"(exports2) {
|
@@ -61217,7 +60437,7 @@ var require_parse = __commonJS({
|
|
61217
60437
|
"node_modules/semver/functions/parse.js"(exports2, module2) {
|
61218
60438
|
"use strict";
|
61219
60439
|
var SemVer = require_semver();
|
61220
|
-
var
|
60440
|
+
var parse2 = (version2, options, throwErrors = false) => {
|
61221
60441
|
if (version2 instanceof SemVer) {
|
61222
60442
|
return version2;
|
61223
60443
|
}
|
@@ -61230,7 +60450,7 @@ var require_parse = __commonJS({
|
|
61230
60450
|
throw er;
|
61231
60451
|
}
|
61232
60452
|
};
|
61233
|
-
module2.exports =
|
60453
|
+
module2.exports = parse2;
|
61234
60454
|
}
|
61235
60455
|
});
|
61236
60456
|
|
@@ -61238,9 +60458,9 @@ var require_parse = __commonJS({
|
|
61238
60458
|
var require_valid = __commonJS({
|
61239
60459
|
"node_modules/semver/functions/valid.js"(exports2, module2) {
|
61240
60460
|
"use strict";
|
61241
|
-
var
|
60461
|
+
var parse2 = require_parse();
|
61242
60462
|
var valid = (version2, options) => {
|
61243
|
-
const v6 =
|
60463
|
+
const v6 = parse2(version2, options);
|
61244
60464
|
return v6 ? v6.version : null;
|
61245
60465
|
};
|
61246
60466
|
module2.exports = valid;
|
@@ -61251,9 +60471,9 @@ var require_valid = __commonJS({
|
|
61251
60471
|
var require_clean = __commonJS({
|
61252
60472
|
"node_modules/semver/functions/clean.js"(exports2, module2) {
|
61253
60473
|
"use strict";
|
61254
|
-
var
|
60474
|
+
var parse2 = require_parse();
|
61255
60475
|
var clean = (version2, options) => {
|
61256
|
-
const s3 =
|
60476
|
+
const s3 = parse2(version2.trim().replace(/^[=v]+/, ""), options);
|
61257
60477
|
return s3 ? s3.version : null;
|
61258
60478
|
};
|
61259
60479
|
module2.exports = clean;
|
@@ -61288,10 +60508,10 @@ var require_inc = __commonJS({
|
|
61288
60508
|
var require_diff = __commonJS({
|
61289
60509
|
"node_modules/semver/functions/diff.js"(exports2, module2) {
|
61290
60510
|
"use strict";
|
61291
|
-
var
|
60511
|
+
var parse2 = require_parse();
|
61292
60512
|
var diff = (version1, version2) => {
|
61293
|
-
const v12 =
|
61294
|
-
const v22 =
|
60513
|
+
const v12 = parse2(version1, null, true);
|
60514
|
+
const v22 = parse2(version2, null, true);
|
61295
60515
|
const comparison = v12.compare(v22);
|
61296
60516
|
if (comparison === 0) {
|
61297
60517
|
return null;
|
@@ -61362,9 +60582,9 @@ var require_patch = __commonJS({
|
|
61362
60582
|
var require_prerelease = __commonJS({
|
61363
60583
|
"node_modules/semver/functions/prerelease.js"(exports2, module2) {
|
61364
60584
|
"use strict";
|
61365
|
-
var
|
60585
|
+
var parse2 = require_parse();
|
61366
60586
|
var prerelease = (version2, options) => {
|
61367
|
-
const parsed =
|
60587
|
+
const parsed = parse2(version2, options);
|
61368
60588
|
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
61369
60589
|
};
|
61370
60590
|
module2.exports = prerelease;
|
@@ -61550,7 +60770,7 @@ var require_coerce = __commonJS({
|
|
61550
60770
|
"node_modules/semver/functions/coerce.js"(exports2, module2) {
|
61551
60771
|
"use strict";
|
61552
60772
|
var SemVer = require_semver();
|
61553
|
-
var
|
60773
|
+
var parse2 = require_parse();
|
61554
60774
|
var { safeRe: re, t: t3 } = require_re();
|
61555
60775
|
var coerce = (version2, options) => {
|
61556
60776
|
if (version2 instanceof SemVer) {
|
@@ -61585,7 +60805,7 @@ var require_coerce = __commonJS({
|
|
61585
60805
|
const patch = match[4] || "0";
|
61586
60806
|
const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : "";
|
61587
60807
|
const build = options.includePrerelease && match[6] ? `+${match[6]}` : "";
|
61588
|
-
return
|
60808
|
+
return parse2(`${major}.${minor}.${patch}${prerelease}${build}`, options);
|
61589
60809
|
};
|
61590
60810
|
module2.exports = coerce;
|
61591
60811
|
}
|
@@ -62601,7 +61821,7 @@ var require_semver2 = __commonJS({
|
|
62601
61821
|
var constants = require_constants();
|
62602
61822
|
var SemVer = require_semver();
|
62603
61823
|
var identifiers = require_identifiers();
|
62604
|
-
var
|
61824
|
+
var parse2 = require_parse();
|
62605
61825
|
var valid = require_valid();
|
62606
61826
|
var clean = require_clean();
|
62607
61827
|
var inc = require_inc();
|
@@ -62639,7 +61859,7 @@ var require_semver2 = __commonJS({
|
|
62639
61859
|
var simplifyRange = require_simplify();
|
62640
61860
|
var subset = require_subset();
|
62641
61861
|
module2.exports = {
|
62642
|
-
parse:
|
61862
|
+
parse: parse2,
|
62643
61863
|
valid,
|
62644
61864
|
clean,
|
62645
61865
|
inc,
|
@@ -63601,10 +62821,10 @@ __export(npmjs_package_canary_lambda_exports, {
|
|
63601
62821
|
});
|
63602
62822
|
module.exports = __toCommonJS(npmjs_package_canary_lambda_exports);
|
63603
62823
|
var https = __toESM(require("https"));
|
62824
|
+
var import_consumers = require("node:stream/consumers");
|
63604
62825
|
var import_zlib = require("zlib");
|
63605
62826
|
var import_client_s32 = __toESM(require_dist_cjs70());
|
63606
62827
|
var import_aws_embedded_metrics = __toESM(require_lib());
|
63607
|
-
var JSONStream = __toESM(require_JSONStream());
|
63608
62828
|
|
63609
62829
|
// src/package-sources/npmjs/canary/constants.ts
|
63610
62830
|
var METRICS_NAMESPACE = "ConstructHub/PackageCanary";
|
@@ -63881,14 +63101,12 @@ var CanaryStateService = class {
|
|
63881
63101
|
*/
|
63882
63102
|
async latest(packageName) {
|
63883
63103
|
console.log(`Fetching latest version information from NPM: ${packageName}`);
|
63884
|
-
const version2 = await getJSON(
|
63885
|
-
`https://registry.npmjs.org/${encodeURIComponent(packageName)}/latest
|
63886
|
-
|
63887
|
-
|
63888
|
-
|
63889
|
-
|
63890
|
-
{ jsonPath: ["time", version2] }
|
63891
|
-
);
|
63104
|
+
const version2 = (await getJSON(
|
63105
|
+
`https://registry.npmjs.org/${encodeURIComponent(packageName)}/latest`
|
63106
|
+
)).version;
|
63107
|
+
const publishedAt = (await getJSON(
|
63108
|
+
`https://registry.npmjs.org/${encodeURIComponent(packageName)}`
|
63109
|
+
)).time[version2];
|
63892
63110
|
console.log(
|
63893
63111
|
`Package: ${packageName} | Version : ${version2} | Published At: ${publishedAt}`
|
63894
63112
|
);
|
@@ -63924,10 +63142,7 @@ var TimeoutError = class _TimeoutError extends Error {
|
|
63924
63142
|
Error.captureStackTrace(this, _TimeoutError);
|
63925
63143
|
}
|
63926
63144
|
};
|
63927
|
-
function getJSON(url, {
|
63928
|
-
jsonPath,
|
63929
|
-
timeoutMillis
|
63930
|
-
} = {}) {
|
63145
|
+
function getJSON(url, { timeoutMillis } = {}) {
|
63931
63146
|
return new Promise((ok, ko) => {
|
63932
63147
|
https.get(
|
63933
63148
|
url,
|
@@ -63957,11 +63172,8 @@ function getJSON(url, {
|
|
63957
63172
|
)
|
63958
63173
|
);
|
63959
63174
|
});
|
63960
|
-
const json = JSONStream.parse(jsonPath);
|
63961
|
-
json.once("data", ok);
|
63962
|
-
json.once("error", ko);
|
63963
63175
|
const plainPayload = res.headers["content-encoding"] === "gzip" ? gunzip(res) : res;
|
63964
|
-
plainPayload.
|
63176
|
+
return (0, import_consumers.json)(plainPayload).then((parsed) => ok(parsed)).catch((err) => ko(err));
|
63965
63177
|
}
|
63966
63178
|
).once("timeout", () => {
|
63967
63179
|
ko(
|