You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
554 B
JavaScript
25 lines
554 B
JavaScript
'use strict'
|
|
|
|
const Fetcher = require('../fetch')
|
|
const fetchRegistry = require('./registry')
|
|
|
|
const fetchRemote = module.exports = Object.create(null)
|
|
|
|
Fetcher.impl(fetchRemote, {
|
|
packument (spec, opts) {
|
|
return fetchRegistry.packument(spec.subSpec, opts)
|
|
},
|
|
|
|
manifest (spec, opts) {
|
|
return fetchRegistry.manifest(spec.subSpec, opts)
|
|
},
|
|
|
|
tarball (spec, opts) {
|
|
return fetchRegistry.tarball(spec.subSpec, opts)
|
|
},
|
|
|
|
fromManifest (manifest, spec, opts) {
|
|
return fetchRegistry.fromManifest(manifest, spec.subSpec, opts)
|
|
}
|
|
})
|