Skip to content

Commit

Permalink
JSEP: Use global-agent in scripts to enable using network proxy (#22537)
Browse files Browse the repository at this point in the history
This PR add dependency to the global-agent package, and use it in JSEP
scripts that download files from network (i.e. `js/scripts/utils.ts` and
`js/web/script/pull-prebuilt-wasm-artifacts.ts`), so that user can make
these script use network proxy by setting environment variable
GLOBAL_AGENT_HTTPS_PROXY.
  • Loading branch information
jzm-intel authored Oct 24, 2024
1 parent 3e62fff commit 374022e
Show file tree
Hide file tree
Showing 4 changed files with 240 additions and 0 deletions.
226 changes: 226 additions & 0 deletions js/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"devDependencies": {
"@types/fs-extra": "^11.0.2",
"@types/global-agent": "^2.1.3",
"@types/mocha": "^10.0.2",
"@types/node": "^18.14.6",
"@types/npmlog": "^4.1.4",
Expand All @@ -17,6 +18,7 @@
"eslint-plugin-prefer-arrow": "^1.2.3",
"eslint-plugin-unicorn": "^48.0.1",
"fs-extra": "^11.1.1",
"global-agent": "^3.0",
"jszip": "^3.10.1",
"mocha": "^10.2.0",
"npmlog": "^7.0.1",
Expand Down
Loading

0 comments on commit 374022e

Please sign in to comment.