snyk 1.959.0 → 1.960.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.
@@ -967,7 +967,7 @@ function referencedResourcesResolver(scanInput, resources) {
967
967
  const inputKey = 'resource';
968
968
  // only update the references in resources that have some resolved attributes already
969
969
  const resolvedResource = (_b = (_a = scanInput[inputKey]) === null || _a === void 0 ? void 0 : _a[type]) === null || _b === void 0 ? void 0 : _b[getResourceName(index, name)];
970
- if (resolvedResource) {
970
+ if (resolvedResource && expressions) {
971
971
  const resourceExpressions = getExpressions(expressions);
972
972
  for (const key of Object.keys(resourceExpressions)) {
973
973
  // only add non existing attributes. If we already have resolved value do not overwrite it with reference