UNPKG

snyk-nodejs-lockfile-parser

Version:
18 lines (17 loc) • 987 B
import * as structUtils from '../../parsers/yarn-structs'; import { NormalisedPkgs, WorkspacePackageManifest } from '../types'; import { PkgNode } from '../util'; export type ParseDescriptor = typeof structUtils.parseDescriptor; export type ParseRange = typeof structUtils.parseRange; export type YarnLockFileKeyNormalizer = (fullDescriptor: string) => Set<string>; export declare const yarnLockFileKeyNormalizer: (parseDescriptor: ParseDescriptor, parseRange: ParseRange) => YarnLockFileKeyNormalizer; export declare const getYarnLockV2ChildNode: (name: string, depInfo: { version: string; isDev: boolean; alias?: { aliasName: string; aliasTargetDepName: string; semver: string; version: string; }; }, pkgs: NormalisedPkgs, strictOutOfSync: boolean, includeOptionalDeps: boolean, resolutions: Record<string, string>, parentNode: PkgNode, includeDevDeps?: boolean, workspacePackages?: Record<string, WorkspacePackageManifest>) => PkgNode;