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 8.0.2 to 8.1.0

4

lib/existsWantedLockfile.d.ts

@@ -1,6 +0,6 @@

interface ExistsWantedLockfileOptions {
interface existsNonEmptyWantedLockfileOptions {
useGitBranchLockfile?: boolean;
mergeGitBranchLockfiles?: boolean;
}
export declare function existsWantedLockfile(pkgPath: string, opts?: ExistsWantedLockfileOptions): Promise<unknown>;
export declare function existsNonEmptyWantedLockfile(pkgPath: string, opts?: existsNonEmptyWantedLockfileOptions): Promise<unknown>;
export {};

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.existsWantedLockfile = void 0;
exports.existsNonEmptyWantedLockfile = void 0;
const fs_1 = __importDefault(require("fs"));
const path_1 = __importDefault(require("path"));
const lockfileName_1 = require("./lockfileName");
async function existsWantedLockfile(pkgPath, opts = {
async function existsNonEmptyWantedLockfile(pkgPath, opts = {
useGitBranchLockfile: false,

@@ -30,3 +30,3 @@ mergeGitBranchLockfiles: false,

}
exports.existsWantedLockfile = existsWantedLockfile;
exports.existsNonEmptyWantedLockfile = existsNonEmptyWantedLockfile;
//# sourceMappingURL=existsWantedLockfile.js.map

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

let packages = lockfile.packages;
if (originalVersion === 6) {
if (originalVersionStr.startsWith('6.')) {
revertedImporters = Object.fromEntries(Object.entries(revertedImporters ?? {})

@@ -157,3 +157,3 @@ .map(([importerId, pkgSnapshot]) => {

};
if (originalVersion === 6 && newLockfile.time) {
if (originalVersionStr.startsWith('6.') && newLockfile.time) {
newLockfile.time = Object.fromEntries(Object.entries(newLockfile.time)

@@ -160,0 +160,0 @@ .map(([depPath, time]) => [convertLockfileV6DepPathToV5DepPath(depPath), time]));

export { isEmptyLockfile, writeLockfiles, writeCurrentLockfile, writeWantedLockfile, } from './write';
export { existsWantedLockfile } from './existsWantedLockfile';
export { existsNonEmptyWantedLockfile } from './existsWantedLockfile';
export { getLockfileImporterId } from './getLockfileImporterId';

@@ -4,0 +4,0 @@ export * from '@pnpm/lockfile-types';

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.cleanGitBranchLockfiles = exports.getLockfileImporterId = exports.existsWantedLockfile = exports.writeWantedLockfile = exports.writeCurrentLockfile = exports.writeLockfiles = exports.isEmptyLockfile = void 0;
exports.cleanGitBranchLockfiles = exports.getLockfileImporterId = exports.existsNonEmptyWantedLockfile = exports.writeWantedLockfile = exports.writeCurrentLockfile = exports.writeLockfiles = exports.isEmptyLockfile = void 0;
var write_1 = require("./write");

@@ -25,3 +25,3 @@ Object.defineProperty(exports, "isEmptyLockfile", { enumerable: true, get: function () { return write_1.isEmptyLockfile; } });

var existsWantedLockfile_1 = require("./existsWantedLockfile");
Object.defineProperty(exports, "existsWantedLockfile", { enumerable: true, get: function () { return existsWantedLockfile_1.existsWantedLockfile; } });
Object.defineProperty(exports, "existsNonEmptyWantedLockfile", { enumerable: true, get: function () { return existsWantedLockfile_1.existsNonEmptyWantedLockfile; } });
var getLockfileImporterId_1 = require("./getLockfileImporterId");

@@ -28,0 +28,0 @@ Object.defineProperty(exports, "getLockfileImporterId", { enumerable: true, get: function () { return getLockfileImporterId_1.getLockfileImporterId; } });

@@ -23,5 +23,11 @@ import { type Lockfile } from '@pnpm/lockfile-types';

lockfileVersion: number | string;
autoInstallPeers: boolean;
excludeLinksFromLockfile: boolean;
}): {
importers: Record<string, import("@pnpm/lockfile-types").ProjectSnapshot>;
lockfileVersion: string | number;
settings: {
autoInstallPeers: boolean;
excludeLinksFromLockfile: boolean;
};
};

@@ -111,2 +111,6 @@ "use strict";

lockfileVersion: opts.lockfileVersion || constants_1.LOCKFILE_VERSION,
settings: {
autoInstallPeers: opts.autoInstallPeers,
excludeLinksFromLockfile: opts.excludeLinksFromLockfile,
},
};

@@ -113,0 +117,0 @@ }

@@ -33,8 +33,9 @@ "use strict";

lockfileVersion: 1,
settings: 2,
// only and never are conflict options.
neverBuiltDependencies: 2,
onlyBuiltDependencies: 2,
overrides: 3,
packageExtensionsChecksum: 4,
patchedDependencies: 5,
neverBuiltDependencies: 3,
onlyBuiltDependencies: 3,
overrides: 4,
packageExtensionsChecksum: 5,
patchedDependencies: 6,
specifiers: 10,

@@ -41,0 +42,0 @@ dependencies: 11,

{
"name": "@pnpm/lockfile-file",
"version": "8.0.2",
"version": "8.1.0",
"description": "Read/write pnpm-lock.yaml files",

@@ -36,5 +36,5 @@ "main": "lib/index.js",

"tempy": "^1.0.1",
"write-yaml-file": "^4.2.0",
"write-yaml-file": "^5.0.0",
"yaml-tag": "1.1.0",
"@pnpm/lockfile-file": "8.0.2"
"@pnpm/lockfile-file": "8.1.0"
},

@@ -48,13 +48,13 @@ "dependencies": {

"ramda": "npm:@pnpm/ramda@0.28.1",
"semver": "^7.4.0",
"semver": "^7.5.0",
"sort-keys": "^4.2.0",
"strip-bom": "^4.0.0",
"write-file-atomic": "^5.0.0",
"@pnpm/constants": "7.0.0",
"@pnpm/dependency-path": "2.1.1",
"@pnpm/error": "5.0.0",
"write-file-atomic": "^5.0.1",
"@pnpm/constants": "7.1.0",
"@pnpm/dependency-path": "2.1.2",
"@pnpm/error": "5.0.1",
"@pnpm/git-utils": "1.0.0",
"@pnpm/lockfile-types": "5.0.0",
"@pnpm/merge-lockfile-changes": "5.0.1",
"@pnpm/types": "9.0.0"
"@pnpm/lockfile-types": "5.1.0",
"@pnpm/merge-lockfile-changes": "5.0.2",
"@pnpm/types": "9.1.0"
},

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

@@ -31,3 +31,3 @@ # @pnpm/lockfile-file

### `existsWantedLockfile(pkgPath) => Promise<Boolean>`
### `existsNonEmptyWantedLockfile(pkgPath) => Promise<Boolean>`

@@ -34,0 +34,0 @@ Returns `true` if a `pnpm-lock.yaml` exists in the root of the package.

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

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