@pnpm/lockfile.types 1001.0.8 → 1002.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { type PatchFile } from '@pnpm/patching.types';
2
2
  import { type DependenciesMeta, type DepPath, type ProjectId } from '@pnpm/types';
3
+ import { type PlatformAssetTarget } from '@pnpm/resolver-base';
3
4
  export type { PatchFile, ProjectId };
4
5
  export * from './lockfileFileTypes';
5
6
  export interface LockfileSettings {
@@ -95,8 +96,23 @@ export interface GitRepositoryResolution {
95
96
  commit: string;
96
97
  path?: string;
97
98
  }
98
- export type Resolution = TarballResolution | GitRepositoryResolution | DirectoryResolution;
99
- export type LockfileResolution = Resolution | {
99
+ export interface BinaryResolution {
100
+ type: 'binary';
101
+ url: string;
102
+ integrity: string;
103
+ bin: string;
104
+ archive: 'zip' | 'tarball';
105
+ }
106
+ export interface PlatformAssetResolution {
107
+ resolution: Resolution;
108
+ targets: PlatformAssetTarget[];
109
+ }
110
+ export type Resolution = TarballResolution | GitRepositoryResolution | DirectoryResolution | BinaryResolution;
111
+ export interface VariationsResolution {
112
+ type: 'variations';
113
+ variants: PlatformAssetResolution[];
114
+ }
115
+ export type LockfileResolution = Resolution | VariationsResolution | {
100
116
  integrity: string;
101
117
  };
102
118
  export type PackageSnapshot = LockfilePackageInfo & LockfilePackageSnapshot;
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAKA,sDAAmC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAMA,sDAAmC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm/lockfile.types",
3
- "version": "1001.0.8",
3
+ "version": "1002.0.0",
4
4
  "description": "Types for the pnpm-lock.yaml lockfile",
5
5
  "keywords": [
6
6
  "pnpm",
@@ -15,6 +15,7 @@
15
15
  "bugs": {
16
16
  "url": "https://github.com/pnpm/pnpm/issues"
17
17
  },
18
+ "type": "commonjs",
18
19
  "main": "lib/index.js",
19
20
  "types": "lib/index.d.ts",
20
21
  "exports": {
@@ -26,10 +27,11 @@
26
27
  ],
27
28
  "dependencies": {
28
29
  "@pnpm/patching.types": "1000.1.0",
29
- "@pnpm/types": "1000.6.0"
30
+ "@pnpm/resolver-base": "1005.0.0",
31
+ "@pnpm/types": "1000.7.0"
30
32
  },
31
33
  "devDependencies": {
32
- "@pnpm/lockfile.types": "1001.0.8"
34
+ "@pnpm/lockfile.types": "1002.0.0"
33
35
  },
34
36
  "engines": {
35
37
  "node": ">=18.12"