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.
@@ -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,