MCPcopy Create free account
hub / github.com/apache/camel-website / resolve

Method resolve

github-release-binary.js:199–217  ·  view source on GitHub ↗
(locator, opts)

Source from the content-addressed store, hash-verified

197 }
198
199 async resolve(locator, opts) {
200 const parts = parse(locator.reference);
201
202 const fsLibDep = structUtils.makeDescriptor(structUtils.makeIdent('yarnpkg', 'fslib'), YARN_FS_VERSION)
203
204 const dependencies = new Map();
205 dependencies.set(fsLibDep.identHash, fsLibDep);
206
207 return {
208 ...locator,
209 version: parts.version,
210 languageName: opts.project.configuration.get(`defaultLanguageName`),
211 linkType: LinkType.HARD,
212 dependencies: opts.project.configuration.normalizeDependencyMap(dependencies),
213 bin: [
214 [ parts.binary, 'exec.js' ]
215 ]
216 };
217 }
218
219 }
220

Callers 5

withMenuData.jsFile · 0.80
pack.jsFile · 0.80
build.jsFile · 0.80
withMenuData.jsFile · 0.80

Calls 1

parseFunction · 0.85

Tested by

no test coverage detected