Skip to content

Commit fd3d117

Browse files
authored
fix: LRU constructor (#2004)
1 parent b8c79d0 commit fd3d117

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/connection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const EventEmitter = require('events').EventEmitter;
2222
const Readable = require('stream').Readable;
2323
const Queue = require('denque');
2424
const SqlString = require('sqlstring');
25-
const LRU = require('lru-cache');
25+
const LRU = require('lru-cache').default;
2626

2727
const PacketParser = require('./packet_parser.js');
2828
const Packets = require('./packets/index.js');

lib/parsers/parser_cache.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
const LRU = require('lru-cache');
3+
const LRU = require('lru-cache').default;
44

55
const parserCache = new LRU({
66
max: 15000

0 commit comments

Comments
 (0)