1 | export declare enum NodeLockfileVersion {
|
2 | NpmLockV1 = "NPM_LOCK_V1",
|
3 | NpmLockV2 = "NPM_LOCK_V2",
|
4 | NpmLockV3 = "NPM_LOCK_V3",
|
5 | YarnLockV1 = "YARN_LOCK_V1",
|
6 | YarnLockV2 = "YARN_LOCK_V2",
|
7 | PnpmLockV5 = "PNPM_LOCK_V5",
|
8 | PnpmLockV6 = "PNPM_LOCK_V6",
|
9 | PnpmLockV9 = "PNPM_LOCK_V9"
|
10 | }
|
11 | export declare const getLockfileVersionFromFile: (targetFile: string) => NodeLockfileVersion;
|
12 | export declare function getPnpmLockfileVersion(lockFileContents: string): NodeLockfileVersion.PnpmLockV5 | NodeLockfileVersion.PnpmLockV6 | NodeLockfileVersion.PnpmLockV9;
|
13 | export declare function getYarnLockfileVersion(lockFileContents: string): NodeLockfileVersion.YarnLockV1 | NodeLockfileVersion.YarnLockV2;
|
14 | export declare function getNpmLockfileVersion(lockFileContents: string): NodeLockfileVersion.NpmLockV1 | NodeLockfileVersion.NpmLockV2 | NodeLockfileVersion.NpmLockV3;
|