1 | import { PackageJsonBase } from './types';
|
2 | import { DepGraphBuilder } from '@snyk/dep-graph';
|
3 | import { NormalisedPkgs } from './types';
|
4 | export declare type Dependencies = Record<string, {
|
5 | version: string;
|
6 | isDev: boolean;
|
7 | }>;
|
8 | export interface PkgNode {
|
9 | id: string;
|
10 | name: string;
|
11 | version: string;
|
12 | dependencies: Dependencies;
|
13 | isDev: boolean;
|
14 | missingLockFileEntry?: boolean;
|
15 | inBundle?: boolean;
|
16 | key?: string;
|
17 | }
|
18 | export declare const addPkgNodeToGraph: (depGraphBuilder: DepGraphBuilder, node: PkgNode, options: {
|
19 | isCyclic?: boolean;
|
20 | isWorkspacePkg?: boolean;
|
21 | }) => DepGraphBuilder;
|
22 |
|
23 |
|
24 |
|
25 |
|
26 | export declare const getTopLevelDeps: (pkgJson: PackageJsonBase, options: {
|
27 | includeDevDeps: boolean;
|
28 | includeOptionalDeps?: boolean;
|
29 | includePeerDeps?: boolean;
|
30 | }) => Dependencies;
|
31 |
|
32 |
|
33 |
|
34 |
|
35 | export declare const getGraphDependencies: (dependencies: Record<string, string>, isDev: any) => Dependencies;
|
36 | export declare function parsePkgJson(pkgJsonContent: string): PackageJsonBase;
|
37 | export declare const getChildNode: (name: string, depInfo: {
|
38 | version: string;
|
39 | isDev: boolean;
|
40 | }, pkgs: NormalisedPkgs, strictOutOfSync: boolean, includeOptionalDeps: boolean) => PkgNode;
|