Home
last modified time | relevance | path

Searched refs:npa (Results 1 – 25 of 58) sorted by relevance

123

/third_party/node/deps/npm/test/tap/
Dis-registry.js3 const npa = require('npm-package-arg') constant
7 t.is(Boolean(isRegistry(npa('foo@1.0.0'))), true, 'version')
8 t.is(Boolean(isRegistry(npa('foo@^1.0.0'))), true, 'range')
9 t.is(Boolean(isRegistry(npa('foo@test'))), true, 'tag')
10 t.is(Boolean(isRegistry(npa('foo@git://foo.bar/test.git'))), false, 'git')
11 t.is(Boolean(isRegistry(npa('foo@foo/bar'))), false, 'github')
12 t.is(Boolean(isRegistry(npa('foo@http://example.com/example.tgz'))), false, 'remote')
13 t.is(Boolean(isRegistry(npa('foo@file:example.tgz'))), false, 'file')
14 t.is(Boolean(isRegistry(npa('foo@file:example/'))), false, 'dir')
Dunit-deps-earliestInstallable.js4 var npa = require('npm-package-arg') variable
47 _requested: npa('dep2@2.0.0')
90 _requested: npa('dep2@^1.0.0')
Dfetch-package-metadata.js3 var npa = require('npm-package-arg') variable
28 var testPackage = npa('test-package@>=0.0.0')
/third_party/node/deps/npm/lib/install/
Drealize-shrinkwrap-specifier.js2 var npa = require('npm-package-arg') variable
8 return npa.resolve(name, sw.version, where)
10 const spec = npa(sw.from, where)
12 return npa.resolve(name, sw.version, where)
18 return npa.resolve(name, sw.resolved, where)
21 return npa.resolve(name, sw.version, where)
Dhas-modern-meta.js4 const npa = require('npm-package-arg') constant
13 …const resolved = child.package._resolved && npa.resolve(moduleName(child), child.package._resolved)
14 const version = npa.resolve(moduleName(child), child.package.version)
Dget-requested.js2 const npa = require('npm-package-arg') constant
14 return npa.resolve(name, spec, where)
Ddeps.js12 var npa = require('npm-package-arg') variable
55 const fromSw = child.package._from ? npa(child.package._from) : child.fromShrinkwrap
61 const sameRepo = npa(child.package._from).fetchSpec === requested.fetchSpec
91 var fromReq = npa(child.package._from)
105 return npa.resolve(name, spec, where || packageRelativePath(tree))
231 spec = npa(arg)
241 return fetchPackageMetadata(npa.resolve(spec.name, version), where, done)
250 return fetchPackageMetadata(npa('file:' + arg), where, done)
314 requested = npa.resolve(moduleName(child), 'file:' + child.realpath, getTop(tree).path)
318 requested = npa(child.package._from, tree.path)
[all …]
Daudit.js20 const npa = require('npm-package-arg') constant
184 const req = npa.resolve(name, spec)
189 const req = npa(arg)
203 const req = npa.resolve(name, spec)
/third_party/node/deps/npm/node_modules/libnpx/
Dparse-args.js3 let npa variable
14 npa = require('npm-package-arg')
48 const parsedCmd = npa(argv[cmdIndex])
62 parsed.p = parsed.package = pkg.map(p => npa(p).toString())
74 parsed.p = parsed.package = pkg.map(p => npa(p).toString())
81 const parsedCmd = npa(splitCmd[0])
91 parsed.p = parsed.package = pkg.map(p => npa(p).toString())
104 npa = require('npm-package-arg')
105 parsedCmd = npa(argv[2])
134 if (!npa) { npa = require('npm-package-arg') }
[all …]
/third_party/node/deps/npm/lib/
Dunpublish.js12 const npa = require('npm-package-arg') constant
53 const pp = npa(cliOpts.partialWord).name
56 return npmFetch.json(npa(pkgs[0]).escapedName, opts).then(doc => {
71 const spec = args.length && npa(args[0])
91 return libunpub(npa.resolve(data.name, data.version), opts.concat(data.publishConfig))
Ddist-tag.js8 const npa = require('libnpm/parse-arg') constant
76 spec = npa(spec || '')
110 spec = npa(spec || '')
138 spec = npa(spec)
Downer.js6 const npa = require('libnpm/parse-arg') constant
105 const spec = npa(pkg)
133 const spec = npa(pkg)
161 const spec = npa(pkg)
Ddeprecate.js9 const npa = require('libnpm/parse-arg') constant
45 const p = npa(pkg)
Dstar.js8 const npa = require('libnpm/parse-arg') constant
40 return BB.map(args.map(npa), pkg => {
Dinit.js7 var npa = require('npm-package-arg') variable
31 var req = npa(initerName)
Dfetch-package-metadata.js10 const npa = require('npm-package-arg') constant
52 dep = npa(spec)
/third_party/node/deps/npm/node_modules/pacote/
Dtarball.js8 const npa = require('npm-package-arg') constant
18 spec = npa(spec, opts.where)
25 spec = npa(spec, opts.where)
55 spec = npa(spec, opts.where)
Dpackument.js6 const npa = require('npm-package-arg') constant
11 spec = npa(spec, opts.where)
Dmanifest.js7 const npa = require('npm-package-arg') constant
12 spec = npa(spec, opts.where)
Dprefetch.js8 const npa = require('npm-package-arg') constant
13 spec = npa(spec, opts.where)
/third_party/node/deps/npm/node_modules/npm-package-arg/
DREADME.md12 var npa = require("npm-package-arg")
16 var parsed = npa("@bar/foo@1.2")
24 `var npa = require('npm-package-arg')`
26 ### var result = npa(*arg*[, *where*])
37 ### var result = npa.resolve(*name*, *spec*[, *where*])
70 * `rawSpec` - The specifier part that was parsed out in calls to `npa(arg)`,
71 or the value of `spec` in calls to `npa.resolve(name, spec).
83 `npa.resolve(name, spec)` then this will be `name + '@' + spec`.
Dnpa.js2 module.exports = npa
22 function npa (arg, where) { function
29 return npa.resolve(arg.name, arg.rawSpec, where || arg.where)
31 return npa(arg.raw, where || arg.where)
265 const subSpec = npa(res.rawSpec.substr(4), where)
/third_party/node/deps/npm/node_modules/lock-verify/
Dindex.js6 const npa = require('npm-package-arg') constant
26 const spec = npa.resolve(name, deps[name])
40 const lockSpec = npa.resolve(name, lock.version)
60 const lockSpec = npa.resolve(name, lock.version)
/third_party/node/deps/npm/node_modules/libcipm/lib/
Dextract.js7 const npa = require('npm-package-arg') constant
39 const spec = npa.resolve(name, child.version)
48 const spec = typeof args[0] === 'string' ? npa(args[0]) : args[0]
/third_party/node/deps/npm/test/need-npm5-update/belongs-in-pacote/
Dadd-remote-git-get-resolved.js6 var npa = require('npm-package-arg') variable
15 return getResolved(npa(uri), uri, treeish)

123