mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 14:34:40 +00:00
add err arg
This commit is contained in:
parent
510bc2c542
commit
e88b51bdfd
@ -17,7 +17,7 @@ class Npm {
|
|||||||
let self = this;
|
let self = this;
|
||||||
let npmRegistry = "https://registry.npmjs.org/" + packageName + "/" + version;
|
let npmRegistry = "https://registry.npmjs.org/" + packageName + "/" + version;
|
||||||
|
|
||||||
utils.httpsGet(npmRegistry, function (body) {
|
utils.httpsGet(npmRegistry, function (_err, body) {
|
||||||
let registryJSON = JSON.parse(body);
|
let registryJSON = JSON.parse(body);
|
||||||
|
|
||||||
let tarball = registryJSON.dist.tarball;
|
let tarball = registryJSON.dist.tarball;
|
||||||
|
@ -43,7 +43,7 @@ function httpsGet(url, callback) {
|
|||||||
body += d;
|
body += d;
|
||||||
});
|
});
|
||||||
res.on('end', function () {
|
res.on('end', function () {
|
||||||
callback(body);
|
callback(null, body);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user