Skip to content

Commit b51371c

Browse files
Merge pull request #4557 from snyk/feat/bump-nodejs-parser-version-1.49.0
feat: bump nodejs parser version 1.49.0
2 parents c83da58 + 2b27ec2 commit b51371c

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

package-lock.json

Lines changed: 9 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
"snyk-gradle-plugin": "3.26.3",
120120
"snyk-module": "3.1.0",
121121
"snyk-mvn-plugin": "2.32.3",
122-
"snyk-nodejs-lockfile-parser": "1.48.3",
122+
"snyk-nodejs-lockfile-parser": "1.49.0",
123123
"snyk-nuget-plugin": "1.24.1",
124124
"snyk-php-plugin": "1.9.2",
125125
"snyk-policy": "^1.25.0",

src/lib/plugins/nodejs-plugin/npm-lock-parser.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,14 @@ async function buildDepGraph(
125125
options,
126126
);
127127
case NodeLockfileVersion.YarnLockV2:
128-
return lockFileParser.parseYarnLockV2Project(
128+
return await lockFileParser.parseYarnLockV2Project(
129129
manifestFileContents,
130130
lockFileContents,
131131
options,
132132
);
133133
case NodeLockfileVersion.NpmLockV2:
134134
case NodeLockfileVersion.NpmLockV3:
135-
return lockFileParser.parseNpmLockV2Project(
135+
return await lockFileParser.parseNpmLockV2Project(
136136
manifestFileContents,
137137
lockFileContents,
138138
options,

src/lib/plugins/nodejs-plugin/npm-workspaces-parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export async function processNpmWorkspaces(
9393
const rootLockfileName = pathUtil.join(rootDir, 'package-lock.json');
9494
const lockContent = getFileContents(root, rootLockfileName);
9595

96-
const res = lockFileParser.parseNpmLockV2Project(
96+
const res = await lockFileParser.parseNpmLockV2Project(
9797
packageJson.content,
9898
lockContent.content,
9999
{

0 commit comments

Comments
 (0)