Skip to content

Commit

Permalink
Merge pull request #350 from cktang88/master
Browse files Browse the repository at this point in the history
Replace request with needle
  • Loading branch information
springmeyer authored Mar 14, 2018
2 parents 2844fa4 + 9a9089b commit 07e7ee5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function download(uri,opts,callback) {
}
}
try {
req = require('request')(requestOpts);
req = require('needle').get(requestOpts.uri, requestOpts);
} catch (e) {
return callback(e);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
"dependencies": {
"detect-libc": "^1.0.2",
"mkdirp": "^0.5.1",
"needle": "^2.2.0",
"nopt": "^4.0.1",
"npm-packlist": "^1.1.6",
"npmlog": "^4.0.2",
"rc": "^1.1.7",
"request": "2.83.0",
"rimraf": "^2.6.1",
"semver": "^5.3.0",
"tar": "^4"
Expand Down

0 comments on commit 07e7ee5

Please sign in to comment.