New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

pnpm-shrinkwrap

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pnpm-shrinkwrap - npm Package Compare versions

Comparing version 6.2.3 to 6.2.4

7

lib/satisfiesPackageJson.js

@@ -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

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc