UNPKG

@socketsecurity/lib

Version:

Core utilities and infrastructure for Socket.dev security tools

22 lines (21 loc) 810 B
import type { NormalizeOptions, PackageJson } from '../packages'; /** * Normalize a package.json object with standard npm package normalization. */ /*@__NO_SIDE_EFFECTS__*/ export declare function normalizePackageJson(pkgJson: PackageJson, options?: NormalizeOptions): PackageJson; /** * Extract escaped scope from a Socket registry package name. */ /*@__NO_SIDE_EFFECTS__*/ export declare function resolveEscapedScope(sockRegPkgName: string): string | undefined; /** * Resolve original package name from Socket registry package name. */ /*@__NO_SIDE_EFFECTS__*/ export declare function resolveOriginalPackageName(sockRegPkgName: string): string; /** * Convert escaped scope to standard npm scope format. */ /*@__NO_SIDE_EFFECTS__*/ export declare function unescapeScope(escapedScope: string): string;