• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1'use strict'
2
3const Fetcher = require('../fetch')
4const fetchRegistry = require('./registry')
5
6const fetchRemote = module.exports = Object.create(null)
7
8Fetcher.impl(fetchRemote, {
9  packument (spec, opts) {
10    return fetchRegistry.packument(spec.subSpec, opts)
11  },
12
13  manifest (spec, opts) {
14    return fetchRegistry.manifest(spec.subSpec, opts)
15  },
16
17  tarball (spec, opts) {
18    return fetchRegistry.tarball(spec.subSpec, opts)
19  },
20
21  fromManifest (manifest, spec, opts) {
22    return fetchRegistry.fromManifest(manifest, spec.subSpec, opts)
23  }
24})
25