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

Method getDefaultDescriptors

sources/Engine.ts:161–168  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

159 }
160
161 async getDefaultDescriptors() {
162 const locators: Array<Descriptor> = [];
163
164 for (const name of SupportedPackageManagerSet as Set<SupportedPackageManagers>)
165 locators.push({name, range: await this.getDefaultVersion(name)});
166
167 return locators;
168 }
169
170 async getDefaultVersion(packageManager: SupportedPackageManagers) {
171 const definition = this.config.definitions[packageManager];

Callers

nothing calls this directly

Calls 1

getDefaultVersionMethod · 0.95

Tested by

no test coverage detected