File tree Expand file tree Collapse file tree 2 files changed +525
-616
lines changed
packages/angular/build/src/utils/index-file Expand file tree Collapse file tree 2 files changed +525
-616
lines changed Original file line number Diff line number Diff line change 9
9
import { HttpsProxyAgent } from 'https-proxy-agent' ;
10
10
import { createHash } from 'node:crypto' ;
11
11
import { readFile , rm , writeFile } from 'node:fs/promises' ;
12
- import * as https from 'node:https' ;
12
+ import https , { Agent } from 'node:https' ;
13
13
import { join } from 'node:path' ;
14
14
import { NormalizedCachedOptions } from '../normalize-cache' ;
15
15
import { htmlRewritingStream } from './html-rewriting-stream' ;
@@ -194,11 +194,12 @@ export class InlineFontsProcessor {
194
194
} catch { }
195
195
}
196
196
197
- let agent : HttpsProxyAgent < string > | undefined ;
197
+ let agent : Agent | undefined ;
198
198
const httpsProxy = process . env . HTTPS_PROXY ?? process . env . https_proxy ;
199
199
200
200
if ( httpsProxy ) {
201
- agent = new HttpsProxyAgent ( httpsProxy ) ;
201
+ // TODO(alanagius): remove casting https://github.com/TooTallNate/proxy-agents/issues/379 is fixed.
202
+ agent = new HttpsProxyAgent ( httpsProxy ) as Agent ;
202
203
}
203
204
204
205
const data = await new Promise < string > ( ( resolve , reject ) => {
You can’t perform that action at this time.
0 commit comments