snyk 1.1256.0 → 1.1258.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.
@@ -221599,8 +221599,10 @@ const checkOverrides = (ancestry, overrides) => {
221599
221599
  if (!override) {
221600
221600
  continue;
221601
221601
  }
221602
- // If we find a string as override we know we found what we want
221603
- if (typeof override === 'string') {
221602
+ // If we find a string as override we know we found what we want *if*
221603
+ // we are at our root
221604
+ if (idx + 1 === ancestryWithoutRoot.length &&
221605
+ typeof override === 'string') {
221604
221606
  return override;
221605
221607
  }
221606
221608
  // If we don't find a string we might have a dotted reference