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 5.0.7 to 6.0.0

2

lib/extendProjectsWithTargetDirs.d.ts

@@ -1,2 +0,2 @@

import { Lockfile } from '@pnpm/lockfile-types';
import { type Lockfile } from '@pnpm/lockfile-types';
export declare function extendProjectsWithTargetDirs<T>(projects: Array<T & {

@@ -3,0 +3,0 @@ id: string;

@@ -1,2 +0,2 @@

import { PackageSnapshot } from '@pnpm/lockfile-types';
import { type PackageSnapshot } from '@pnpm/lockfile-types';
export declare function nameVerFromPkgSnapshot(depPath: string, pkgSnapshot: PackageSnapshot): {

@@ -3,0 +3,0 @@ name: string;

@@ -1,3 +0,3 @@

import { PackageSnapshot } from '@pnpm/lockfile-types';
import { Registries } from '@pnpm/types';
import { type PackageSnapshot } from '@pnpm/lockfile-types';
import { type Registries } from '@pnpm/types';
export declare function packageIdFromSnapshot(depPath: string, pkgSnapshot: PackageSnapshot, registries: Registries): string;

@@ -1,2 +0,2 @@

import { PackageSnapshot } from '@pnpm/lockfile-types';
import { type PackageSnapshot } from '@pnpm/lockfile-types';
export declare function packageIsIndependent({ dependencies, optionalDependencies }: PackageSnapshot): boolean;

@@ -1,4 +0,4 @@

import { PackageSnapshot } from '@pnpm/lockfile-types';
import { Resolution } from '@pnpm/resolver-base';
import { Registries } from '@pnpm/types';
import { type PackageSnapshot } from '@pnpm/lockfile-types';
import { type Resolution } from '@pnpm/resolver-base';
import { type Registries } from '@pnpm/types';
export declare function pkgSnapshotToResolution(depPath: string, pkgSnapshot: PackageSnapshot, registries: Registries): Resolution;

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

const { name } = (0, nameVerFromPkgSnapshot_1.nameVerFromPkgSnapshot)(depPath, pkgSnapshot);
const registry = pkgSnapshot.resolution.registry || // eslint-disable-line @typescript-eslint/prefer-nullish-coalescing
(name[0] === '@' && registries[name.split('/')[0]]) ||
registries.default;
const registry = (name[0] === '@' && registries[name.split('/')[0]]) || registries.default;
let tarball;

@@ -63,5 +61,4 @@ if (!pkgSnapshot.resolution.tarball) {

}
/* eslint-enable @typescript-eslint/dot-notation */
}
exports.pkgSnapshotToResolution = pkgSnapshotToResolution;
//# sourceMappingURL=pkgSnapshotToResolution.js.map

@@ -1,5 +0,5 @@

import { Lockfile } from '@pnpm/lockfile-types';
import { ProjectManifest } from '@pnpm/types';
import { type Lockfile } from '@pnpm/lockfile-types';
import { type ProjectManifest } from '@pnpm/types';
export declare function satisfiesPackageManifest(lockfile: Lockfile, pkg: ProjectManifest, importerId: string, opts?: {
autoInstallPeers?: boolean;
}): boolean;
{
"name": "@pnpm/lockfile-utils",
"version": "5.0.7",
"version": "6.0.0",
"description": "Utils for dealing with pnpm-lock.yaml",

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

"engines": {
"node": ">=14.6"
"node": ">=16.14"
},

@@ -17,3 +17,3 @@ "files": [

"keywords": [
"pnpm7",
"pnpm8",
"pnpm",

@@ -34,3 +34,3 @@ "shrinkwrap",

"yaml-tag": "1.1.0",
"@pnpm/lockfile-utils": "5.0.7"
"@pnpm/lockfile-utils": "6.0.0"
},

@@ -40,6 +40,6 @@ "dependencies": {

"ramda": "npm:@pnpm/ramda@0.28.1",
"@pnpm/lockfile-types": "4.3.6",
"@pnpm/resolver-base": "9.2.0",
"@pnpm/types": "8.10.0",
"@pnpm/dependency-path": "1.1.3"
"@pnpm/dependency-path": "2.0.0",
"@pnpm/lockfile-types": "5.0.0",
"@pnpm/resolver-base": "10.0.0",
"@pnpm/types": "9.0.0"
},

@@ -51,3 +51,3 @@ "funding": "https://opencollective.com/pnpm",

"scripts": {
"lint": "eslint src/**/*.ts test/**/*.ts",
"lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"",
"_test": "jest",

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

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