FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: use named `env` to avoid shadowing global process · unjs/unifont@b583dda · GitHub

/ unifont Public

Commit b583dda

Browse files
committed
fix: use named env to avoid shadowing global process
1 parent 9f33aae commit b583dda

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/env-proxy.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// https://nodejs.org/api/cli.html#--use-env-proxy
1010
// https://undici.nodejs.org/#/docs/api/EnvHttpProxyAgent
1111

12-
import process from 'node:process'
12+
import { env } from 'node:process'
1313

1414
let installed = false
1515

@@ -21,7 +21,7 @@ export async function installProxyDispatcher(): Promise<void> {
2121
if (installed)
2222
return
2323

24-
const proxyUrl = process.env.HTTPS_PROXY || process.env.HTTP_PROXY || process.env.https_proxy || process.env.http_proxy
24+
const proxyUrl = env.HTTPS_PROXY || env.HTTP_PROXY || env.https_proxy || env.http_proxy
2525
if (!proxyUrl)
2626
return
2727

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL