construct-hub 0.3.232 → 0.3.233
Sign up to get free protection for your applications and to get access to all the features.
- package/.jsii +2 -2
- package/changelog.md +6 -1
- package/lib/backend/inventory/canary.lambda.bundle/index.js +17 -8
- package/lib/backend/inventory/canary.lambda.bundle/index.js.map +2 -2
- package/lib/backend/inventory/canary.lambda.js +26 -10
- package/lib/construct-hub.js +1 -1
- package/lib/package-sources/code-artifact.js +1 -1
- 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 +1 -1
- package/releasetag.txt +1 -1
- package/version.txt +1 -1
package/.jsii
CHANGED
@@ -14544,6 +14544,6 @@
|
|
14544
14544
|
"symbolId": "src/package-sources/npmjs:NpmJsProps"
|
14545
14545
|
}
|
14546
14546
|
},
|
14547
|
-
"version": "0.3.
|
14548
|
-
"fingerprint": "
|
14547
|
+
"version": "0.3.233",
|
14548
|
+
"fingerprint": "B1Cs7WP/VLSReiU67WIzMqUIiEtlBZMK9q7nt0u4YnQ="
|
14549
14549
|
}
|
package/changelog.md
CHANGED
@@ -1,2 +1,7 @@
|
|
1
1
|
|
2
|
-
### [0.3.
|
2
|
+
### [0.3.233](https://github.com/cdklabs/construct-hub/compare/v0.3.232...v0.3.233) (2022-02-09)
|
3
|
+
|
4
|
+
|
5
|
+
### Bug Fixes
|
6
|
+
|
7
|
+
* inventory canary reporting packages as unknown ([#752](https://github.com/cdklabs/construct-hub/issues/752)) ([fc62c1e](https://github.com/cdklabs/construct-hub/commit/fc62c1eb29455d4da870fdaeadd3bc5083740ce2))
|
@@ -9699,24 +9699,33 @@ async function handler(event, context) {
|
|
9699
9699
|
} else {
|
9700
9700
|
let identified = false;
|
9701
9701
|
for (const language of DocumentationLanguage.ALL) {
|
9702
|
-
const
|
9703
|
-
|
9704
|
-
|
9702
|
+
const matchJson = submoduleKeyRegexp(language, "json").exec(key);
|
9703
|
+
const matchMd = submoduleKeyRegexp(language, "md").exec(key);
|
9704
|
+
if (matchJson != null) {
|
9705
|
+
const [, submodule, isUnsupported] = matchJson;
|
9705
9706
|
if (status.submodules == null) {
|
9706
9707
|
status.submodules = /* @__PURE__ */ new Set();
|
9707
9708
|
}
|
9708
9709
|
status.submodules.add(`${fullName}.${submodule}`);
|
9709
9710
|
recordPerLanguage(language, isUnsupported ? PerLanguageStatus.UNSUPPORTED : PerLanguageStatus.SUPPORTED, name, majorVersion, fullName, submodule);
|
9710
9711
|
identified = true;
|
9711
|
-
} else if (key.endsWith(docsKeySuffix(language, "
|
9712
|
+
} else if (key.endsWith(docsKeySuffix(language, void 0, "json"))) {
|
9712
9713
|
recordPerLanguage(language, PerLanguageStatus.SUPPORTED, name, majorVersion, fullName);
|
9713
9714
|
identified = true;
|
9714
|
-
} else if (key.endsWith(notSupportedKeySuffix(language, void 0, "
|
9715
|
+
} else if (key.endsWith(notSupportedKeySuffix(language, void 0, "json"))) {
|
9715
9716
|
recordPerLanguage(language, PerLanguageStatus.UNSUPPORTED, name, majorVersion, fullName);
|
9716
9717
|
identified = true;
|
9717
|
-
} else if (key.endsWith(corruptAssemblyKeySuffix(language, void 0, "
|
9718
|
+
} else if (key.endsWith(corruptAssemblyKeySuffix(language, void 0, "json"))) {
|
9718
9719
|
recordPerLanguage(language, PerLanguageStatus.CORRUPT_ASSEMBLY, name, majorVersion, fullName);
|
9719
9720
|
identified = true;
|
9721
|
+
} else if (matchMd != null) {
|
9722
|
+
identified = true;
|
9723
|
+
} else if (key.endsWith(docsKeySuffix(language, void 0, "md"))) {
|
9724
|
+
identified = true;
|
9725
|
+
} else if (key.endsWith(notSupportedKeySuffix(language, void 0, "md"))) {
|
9726
|
+
identified = true;
|
9727
|
+
} else if (key.endsWith(corruptAssemblyKeySuffix(language, void 0, "md"))) {
|
9728
|
+
identified = true;
|
9720
9729
|
}
|
9721
9730
|
}
|
9722
9731
|
if (!identified) {
|
@@ -9833,9 +9842,9 @@ async function* relevantObjectKeys(bucket) {
|
|
9833
9842
|
request.ContinuationToken = response.NextContinuationToken;
|
9834
9843
|
} while (request.ContinuationToken != null);
|
9835
9844
|
}
|
9836
|
-
function submoduleKeyRegexp(language) {
|
9845
|
+
function submoduleKeyRegexp(language, fileExt) {
|
9837
9846
|
const placeholder = "<SUBMODULENAME>";
|
9838
|
-
const keyPrefix = docsKeySuffix(language, placeholder,
|
9847
|
+
const keyPrefix = docsKeySuffix(language, placeholder, fileExt);
|
9839
9848
|
return new RegExp(`.*${reQuote(keyPrefix).replace(placeholder, "(.+)")}(${reQuote(NOT_SUPPORTED_SUFFIX)})?$`);
|
9840
9849
|
function reQuote(str) {
|
9841
9850
|
return str.replace(/([+*.()?$[\]])/g, "\\$1");
|