@pnpm/lockfile-utils
Advanced tools
Comparing version 5.0.7 to 6.0.0
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24892
313
+ Added@pnpm/crypto.base32-hash@2.0.0(transitive)
+ Added@pnpm/dependency-path@2.0.0(transitive)
+ Added@pnpm/lockfile-types@5.0.0(transitive)
+ Added@pnpm/resolver-base@10.0.0(transitive)
+ Added@pnpm/types@9.0.0(transitive)
- Removed@pnpm/crypto.base32-hash@1.0.1(transitive)
- Removed@pnpm/dependency-path@1.1.3(transitive)
- Removed@pnpm/lockfile-types@4.3.6(transitive)
- Removed@pnpm/resolver-base@9.2.0(transitive)
- Removed@pnpm/types@8.10.0(transitive)
Updated@pnpm/dependency-path@2.0.0
Updated@pnpm/lockfile-types@5.0.0
Updated@pnpm/resolver-base@10.0.0
Updated@pnpm/types@9.0.0