File: 0004-Use-modern-lru-cache.patch

package info (click to toggle)
node-proxy-agents 0~2025070717-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,932 kB
  • sloc: javascript: 5,805; makefile: 39
file content (28 lines) | stat: -rw-r--r-- 938 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Description: Use modern lru-cache
Author: Bastien_Roucariès <rouca@debian.org>
forwarded: not-needed
Reviewed-By: Yadd <yadd@debian.org>
Last-Update: 2024-09-03

--- a/packages/proxy-agent/package.json
+++ b/packages/proxy-agent/package.json
@@ -36,7 +36,7 @@
     "debug": "^4.3.4",
     "http-proxy-agent": "^7.0.1",
     "https-proxy-agent": "^7.0.6",
-    "lru-cache": "^7.14.1",
+    "lru-cache": "^10.0.1",
     "pac-proxy-agent": "^7.1.0",
     "proxy-from-env": "^1.1.0",
     "socks-proxy-agent": "^8.0.5"
--- a/packages/proxy-agent/src/index.ts
+++ b/packages/proxy-agent/src/index.ts
@@ -1,7 +1,7 @@
 import * as http from 'http';
 import * as https from 'https';
 import { URL } from 'url';
-import LRUCache from 'lru-cache';
+import { LRUCache } from 'lru-cache';
 import { Agent, AgentConnectOpts } from 'agent-base';
 import createDebug from 'debug';
 import { getProxyForUrl as envGetProxyForUrl } from 'proxy-from-env';