From 9ec690b2b454fc1dbc90428ea187ca974fb86217 Mon Sep 17 00:00:00 2001 From: Luke Karrys Date: Mon, 14 Aug 2023 12:47:12 -0700 Subject: [PATCH] fix: use lru-cache named export --- lib/revs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/revs.js b/lib/revs.js index ee72370..ca14837 100644 --- a/lib/revs.js +++ b/lib/revs.js @@ -1,8 +1,8 @@ const pinflight = require('promise-inflight') const spawn = require('./spawn.js') -const LRU = require('lru-cache') +const { LRUCache } = require('lru-cache') -const revsCache = new LRU({ +const revsCache = new LRUCache({ max: 100, ttl: 5 * 60 * 1000, })