Skip to content

Commit 51b54c5

Browse files
committed
build: update @types/node to 20.19.7
This contains the fix for TooTallNate/proxy-agents#379 (comment)
1 parent 5af81b7 commit 51b54c5

File tree

3 files changed

+142
-136
lines changed

3 files changed

+142
-136
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"@types/less": "^3.0.3",
8383
"@types/loader-utils": "^2.0.0",
8484
"@types/lodash": "^4.17.0",
85-
"@types/node": "^20.17.19",
85+
"@types/node": "^20.19.7",
8686
"@types/npm-package-arg": "^6.1.0",
8787
"@types/pacote": "^11.1.3",
8888
"@types/picomatch": "^4.0.0",

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

Lines changed: 2 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 { Agent, get as httpsGet } from 'node:https';
12+
import { get as httpsGet } from 'node:https';
1313
import { join } from 'node:path';
1414
import { NormalizedCachedOptions } from '../normalize-cache';
1515
import { htmlRewritingStream } from './html-rewriting-stream';
@@ -200,8 +200,7 @@ export class InlineFontsProcessor {
200200
httpsGet(
201201
url,
202202
{
203-
// TODO(alanagius): remove casting https://github.com/TooTallNate/proxy-agents/issues/379 is fixed.
204-
agent: httpsProxy ? (new HttpsProxyAgent(httpsProxy) as Agent) : undefined,
203+
agent: httpsProxy ? new HttpsProxyAgent(httpsProxy) : undefined,
205204
headers: {
206205
/**
207206
* Always use a Windows UA. This is because Google fonts will including hinting in fonts for Windows.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy