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

@pnpm/lockfile-utils

Package Overview
Dependencies
Maintainers
2
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/lockfile-utils - npm Package Compare versions

Comparing version 3.0.8 to 3.1.0

lib/extendProjectsWithTargetDirs.d.ts

3

lib/index.d.ts
import { refToRelative } from 'dependency-path';
import extendProjectsWithTargetDirs from './extendProjectsWithTargetDirs';
import nameVerFromPkgSnapshot from './nameVerFromPkgSnapshot';

@@ -8,3 +9,3 @@ import packageIdFromSnapshot from './packageIdFromSnapshot';

export * from '@pnpm/lockfile-types';
export { nameVerFromPkgSnapshot, packageIdFromSnapshot, packageIsIndependent, pkgSnapshotToResolution, satisfiesPackageManifest, };
export { extendProjectsWithTargetDirs, nameVerFromPkgSnapshot, packageIdFromSnapshot, packageIsIndependent, pkgSnapshotToResolution, satisfiesPackageManifest, };
export declare const getPkgShortId: typeof refToRelative;

@@ -16,4 +16,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.getPkgShortId = exports.satisfiesPackageManifest = exports.pkgSnapshotToResolution = exports.packageIsIndependent = exports.packageIdFromSnapshot = exports.nameVerFromPkgSnapshot = void 0;
exports.getPkgShortId = exports.satisfiesPackageManifest = exports.pkgSnapshotToResolution = exports.packageIsIndependent = exports.packageIdFromSnapshot = exports.nameVerFromPkgSnapshot = exports.extendProjectsWithTargetDirs = void 0;
const dependency_path_1 = require("dependency-path");
const extendProjectsWithTargetDirs_1 = __importDefault(require("./extendProjectsWithTargetDirs"));
exports.extendProjectsWithTargetDirs = extendProjectsWithTargetDirs_1.default;
const nameVerFromPkgSnapshot_1 = __importDefault(require("./nameVerFromPkgSnapshot"));

@@ -20,0 +22,0 @@ exports.nameVerFromPkgSnapshot = nameVerFromPkgSnapshot_1.default;

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

}
const { name } = nameVerFromPkgSnapshot_1.default(depPath, pkgSnapshot);
const { name } = (0, nameVerFromPkgSnapshot_1.default)(depPath, pkgSnapshot);
const registry = pkgSnapshot.resolution['registry'] ||

@@ -57,3 +57,3 @@ (name[0] === '@' && registries[name.split('/')[0]]) ||

}
return get_npm_tarball_url_1.default(name, version, { registry });
return (0, get_npm_tarball_url_1.default)(name, version, { registry });
}

@@ -60,0 +60,0 @@ /* eslint-enable @typescript-eslint/dot-notation */

@@ -13,5 +13,7 @@ "use strict";

return false;
if (!equals_1.default({ ...pkg.devDependencies, ...pkg.dependencies, ...pkg.optionalDependencies }, importer.specifiers)) {
if (!(0, equals_1.default)({ ...pkg.devDependencies, ...pkg.dependencies, ...pkg.optionalDependencies }, importer.specifiers)) {
return false;
}
if (!(0, equals_1.default)(pkg.dependenciesMeta, importer.dependenciesMeta))
return false;
for (const depField of types_1.DEPENDENCIES_FIELDS) {

@@ -18,0 +20,0 @@ const importerDeps = (_a = importer[depField]) !== null && _a !== void 0 ? _a : {};

{
"name": "@pnpm/lockfile-utils",
"version": "3.0.8",
"version": "3.1.0",
"description": "Utils for dealing with pnpm-lock.yaml",

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

"keywords": [
"pnpm6",
"pnpm",

@@ -34,6 +35,6 @@ "shrinkwrap",

"dependencies": {
"@pnpm/lockfile-types": "3.0.0",
"@pnpm/resolver-base": "8.0.4",
"@pnpm/types": "7.4.0",
"dependency-path": "8.0.4",
"@pnpm/lockfile-types": "3.1.0",
"@pnpm/resolver-base": "8.1.0",
"@pnpm/types": "7.5.0",
"dependency-path": "8.0.5",
"get-npm-tarball-url": "^2.0.2",

@@ -44,3 +45,3 @@ "ramda": "^0.27.1"

"scripts": {
"lint": "eslint -c ../../eslint.json src/**/*.ts test/**/*.ts",
"lint": "eslint src/**/*.ts test/**/*.ts",
"_test": "jest",

@@ -47,0 +48,0 @@ "test": "pnpm run compile && pnpm run _test",

Sorry, the diff of this file is not supported yet

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