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

@pnpm/lockfile-file

Package Overview
Dependencies
Maintainers
2
Versions
119
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/lockfile-file - npm Package Compare versions

Comparing version 4.2.6 to 4.3.0

6

lib/index.js
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {

@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k;

@@ -31,3 +31,5 @@ "use strict";

lockfileVersion: 1,
// only and never are conflict options.
neverBuiltDependencies: 2,
onlyBuiltDependencies: 2,
overrides: 3,

@@ -34,0 +36,0 @@ packageExtensionsChecksum: 4,

@@ -107,2 +107,5 @@ "use strict";

}
if (lockfileToSave.onlyBuiltDependencies != null) {
lockfileToSave.onlyBuiltDependencies = lockfileToSave.onlyBuiltDependencies.sort();
}
if (!lockfileToSave.packageExtensionsChecksum) {

@@ -109,0 +112,0 @@ delete lockfileToSave.packageExtensionsChecksum;

21

package.json
{
"name": "@pnpm/lockfile-file",
"version": "4.2.6",
"version": "4.3.0",
"description": "Read/write pnpm-lock.yaml files",

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

],
"repository": "https://github.com/pnpm/pnpm/blob/master/packages/lockfile-file",
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/lockfile-file",
"keywords": [

@@ -26,3 +26,3 @@ "pnpm6",

},
"homepage": "https://github.com/pnpm/pnpm/blob/master/packages/lockfile-file#readme",
"homepage": "https://github.com/pnpm/pnpm/blob/main/packages/lockfile-file#readme",
"peerDependencies": {

@@ -32,3 +32,3 @@ "@pnpm/logger": "^4.0.0"

"devDependencies": {
"@pnpm/lockfile-file": "4.2.6",
"@pnpm/lockfile-file": "4.3.0",
"@pnpm/logger": "^4.0.0",

@@ -46,6 +46,6 @@ "@types/js-yaml": "^4.0.0",

"@pnpm/error": "2.0.0",
"@pnpm/lockfile-types": "3.1.5",
"@pnpm/merge-lockfile-changes": "2.0.7",
"@pnpm/types": "7.9.0",
"@zkochan/rimraf": "^2.1.1",
"@pnpm/lockfile-types": "3.2.0",
"@pnpm/merge-lockfile-changes": "2.0.8",
"@pnpm/types": "7.10.0",
"@zkochan/rimraf": "^2.1.2",
"comver-to-semver": "^1.0.0",

@@ -65,5 +65,4 @@ "js-yaml": "npm:@zkochan/js-yaml@0.0.5",

"test": "pnpm run compile && pnpm run _test",
"compile": "rimraf lib tsconfig.tsbuildinfo && tsc --build && pnpm run lint -- --fix"
},
"readme": "# @pnpm/lockfile-file\n\n> Read/write pnpm-lock.yaml files\n\nReads and writes the wanted (`pnpm-lock.yaml`) and current (`node_modules/.pnpm-lock.yaml`) lockfile files of pnpm.\nLockfile files are the state files of the `node_modules` installed via pnpm. They are like\nthe `package-lock.json` of npm or the `yarn.lock` of Yarn.\n\n## Install\n\n```\npnpm add @pnpm/lockfile-file\n```\n\n## API\n\n### `readWantedLockfile(pkgPath, opts) => Promise<Lockfile>`\n\nReads the `pnpm-lock.yaml` file from the root of the package.\n\n#### Arguments\n\n* `pkgPath` - *Path* - the path to the project\n* `opts.ignoreIncompatible` - *Boolean* - `false` by default. If `true`, throws an error\nif the lockfile file format is not compatible with the current library.\n\n### `readCurrentLockfile(virtualStoreDir, opts) => Promise<Lockfile>`\n\nReads the lockfile file from `<virtualStoreDir>/lock.yaml`.\n\n### `existsWantedLockfile(pkgPath) => Promise<Boolean>`\n\nReturns `true` if a `pnpm-lock.yaml` exists in the root of the package.\n\n### `writeLockfiles(opts) => Promise<void>`\n\nWrites the wanted/current lockfile files. When they are empty, removes them.\n\n#### Arguments\n\n* `opts.wantedLockfile`\n* `opts.wantedLockfileDir`\n* `opts.currentLockfile`\n* `opts.currentLockfileDir`\n* `[opts.forceSharedFormat]`\n\n### `writeWantedLockfile(pkgPath, wantedLockfile) => Promise<void>`\n\nWrites the wanted lockfile file only. Sometimes it is needed just to update the wanted lockfile\nwithout touching `node_modules`.\n\n### `writeCurrentLockfile(virtualStoreDir, currentLockfile) => Promise<void>`\n\nWrites the current lockfile file only.\n\n## License\n\n[MIT](LICENSE)\n"
"compile": "tsc --build && pnpm run lint --fix"
}
}

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