Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2010-12-28 11:23:20 +0300
committerisaacs <i@izs.me>2010-12-28 11:23:20 +0300
commit6c4163f35bf38cb934bf7d86b8d8f4dc2094cf08 (patch)
treeb1db0222b6e6cb7b37f7675da38f372a3c9f764d
parent3ec983bf1a7571b02978324526922e2f75591266 (diff)
share the response with registry.get calls
-rw-r--r--lib/utils/registry/get.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/registry/get.js b/lib/utils/registry/get.js
index c130bd1a9..2de7fd86c 100644
--- a/lib/utils/registry/get.js
+++ b/lib/utils/registry/get.js
@@ -48,7 +48,7 @@ function get_ (uri, timeout, cache, stat, data, nofollow, cb) {
}
}
data = remoteData
- if (er) return cb(er, data)
+ if (er) return cb(er, data, raw, response)
// just give the write the old college try. if it fails, whatever.
fs.writeFile(cache, JSON.stringify(data), function () {})
delete data._etag