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 +11 -11
- package/lib/construct-hub.js +1 -1
- package/lib/package-sources/code-artifact.js +1 -1
- package/lib/package-sources/npmjs/stage-and-notify.lambda.bundle/index.js +5 -4
- package/lib/package-sources/npmjs/stage-and-notify.lambda.bundle/index.js.map +2 -2
- package/lib/package-sources/npmjs/stage-and-notify.lambda.js +11 -6
- package/lib/package-sources/npmjs.js +5 -3
- 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 +1 -1
package/.jsii
CHANGED
|
@@ -21965,7 +21965,7 @@
|
|
|
21965
21965
|
},
|
|
21966
21966
|
"locationInModule": {
|
|
21967
21967
|
"filename": "src/package-sources/npmjs.ts",
|
|
21968
|
-
"line":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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.
|
|
22303
|
-
"fingerprint": "
|
|
22302
|
+
"version": "0.4.526",
|
|
22303
|
+
"fingerprint": "uPH6oGWIsgyvMR2c2Iyjn5eSCqufVe2EGo7AsHIotQg="
|
|
22304
22304
|
}
|
package/lib/construct-hub.js
CHANGED
|
@@ -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.
|
|
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.
|
|
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:
|
|
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
|
-
|
|
67743
|
-
|
|
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;
|