Home
last modified time | relevance | path

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

/third_party/node/deps/npm/node_modules/npm-pick-manifest/
Dindex.js14 function pickManifest (packument, wanted, opts) { argument
16 const time = opts.enjoyBy && packument.time && +(new Date(opts.enjoyBy))
17 const spec = npa.resolve(packument.name, wanted)
22 const distTags = packument['dist-tags'] || {}
23 const versions = Object.keys(packument.versions || {}).filter(v => {
26 const policyRestrictions = packument.policyRestrictions
32 packument.time[v] && time >= +(new Date(packument.time[v]))
39 err = new Error(`No valid versions available for ${packument.name}`)
41 err.name = packument.name
62 packument.versions[tagVersion] &&
[all …]
DREADME.md25 }).then(packument => {
26 return pickManifest(packument, '^1.0.0')
45 #### <a name="pick-manifest"></a> `> pickManifest(packument, selector, [opts]) -> manifest`
72 `ENOVERSIONS` if the packument object has no valid versions in `versions`.
/third_party/node/deps/npm/node_modules/pacote/lib/fetchers/registry/
Dpackument.js13 module.exports = packument
14 function packument (spec, opts) { function
52 })).then(res => res.json().then(packument => {
53 packument._cached = res.headers.has('x-local-cache')
54 packument._contentLength = +res.headers.get('content-length')
59 mem.set(memoKey, packument)
61 return packument
Dmanifest.js22 return fetchPackument(spec, opts).then(packument => {
24 return pickManifest(packument, spec.fetchSpec, {
30 if ((err.code === 'ETARGET' || err.code === 'E403') && packument._cached && !opts.offline) {
42 })).then(packument => {
43 return pickManifest(packument, spec.fetchSpec, {
Dindex.js12 packument (spec, opts) { method
/third_party/node/deps/npm/node_modules/libnpmpublish/test/
Dpublish.js32 const packument = { variable
64 t.deepEqual(body, packument, 'posted packument matches expectations')
90 const packument = { variable
123 t.deepEqual(body, packument, 'posted packument matches expectations')
417 const packument = { variable
462 t.deepEqual(body, packument, 'posted packument matches expectations')
490 const packument = { variable
523 t.deepEqual(body, packument, 'posted packument matches expectations')
550 const packument = { variable
583 t.deepEqual(body, packument, 'posted packument matches expectations')
[all …]
/third_party/node/deps/npm/node_modules/pacote/lib/
Dfetch.js6 packument: ['spec', 'opts'], property
14 module.exports.packument = packument
15 function packument (spec, opts) { function
17 return fetcher.packument(spec, opts)
/third_party/node/deps/npm/lib/
Ddeprecate.js59 })).then(packument => {
61 Object.keys(packument.versions)
63 .forEach(v => { packument.versions[v].deprecated = msg })
67 body: packument,
Dview.js16 const packument = require('libnpm/packument') constant
48 return packument(spec, config).then(d => {
123 return packument(nv, opts.concat({
208 function prettyView (packument, manifest, opts) { argument
217 `> npm view ${packument.name} versions`
222 Object.keys(packument['dist-tags']).forEach((t) => {
223 const version = packument['dist-tags'][t]
233 versions: color.yellow(packument.versions.length + ''),
236 keywords: (packument.keywords || []).map(color.yellow),
247 …modified: packument.time ? color.yellow(relativeDate(packument.time[packument.version])) : undefin…
[all …]
Downer.js11 const packument = require('libnpm/packument') constant
106 return packument(spec, opts.concat({fullMetadata: true})).then(
206 return packument(spec, opts.concat({
Doutdated.js39 const packument = require('libnpm/packument') constant
375 return packument(parsed, opts.concat({
/third_party/node/deps/npm/node_modules/pacote/
Dpackument.js3 const fetchPackument = require('./lib/fetch').packument
8 module.exports = packument
9 function packument (spec, opts) { function
DREADME.md19 * [`packument`](#packument)
92 #### <a name="packument"></a> `> pacote.packument(spec, [opts])`
94 Fetches the *packument* for a package. Packument objects are general metadata
124 pacote.packument('pacote').then(pkgJson => {
256 If `true`, the full packument will be fetched when doing metadata requests. By
Dindex.js6 packument: require('./packument'), property
DCHANGELOG.md198 * **packument:** group together all registry specs in silly log ([2333a17](https://github.com/npm/p…
210 * **packument:** take accept header into account when memoizing ([3c637e8](https://github.com/npm/p…
216 * **packument:** add packument api ([97888d9](https://github.com/npm/pacote/commit/97888d9))
1177 * **memoization:** better packument memoization + pacote.clearMemoized() ([eb1bd4f](https://github.…
1229 * **notice:** only log npm-notice if the packument came from network ([eeeb411](https://github.com/…
1362 …hash) once registries start supporting them: `packument.dist.integrity` will be prioritized over `
/third_party/node/deps/npm/node_modules/pacote/lib/fetchers/
Dalias.js9 packument (spec, opts) { method
10 return fetchRegistry.packument(spec.subSpec, opts)
Dremote.js11 packument (spec, opts) { method
Dfile.js20 packument (spec, opts) { method
Ddirectory.js19 packument (spec, opts) { method
Dgit.js24 packument (spec, opts) { method
/third_party/node/deps/npm/test/tap/
Dinstall-before.js31 const packument = {
57 server.get('/foo').reply(200, packument)
Daliases.js34 const packument = {
54 server.get('/foo').reply(200, packument)
/third_party/node/deps/npm/node_modules/libnpm/
DREADME.md19 * [`packument`](https://www.npmjs.com/package/pacote#packument)
Dindex.js14 packument: require('./packument.js'), property
/third_party/node/deps/npm/node_modules/libnpmpublish/
DREADME.md63 the outgoing packument. It's recommended you add your own user agent string in