diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 47994cb4..2e77442c 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -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 }}' diff --git a/api/near.js b/api/near.js index 0baea8ee..3c042a7f 100644 --- a/api/near.js +++ b/api/near.js @@ -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'`); diff --git a/package.json b/package.json index 3d5dd494..da6a5e1b 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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",