Skip to content

Commit 5b9f70d

Browse files
committed
build: lock file maintenance
See associated pull request for more information. Closes #30625 as a pr takeover
1 parent 7da683d commit 5b9f70d

File tree

2 files changed

+525
-616
lines changed

2 files changed

+525
-616
lines changed

packages/angular/build/src/utils/index-file/inline-fonts.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import { HttpsProxyAgent } from 'https-proxy-agent';
1010
import { createHash } from 'node:crypto';
1111
import { readFile, rm, writeFile } from 'node:fs/promises';
12-
import * as https from 'node:https';
12+
import https, { Agent } from 'node:https';
1313
import { join } from 'node:path';
1414
import { NormalizedCachedOptions } from '../normalize-cache';
1515
import { 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) => {

0 commit comments

Comments
 (0)