Skip to content

Commit

Permalink
fix: resolve dependency conflicts (#37)
Browse files Browse the repository at this point in the history
* chore: synchronize package-lock.json and package.json

* chore: adjust `test` script to use Node.js test runner

* fix: resolve dependecy conflicts

* ci: remove glob for Node.js 20 compatibility

* chore: adjust engine version
  • Loading branch information
wellwelwel authored Sep 18, 2024
1 parent 178b04e commit bbaa20a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 16 deletions.
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 <sidorares@yandex.com>",
"files": [],
"license": "MIT",
"devDependencies": {
"mocha": "^5.2.0",
"should": "^13.2.3"
},
"dependencies": {
"lru-cache": "^7.14.1"
"lru.min": "^1.1.0"
}
}

0 comments on commit bbaa20a

Please sign in to comment.