Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function createCompiler(config) {
cache = config.cache;
}
if (config.cache !== false && !cache) {
cache = new (require('lru-cache'))({ max: ncache });
cache = (require('lru.min').createLRU)({ max: ncache });
}

function toArrayParams(tree, params) {
Expand Down
22 changes: 14 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 3 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "sql named placeholders to unnamed compiler",
"main": "index.js",
"scripts": {
"test": "mocha"
"test": "node --test"
},
"repository": {
"type": "git",
Expand All @@ -17,16 +17,12 @@
"placeholders"
],
"engines": {
"node": ">=12.0.0"
"node": ">=8.0.0"
},
"author": "Andrey Sidorov <[email protected]>",
"files": [],
"license": "MIT",
"devDependencies": {
"mocha": "^5.2.0",
"should": "^13.2.3"
},
"dependencies": {
"lru-cache": "^7.14.1"
"lru.min": "^1.1.0"
}
}
Loading