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 5.4.0 to 6.0.0

7

lib/prune.js

@@ -39,2 +39,9 @@ "use strict";

});
if (shr.dependencies) {
for (const dep of R.keys(shr.dependencies)) {
if (!shrDependencies[dep] && shr.dependencies[dep].startsWith('link:')) {
shrDependencies[dep] = shr.dependencies[dep];
}
}
}
const devDepRelativePaths = R.keys(shrDevDependencies)

@@ -41,0 +48,0 @@ .map((pkgName) => dependency_path_1.refToRelative(shrDevDependencies[pkgName], pkgName));

5

lib/write.js

@@ -6,2 +6,3 @@ "use strict";

const path = require("path");
const R = require("ramda");
const rimraf = require("rimraf-then");

@@ -29,3 +30,3 @@ const promisify = require("util.promisify");

// empty shrinkwrap is not saved
if (Object.keys(wantedShrinkwrap.specifiers).length === 0) {
if (R.isEmpty(wantedShrinkwrap.specifiers || {}) && R.isEmpty(wantedShrinkwrap.dependencies || {})) {
return rimraf(shrinkwrapPath);

@@ -40,3 +41,3 @@ }

// empty shrinkwrap is not saved
if (Object.keys(wantedShrinkwrap.specifiers).length === 0) {
if (R.isEmpty(wantedShrinkwrap.specifiers || {}) && R.isEmpty(wantedShrinkwrap.dependencies || {})) {
return Promise.all([

@@ -43,0 +44,0 @@ rimraf(wantedShrinkwrapPath),

2

package.json
{
"name": "pnpm-shrinkwrap",
"version": "5.4.0",
"version": "6.0.0",
"description": "pnpm's shrinkwrap",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

Sorry, the diff of this file is not supported yet

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