Skip to content

Commit

Permalink
Drop outdated workarounds (#56)
Browse files Browse the repository at this point in the history
* Drop outdated workarounds

* Bring comments back
  • Loading branch information
LitoMore authored Jun 3, 2021
1 parent 820860a commit e7275bb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
10 changes: 1 addition & 9 deletions lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,4 @@
require('.')();

// Override http networking to go through a proxy if one is configured.
const MAJOR_NODEJS_VERSION = parseInt(process.version.slice(1).split('.')[0], 10);

if (MAJOR_NODEJS_VERSION >= 10) {
// `global-agent` works with Node.js v10 and above.
require('global-agent').bootstrap();
} else {
// `global-tunnel-ng` works only with Node.js v10 and below.
require('global-tunnel-ng').initialize();
}
require('global-agent').bootstrap();
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
"bin-version-check": "^4.0.0",
"chalk": "^2.3.0",
"global-agent": "^2.0.0",
"global-tunnel-ng": "^2.5.3",
"latest-version": "^3.1.0",
"log-symbols": "^2.1.0",
"semver": "^5.0.3",
Expand Down

0 comments on commit e7275bb

Please sign in to comment.