Skip to content

Commit a3476fe

Browse files
upgrade: lru-cache to 11.2.7
1 parent c4f9ec2 commit a3476fe

7 files changed

Lines changed: 14 additions & 8 deletions

File tree

packages/mitmproxy/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"is-browser": "^2.1.0",
2222
"json5": "^2.2.3",
2323
"lodash": "^4.18.1",
24-
"lru-cache": "^7.18.3",
24+
"lru-cache": "~11.2.7",
2525
"node-forge": "^1.4.0",
2626
"stream-throttle": "^0.1.3",
2727
"through2": "^4.0.2",

packages/mitmproxy/src/lib/choice/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const LRUCache = require('lru-cache')
1+
const { LRUCache } = require('lru-cache')
22
const log = require('../../utils/util.log.server')
33

44
const cacheSize = 1024

packages/mitmproxy/src/lib/dns/base.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const LRUCache = require('lru-cache')
1+
const { LRUCache } = require('lru-cache')
22
const log = require('../../utils/util.log.server')
33
const matchUtil = require('../../utils/util.match')
44
const { isIPv6 } = require('./util.ip')

packages/mitmproxy/src/lib/proxy/tls/CertAndKeyContainer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const tlsUtils = require('./tlsUtils')
2-
const LRUCache = require('lru-cache')
2+
const { LRUCache } = require('lru-cache')
33
const log = require('../../../utils/util.log.server')
44

55
const DEFAULT_MAX_LENGTH = 256

packages/mitmproxy/src/lib/proxy/tls/FakeServersCenter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const http = require('node:http')
22
const https = require('node:https')
33
const tls = require('node:tls')
44
const forge = require('node-forge')
5-
const LRUCache = require('lru-cache')
5+
const { LRUCache } = require('lru-cache')
66
const CertAndKeyContainer = require('./CertAndKeyContainer')
77
const log = require('../../../utils/util.log.server')
88
const compatible = require('../compatible/compatible')

packages/mitmproxy/src/utils/util.match.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const lodash = require('lodash')
22
const log = require('./util.log.server')
33
const mergeApi = require('@docmirror/dev-sidecar/src/merge')
44

5-
const LRUCache = require('lru-cache')
5+
const { LRUCache } = require('lru-cache')
66

77
const urlRegexpCache = new LRUCache({
88
maxSize: 512,

pnpm-lock.yaml

Lines changed: 8 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)