Skip to content

Commit b22378f

Browse files
committed
Revert "Switch from node-fetch to make-fetch-happen (#135)"
This reverts commit 11ecf3c. Works around DefinitelyTyped/DefinitelyTyped#59314. Now that we aren't downloading anything on end users' systems, we don't have a strong need to respect npm's proxy options.
1 parent 2283c92 commit b22378f

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
"@types/buffer-builder": "^0.2.0",
4848
"@types/google-protobuf": "^3.7.2",
4949
"@types/jest": "^27.0.2",
50-
"@types/make-fetch-happen": "^9.0.2",
5150
"@types/node": "^16.10.3",
51+
"@types/node-fetch": "^2.6.0",
5252
"@types/shelljs": "^0.8.8",
5353
"@types/supports-color": "^8.1.1",
5454
"@types/tar": "^6.1.0",
@@ -57,8 +57,8 @@
5757
"extract-zip": "^2.0.1",
5858
"gts": "^4.0.0",
5959
"jest": "^27.2.5",
60-
"make-fetch-happen": "^10.1.2",
6160
"minipass": "3.2.1",
61+
"node-fetch": "^2.6.0",
6262
"npm-run-all": "^4.1.5",
6363
"protoc": "^1.0.4",
6464
"shelljs": "^0.8.4",

tool/utils.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,16 @@
22
// MIT-style license that can be found in the LICENSE file or at
33
// https://opensource.org/licenses/MIT.
44

5-
import {defaults as initMakeFetchHappen} from 'make-fetch-happen';
65
import extractZip = require('extract-zip');
76
import {promises as fs, existsSync, mkdirSync} from 'fs';
7+
import fetch from 'node-fetch';
88
import * as p from 'path';
99
import * as yaml from 'yaml';
1010
import * as shell from 'shelljs';
1111
import {extract as extractTar} from 'tar';
1212

1313
import * as pkg from '../package.json';
1414

15-
const fetch = initMakeFetchHappen();
16-
1715
shell.config.fatal = true;
1816

1917
// Directory that holds source files.

0 commit comments

Comments
 (0)