Skip to content

Commit e3a7fc4

Browse files
committed
updating lru-cache dependency
1 parent 32d9516 commit e3a7fc4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/router/sequential.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module.exports = (config = {}) => {
2626

2727
const routers = {}
2828
const isCacheEnabled = config.cacheSize > 0
29-
const cache = isCacheEnabled ? new LRU(config.cacheSize) : null
29+
const cache = isCacheEnabled ? new LRU({ max: config.cacheSize }) : null
3030
const router = new Trouter()
3131
router.id = config.id
3232

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"lib/"
4444
],
4545
"dependencies": {
46-
"lru-cache": "^6.0.0",
46+
"lru-cache": "^7.10.1",
4747
"regexparam": "^2.0.0",
4848
"trouter": "^3.2.0"
4949
}

0 commit comments

Comments
 (0)