snyk 1.1142.0 → 1.1144.0
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/dist/cli/784.index.js +3 -3
- package/dist/cli/784.index.js.map +1 -1
- package/dist/cli/95.index.js +104 -50
- package/dist/cli/95.index.js.map +1 -1
- package/dist/cli/thirdPartyNotice.json +4 -4
- package/help/cli-commands/sbom.md +49 -17
- package/package.json +1 -1
- package/src/generated/sha256sums.txt +10 -10
- package/src/generated/version +1 -1
- package/wrapper_dist/generated/sha256sums.txt +10 -10
- package/wrapper_dist/generated/version +1 -1
package/dist/cli/784.index.js
CHANGED
|
@@ -4090,10 +4090,10 @@ async function buildDepGraph(root, manifestFilePath, lockfilePath, lockfileVersi
|
|
|
4090
4090
|
case snyk_nodejs_lockfile_parser_1.NodeLockfileVersion.YarnLockV1:
|
|
4091
4091
|
return await lockFileParser.parseYarnLockV1Project(manifestFileContents, lockFileContents, options);
|
|
4092
4092
|
case snyk_nodejs_lockfile_parser_1.NodeLockfileVersion.YarnLockV2:
|
|
4093
|
-
return lockFileParser.parseYarnLockV2Project(manifestFileContents, lockFileContents, options);
|
|
4093
|
+
return await lockFileParser.parseYarnLockV2Project(manifestFileContents, lockFileContents, options);
|
|
4094
4094
|
case snyk_nodejs_lockfile_parser_1.NodeLockfileVersion.NpmLockV2:
|
|
4095
4095
|
case snyk_nodejs_lockfile_parser_1.NodeLockfileVersion.NpmLockV3:
|
|
4096
|
-
return lockFileParser.parseNpmLockV2Project(manifestFileContents, lockFileContents, options);
|
|
4096
|
+
return await lockFileParser.parseNpmLockV2Project(manifestFileContents, lockFileContents, options);
|
|
4097
4097
|
}
|
|
4098
4098
|
throw new Error('Failed to build dep graph from current project');
|
|
4099
4099
|
}
|
|
@@ -4247,7 +4247,7 @@ async function processNpmWorkspaces(root, settings, targetFiles) {
|
|
|
4247
4247
|
: pathUtil.dirname(packageJsonFileName);
|
|
4248
4248
|
const rootLockfileName = pathUtil.join(rootDir, 'package-lock.json');
|
|
4249
4249
|
const lockContent = get_file_contents_1.getFileContents(root, rootLockfileName);
|
|
4250
|
-
const res = lockFileParser.parseNpmLockV2Project(packageJson.content, lockContent.content, {
|
|
4250
|
+
const res = await lockFileParser.parseNpmLockV2Project(packageJson.content, lockContent.content, {
|
|
4251
4251
|
includeDevDeps: settings.dev || false,
|
|
4252
4252
|
strictOutOfSync: settings.strictOutOfSync || false,
|
|
4253
4253
|
includeOptionalDeps: false,
|