feat: update lru-cache to 9.x, closes #11454

isekai-main
Barış Soner Uşaklı 2 years ago
parent bdacd1c6b4
commit c3cedefef3

@ -81,7 +81,7 @@
"less": "4.1.3", "less": "4.1.3",
"lodash": "4.17.21", "lodash": "4.17.21",
"logrotate-stream": "0.2.9", "logrotate-stream": "0.2.9",
"lru-cache": "8.0.5", "lru-cache": "9.0.1",
"material-design-lite": "1.3.0", "material-design-lite": "1.3.0",
"mime": "3.0.0", "mime": "3.0.0",
"mkdirp": "2.1.6", "mkdirp": "2.1.6",

4
src/cache/lru.js vendored

@ -1,7 +1,7 @@
'use strict'; 'use strict';
module.exports = function (opts) { module.exports = function (opts) {
const LRU = require('lru-cache'); const { LRUCache } = require('lru-cache');
const pubsub = require('../pubsub'); const pubsub = require('../pubsub');
// lru-cache@7 deprecations // lru-cache@7 deprecations
@ -28,7 +28,7 @@ module.exports = function (opts) {
} }
}); });
const lruCache = new LRU(opts); const lruCache = new LRUCache(opts);
const cache = {}; const cache = {};
cache.name = opts.name; cache.name = opts.name;

Loading…
Cancel
Save