pnpm-shrinkwrap
Advanced tools
Comparing version 6.2.3 to 6.2.4
@@ -17,4 +17,6 @@ "use strict"; | ||
: Object.keys(pkg[depType]).filter((depName) => !pkg.optionalDependencies || !pkg.optionalDependencies[depName]); | ||
if (pkgDepNames.length !== Object.keys(shr[depType]).length) | ||
if (pkgDepNames.length !== Object.keys(shr[depType]).length && | ||
pkgDepNames.length !== countOfNonLinkedDeps(shr[depType])) { | ||
return false; | ||
} | ||
for (const depName of pkgDepNames) { | ||
@@ -27,2 +29,5 @@ if (!shr[depType][depName] || shr.specifiers[depName] !== pkg[depType][depName]) | ||
}; | ||
function countOfNonLinkedDeps(shrDeps) { | ||
return R.values(shrDeps).filter((ref) => ref.indexOf('link:') === -1 && ref.indexOf('file:') === -1).length; | ||
} | ||
//# sourceMappingURL=satisfiesPackageJson.js.map |
{ | ||
"name": "pnpm-shrinkwrap", | ||
"version": "6.2.3", | ||
"version": "6.2.4", | ||
"description": "Read/write/prune and other utils for dealing with shrinkwrap.yaml files", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
46313
604