snyk-nodejs-lockfile-parser
Version:
Generate a dep tree given a lockfile
6 lines (5 loc) • 409 B
TypeScript
import { structUtils } from '@yarnpkg/core';
export declare type ParseDescriptor = typeof structUtils.parseDescriptor;
export declare type ParseRange = typeof structUtils.parseRange;
export declare type YarnLockFileKeyNormalizer = (fullDescriptor: string) => Set<string>;
export declare const yarnLockFileKeyNormalizer: (parseDescriptor: ParseDescriptor, parseRange: ParseRange) => YarnLockFileKeyNormalizer;