@veryfront/ext-db-sqlite 0.1.1239 → 0.1.1240
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/extensions/ext-db-sqlite/src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,4BAA4B,CAAC;AAGpC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/extensions/ext-db-sqlite/src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,4BAA4B,CAAC;AAGpC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAW3F,qBAAa,iBAAkB,YAAW,WAAW;IACnD,kBAAkB,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;CAG3D;AAED,QAAA,MAAM,WAAW,EAAE,gBAmBlB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -8,9 +8,8 @@
|
|
|
8
8
|
import "../../../_dnt.polyfills.js";
|
|
9
9
|
async function loadSqliteDatabase(path) {
|
|
10
10
|
const mod = await import("better-sqlite3");
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
// deno-lint-ignore no-explicit-any
|
|
11
|
+
const DatabaseCtor = (mod.default ??
|
|
12
|
+
mod);
|
|
14
13
|
return new DatabaseCtor(path ?? ":memory:");
|
|
15
14
|
}
|
|
16
15
|
export class BetterSqliteStore {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veryfront/ext-db-sqlite",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1240",
|
|
4
4
|
"description": "Veryfront first-party extension package for ext-db-sqlite",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"veryfront",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"better-sqlite3": "13.0.3"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"veryfront": "^0.1.
|
|
59
|
+
"veryfront": "^0.1.1240"
|
|
60
60
|
},
|
|
61
61
|
"type": "module",
|
|
62
62
|
"types": "./esm/extensions/ext-db-sqlite/src/index.d.ts",
|