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

@pnpm/filter-lockfile

Package Overview
Dependencies
Maintainers
3
Versions
141
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/filter-lockfile - npm Package Compare versions

Comparing version 5.0.1 to 5.0.2

11

CHANGELOG.md
# @pnpm/filter-lockfile
## 5.0.2
### Patch Changes
- Updated dependencies [97c64bae4]
- @pnpm/types@7.1.0
- dependency-path@7.0.1
- @pnpm/lockfile-utils@3.0.2
- @pnpm/lockfile-walker@4.0.2
- @pnpm/package-is-installable@5.0.1
## 5.0.1

@@ -4,0 +15,0 @@

2

lib/filterLockfile.js

@@ -43,3 +43,3 @@ "use strict";

importers: Object.keys(lockfile.importers).reduce((acc, importerId) => {
acc[importerId] = (0, filterImporter_1.default)(lockfile.importers[importerId], opts.include);
acc[importerId] = filterImporter_1.default(lockfile.importers[importerId], opts.include);
return acc;

@@ -46,0 +46,0 @@ }, {}),

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

const LockfileMissingDependencyError_1 = __importDefault(require("./LockfileMissingDependencyError"));
const logger = (0, logger_1.default)('lockfile');
const logger = logger_1.default('lockfile');
function filterByImporters(lockfile, importerIds, opts) {
const packages = {};
if (lockfile.packages != null) {
pkgAllDeps((0, lockfile_walker_1.default)(lockfile, importerIds, { include: opts.include, skipped: opts.skipped }).step, packages, {
pkgAllDeps(lockfile_walker_1.default(lockfile, importerIds, { include: opts.include, skipped: opts.skipped }).step, packages, {
failOnMissingDependencies: opts.failOnMissingDependencies,

@@ -21,3 +21,3 @@ });

const importers = importerIds.reduce((acc, importerId) => {
acc[importerId] = (0, filterImporter_1.default)(lockfile.importers[importerId], opts.include);
acc[importerId] = filterImporter_1.default(lockfile.importers[importerId], opts.include);
return acc;

@@ -24,0 +24,0 @@ }, { ...lockfile.importers });

@@ -33,3 +33,3 @@ "use strict";

const LockfileMissingDependencyError_1 = __importDefault(require("./LockfileMissingDependencyError"));
const logger = (0, logger_1.default)('lockfile');
const logger = logger_1.default('lockfile');
function filterByImportersAndEngine(lockfile, importerIds, opts) {

@@ -60,3 +60,3 @@ const importerDeps = importerIds

var _a;
acc[importerId] = (0, filterImporter_1.default)(lockfile.importers[importerId], opts.include);
acc[importerId] = filterImporter_1.default(lockfile.importers[importerId], opts.include);
if (acc[importerId].optionalDependencies != null) {

@@ -106,3 +106,3 @@ for (const depName of Object.keys((_a = acc[importerId].optionalDependencies) !== null && _a !== void 0 ? _a : {})) {

const pkg = {
...(0, lockfile_utils_1.nameVerFromPkgSnapshot)(depPath, pkgSnapshot),
...lockfile_utils_1.nameVerFromPkgSnapshot(depPath, pkgSnapshot),
cpu: pkgSnapshot.cpu,

@@ -113,3 +113,3 @@ engines: pkgSnapshot.engines,

// TODO: depPath is not the package ID. Should be fixed
installable = opts.includeIncompatiblePackages || (0, package_is_installable_1.default)((_a = pkgSnapshot.id) !== null && _a !== void 0 ? _a : depPath, pkg, {
installable = opts.includeIncompatiblePackages || package_is_installable_1.default((_a = pkgSnapshot.id) !== null && _a !== void 0 ? _a : depPath, pkg, {
engineStrict: opts.engineStrict,

@@ -116,0 +116,0 @@ lockfileDir: opts.lockfileDir,

{
"name": "@pnpm/filter-lockfile",
"version": "5.0.1",
"version": "5.0.2",
"description": "Filters a lockfile",

@@ -14,9 +14,2 @@ "main": "lib/index.js",

],
"scripts": {
"lint": "eslint -c ../../eslint.json src/**/*.ts test/**/*.ts",
"_test": "jest",
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"compile": "rimraf lib tsconfig.tsbuildinfo && tsc --build && pnpm run lint -- --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/master/packages/filter-lockfile",

@@ -38,3 +31,3 @@ "keywords": [

"@pnpm/logger": "^4.0.0",
"@types/ramda": "^0.27.35",
"@types/ramda": "0.27.39",
"tempy": "^1.0.0",

@@ -48,10 +41,16 @@ "write-yaml-file": "^4.2.0",

"@pnpm/lockfile-types": "3.0.0",
"@pnpm/lockfile-utils": "3.0.1",
"@pnpm/lockfile-walker": "4.0.1",
"@pnpm/package-is-installable": "5.0.0",
"@pnpm/types": "7.0.0",
"dependency-path": "7.0.0",
"@pnpm/lockfile-utils": "3.0.2",
"@pnpm/lockfile-walker": "4.0.2",
"@pnpm/package-is-installable": "5.0.1",
"@pnpm/types": "7.1.0",
"dependency-path": "7.0.1",
"ramda": "^0.27.1"
},
"funding": "https://opencollective.com/pnpm"
"funding": "https://opencollective.com/pnpm",
"scripts": {
"lint": "eslint -c ../../eslint.json src/**/*.ts test/**/*.ts",
"_test": "jest",
"test": "pnpm run compile && pnpm run _test",
"compile": "rimraf lib tsconfig.tsbuildinfo && tsc --build && pnpm run lint -- --fix"
}
}
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