@infoxchange/make-it-so 2.12.0-internal-testing-add-setup-proxy-globally.1 → 2.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../../../src/lib/proxy/fetch.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,IAAI,WAAW,EACrB,MAAM,QAAQ,CAAC;AAGhB,wBAAgB,kBAAkB,SAiBjC;AAED,wBAAgB,eAAe,uBAW9B"}
1
+ {"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../../../src/lib/proxy/fetch.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,IAAI,WAAW,EACrB,MAAM,QAAQ,CAAC;AAGhB,wBAAgB,kBAAkB,SAmBjC;AAED,wBAAgB,eAAe,uBAW9B"}
@@ -4,6 +4,8 @@ export function setupProxyGlobally() {
4
4
  // Make operation idempotent
5
5
  if (getGlobalDispatcher() instanceof EnvHttpProxyAgent)
6
6
  return;
7
+ if (!process.env.HTTP_PROXY || !process.env.HTTPS_PROXY)
8
+ return;
7
9
  // To cover libraries that use fetch
8
10
  // See https://nodejs.org/api/globals.html#custom-dispatcher
9
11
  // This might stop being needed at some point: https://github.com/actions/create-github-app-token/pull/143#discussion_r1747641337
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infoxchange/make-it-so",
3
- "version": "2.12.0-internal-testing-add-setup-proxy-globally.1",
3
+ "version": "2.12.0",
4
4
  "description": "Makes deploying services to IX infra easy",
5
5
  "repository": "github:infoxchange/make-it-so",
6
6
  "type": "module",
@@ -10,6 +10,8 @@ export function setupProxyGlobally() {
10
10
  // Make operation idempotent
11
11
  if (getGlobalDispatcher() instanceof EnvHttpProxyAgent) return;
12
12
 
13
+ if (!process.env.HTTP_PROXY || !process.env.HTTPS_PROXY) return;
14
+
13
15
  // To cover libraries that use fetch
14
16
  // See https://nodejs.org/api/globals.html#custom-dispatcher
15
17
  // This might stop being needed at some point: https://github.com/actions/create-github-app-token/pull/143#discussion_r1747641337