summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/pacote/lib/fetchers/alias.js
blob: f22cbb1d7ca8254edd2989d0bbaab5d11e3ae21e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
'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)
  }
})