fix(core): fix invalid yarn parser dependencies grouping key (#15647)
This commit is contained in:
parent
8a0398d744
commit
3f4ba6d2af
@ -227,7 +227,7 @@ function groupDependencies(
|
|||||||
const resolutionMap = new Map<string, YarnDependency>();
|
const resolutionMap = new Map<string, YarnDependency>();
|
||||||
const snapshotMap = new Map<YarnDependency, Set<string>>();
|
const snapshotMap = new Map<YarnDependency, Set<string>>();
|
||||||
Object.entries(dependencies).forEach(([key, snapshot]) => {
|
Object.entries(dependencies).forEach(([key, snapshot]) => {
|
||||||
const resolutionKey = `${snapshot.resolution}${snapshot.integrity}`;
|
const resolutionKey = `${snapshot.resolved}${snapshot.integrity}`;
|
||||||
if (resolutionMap.has(resolutionKey)) {
|
if (resolutionMap.has(resolutionKey)) {
|
||||||
const existingSnapshot = resolutionMap.get(resolutionKey);
|
const existingSnapshot = resolutionMap.get(resolutionKey);
|
||||||
snapshotMap.get(existingSnapshot).add(key);
|
snapshotMap.get(existingSnapshot).add(key);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user