construct-hub 0.4.409 → 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.
Files changed (42) hide show
  1. package/.jsii +377 -88
  2. package/.node-version +1 -0
  3. package/lib/backend/catalog-builder/catalog-builder.js +2 -2
  4. package/lib/backend/deny-list/prune-handler.js +2 -2
  5. package/lib/backend/deny-list/prune-queue-handler.js +2 -2
  6. package/lib/backend/ecs-task-monitor/monitor.js +2 -2
  7. package/lib/backend/feed-builder/update-feed.js +2 -2
  8. package/lib/backend/ingestion/ingestion.js +2 -2
  9. package/lib/backend/ingestion/re-ingest.js +2 -2
  10. package/lib/backend/inventory/canary.js +2 -2
  11. package/lib/backend/inventory/package-versions-table-widget-function.js +2 -2
  12. package/lib/backend/orchestration/needs-catalog-update.js +2 -2
  13. package/lib/backend/orchestration/redrive-state-machine.js +2 -2
  14. package/lib/backend/package-stats/package-stats.js +2 -2
  15. package/lib/backend/release-notes/generate-release-notes.js +2 -2
  16. package/lib/backend/release-notes/get-messages-from-worker-queue.js +2 -2
  17. package/lib/backend/release-notes/release-notes-trigger.js +2 -2
  18. package/lib/backend/transliterator/transliterator.ecs-entrypoint.bundle/Dockerfile +3 -9
  19. package/lib/backend/version-tracker/version-tracker.js +2 -2
  20. package/lib/construct-hub.js +1 -1
  21. package/lib/monitored-certificate/certificate-monitor.js +2 -2
  22. package/lib/monitoring/http-get-function.js +2 -2
  23. package/lib/overview-dashboard/sqs-dlq-stats-widget-function.js +2 -2
  24. package/lib/package-sources/code-artifact.js +1 -1
  25. package/lib/package-sources/codeartifact/code-artifact-forwarder.js +2 -2
  26. package/lib/package-sources/npmjs/canary/npmjs-package-canary.js +2 -2
  27. package/lib/package-sources/npmjs/canary/npmjs-package-canary.lambda.bundle/index.js +30 -818
  28. package/lib/package-sources/npmjs/canary/npmjs-package-canary.lambda.bundle/index.js.map +4 -4
  29. package/lib/package-sources/npmjs/canary/npmjs-package-canary.lambda.js +8 -9
  30. package/lib/package-sources/npmjs/couch-changes.lambda-shared.js +5 -7
  31. package/lib/package-sources/npmjs/npm-js-follower.js +2 -2
  32. package/lib/package-sources/npmjs/npm-js-follower.lambda.bundle/index.js +33 -817
  33. package/lib/package-sources/npmjs/npm-js-follower.lambda.bundle/index.js.map +4 -4
  34. package/lib/package-sources/npmjs/re-stage-package-version.js +2 -2
  35. package/lib/package-sources/npmjs/stage-and-notify.js +2 -2
  36. package/lib/package-sources/npmjs.js +1 -1
  37. package/lib/package-tag/index.js +3 -3
  38. package/lib/package-tag-group/index.js +2 -2
  39. package/lib/preload-file/index.js +1 -1
  40. package/lib/s3/storage.js +1 -1
  41. package/lib/spdx-license.js +1 -1
  42. package/package.json +8 -9
@@ -8878,7 +8878,7 @@ var init_jsonReplacer = __esm({
8878
8878
  return value;
8879
8879
  };
8880
8880
  }
8881
- replaceInJson(json) {
8881
+ replaceInJson(json2) {
8882
8882
  if (this.stage === 0) {
8883
8883
  throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");
8884
8884
  }
@@ -8887,12 +8887,12 @@ var init_jsonReplacer = __esm({
8887
8887
  }
8888
8888
  this.stage = 2;
8889
8889
  if (this.counter === 0) {
8890
- return json;
8890
+ return json2;
8891
8891
  }
8892
8892
  for (const [key, value] of this.values) {
8893
- json = json.replace(key, value);
8893
+ json2 = json2.replace(key, value);
8894
8894
  }
8895
- return json;
8895
+ return json2;
8896
8896
  }
8897
8897
  };
8898
8898
  }
@@ -29013,12 +29013,12 @@ var require_dist_cjs64 = __commonJS({
29013
29013
  var index_exports = {};
29014
29014
  __export2(index_exports, {
29015
29015
  build: () => build,
29016
- parse: () => parse3,
29016
+ parse: () => parse2,
29017
29017
  validate: () => validate2
29018
29018
  });
29019
29019
  module2.exports = __toCommonJS2(index_exports);
29020
29020
  var validate2 = /* @__PURE__ */ __name((str) => typeof str === "string" && str.indexOf("arn:") === 0 && str.split(":").length >= 6, "validate");
29021
- var parse3 = /* @__PURE__ */ __name((arn) => {
29021
+ var parse2 = /* @__PURE__ */ __name((arn) => {
29022
29022
  const segments = arn.split(":");
29023
29023
  if (segments.length < 6 || segments[0] !== "arn") throw new Error("Malformed ARN");
29024
29024
  const [
@@ -49457,7 +49457,7 @@ var require_parse = __commonJS({
49457
49457
  "node_modules/semver/functions/parse.js"(exports2, module2) {
49458
49458
  "use strict";
49459
49459
  var SemVer = require_semver();
49460
- var parse3 = (version2, options, throwErrors = false) => {
49460
+ var parse2 = (version2, options, throwErrors = false) => {
49461
49461
  if (version2 instanceof SemVer) {
49462
49462
  return version2;
49463
49463
  }
@@ -49470,7 +49470,7 @@ var require_parse = __commonJS({
49470
49470
  throw er;
49471
49471
  }
49472
49472
  };
49473
- module2.exports = parse3;
49473
+ module2.exports = parse2;
49474
49474
  }
49475
49475
  });
49476
49476
 
@@ -49478,9 +49478,9 @@ var require_parse = __commonJS({
49478
49478
  var require_valid = __commonJS({
49479
49479
  "node_modules/semver/functions/valid.js"(exports2, module2) {
49480
49480
  "use strict";
49481
- var parse3 = require_parse();
49481
+ var parse2 = require_parse();
49482
49482
  var valid = (version2, options) => {
49483
- const v6 = parse3(version2, options);
49483
+ const v6 = parse2(version2, options);
49484
49484
  return v6 ? v6.version : null;
49485
49485
  };
49486
49486
  module2.exports = valid;
@@ -49491,9 +49491,9 @@ var require_valid = __commonJS({
49491
49491
  var require_clean = __commonJS({
49492
49492
  "node_modules/semver/functions/clean.js"(exports2, module2) {
49493
49493
  "use strict";
49494
- var parse3 = require_parse();
49494
+ var parse2 = require_parse();
49495
49495
  var clean = (version2, options) => {
49496
- const s3 = parse3(version2.trim().replace(/^[=v]+/, ""), options);
49496
+ const s3 = parse2(version2.trim().replace(/^[=v]+/, ""), options);
49497
49497
  return s3 ? s3.version : null;
49498
49498
  };
49499
49499
  module2.exports = clean;
@@ -49528,10 +49528,10 @@ var require_inc = __commonJS({
49528
49528
  var require_diff = __commonJS({
49529
49529
  "node_modules/semver/functions/diff.js"(exports2, module2) {
49530
49530
  "use strict";
49531
- var parse3 = require_parse();
49531
+ var parse2 = require_parse();
49532
49532
  var diff = (version1, version2) => {
49533
- const v12 = parse3(version1, null, true);
49534
- const v22 = parse3(version2, null, true);
49533
+ const v12 = parse2(version1, null, true);
49534
+ const v22 = parse2(version2, null, true);
49535
49535
  const comparison = v12.compare(v22);
49536
49536
  if (comparison === 0) {
49537
49537
  return null;
@@ -49602,9 +49602,9 @@ var require_patch = __commonJS({
49602
49602
  var require_prerelease = __commonJS({
49603
49603
  "node_modules/semver/functions/prerelease.js"(exports2, module2) {
49604
49604
  "use strict";
49605
- var parse3 = require_parse();
49605
+ var parse2 = require_parse();
49606
49606
  var prerelease = (version2, options) => {
49607
- const parsed = parse3(version2, options);
49607
+ const parsed = parse2(version2, options);
49608
49608
  return parsed && parsed.prerelease.length ? parsed.prerelease : null;
49609
49609
  };
49610
49610
  module2.exports = prerelease;
@@ -49790,7 +49790,7 @@ var require_coerce = __commonJS({
49790
49790
  "node_modules/semver/functions/coerce.js"(exports2, module2) {
49791
49791
  "use strict";
49792
49792
  var SemVer = require_semver();
49793
- var parse3 = require_parse();
49793
+ var parse2 = require_parse();
49794
49794
  var { safeRe: re, t: t3 } = require_re();
49795
49795
  var coerce = (version2, options) => {
49796
49796
  if (version2 instanceof SemVer) {
@@ -49825,7 +49825,7 @@ var require_coerce = __commonJS({
49825
49825
  const patch = match[4] || "0";
49826
49826
  const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : "";
49827
49827
  const build = options.includePrerelease && match[6] ? `+${match[6]}` : "";
49828
- return parse3(`${major}.${minor}.${patch}${prerelease}${build}`, options);
49828
+ return parse2(`${major}.${minor}.${patch}${prerelease}${build}`, options);
49829
49829
  };
49830
49830
  module2.exports = coerce;
49831
49831
  }
@@ -50841,7 +50841,7 @@ var require_semver2 = __commonJS({
50841
50841
  var constants = require_constants();
50842
50842
  var SemVer = require_semver();
50843
50843
  var identifiers = require_identifiers();
50844
- var parse3 = require_parse();
50844
+ var parse2 = require_parse();
50845
50845
  var valid = require_valid();
50846
50846
  var clean = require_clean();
50847
50847
  var inc = require_inc();
@@ -50879,7 +50879,7 @@ var require_semver2 = __commonJS({
50879
50879
  var simplifyRange = require_simplify();
50880
50880
  var subset = require_subset();
50881
50881
  module2.exports = {
50882
- parse: parse3,
50882
+ parse: parse2,
50883
50883
  valid,
50884
50884
  clean,
50885
50885
  inc,
@@ -51831,786 +51831,6 @@ var require_lib2 = __commonJS({
51831
51831
  }
51832
51832
  });
51833
51833
 
51834
- // node_modules/jsonparse/jsonparse.js
51835
- var require_jsonparse = __commonJS({
51836
- "node_modules/jsonparse/jsonparse.js"(exports2, module2) {
51837
- "use strict";
51838
- var C2 = {};
51839
- var LEFT_BRACE = C2.LEFT_BRACE = 1;
51840
- var RIGHT_BRACE = C2.RIGHT_BRACE = 2;
51841
- var LEFT_BRACKET = C2.LEFT_BRACKET = 3;
51842
- var RIGHT_BRACKET = C2.RIGHT_BRACKET = 4;
51843
- var COLON = C2.COLON = 5;
51844
- var COMMA = C2.COMMA = 6;
51845
- var TRUE = C2.TRUE = 7;
51846
- var FALSE = C2.FALSE = 8;
51847
- var NULL = C2.NULL = 9;
51848
- var STRING = C2.STRING = 10;
51849
- var NUMBER = C2.NUMBER = 11;
51850
- var START = C2.START = 17;
51851
- var STOP = C2.STOP = 18;
51852
- var TRUE1 = C2.TRUE1 = 33;
51853
- var TRUE2 = C2.TRUE2 = 34;
51854
- var TRUE3 = C2.TRUE3 = 35;
51855
- var FALSE1 = C2.FALSE1 = 49;
51856
- var FALSE2 = C2.FALSE2 = 50;
51857
- var FALSE3 = C2.FALSE3 = 51;
51858
- var FALSE4 = C2.FALSE4 = 52;
51859
- var NULL1 = C2.NULL1 = 65;
51860
- var NULL2 = C2.NULL2 = 66;
51861
- var NULL3 = C2.NULL3 = 67;
51862
- var NUMBER1 = C2.NUMBER1 = 81;
51863
- var NUMBER3 = C2.NUMBER3 = 83;
51864
- var STRING1 = C2.STRING1 = 97;
51865
- var STRING2 = C2.STRING2 = 98;
51866
- var STRING3 = C2.STRING3 = 99;
51867
- var STRING4 = C2.STRING4 = 100;
51868
- var STRING5 = C2.STRING5 = 101;
51869
- var STRING6 = C2.STRING6 = 102;
51870
- var VALUE = C2.VALUE = 113;
51871
- var KEY = C2.KEY = 114;
51872
- var OBJECT = C2.OBJECT = 129;
51873
- var ARRAY = C2.ARRAY = 130;
51874
- var BACK_SLASH = "\\".charCodeAt(0);
51875
- var FORWARD_SLASH = "/".charCodeAt(0);
51876
- var BACKSPACE = "\b".charCodeAt(0);
51877
- var FORM_FEED = "\f".charCodeAt(0);
51878
- var NEWLINE = "\n".charCodeAt(0);
51879
- var CARRIAGE_RETURN = "\r".charCodeAt(0);
51880
- var TAB = " ".charCodeAt(0);
51881
- var STRING_BUFFER_SIZE = 64 * 1024;
51882
- function Parser() {
51883
- this.tState = START;
51884
- this.value = void 0;
51885
- this.string = void 0;
51886
- this.stringBuffer = Buffer.alloc ? Buffer.alloc(STRING_BUFFER_SIZE) : new Buffer(STRING_BUFFER_SIZE);
51887
- this.stringBufferOffset = 0;
51888
- this.unicode = void 0;
51889
- this.highSurrogate = void 0;
51890
- this.key = void 0;
51891
- this.mode = void 0;
51892
- this.stack = [];
51893
- this.state = VALUE;
51894
- this.bytes_remaining = 0;
51895
- this.bytes_in_sequence = 0;
51896
- this.temp_buffs = { "2": new Buffer(2), "3": new Buffer(3), "4": new Buffer(4) };
51897
- this.offset = -1;
51898
- }
51899
- Parser.toknam = function(code) {
51900
- var keys = Object.keys(C2);
51901
- for (var i3 = 0, l3 = keys.length; i3 < l3; i3++) {
51902
- var key = keys[i3];
51903
- if (C2[key] === code) {
51904
- return key;
51905
- }
51906
- }
51907
- return code && "0x" + code.toString(16);
51908
- };
51909
- var proto = Parser.prototype;
51910
- proto.onError = function(err) {
51911
- throw err;
51912
- };
51913
- proto.charError = function(buffer, i3) {
51914
- this.tState = STOP;
51915
- this.onError(new Error("Unexpected " + JSON.stringify(String.fromCharCode(buffer[i3])) + " at position " + i3 + " in state " + Parser.toknam(this.tState)));
51916
- };
51917
- proto.appendStringChar = function(char) {
51918
- if (this.stringBufferOffset >= STRING_BUFFER_SIZE) {
51919
- this.string += this.stringBuffer.toString("utf8");
51920
- this.stringBufferOffset = 0;
51921
- }
51922
- this.stringBuffer[this.stringBufferOffset++] = char;
51923
- };
51924
- proto.appendStringBuf = function(buf, start, end) {
51925
- var size = buf.length;
51926
- if (typeof start === "number") {
51927
- if (typeof end === "number") {
51928
- if (end < 0) {
51929
- size = buf.length - start + end;
51930
- } else {
51931
- size = end - start;
51932
- }
51933
- } else {
51934
- size = buf.length - start;
51935
- }
51936
- }
51937
- if (size < 0) {
51938
- size = 0;
51939
- }
51940
- if (this.stringBufferOffset + size > STRING_BUFFER_SIZE) {
51941
- this.string += this.stringBuffer.toString("utf8", 0, this.stringBufferOffset);
51942
- this.stringBufferOffset = 0;
51943
- }
51944
- buf.copy(this.stringBuffer, this.stringBufferOffset, start, end);
51945
- this.stringBufferOffset += size;
51946
- };
51947
- proto.write = function(buffer) {
51948
- if (typeof buffer === "string") buffer = new Buffer(buffer);
51949
- var n3;
51950
- for (var i3 = 0, l3 = buffer.length; i3 < l3; i3++) {
51951
- if (this.tState === START) {
51952
- n3 = buffer[i3];
51953
- this.offset++;
51954
- if (n3 === 123) {
51955
- this.onToken(LEFT_BRACE, "{");
51956
- } else if (n3 === 125) {
51957
- this.onToken(RIGHT_BRACE, "}");
51958
- } else if (n3 === 91) {
51959
- this.onToken(LEFT_BRACKET, "[");
51960
- } else if (n3 === 93) {
51961
- this.onToken(RIGHT_BRACKET, "]");
51962
- } else if (n3 === 58) {
51963
- this.onToken(COLON, ":");
51964
- } else if (n3 === 44) {
51965
- this.onToken(COMMA, ",");
51966
- } else if (n3 === 116) {
51967
- this.tState = TRUE1;
51968
- } else if (n3 === 102) {
51969
- this.tState = FALSE1;
51970
- } else if (n3 === 110) {
51971
- this.tState = NULL1;
51972
- } else if (n3 === 34) {
51973
- this.string = "";
51974
- this.stringBufferOffset = 0;
51975
- this.tState = STRING1;
51976
- } else if (n3 === 45) {
51977
- this.string = "-";
51978
- this.tState = NUMBER1;
51979
- } else {
51980
- if (n3 >= 48 && n3 < 64) {
51981
- this.string = String.fromCharCode(n3);
51982
- this.tState = NUMBER3;
51983
- } else if (n3 === 32 || n3 === 9 || n3 === 10 || n3 === 13) {
51984
- } else {
51985
- return this.charError(buffer, i3);
51986
- }
51987
- }
51988
- } else if (this.tState === STRING1) {
51989
- n3 = buffer[i3];
51990
- if (this.bytes_remaining > 0) {
51991
- for (var j3 = 0; j3 < this.bytes_remaining; j3++) {
51992
- this.temp_buffs[this.bytes_in_sequence][this.bytes_in_sequence - this.bytes_remaining + j3] = buffer[j3];
51993
- }
51994
- this.appendStringBuf(this.temp_buffs[this.bytes_in_sequence]);
51995
- this.bytes_in_sequence = this.bytes_remaining = 0;
51996
- i3 = i3 + j3 - 1;
51997
- } else if (this.bytes_remaining === 0 && n3 >= 128) {
51998
- if (n3 <= 193 || n3 > 244) {
51999
- return this.onError(new Error("Invalid UTF-8 character at position " + i3 + " in state " + Parser.toknam(this.tState)));
52000
- }
52001
- if (n3 >= 194 && n3 <= 223) this.bytes_in_sequence = 2;
52002
- if (n3 >= 224 && n3 <= 239) this.bytes_in_sequence = 3;
52003
- if (n3 >= 240 && n3 <= 244) this.bytes_in_sequence = 4;
52004
- if (this.bytes_in_sequence + i3 > buffer.length) {
52005
- for (var k3 = 0; k3 <= buffer.length - 1 - i3; k3++) {
52006
- this.temp_buffs[this.bytes_in_sequence][k3] = buffer[i3 + k3];
52007
- }
52008
- this.bytes_remaining = i3 + this.bytes_in_sequence - buffer.length;
52009
- i3 = buffer.length - 1;
52010
- } else {
52011
- this.appendStringBuf(buffer, i3, i3 + this.bytes_in_sequence);
52012
- i3 = i3 + this.bytes_in_sequence - 1;
52013
- }
52014
- } else if (n3 === 34) {
52015
- this.tState = START;
52016
- this.string += this.stringBuffer.toString("utf8", 0, this.stringBufferOffset);
52017
- this.stringBufferOffset = 0;
52018
- this.onToken(STRING, this.string);
52019
- this.offset += Buffer.byteLength(this.string, "utf8") + 1;
52020
- this.string = void 0;
52021
- } else if (n3 === 92) {
52022
- this.tState = STRING2;
52023
- } else if (n3 >= 32) {
52024
- this.appendStringChar(n3);
52025
- } else {
52026
- return this.charError(buffer, i3);
52027
- }
52028
- } else if (this.tState === STRING2) {
52029
- n3 = buffer[i3];
52030
- if (n3 === 34) {
52031
- this.appendStringChar(n3);
52032
- this.tState = STRING1;
52033
- } else if (n3 === 92) {
52034
- this.appendStringChar(BACK_SLASH);
52035
- this.tState = STRING1;
52036
- } else if (n3 === 47) {
52037
- this.appendStringChar(FORWARD_SLASH);
52038
- this.tState = STRING1;
52039
- } else if (n3 === 98) {
52040
- this.appendStringChar(BACKSPACE);
52041
- this.tState = STRING1;
52042
- } else if (n3 === 102) {
52043
- this.appendStringChar(FORM_FEED);
52044
- this.tState = STRING1;
52045
- } else if (n3 === 110) {
52046
- this.appendStringChar(NEWLINE);
52047
- this.tState = STRING1;
52048
- } else if (n3 === 114) {
52049
- this.appendStringChar(CARRIAGE_RETURN);
52050
- this.tState = STRING1;
52051
- } else if (n3 === 116) {
52052
- this.appendStringChar(TAB);
52053
- this.tState = STRING1;
52054
- } else if (n3 === 117) {
52055
- this.unicode = "";
52056
- this.tState = STRING3;
52057
- } else {
52058
- return this.charError(buffer, i3);
52059
- }
52060
- } else if (this.tState === STRING3 || this.tState === STRING4 || this.tState === STRING5 || this.tState === STRING6) {
52061
- n3 = buffer[i3];
52062
- if (n3 >= 48 && n3 < 64 || n3 > 64 && n3 <= 70 || n3 > 96 && n3 <= 102) {
52063
- this.unicode += String.fromCharCode(n3);
52064
- if (this.tState++ === STRING6) {
52065
- var intVal = parseInt(this.unicode, 16);
52066
- this.unicode = void 0;
52067
- if (this.highSurrogate !== void 0 && intVal >= 56320 && intVal < 57343 + 1) {
52068
- this.appendStringBuf(new Buffer(String.fromCharCode(this.highSurrogate, intVal)));
52069
- this.highSurrogate = void 0;
52070
- } else if (this.highSurrogate === void 0 && intVal >= 55296 && intVal < 56319 + 1) {
52071
- this.highSurrogate = intVal;
52072
- } else {
52073
- if (this.highSurrogate !== void 0) {
52074
- this.appendStringBuf(new Buffer(String.fromCharCode(this.highSurrogate)));
52075
- this.highSurrogate = void 0;
52076
- }
52077
- this.appendStringBuf(new Buffer(String.fromCharCode(intVal)));
52078
- }
52079
- this.tState = STRING1;
52080
- }
52081
- } else {
52082
- return this.charError(buffer, i3);
52083
- }
52084
- } else if (this.tState === NUMBER1 || this.tState === NUMBER3) {
52085
- n3 = buffer[i3];
52086
- switch (n3) {
52087
- case 48:
52088
- // 0
52089
- case 49:
52090
- // 1
52091
- case 50:
52092
- // 2
52093
- case 51:
52094
- // 3
52095
- case 52:
52096
- // 4
52097
- case 53:
52098
- // 5
52099
- case 54:
52100
- // 6
52101
- case 55:
52102
- // 7
52103
- case 56:
52104
- // 8
52105
- case 57:
52106
- // 9
52107
- case 46:
52108
- // .
52109
- case 101:
52110
- // e
52111
- case 69:
52112
- // E
52113
- case 43:
52114
- // +
52115
- case 45:
52116
- this.string += String.fromCharCode(n3);
52117
- this.tState = NUMBER3;
52118
- break;
52119
- default:
52120
- this.tState = START;
52121
- var result = Number(this.string);
52122
- if (isNaN(result)) {
52123
- return this.charError(buffer, i3);
52124
- }
52125
- if (this.string.match(/[0-9]+/) == this.string && result.toString() != this.string) {
52126
- this.onToken(STRING, this.string);
52127
- } else {
52128
- this.onToken(NUMBER, result);
52129
- }
52130
- this.offset += this.string.length - 1;
52131
- this.string = void 0;
52132
- i3--;
52133
- break;
52134
- }
52135
- } else if (this.tState === TRUE1) {
52136
- if (buffer[i3] === 114) {
52137
- this.tState = TRUE2;
52138
- } else {
52139
- return this.charError(buffer, i3);
52140
- }
52141
- } else if (this.tState === TRUE2) {
52142
- if (buffer[i3] === 117) {
52143
- this.tState = TRUE3;
52144
- } else {
52145
- return this.charError(buffer, i3);
52146
- }
52147
- } else if (this.tState === TRUE3) {
52148
- if (buffer[i3] === 101) {
52149
- this.tState = START;
52150
- this.onToken(TRUE, true);
52151
- this.offset += 3;
52152
- } else {
52153
- return this.charError(buffer, i3);
52154
- }
52155
- } else if (this.tState === FALSE1) {
52156
- if (buffer[i3] === 97) {
52157
- this.tState = FALSE2;
52158
- } else {
52159
- return this.charError(buffer, i3);
52160
- }
52161
- } else if (this.tState === FALSE2) {
52162
- if (buffer[i3] === 108) {
52163
- this.tState = FALSE3;
52164
- } else {
52165
- return this.charError(buffer, i3);
52166
- }
52167
- } else if (this.tState === FALSE3) {
52168
- if (buffer[i3] === 115) {
52169
- this.tState = FALSE4;
52170
- } else {
52171
- return this.charError(buffer, i3);
52172
- }
52173
- } else if (this.tState === FALSE4) {
52174
- if (buffer[i3] === 101) {
52175
- this.tState = START;
52176
- this.onToken(FALSE, false);
52177
- this.offset += 4;
52178
- } else {
52179
- return this.charError(buffer, i3);
52180
- }
52181
- } else if (this.tState === NULL1) {
52182
- if (buffer[i3] === 117) {
52183
- this.tState = NULL2;
52184
- } else {
52185
- return this.charError(buffer, i3);
52186
- }
52187
- } else if (this.tState === NULL2) {
52188
- if (buffer[i3] === 108) {
52189
- this.tState = NULL3;
52190
- } else {
52191
- return this.charError(buffer, i3);
52192
- }
52193
- } else if (this.tState === NULL3) {
52194
- if (buffer[i3] === 108) {
52195
- this.tState = START;
52196
- this.onToken(NULL, null);
52197
- this.offset += 3;
52198
- } else {
52199
- return this.charError(buffer, i3);
52200
- }
52201
- }
52202
- }
52203
- };
52204
- proto.onToken = function(token, value) {
52205
- };
52206
- proto.parseError = function(token, value) {
52207
- this.tState = STOP;
52208
- this.onError(new Error("Unexpected " + Parser.toknam(token) + (value ? "(" + JSON.stringify(value) + ")" : "") + " in state " + Parser.toknam(this.state)));
52209
- };
52210
- proto.push = function() {
52211
- this.stack.push({ value: this.value, key: this.key, mode: this.mode });
52212
- };
52213
- proto.pop = function() {
52214
- var value = this.value;
52215
- var parent = this.stack.pop();
52216
- this.value = parent.value;
52217
- this.key = parent.key;
52218
- this.mode = parent.mode;
52219
- this.emit(value);
52220
- if (!this.mode) {
52221
- this.state = VALUE;
52222
- }
52223
- };
52224
- proto.emit = function(value) {
52225
- if (this.mode) {
52226
- this.state = COMMA;
52227
- }
52228
- this.onValue(value);
52229
- };
52230
- proto.onValue = function(value) {
52231
- };
52232
- proto.onToken = function(token, value) {
52233
- if (this.state === VALUE) {
52234
- if (token === STRING || token === NUMBER || token === TRUE || token === FALSE || token === NULL) {
52235
- if (this.value) {
52236
- this.value[this.key] = value;
52237
- }
52238
- this.emit(value);
52239
- } else if (token === LEFT_BRACE) {
52240
- this.push();
52241
- if (this.value) {
52242
- this.value = this.value[this.key] = {};
52243
- } else {
52244
- this.value = {};
52245
- }
52246
- this.key = void 0;
52247
- this.state = KEY;
52248
- this.mode = OBJECT;
52249
- } else if (token === LEFT_BRACKET) {
52250
- this.push();
52251
- if (this.value) {
52252
- this.value = this.value[this.key] = [];
52253
- } else {
52254
- this.value = [];
52255
- }
52256
- this.key = 0;
52257
- this.mode = ARRAY;
52258
- this.state = VALUE;
52259
- } else if (token === RIGHT_BRACE) {
52260
- if (this.mode === OBJECT) {
52261
- this.pop();
52262
- } else {
52263
- return this.parseError(token, value);
52264
- }
52265
- } else if (token === RIGHT_BRACKET) {
52266
- if (this.mode === ARRAY) {
52267
- this.pop();
52268
- } else {
52269
- return this.parseError(token, value);
52270
- }
52271
- } else {
52272
- return this.parseError(token, value);
52273
- }
52274
- } else if (this.state === KEY) {
52275
- if (token === STRING) {
52276
- this.key = value;
52277
- this.state = COLON;
52278
- } else if (token === RIGHT_BRACE) {
52279
- this.pop();
52280
- } else {
52281
- return this.parseError(token, value);
52282
- }
52283
- } else if (this.state === COLON) {
52284
- if (token === COLON) {
52285
- this.state = VALUE;
52286
- } else {
52287
- return this.parseError(token, value);
52288
- }
52289
- } else if (this.state === COMMA) {
52290
- if (token === COMMA) {
52291
- if (this.mode === ARRAY) {
52292
- this.key++;
52293
- this.state = VALUE;
52294
- } else if (this.mode === OBJECT) {
52295
- this.state = KEY;
52296
- }
52297
- } else if (token === RIGHT_BRACKET && this.mode === ARRAY || token === RIGHT_BRACE && this.mode === OBJECT) {
52298
- this.pop();
52299
- } else {
52300
- return this.parseError(token, value);
52301
- }
52302
- } else {
52303
- return this.parseError(token, value);
52304
- }
52305
- };
52306
- Parser.C = C2;
52307
- module2.exports = Parser;
52308
- }
52309
- });
52310
-
52311
- // node_modules/through/index.js
52312
- var require_through = __commonJS({
52313
- "node_modules/through/index.js"(exports2, module2) {
52314
- "use strict";
52315
- var Stream = require("stream");
52316
- exports2 = module2.exports = through;
52317
- through.through = through;
52318
- function through(write, end, opts) {
52319
- write = write || function(data) {
52320
- this.queue(data);
52321
- };
52322
- end = end || function() {
52323
- this.queue(null);
52324
- };
52325
- var ended = false, destroyed = false, buffer = [], _ended = false;
52326
- var stream = new Stream();
52327
- stream.readable = stream.writable = true;
52328
- stream.paused = false;
52329
- stream.autoDestroy = !(opts && opts.autoDestroy === false);
52330
- stream.write = function(data) {
52331
- write.call(this, data);
52332
- return !stream.paused;
52333
- };
52334
- function drain() {
52335
- while (buffer.length && !stream.paused) {
52336
- var data = buffer.shift();
52337
- if (null === data)
52338
- return stream.emit("end");
52339
- else
52340
- stream.emit("data", data);
52341
- }
52342
- }
52343
- stream.queue = stream.push = function(data) {
52344
- if (_ended) return stream;
52345
- if (data === null) _ended = true;
52346
- buffer.push(data);
52347
- drain();
52348
- return stream;
52349
- };
52350
- stream.on("end", function() {
52351
- stream.readable = false;
52352
- if (!stream.writable && stream.autoDestroy)
52353
- process.nextTick(function() {
52354
- stream.destroy();
52355
- });
52356
- });
52357
- function _end() {
52358
- stream.writable = false;
52359
- end.call(stream);
52360
- if (!stream.readable && stream.autoDestroy)
52361
- stream.destroy();
52362
- }
52363
- stream.end = function(data) {
52364
- if (ended) return;
52365
- ended = true;
52366
- if (arguments.length) stream.write(data);
52367
- _end();
52368
- return stream;
52369
- };
52370
- stream.destroy = function() {
52371
- if (destroyed) return;
52372
- destroyed = true;
52373
- ended = true;
52374
- buffer.length = 0;
52375
- stream.writable = stream.readable = false;
52376
- stream.emit("close");
52377
- return stream;
52378
- };
52379
- stream.pause = function() {
52380
- if (stream.paused) return;
52381
- stream.paused = true;
52382
- return stream;
52383
- };
52384
- stream.resume = function() {
52385
- if (stream.paused) {
52386
- stream.paused = false;
52387
- stream.emit("resume");
52388
- }
52389
- drain();
52390
- if (!stream.paused)
52391
- stream.emit("drain");
52392
- return stream;
52393
- };
52394
- return stream;
52395
- }
52396
- }
52397
- });
52398
-
52399
- // node_modules/JSONStream/index.js
52400
- var require_JSONStream = __commonJS({
52401
- "node_modules/JSONStream/index.js"(exports2) {
52402
- "use strict";
52403
- var Parser = require_jsonparse();
52404
- var through = require_through();
52405
- var bufferFrom = Buffer.from && Buffer.from !== Uint8Array.from;
52406
- exports2.parse = function(path, map2) {
52407
- var header, footer;
52408
- var parser = new Parser();
52409
- var stream = through(
52410
- function(chunk) {
52411
- if ("string" === typeof chunk)
52412
- chunk = bufferFrom ? Buffer.from(chunk) : new Buffer(chunk);
52413
- parser.write(chunk);
52414
- },
52415
- function(data) {
52416
- if (data)
52417
- stream.write(data);
52418
- if (header)
52419
- stream.emit("header", header);
52420
- if (footer)
52421
- stream.emit("footer", footer);
52422
- stream.queue(null);
52423
- }
52424
- );
52425
- if ("string" === typeof path)
52426
- path = path.split(".").map(function(e3) {
52427
- if (e3 === "$*")
52428
- return { emitKey: true };
52429
- else if (e3 === "*")
52430
- return true;
52431
- else if (e3 === "")
52432
- return { recurse: true };
52433
- else
52434
- return e3;
52435
- });
52436
- var count = 0, _key;
52437
- if (!path || !path.length)
52438
- path = null;
52439
- parser.onValue = function(value) {
52440
- if (!this.root)
52441
- stream.root = value;
52442
- if (!path) return;
52443
- var i3 = 0;
52444
- var j3 = 0;
52445
- var emitKey = false;
52446
- var emitPath = false;
52447
- while (i3 < path.length) {
52448
- var key = path[i3];
52449
- var c3;
52450
- j3++;
52451
- if (key && !key.recurse) {
52452
- c3 = j3 === this.stack.length ? this : this.stack[j3];
52453
- if (!c3) return;
52454
- if (!check(key, c3.key)) {
52455
- setHeaderFooter(c3.key, value);
52456
- return;
52457
- }
52458
- emitKey = !!key.emitKey;
52459
- emitPath = !!key.emitPath;
52460
- i3++;
52461
- } else {
52462
- i3++;
52463
- var nextKey = path[i3];
52464
- if (!nextKey) return;
52465
- while (true) {
52466
- c3 = j3 === this.stack.length ? this : this.stack[j3];
52467
- if (!c3) return;
52468
- if (check(nextKey, c3.key)) {
52469
- i3++;
52470
- if (!Object.isFrozen(this.stack[j3]))
52471
- this.stack[j3].value = null;
52472
- break;
52473
- } else {
52474
- setHeaderFooter(c3.key, value);
52475
- }
52476
- j3++;
52477
- }
52478
- }
52479
- }
52480
- if (header) {
52481
- stream.emit("header", header);
52482
- header = false;
52483
- }
52484
- if (j3 !== this.stack.length) return;
52485
- count++;
52486
- var actualPath = this.stack.slice(1).map(function(element) {
52487
- return element.key;
52488
- }).concat([this.key]);
52489
- var data = value;
52490
- if (null != data) {
52491
- if (null != (data = map2 ? map2(data, actualPath) : data)) {
52492
- if (emitKey || emitPath) {
52493
- data = { value: data };
52494
- if (emitKey)
52495
- data["key"] = this.key;
52496
- if (emitPath)
52497
- data["path"] = actualPath;
52498
- }
52499
- stream.queue(data);
52500
- }
52501
- }
52502
- if (this.value) delete this.value[this.key];
52503
- for (var k3 in this.stack)
52504
- if (!Object.isFrozen(this.stack[k3]))
52505
- this.stack[k3].value = null;
52506
- };
52507
- parser._onToken = parser.onToken;
52508
- parser.onToken = function(token, value) {
52509
- parser._onToken(token, value);
52510
- if (this.stack.length === 0) {
52511
- if (stream.root) {
52512
- if (!path)
52513
- stream.queue(stream.root);
52514
- count = 0;
52515
- stream.root = null;
52516
- }
52517
- }
52518
- };
52519
- parser.onError = function(err) {
52520
- if (err.message.indexOf("at position") > -1)
52521
- err.message = "Invalid JSON (" + err.message + ")";
52522
- stream.emit("error", err);
52523
- };
52524
- return stream;
52525
- function setHeaderFooter(key, value) {
52526
- if (header !== false) {
52527
- header = header || {};
52528
- header[key] = value;
52529
- }
52530
- if (footer !== false && header === false) {
52531
- footer = footer || {};
52532
- footer[key] = value;
52533
- }
52534
- }
52535
- };
52536
- function check(x3, y2) {
52537
- if ("string" === typeof x3)
52538
- return y2 == x3;
52539
- else if (x3 && "function" === typeof x3.exec)
52540
- return x3.exec(y2);
52541
- else if ("boolean" === typeof x3 || "object" === typeof x3)
52542
- return x3;
52543
- else if ("function" === typeof x3)
52544
- return x3(y2);
52545
- return false;
52546
- }
52547
- exports2.stringify = function(op, sep, cl, indent) {
52548
- indent = indent || 0;
52549
- if (op === false) {
52550
- op = "";
52551
- sep = "\n";
52552
- cl = "";
52553
- } else if (op == null) {
52554
- op = "[\n";
52555
- sep = "\n,\n";
52556
- cl = "\n]\n";
52557
- }
52558
- var stream, first = true, anyData = false;
52559
- stream = through(
52560
- function(data) {
52561
- anyData = true;
52562
- try {
52563
- var json = JSON.stringify(data, null, indent);
52564
- } catch (err) {
52565
- return stream.emit("error", err);
52566
- }
52567
- if (first) {
52568
- first = false;
52569
- stream.queue(op + json);
52570
- } else stream.queue(sep + json);
52571
- },
52572
- function(data) {
52573
- if (!anyData)
52574
- stream.queue(op);
52575
- stream.queue(cl);
52576
- stream.queue(null);
52577
- }
52578
- );
52579
- return stream;
52580
- };
52581
- exports2.stringifyObject = function(op, sep, cl, indent) {
52582
- indent = indent || 0;
52583
- if (op === false) {
52584
- op = "";
52585
- sep = "\n";
52586
- cl = "";
52587
- } else if (op == null) {
52588
- op = "{\n";
52589
- sep = "\n,\n";
52590
- cl = "\n}\n";
52591
- }
52592
- var first = true;
52593
- var anyData = false;
52594
- var stream = through(
52595
- function(data) {
52596
- anyData = true;
52597
- var json = JSON.stringify(data[0]) + ":" + JSON.stringify(data[1], null, indent);
52598
- if (first) {
52599
- first = false;
52600
- this.queue(op + json);
52601
- } else this.queue(sep + json);
52602
- },
52603
- function(data) {
52604
- if (!anyData) this.queue(op);
52605
- this.queue(cl);
52606
- this.queue(null);
52607
- }
52608
- );
52609
- return stream;
52610
- };
52611
- }
52612
- });
52613
-
52614
51834
  // node_modules/@aws-sdk/client-ecs/dist-cjs/auth/httpAuthSchemeProvider.js
52615
51835
  var require_httpAuthSchemeProvider4 = __commonJS({
52616
51836
  "node_modules/@aws-sdk/client-ecs/dist-cjs/auth/httpAuthSchemeProvider.js"(exports2) {
@@ -63720,8 +62940,8 @@ var require_semver3 = __commonJS({
63720
62940
  }
63721
62941
  }
63722
62942
  var i3;
63723
- exports2.parse = parse3;
63724
- function parse3(version2, options) {
62943
+ exports2.parse = parse2;
62944
+ function parse2(version2, options) {
63725
62945
  if (!options || typeof options !== "object") {
63726
62946
  options = {
63727
62947
  loose: !!options,
@@ -63749,12 +62969,12 @@ var require_semver3 = __commonJS({
63749
62969
  }
63750
62970
  exports2.valid = valid;
63751
62971
  function valid(version2, options) {
63752
- var v6 = parse3(version2, options);
62972
+ var v6 = parse2(version2, options);
63753
62973
  return v6 ? v6.version : null;
63754
62974
  }
63755
62975
  exports2.clean = clean;
63756
62976
  function clean(version2, options) {
63757
- var s3 = parse3(version2.trim().replace(/^[=v]+/, ""), options);
62977
+ var s3 = parse2(version2.trim().replace(/^[=v]+/, ""), options);
63758
62978
  return s3 ? s3.version : null;
63759
62979
  }
63760
62980
  exports2.SemVer = SemVer;
@@ -63968,8 +63188,8 @@ var require_semver3 = __commonJS({
63968
63188
  if (eq(version1, version2)) {
63969
63189
  return null;
63970
63190
  } else {
63971
- var v12 = parse3(version1);
63972
- var v22 = parse3(version2);
63191
+ var v12 = parse2(version1);
63192
+ var v22 = parse2(version2);
63973
63193
  var prefix = "";
63974
63194
  if (v12.prerelease.length || v22.prerelease.length) {
63975
63195
  prefix = "pre";
@@ -64641,7 +63861,7 @@ var require_semver3 = __commonJS({
64641
63861
  }
64642
63862
  exports2.prerelease = prerelease;
64643
63863
  function prerelease(version2, options) {
64644
- var parsed = parse3(version2, options);
63864
+ var parsed = parse2(version2, options);
64645
63865
  return parsed && parsed.prerelease.length ? parsed.prerelease : null;
64646
63866
  }
64647
63867
  exports2.intersects = intersects;
@@ -64662,7 +63882,7 @@ var require_semver3 = __commonJS({
64662
63882
  if (match == null) {
64663
63883
  return null;
64664
63884
  }
64665
- return parse3(match[1] + "." + (match[2] || "0") + "." + (match[3] || "0"));
63885
+ return parse2(match[1] + "." + (match[2] || "0") + "." + (match[3] || "0"));
64666
63886
  }
64667
63887
  }
64668
63888
  });
@@ -64755,9 +63975,9 @@ var KNOWN_VERSIONS_FILE_NAME = "couchdb-known-versions.2";
64755
63975
  // src/package-sources/npmjs/couch-changes.lambda-shared.ts
64756
63976
  var import_events = require("events");
64757
63977
  var import_https = require("https");
63978
+ var import_consumers = require("node:stream/consumers");
64758
63979
  var import_url = require("url");
64759
63980
  var import_zlib = require("zlib");
64760
- var JSONStream = __toESM(require_JSONStream());
64761
63981
  var NPM_REGISTRY_URL = "https://registry.npmjs.org/";
64762
63982
  var REQUEST_DEADLINE_MS = 3e4;
64763
63983
  var REQUEST_ATTEMPT_TIMEOUT_MS = 5e3;
@@ -64917,12 +64137,8 @@ function requestPromise(url, options, body) {
64917
64137
  function readResponseJson(res) {
64918
64138
  return new Promise((ok, ko) => {
64919
64139
  res.once("error", ko);
64920
- const json = JSONStream.parse(true);
64921
- json.once("data", ok);
64922
- json.once("error", ko);
64923
64140
  const plainPayload = res.headers["content-encoding"] === "gzip" ? gunzip(res) : res;
64924
- plainPayload.pipe(json, { end: true });
64925
- plainPayload.once("error", ko);
64141
+ return (0, import_consumers.json)(plainPayload).then((parsed) => ok(parsed)).catch((err) => ko(err));
64926
64142
  });
64927
64143
  }
64928
64144
  var RetryableError = class extends Error {
@@ -65110,12 +64326,12 @@ var LicenseListClient = class _LicenseListClient {
65110
64326
  };
65111
64327
 
65112
64328
  // src/backend/shared/compress-content.lambda-shared.ts
65113
- var import_consumers = require("node:stream/consumers");
64329
+ var import_consumers2 = require("node:stream/consumers");
65114
64330
  var import_zlib2 = require("zlib");
65115
64331
  async function decompressContent(data, encoding) {
65116
64332
  if (encoding === "gzip") {
65117
64333
  const gunzip2 = (0, import_zlib2.createGunzip)();
65118
- return (0, import_consumers.text)(data.pipe(gunzip2));
64334
+ return (0, import_consumers2.text)(data.pipe(gunzip2));
65119
64335
  }
65120
64336
  return data.transformToString("utf-8");
65121
64337
  }