Skip to content

Commit f33c3c4

Browse files
renovate[bot]Dmitry Shirokov
andauthored
fix(deps): update dependency tiny-lru to v9 (#570)
* fix(deps): update dependency tiny-lru to v9 * minor: tiny-lru@9 Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Dmitry Shirokov <dshirokov@atlassian.com>
1 parent dce6bdd commit f33c3c4

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
],
2828
"dependencies": {
2929
"mmdb-lib": "2.0.2",
30-
"tiny-lru": "8.0.2"
30+
"tiny-lru": "9.0.2"
3131
},
3232
"devDependencies": {
3333
"@types/ip6addr": "0.2.3",

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import assert from 'assert';
2-
import lru from 'tiny-lru';
32
import { Reader, Response } from 'mmdb-lib';
3+
import { lru } from 'tiny-lru';
44
import fs from './fs';
55
import ip from './ip';
66
import isGzip from './is-gzip';
@@ -32,7 +32,7 @@ export const open = async <T extends Response>(
3232
);
3333
}
3434

35-
const cache = lru((opts && opts.cache && opts.cache.max) || 6000);
35+
const cache = lru(opts?.cache?.max || 60000);
3636
const reader = new Reader<T>(database, { cache });
3737

3838
if (opts && !!opts.watchForUpdates) {

0 commit comments

Comments
 (0)