From 98446024ac64c39f6f90b50e9317f966c51ecf9c Mon Sep 17 00:00:00 2001 From: Marcelo Shima Date: Sat, 18 Jan 2025 16:44:09 -0300 Subject: [PATCH 1/2] drop global-tunnel-ng dependency --- lib/cli.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/lib/cli.js b/lib/cli.js index cbdbcaae..9467478d 100755 --- a/lib/cli.js +++ b/lib/cli.js @@ -15,16 +15,7 @@ const Router = require('./router'); const gens = list(process.argv.slice(2)); -// Override http networking to go through a proxy ifone is configured -const MAJOR_NODEJS_VERSION = Number.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(); /* eslint new-cap: 0, no-extra-parens: 0 */ const tabtab = new Tabtab.Commands.default({ From f2a57b507e9e2fdbb03b47bca20885f2322268c9 Mon Sep 17 00:00:00 2001 From: Marcelo Shima Date: Sat, 18 Jan 2025 16:45:14 -0300 Subject: [PATCH 2/2] drop global-tunnel-ng dependency --- package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/package.json b/package.json index ea353f66..170e995e 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,6 @@ "figures": "^3.2.0", "fullname": "^4.0.1", "global-agent": "^3.0.0", - "global-tunnel-ng": "^2.7.1", "got": "^11.8.6", "humanize-string": "^2.1.0", "inquirer": "^8.2.0",