summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/npm-registry-client/lib/get.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/npm-registry-client/lib/get.js')
-rw-r--r--deps/npm/node_modules/npm-registry-client/lib/get.js22
1 files changed, 0 insertions, 22 deletions
diff --git a/deps/npm/node_modules/npm-registry-client/lib/get.js b/deps/npm/node_modules/npm-registry-client/lib/get.js
deleted file mode 100644
index ab0eae10f0..0000000000
--- a/deps/npm/node_modules/npm-registry-client/lib/get.js
+++ /dev/null
@@ -1,22 +0,0 @@
-module.exports = get
-
-var assert = require('assert')
-var url = require('url')
-
-/*
- * This is meant to be overridden in specific implementations if you
- * want specialized behavior for metadata (i.e. caching).
- */
-function get (uri, params, cb) {
- assert(typeof uri === 'string', 'must pass registry URI to get')
- assert(params && typeof params === 'object', 'must pass params to get')
- assert(typeof cb === 'function', 'must pass callback to get')
-
- var parsed = url.parse(uri)
- assert(
- parsed.protocol === 'http:' || parsed.protocol === 'https:',
- 'must have a URL that starts with http: or https:'
- )
-
- this.request(uri, params, cb)
-}