snyk 1.787.0 → 1.788.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.
@@ -207170,14 +207170,14 @@ async function getTargetFrameworksFromProjFile(rootDir) {
207170
207170
  reject(new errors_1.FileNotProcessableError(err));
207171
207171
  return;
207172
207172
  }
207173
- 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) => {
207173
+ 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) => {
207174
207174
  var _a, _b, _c;
207175
207175
  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]) ||
207176
207176
  '';
207177
207177
  return targetFrameworks
207178
207178
  .concat(targetFrameworkSource.split(';'))
207179
207179
  .filter(Boolean);
207180
- }, [])) || []);
207180
+ }, [])) || [];
207181
207181
  if (parsedTargetFrameworks.length < 1) {
207182
207182
  debug('Could not find TargetFrameworkVersion/TargetFramework' +
207183
207183
  '/TargetFrameworks defined in the Project.PropertyGroup field of ' +
@@ -207826,7 +207826,7 @@ async function loadNuspecFromAsync(dep) {
207826
207826
  //this is exported for testing, but should not executed directly. Hence the '_' in the name.
207827
207827
  async function _parsedNuspec(nuspecContent, targetFramework, depName) {
207828
207828
  var _a;
207829
- const parsedNuspec = await parseXML.parseStringPromise(nuspecContent);
207829
+ const parsedNuspec = await parseXML.parseStringPromise(nuspecContent.trim());
207830
207830
  let ownDeps = [];
207831
207831
  //note: this will throw if assertion fails
207832
207832
  assertNuspecSchema(parsedNuspec);