1
0
Fork 0
mirror of https://github.com/shimataro/ssh-key-action.git synced 2025-06-19 22:52:10 +10:00
ssh-key-action/node_modules/pacote/lib/fetchers/alias.js
2019-09-18 20:39:54 +09:00

24 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)
}
})