From a4b1c129522c942c0b8e7b8f253236fa7caed2e4 Mon Sep 17 00:00:00 2001 From: wellwelwel <46850407+wellwelwel@users.noreply.github.com> Date: Wed, 10 May 2023 22:14:26 -0300 Subject: [PATCH] fix: LRU constructor --- lib/connection.js | 2 +- lib/parsers/parser_cache.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/connection.js b/lib/connection.js index 790226a246..ed8442aac9 100644 --- a/lib/connection.js +++ b/lib/connection.js @@ -22,7 +22,7 @@ const EventEmitter = require('events').EventEmitter; const Readable = require('stream').Readable; const Queue = require('denque'); const SqlString = require('sqlstring'); -const LRU = require('lru-cache'); +const LRU = require('lru-cache').default; const PacketParser = require('./packet_parser.js'); const Packets = require('./packets/index.js'); diff --git a/lib/parsers/parser_cache.js b/lib/parsers/parser_cache.js index d285f2d753..2660da9136 100644 --- a/lib/parsers/parser_cache.js +++ b/lib/parsers/parser_cache.js @@ -1,6 +1,6 @@ 'use strict'; -const LRU = require('lru-cache'); +const LRU = require('lru-cache').default; const parserCache = new LRU({ max: 15000