snyk 1.1127.0 → 1.1128.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.
- package/dist/cli/95.index.js +9 -9
- package/dist/cli/95.index.js.map +1 -1
- package/dist/cli/thirdPartyNotice.json +2 -2
- package/package.json +1 -1
- package/src/generated/sha256sums.txt +10 -10
- package/src/generated/version +1 -1
- package/wrapper_dist/generated/sha256sums.txt +10 -10
- package/wrapper_dist/generated/version +1 -1
package/dist/cli/95.index.js
CHANGED
|
@@ -154134,15 +154134,15 @@ const getChildNodeKey = (name, ancestry, pkgs, pkgKeysByName) => {
|
|
|
154134
154134
|
keysFilteredByParentKey = possibleFilteredKeys;
|
|
154135
154135
|
}
|
|
154136
154136
|
}
|
|
154137
|
-
|
|
154138
|
-
|
|
154139
|
-
|
|
154140
|
-
|
|
154141
|
-
|
|
154142
|
-
|
|
154143
|
-
|
|
154144
|
-
|
|
154145
|
-
|
|
154137
|
+
const ancestry_names = ancestry.map((el) => el.name).concat(name);
|
|
154138
|
+
while (ancestry_names.length > 0) {
|
|
154139
|
+
const possible_key = `node_modules/${ancestry_names.join('/node_modules/')}`;
|
|
154140
|
+
if (pkgs[possible_key]) {
|
|
154141
|
+
return possible_key;
|
|
154142
|
+
}
|
|
154143
|
+
ancestry_names.shift();
|
|
154144
|
+
}
|
|
154145
|
+
return undefined;
|
|
154146
154146
|
};
|
|
154147
154147
|
//# sourceMappingURL=index.js.map
|
|
154148
154148
|
|