Skip to content

Commit 219f9b6

Browse files
committed
chore: remove node-fetch
1 parent a68460d commit 219f9b6

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

lib/install.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ const versioning = require('./util/versioning.js');
1212
const napi = require('./util/napi.js');
1313
const makeDir = require('make-dir');
1414
// for fetching binaries
15-
const fetch = require('node-fetch');
1615
const tar = require('tar');
1716

1817
let npgVersion = 'unknown';
@@ -61,7 +60,7 @@ function place_binary(uri, targetDir, opts, callback) {
6160
log.http('download', 'proxy agent configured using: "%s"', proxyUrl);
6261
}
6362

64-
fetch(sanitized, { agent })
63+
fetch(sanitized, { dispatcher: agent })
6564
.then((res) => {
6665
if (!res.ok) {
6766
throw new Error(`response status ${res.status} ${res.statusText} on ${sanitized}`);

package-lock.json

Lines changed: 13 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
"detect-libc": "^2.0.0",
2727
"https-proxy-agent": "^5.0.0",
2828
"make-dir": "^3.1.0",
29-
"node-fetch": "^2.6.7",
3029
"nopt": "^7.2.1",
3130
"npmlog": "^7.0.1",
3231
"rimraf": "^5.0.5",

0 commit comments

Comments
 (0)