From fa920aef1e012d7ee5a7c1e925110c507f2b82bd Mon Sep 17 00:00:00 2001 From: Lenko Grigorov Date: Wed, 25 Mar 2020 11:44:38 -0400 Subject: [PATCH] fix: LRUCache v5 has to be invoked with new --- lib/parse.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/parse.ts b/lib/parse.ts index 5c6c6ac..035b823 100644 --- a/lib/parse.ts +++ b/lib/parse.ts @@ -6,7 +6,7 @@ import { } from './types' const hash = require('hash-sum') -const cache = require('lru-cache')(100) +const cache = new (require('lru-cache'))(100) const splitRE = /\r?\n/g const emptyRE = /^(?:\/\/)?\s*$/