snyk-nodejs-lockfile-parser
Version:
Generate a dep tree given a lockfile
6 lines (5 loc) • 385 B
TypeScript
import { structUtils } from '@yarnpkg/core';
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;