Skip to content

Commit

Permalink
More detailed comments and camelCases
Browse files Browse the repository at this point in the history
  • Loading branch information
jzm-intel committed Oct 24, 2024
1 parent ec748ce commit 238adb0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions js/scripts/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
// Licensed under the MIT License.

import { WriteStream } from 'fs';
import {bootstrap as global_agent_bootstrap} from 'global-agent';
import { bootstrap as globalAgentBootstrap } from 'global-agent';
import * as https from 'https';
import { JSZipObject } from 'jszip';

// Bootstrap global-agent to honor the proxy settings
global_agent_bootstrap();
// Bootstrap global-agent to honor the proxy settings in
// environment variables, e.g. GLOBAL_AGENT_HTTPS_PROXY.
// See https://github.com/gajus/global-agent/blob/v3.0.0/README.md#environment-variables for details.
globalAgentBootstrap();

export const downloadZip = async (url: string): Promise<Buffer> =>
new Promise<Buffer>((resolve, reject) => {
Expand Down
8 changes: 5 additions & 3 deletions js/web/script/pull-prebuilt-wasm-artifacts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
//

import fs from 'fs';
import {bootstrap as global_agent_bootstrap} from 'global-agent';
import { bootstrap as globalAgentBootstrap } from 'global-agent';
import https from 'https';
import jszip from 'jszip';
import path from 'path';
Expand Down Expand Up @@ -112,8 +112,10 @@ console.log(
} ===`,
);

// Bootstrap global-agent to honor the proxy settings
global_agent_bootstrap();
// Bootstrap global-agent to honor the proxy settings in
// environment variables, e.g. GLOBAL_AGENT_HTTPS_PROXY.
// See https://github.com/gajus/global-agent/blob/v3.0.0/README.md#environment-variables for details.
globalAgentBootstrap();

const filter = buildId
? `&buildIds=${buildId}`
Expand Down

0 comments on commit 238adb0

Please sign in to comment.