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 99import { HttpsProxyAgent } from 'https-proxy-agent' ;
1010import { createHash } from 'node:crypto' ;
1111import { readFile , rm , writeFile } from 'node:fs/promises' ;
12- import * as https from 'node:https' ;
12+ import https , { Agent } from 'node:https' ;
1313import { join } from 'node:path' ;
1414import { NormalizedCachedOptions } from '../normalize-cache' ;
1515import { htmlRewritingStream } from './html-rewriting-stream' ;
@@ -194,11 +194,12 @@ export class InlineFontsProcessor {
194194 } catch { }
195195 }
196196
197- let agent : HttpsProxyAgent < string > | undefined ;
197+ let agent : Agent | undefined ;
198198 const httpsProxy = process . env . HTTPS_PROXY ?? process . env . https_proxy ;
199199
200200 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 ;
202203 }
203204
204205 const data = await new Promise < string > ( ( resolve , reject ) => {
You can’t perform that action at this time.
0 commit comments