summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/pacote/lib/fetchers/alias.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/pacote/lib/fetchers/alias.js')
-rw-r--r--deps/npm/node_modules/pacote/lib/fetchers/alias.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/deps/npm/node_modules/pacote/lib/fetchers/alias.js b/deps/npm/node_modules/pacote/lib/fetchers/alias.js
new file mode 100644
index 0000000000..f22cbb1d7c
--- /dev/null
+++ b/deps/npm/node_modules/pacote/lib/fetchers/alias.js
@@ -0,0 +1,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)
+ }
+})