Skip to content

Commit

Permalink
Merge pull request #268 from pelias/deps
Browse files Browse the repository at this point in the history
Upgrade better-sqlite3 to latest version (v7.4.3)
  • Loading branch information
orangejulius authored Sep 29, 2021
2 parents 9222a8b + 0466215 commit b746e34
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
node-version:
- 12.x
- 14.x
- 16.x
steps:
- uses: actions/checkout@v2
- name: 'Install node.js ${{ matrix.node-version }}'
Expand Down
2 changes: 1 addition & 1 deletion api/near.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function setup( streetDbPath ){

// connect to db
// @todo: this is required as the query uses the 'street.' prefix for tables
const db = new Database('/tmp/path', { memory: true });
const db = new Database(':memory:');

// attach street database
db.exec(`ATTACH DATABASE '${streetDbPath}' as 'street'`);
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"license": "MIT",
"main": "index.js",
"scripts": {
"postinstall": "npm install --build-from-source missinglink/better-sqlite3#unsafe_mode",
"test": "npm run units",
"funcs": "./bin/funcs",
"units": "./bin/units",
Expand All @@ -27,7 +26,7 @@
"dependencies": {
"@mapbox/polyline": "^1.0.0",
"async": "^3.1.0",
"better-sqlite3": "github:missinglink/better-sqlite3#unsafe_mode",
"better-sqlite3": "^7.4.3",
"cheerio": "^1.0.0-rc.3",
"cli-table3": "^0.6.0",
"csv-parse": "^4.4.6",
Expand Down

0 comments on commit b746e34

Please sign in to comment.