@cavulsqa/create 2.7.0 → 2.8.2
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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cavulsqa/create",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.2",
|
|
4
4
|
"description": "Create a Vue + Framework7 + Capacitor + SQLite app from the cavulsqa templates.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"capacitor",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
}
|
|
53
53
|
]
|
|
54
54
|
},
|
|
55
|
-
"templatesFingerprint": "sha256-
|
|
55
|
+
"templatesFingerprint": "sha256-OYEjkV6bTfZTtTFsxxtMgXoxM4x7q6/PUS3qfUT/G3k=",
|
|
56
56
|
"scripts": {
|
|
57
57
|
"build": "node scripts/bundleTemplates.mjs",
|
|
58
58
|
"check": "vp check",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"@capacitor/preferences": "^8.0.0",
|
|
21
21
|
"@capacitor/splash-screen": "^8.0.0",
|
|
22
22
|
"@capacitor/status-bar": "^8.0.0",
|
|
23
|
-
"@cavulsqa/mobile-db": "^1.
|
|
24
|
-
"@cavulsqa/reactive-db": "^1.
|
|
25
|
-
"@cavulsqa/reactive-vue": "^1.
|
|
23
|
+
"@cavulsqa/mobile-db": "^1.2.0",
|
|
24
|
+
"@cavulsqa/reactive-db": "^1.2.0",
|
|
25
|
+
"@cavulsqa/reactive-vue": "^1.2.0",
|
|
26
26
|
"@sqlite.org/sqlite-wasm": "3.53.0-build1",
|
|
27
27
|
"@tailwindcss/vite": "^4.3.3",
|
|
28
28
|
"@vueuse/core": "^14.4.0",
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
"sqlite": {
|
|
140
140
|
"title": "SQLite",
|
|
141
141
|
"subtitle": "Kysely, offline-first",
|
|
142
|
-
"text": "
|
|
142
|
+
"text": "SQLite compiled to WebAssembly, in a worker, against a real file in OPFS - no native plugin."
|
|
143
143
|
},
|
|
144
144
|
"reactive": {
|
|
145
145
|
"title": "Reactive queries",
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
"sqlite": {
|
|
140
140
|
"title": "SQLite",
|
|
141
141
|
"subtitle": "Kysely, hors-ligne d'abord",
|
|
142
|
-
"text": "
|
|
142
|
+
"text": "SQLite compilé en WebAssembly, dans un worker, sur un vrai fichier OPFS - sans plugin natif."
|
|
143
143
|
},
|
|
144
144
|
"reactive": {
|
|
145
145
|
"title": "Requêtes réactives",
|
|
@@ -30,18 +30,7 @@ export const capacitorSqlite: StorageCandidate = {
|
|
|
30
30
|
evidence: "measured",
|
|
31
31
|
probe: probeNativePlatform,
|
|
32
32
|
createDialect: async () => {
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
import("@capacitor-community/sqlite"),
|
|
36
|
-
import("@cavulsqa/mobile-db/capacitor"),
|
|
37
|
-
]);
|
|
38
|
-
|
|
39
|
-
const sqlite = new SQLiteConnection(CapacitorSQLite);
|
|
40
|
-
const name = "app.sqlite3";
|
|
41
|
-
await sqlite.createConnection(name, false, "no-encryption", 1, false);
|
|
42
|
-
const database = await sqlite.retrieveConnection(name, false);
|
|
43
|
-
await database.open();
|
|
44
|
-
|
|
45
|
-
return new SharedConnectionSQLiteDialect({ database, sqlite, name, serializeAccess: true });
|
|
33
|
+
const { createCapacitorDialect } = await import("@cavulsqa/mobile-db/capacitor");
|
|
34
|
+
return await createCapacitorDialect({ name: "app.sqlite3" });
|
|
46
35
|
},
|
|
47
36
|
};
|