• Home
  • Raw
  • Download

Lines Matching full:spec

24   let spec
37 spec = arg
39 spec = arg
42 spec = arg.slice(nameEndsAt + 1)
49 spec = arg
52 return resolve(name, spec, where, arg)
57 function resolve (name, spec, where, arg) { argument
61 rawSpec: spec,
67 if (spec && (isFilespec.test(spec) || /^file:/i.test(spec))) {
69 } else if (spec && /^npm:/i.test(spec)) {
73 const hosted = HostedGit.fromUrl(spec, {noGitPlus: true, noCommittish: true})
76 } else if (spec && isURL.test(spec)) {
78 } else if (spec && (hasSlashes.test(spec) || isFilename.test(spec))) {
133 const spec = this.saveSpec || this.fetchSpec || this.rawSpec
134 if (spec != null && spec !== '') full.push(spec)
156 function resolvePath (where, spec) { argument
157 if (isAbsolutePath.test(spec)) return spec
158 return path().resolve(where, spec)
172 const spec = res.rawSpec.replace(/\\/g, '/')
175 if (/^~[/]/.test(spec)) {
178 res.fetchSpec = resolvePath(osenv.home(), spec.slice(2))
179 res.saveSpec = 'file:' + spec
181 res.fetchSpec = resolvePath(where, spec)
182 if (isAbsolute(spec)) {
183 res.saveSpec = 'file:' + spec
199 function unsupportedURLType (protocol, spec) { argument
200 const err = new Error(`Unsupported URL Type "${protocol}": ${spec}`)
205 function matchGitScp (spec) { argument
214 const matched = spec.match(/^git\+ssh:\/\/([^:#]+:[^#]+(?:\.git)?)(?:#(.*))?$/i)
282 const spec = res.rawSpec === '' ? 'latest' : res.rawSpec
283 // no save spec for registry components as we save based on the fetched
286 res.fetchSpec = spec
288 const version = semver.valid(spec, true)
289 const range = semver.validRange(spec, true)
295 if (encodeURIComponent(spec) !== spec) {
296 throw invalidTagName(spec)