MCPcopy Index your code
hub / github.com/nodejs/corepack / getLastKnownGoodFromFileContent

Function getLastKnownGoodFromFileContent

sources/Engine.ts:78–82  ·  view source on GitHub ↗
(lastKnownGood: Record<string, string>, packageManager: string)

Source from the content-addressed store, hash-verified

76}
77
78export function getLastKnownGoodFromFileContent(lastKnownGood: Record<string, string>, packageManager: string) {
79 if (Object.hasOwn(lastKnownGood, packageManager))
80 return lastKnownGood[packageManager];
81 return undefined;
82}
83
84export async function activatePackageManager(lastKnownGood: Record<string, string>, locator: Locator) {
85 if (lastKnownGood[locator.name] === locator.reference) {

Callers 1

getDefaultVersionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…