diff --git a/package-lock.json b/package-lock.json index a2f91a0..5120b10 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "@mapbox/vector-tile": "^1.3.1", "pako": "^2.1.0", "pbf": "^3.2.1", - "sqlite-wasm-http": "^1.1.2" + "sqlite-wasm-http": "^1.2.0" }, "devDependencies": { "@rollup/plugin-typescript": "^11.1.5", @@ -8370,9 +8370,9 @@ } }, "node_modules/sqlite-wasm-http": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/sqlite-wasm-http/-/sqlite-wasm-http-1.1.2.tgz", - "integrity": "sha512-v2R0GNGRumTmDfDOfX7uZisLbGkyJYSCWupL8j0JRPExMONNwNVs8TkcvZJNk/VdLUkwVODOM4hdDRQGQLCaCg==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/sqlite-wasm-http/-/sqlite-wasm-http-1.2.0.tgz", + "integrity": "sha512-mTZw4MHSw/dsO7PhAZeV14WIiVw/e8ECJSDV5oMEgInbCw+ITP/Y8YqbzggDiWRoPpbJ+uPoOXe5myIQbX6XxQ==", "dependencies": { "lru-cache": "^7.18.2" }, diff --git a/package.json b/package.json index a8c4466..20b9545 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "@mapbox/vector-tile": "^1.3.1", "pako": "^2.1.0", "pbf": "^3.2.1", - "sqlite-wasm-http": "^1.1.2" + "sqlite-wasm-http": "^1.2.0" }, "peerDependencies": { "ol": ">=7.0.0" diff --git a/test/metadata.test.ts b/test/metadata.test.ts index 5175c00..9c4c0e1 100644 --- a/test/metadata.test.ts +++ b/test/metadata.test.ts @@ -92,8 +92,9 @@ describe('importMBTiles', () => { done('entered the event horizon'); }) .catch((e) => { - assert.equal(e.result.message, 'sqlite3 result code 14: unable to open database file'); + assert.match(e.result.message, /SQLITE_CANTOPEN/); done(); - }); + }) + .catch(done); }); -}); \ No newline at end of file +});