construct-hub 0.4.525 → 0.4.526

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 CHANGED
@@ -21965,7 +21965,7 @@
21965
21965
  },
21966
21966
  "locationInModule": {
21967
21967
  "filename": "src/package-sources/npmjs.ts",
21968
- "line": 397
21968
+ "line": 399
21969
21969
  },
21970
21970
  "name": "metricBatchProcessingTime",
21971
21971
  "parameters": [
@@ -21990,7 +21990,7 @@
21990
21990
  },
21991
21991
  "locationInModule": {
21992
21992
  "filename": "src/package-sources/npmjs.ts",
21993
- "line": 410
21993
+ "line": 412
21994
21994
  },
21995
21995
  "name": "metricChangeCount",
21996
21996
  "parameters": [
@@ -22016,7 +22016,7 @@
22016
22016
  },
22017
22017
  "locationInModule": {
22018
22018
  "filename": "src/package-sources/npmjs.ts",
22019
- "line": 424
22019
+ "line": 426
22020
22020
  },
22021
22021
  "name": "metricLastSeq",
22022
22022
  "parameters": [
@@ -22040,7 +22040,7 @@
22040
22040
  },
22041
22041
  "locationInModule": {
22042
22042
  "filename": "src/package-sources/npmjs.ts",
22043
- "line": 434
22043
+ "line": 436
22044
22044
  },
22045
22045
  "name": "metricNpmJsChangeAge",
22046
22046
  "parameters": [
@@ -22065,7 +22065,7 @@
22065
22065
  },
22066
22066
  "locationInModule": {
22067
22067
  "filename": "src/package-sources/npmjs.ts",
22068
- "line": 447
22068
+ "line": 449
22069
22069
  },
22070
22070
  "name": "metricPackageVersionAge",
22071
22071
  "parameters": [
@@ -22090,7 +22090,7 @@
22090
22090
  },
22091
22091
  "locationInModule": {
22092
22092
  "filename": "src/package-sources/npmjs.ts",
22093
- "line": 460
22093
+ "line": 462
22094
22094
  },
22095
22095
  "name": "metricPackageVersionCount",
22096
22096
  "parameters": [
@@ -22115,7 +22115,7 @@
22115
22115
  },
22116
22116
  "locationInModule": {
22117
22117
  "filename": "src/package-sources/npmjs.ts",
22118
- "line": 473
22118
+ "line": 475
22119
22119
  },
22120
22120
  "name": "metricRelevantPackageVersions",
22121
22121
  "parameters": [
@@ -22140,7 +22140,7 @@
22140
22140
  },
22141
22141
  "locationInModule": {
22142
22142
  "filename": "src/package-sources/npmjs.ts",
22143
- "line": 487
22143
+ "line": 489
22144
22144
  },
22145
22145
  "name": "metricRemainingTime",
22146
22146
  "parameters": [
@@ -22165,7 +22165,7 @@
22165
22165
  },
22166
22166
  "locationInModule": {
22167
22167
  "filename": "src/package-sources/npmjs.ts",
22168
- "line": 501
22168
+ "line": 503
22169
22169
  },
22170
22170
  "name": "metricUnprocessableEntity",
22171
22171
  "parameters": [
@@ -22299,6 +22299,6 @@
22299
22299
  "symbolId": "src/package-sources/npmjs:NpmJsProps"
22300
22300
  }
22301
22301
  },
22302
- "version": "0.4.525",
22303
- "fingerprint": "hNv7MNhD47RCieTtYBCAUH+FTgXHvlbSnlweWpqiiA4="
22302
+ "version": "0.4.526",
22303
+ "fingerprint": "uPH6oGWIsgyvMR2c2Iyjn5eSCqufVe2EGo7AsHIotQg="
22304
22304
  }
@@ -65,7 +65,7 @@ const webapp_1 = require("./webapp");
65
65
  * Construct Hub.
66
66
  */
67
67
  class ConstructHub extends constructs_1.Construct {
68
- static [JSII_RTTI_SYMBOL_1] = { fqn: "construct-hub.ConstructHub", version: "0.4.525" };
68
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "construct-hub.ConstructHub", version: "0.4.526" };
69
69
  /**
70
70
  * The function operators can use to reprocess a specific package version
71
71
  * through the backend data pipeline.
@@ -21,7 +21,7 @@ const storage_1 = require("../s3/storage");
21
21
  */
22
22
  class CodeArtifact {
23
23
  props;
24
- static [JSII_RTTI_SYMBOL_1] = { fqn: "construct-hub.sources.CodeArtifact", version: "0.4.525" };
24
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "construct-hub.sources.CodeArtifact", version: "0.4.526" };
25
25
  constructor(props) {
26
26
  this.props = props;
27
27
  }
@@ -67642,8 +67642,8 @@ var HttpNotFoundError = class extends Error {
67642
67642
  };
67643
67643
  var NOT_FOUND_RETRY = {
67644
67644
  baseDelayMs: 1e3,
67645
- maxDelayMs: 8e3,
67646
- deadlineMs: 6e4
67645
+ maxDelayMs: 6e4,
67646
+ deadlineMs: 10 * 6e4
67647
67647
  };
67648
67648
  async function handler(event, context) {
67649
67649
  console.log(`Event: ${JSON.stringify(event, null, 2)}`);
@@ -67739,8 +67739,9 @@ async function downloadTarball(event) {
67739
67739
  let attempt = 0;
67740
67740
  while (true) {
67741
67741
  try {
67742
- console.log(`Downloading tarball from URL: ${event.tarballUrl}`);
67743
- return await httpGet(event.tarballUrl);
67742
+ const url = attempt === 0 ? event.tarballUrl : `${event.tarballUrl}?cacheBust=${now()}`;
67743
+ console.log(`Downloading tarball from URL: ${url}`);
67744
+ return await httpGet(url);
67744
67745
  } catch (e5) {
67745
67746
  if (!(e5 instanceof HttpNotFoundError) || now() - startTime >= NOT_FOUND_RETRY.deadlineMs) {
67746
67747
  throw e5;