Skip to content

Commit

Permalink
upgrade lru-cache to ~10
Browse files Browse the repository at this point in the history
  • Loading branch information
pirxpilot committed Jan 12, 2024
1 parent 554769e commit 54e597b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions lib/lame-tiff/cache.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
const LRU = require('lru-cache');
const { LRUCache } = require('lru-cache');
const bytes = require('bytes');

const TATRY_CACHE_SIZE = process.env.TATRY_CACHE_SIZE || '100mb';

const cache = new LRU({
const cache = new LRUCache({
maxSize: bytes(TATRY_CACHE_SIZE),
sizeCalculation: item => item.byteCount
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"find": "~0",
"flatbush": "^3.1.1",
"fresh": "^0.5.2",
"lru-cache": "~7",
"lru-cache": "~10",
"parseurl": "^1.3.2",
"router": "~1",
"server-timings": "^2.0.1"
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -296,10 +296,10 @@ lru-cache@^6.0.0:
dependencies:
yallist "^4.0.0"

lru-cache@~7:
version "7.18.3"
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-7.18.3.tgz#f793896e0fd0e954a59dfdd82f0773808df6aa89"
integrity sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==
lru-cache@~10:
version "10.1.0"
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-10.1.0.tgz#2098d41c2dc56500e6c88584aa656c84de7d0484"
integrity sha512-/1clY/ui8CzjKFyjdvwPWJUYKiFVXG2I2cY0ssG7h4+hwk+XOIX7ZSG9Q7TW8TW3Kp3BUSqgFWBLgL4PJ+Blag==

media-typer@0.3.0:
version "0.3.0"
Expand Down

0 comments on commit 54e597b

Please sign in to comment.