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

@pnpm/lockfile-utils

Package Overview
Dependencies
Maintainers
3
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 1.0.10 to 2.0.0

lib/satisfiesPackageManifest.d.ts

4

lib/index.d.ts

@@ -6,5 +6,5 @@ export * from '@pnpm/lockfile-types';

import pkgSnapshotToResolution from './pkgSnapshotToResolution';
import satisfiesPackageJson from './satisfiesPackageJson';
export { nameVerFromPkgSnapshot, packageIdFromSnapshot, packageIsIndependent, pkgSnapshotToResolution, satisfiesPackageJson, };
import satisfiesPackageManifest from './satisfiesPackageManifest';
export { nameVerFromPkgSnapshot, packageIdFromSnapshot, packageIsIndependent, pkgSnapshotToResolution, satisfiesPackageManifest, };
import { refToRelative } from 'dependency-path';
export declare const getPkgShortId: typeof refToRelative;

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

exports.pkgSnapshotToResolution = pkgSnapshotToResolution_1.default;
const satisfiesPackageJson_1 = require("./satisfiesPackageJson");
exports.satisfiesPackageJson = satisfiesPackageJson_1.default;
const satisfiesPackageManifest_1 = require("./satisfiesPackageManifest");
exports.satisfiesPackageManifest = satisfiesPackageManifest_1.default;
// for backward compatibility
const dependency_path_1 = require("dependency-path");
exports.getPkgShortId = dependency_path_1.refToRelative;
import { PackageSnapshot } from '@pnpm/lockfile-types';
declare const _default: (relDepPath: string, pkgSnapshot: PackageSnapshot) => {
name: string;
peersSuffix: string | undefined;
version: string;
};
export default _default;

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

name: pkgInfo.name,
peersSuffix: pkgInfo.peersSuffix,
version: pkgInfo.version,

@@ -15,4 +16,5 @@ };

name: pkgSnapshot.name,
peersSuffix: undefined,
version: pkgSnapshot.version,
};
};

@@ -15,3 +15,7 @@ "use strict";

const registry = name[0] === '@' && registries[name.split('/')[0]] || registries.default;
return Object.assign({}, pkgSnapshot.resolution, { registry, tarball: getTarball(registry) });
return {
...pkgSnapshot.resolution,
registry,
tarball: getTarball(registry),
};
}

@@ -23,3 +27,7 @@ if (pkgSnapshot.resolution['tarball'].startsWith('file:')) {

const registry = name[0] === '@' && registries[name.split('/')[0]] || registries.default;
return Object.assign({}, pkgSnapshot.resolution, { registry, tarball: url.resolve(registry, pkgSnapshot.resolution['tarball']) });
return {
...pkgSnapshot.resolution,
registry,
tarball: url.resolve(registry, pkgSnapshot.resolution['tarball']),
};
function getTarball(registry) {

@@ -26,0 +34,0 @@ const { name, version } = dp.parse(relDepPath);

{
"name": "@pnpm/lockfile-utils",
"version": "1.0.10",
"description": "Utils for dealing with pnpm-lock.yaml",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
"engines": {
"node": ">=8.15"
},
"files": [
"lib/"
],
"scripts": {
"lint": "tslint -c tslint.json src/**/*.ts test/**/*.ts",
"test": "pnpm run tsc && pnpm run lint && ts-node test --type-check",
"tsc": "rimraf lib && tsc",
"prepublishOnly": "pnpm run tsc"
},
"repository": "https://github.com/pnpm/pnpm/blob/master/packages/lockfile-utils",
"keywords": [
"pnpm",
"shrinkwrap",
"lockfile"
],
"author": {
"name": "Zoltan Kochan",
"email": "z@kochan.io",
"url": "https://www.kochan.io"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/pnpm/pnpm/issues"
},
"homepage": "https://github.com/pnpm/pnpm/blob/master/packages/lockfile-utils#readme",
"devDependencies": {
"@pnpm/lockfile-utils": "link:",
"@types/js-yaml": "3",
"@types/ramda": "0.25.39",
"rimraf": "2.6.3",
"tape": "4.11.0",
"tempy": "0.3.0",
"write-yaml-file": "3.0.1",
"yaml-tag": "1.1.0"
},
"dependencies": {
"@pnpm/lockfile-types": "1.1.0",
"@pnpm/resolver-base": "3.1.2",
"@pnpm/types": "3.2.0",
"dependency-path": "3.0.8",
"get-npm-tarball-url": "2.0.1",
"ramda": "0.26.1"
}
"name": "@pnpm/lockfile-utils",
"version": "2.0.0",
"description": "Utils for dealing with pnpm-lock.yaml",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
"engines": {
"node": ">=10"
},
"files": [
"lib/"
],
"scripts": {
"lint": "tslint -c tslint.json src/**/*.ts test/**/*.ts",
"test": "pnpm run tsc && pnpm run lint && ts-node test --type-check",
"tsc": "rimraf lib && tsc",
"prepublishOnly": "pnpm run tsc"
},
"repository": "https://github.com/pnpm/pnpm/blob/master/packages/lockfile-utils",
"keywords": [
"pnpm",
"shrinkwrap",
"lockfile"
],
"author": {
"name": "Zoltan Kochan",
"email": "z@kochan.io",
"url": "https://www.kochan.io"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/pnpm/pnpm/issues"
},
"homepage": "https://github.com/pnpm/pnpm/blob/master/packages/lockfile-utils#readme",
"devDependencies": {
"@pnpm/lockfile-utils": "link:",
"@types/js-yaml": "3",
"@types/ramda": "0.26.21",
"rimraf": "3.0.0",
"tape": "4.11.0",
"tempy": "0.3.0",
"write-yaml-file": "3.0.1",
"yaml-tag": "1.1.0"
},
"dependencies": {
"@pnpm/lockfile-types": "1.1.0",
"@pnpm/resolver-base": "4.0.0",
"@pnpm/types": "4.0.0",
"dependency-path": "4.0.0",
"get-npm-tarball-url": "2.0.1",
"ramda": "0.26.1"
}
}
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