snyk 1.767.0 → 1.768.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.
@@ -207235,14 +207235,14 @@ async function getTargetFrameworksFromProjFile(rootDir) {
207235
207235
  reject(new errors_1.FileNotProcessableError(err));
207236
207236
  return;
207237
207237
  }
207238
- const parsedTargetFrameworks = (_b = (_a = parsedCsprojContents === null || parsedCsprojContents === void 0 ? void 0 : parsedCsprojContents.Project) === null || _a === void 0 ? void 0 : _a.PropertyGroup) === null || _b === void 0 ? void 0 : _b.reduce((targetFrameworks, propertyGroup) => {
207238
+ const parsedTargetFrameworks = (((_b = (_a = parsedCsprojContents === null || parsedCsprojContents === void 0 ? void 0 : parsedCsprojContents.Project) === null || _a === void 0 ? void 0 : _a.PropertyGroup) === null || _b === void 0 ? void 0 : _b.reduce((targetFrameworks, propertyGroup) => {
207239
207239
  var _a, _b, _c;
207240
207240
  const targetFrameworkSource = ((_a = propertyGroup === null || propertyGroup === void 0 ? void 0 : propertyGroup.TargetFrameworkVersion) === null || _a === void 0 ? void 0 : _a[0]) || ((_b = propertyGroup === null || propertyGroup === void 0 ? void 0 : propertyGroup.TargetFramework) === null || _b === void 0 ? void 0 : _b[0]) || ((_c = propertyGroup === null || propertyGroup === void 0 ? void 0 : propertyGroup.TargetFrameworks) === null || _c === void 0 ? void 0 : _c[0]) ||
207241
207241
  '';
207242
207242
  return targetFrameworks
207243
207243
  .concat(targetFrameworkSource.split(';'))
207244
207244
  .filter(Boolean);
207245
- }, []);
207245
+ }, [])) || []);
207246
207246
  if (parsedTargetFrameworks.length < 1) {
207247
207247
  debug('Could not find TargetFrameworkVersion/TargetFramework' +
207248
207248
  '/TargetFrameworks defined in the Project.PropertyGroup field of ' +