Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pnpm/prune-lockfile

Package Overview
Dependencies
Maintainers
2
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/prune-lockfile - npm Package Compare versions

Comparing version 4.0.22 to 4.0.23

8

lib/index.js

@@ -53,7 +53,7 @@ "use strict";

const devDependencies = (0, difference_1.default)((0, difference_1.default)(Object.keys(pkg.devDependencies ?? {}), optionalDependencies), dependencies);
const allDeps = [
const allDeps = new Set([
...optionalDependencies,
...devDependencies,
...dependencies,
];
]);
const specifiers = {};

@@ -64,3 +64,3 @@ const lockfileDependencies = {};

Object.entries(lockfileSpecs).forEach(([depName, spec]) => {
if (!allDeps.includes(depName))
if (!allDeps.has(depName))
return;

@@ -83,3 +83,3 @@ specifiers[depName] = spec;

// then it is removed from pnpm-lock.yaml as well
!(lockfileSpecs[alias] && !allDeps[alias])) {
!(lockfileSpecs[alias] && !allDeps.has(alias))) {
lockfileDependencies[alias] = dep;

@@ -86,0 +86,0 @@ }

{
"name": "@pnpm/prune-lockfile",
"version": "4.0.22",
"version": "4.0.23",
"description": "Prune a pnpm-lock.yaml",

@@ -29,3 +29,3 @@ "main": "lib/index.js",

"yaml-tag": "1.1.0",
"@pnpm/prune-lockfile": "4.0.22"
"@pnpm/prune-lockfile": "4.0.23"
},

@@ -37,3 +37,3 @@ "dependencies": {

"@pnpm/types": "8.10.0",
"@pnpm/dependency-path": "1.1.1"
"@pnpm/dependency-path": "1.1.2"
},

@@ -40,0 +40,0 @@ "funding": "https://opencollective.com/pnpm",

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