UNPKG

992 BTypeScriptView Raw
1import { DepGraphBuildOptions, Overrides, PackageJsonBase, ProjectParseOptions } from '../types';
2import { extractPkgsFromNpmLockV2 } from './extract-npm-lock-v2-pkgs';
3import type { NpmLockPkg } from './extract-npm-lock-v2-pkgs';
4import { DepGraph } from '@snyk/dep-graph';
5export { extractPkgsFromNpmLockV2 };
6export declare const parseNpmLockV2Project: (pkgJsonContent: string, pkgLockContent: string, options: ProjectParseOptions) => Promise<DepGraph>;
7export declare const buildDepGraphNpmLockV2: (npmLockPkgs: Record<string, NpmLockPkg>, pkgJson: PackageJsonBase, options: DepGraphBuildOptions) => Promise<DepGraph>;
8export declare const getChildNodeKey: (name: string, version: string, ancestry: {
9 name: string;
10 key: string;
11 inBundle: boolean;
12}[], pkgs: Record<string, NpmLockPkg>, pkgKeysByName: Map<string, string[]>) => string | undefined;
13export declare const matchOverrideKey: (overrides: Overrides, pkg: {
14 name: string;
15 version: string;
16}) => string | null;