Skip to content

Commit

Permalink
Merge pull request #4557 from snyk/feat/bump-nodejs-parser-version-1.…
Browse files Browse the repository at this point in the history
…49.0

feat: bump nodejs parser version 1.49.0
  • Loading branch information
JamesPatrickGill authored Apr 18, 2023
2 parents c83da58 + 2b27ec2 commit b51371c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
16 changes: 9 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
"snyk-gradle-plugin": "3.26.3",
"snyk-module": "3.1.0",
"snyk-mvn-plugin": "2.32.3",
"snyk-nodejs-lockfile-parser": "1.48.3",
"snyk-nodejs-lockfile-parser": "1.49.0",
"snyk-nuget-plugin": "1.24.1",
"snyk-php-plugin": "1.9.2",
"snyk-policy": "^1.25.0",
Expand Down
4 changes: 2 additions & 2 deletions src/lib/plugins/nodejs-plugin/npm-lock-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,14 @@ async function buildDepGraph(
options,
);
case NodeLockfileVersion.YarnLockV2:
return lockFileParser.parseYarnLockV2Project(
return await lockFileParser.parseYarnLockV2Project(
manifestFileContents,
lockFileContents,
options,
);
case NodeLockfileVersion.NpmLockV2:
case NodeLockfileVersion.NpmLockV3:
return lockFileParser.parseNpmLockV2Project(
return await lockFileParser.parseNpmLockV2Project(
manifestFileContents,
lockFileContents,
options,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/plugins/nodejs-plugin/npm-workspaces-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export async function processNpmWorkspaces(
const rootLockfileName = pathUtil.join(rootDir, 'package-lock.json');
const lockContent = getFileContents(root, rootLockfileName);

const res = lockFileParser.parseNpmLockV2Project(
const res = await lockFileParser.parseNpmLockV2Project(
packageJson.content,
lockContent.content,
{
Expand Down

0 comments on commit b51371c

Please sign in to comment.