• Home
  • Raw
  • Download

Lines Matching refs:requested

54     const requested = realizeShrinkwrapSpecifier(name, sw, topPath)
64 onDisk[name], name, topPath, tree, sw, requested, opts
100 function relativizeLink (name, spec, topPath, requested) { argument
105 let requestedPath = requested.fetchSpec
106 if (requested.type === 'file') {
114 function inflatableChild (onDiskChild, name, topPath, tree, sw, requested, opts) { argument
117 requested.registry ||
118 requested.type === 'remote' ||
119 requested.type === 'file'
130 relativizeLink(name, spec, topPath, requested) ||
134 const modernLink = requested.type === 'directory' && !sw.from
135 if (hasModernMeta(onDiskChild) && childIsEquivalent(sw, requested, onDiskChild)) {
137 if (!onDiskChild.fromShrinkwrap) onDiskChild.fromShrinkwrap = requested
138 onDiskChild.package._requested = requested
139 onDiskChild.package._spec = requested.rawSpec
146 onDiskChild.package._args.push([String(requested), topPath])
155 …} else if ((sw.version && (sw.integrity || !usesIntegrity) && (requested.type !== 'directory' || m…
158 return BB.resolve(makeFakeChild(name, topPath, tree, sw, requested))
163 return fetchChild(topPath, tree, sw, requested)
172 function makeFakeChild (name, topPath, tree, sw, requested) { argument
173 const isDirectory = requested.type === 'directory'
174 const from = sw.from || requested.raw
180 _requested: requested,
186 _spec: requested.rawSpec,
188 _args: [[requested.toString(), topPath]],
203 fromShrinkwrap: requested,
207 realpath: isDirectory ? requested.fetchSpec : childPath(tree.realpath, pkg),
217 function fetchChild (topPath, tree, sw, requested) { argument
218 return fetchPackageMetadata(requested, topPath).then((pkg) => {
219 pkg._from = sw.from || requested.raw
230 fromShrinkwrap: requested,
232 realpath: isLink ? requested.fetchSpec : childPath(tree.realpath, pkg),
249 function childIsEquivalent (sw, requested, child) { argument
257 …if (child.isLink && requested.type === 'directory') return path.relative(child.realpath, requested
260 if (!isRegistry(requested) && sw.from) return child.package._from === sw.from
261 …if (!isRegistry(requested) && child.package._resolved) return sw.version === child.package._resolv…