@tursodatabase/sync 0.6.0-pre.26 → 0.6.0-pre.28
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/dist/promise.d.ts +1 -1
- package/dist/promise.d.ts.map +1 -1
- package/dist/promise.js +2 -2
- package/package.json +7 -7
package/dist/promise.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ declare class Database extends DatabasePromise {
|
|
|
35
35
|
* Prepares a SQL statement for execution.
|
|
36
36
|
* When remoteWrites is enabled, returns a wrapper that routes writes to remote.
|
|
37
37
|
*/
|
|
38
|
-
prepare(sql: string): any
|
|
38
|
+
prepare(sql: string): Promise<any>;
|
|
39
39
|
/**
|
|
40
40
|
* Returns a function that executes the given function in a transaction.
|
|
41
41
|
* When remoteWrites is enabled, the entire transaction goes to remote.
|
package/dist/promise.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"promise.d.ts","sourceRoot":"","sources":["../promise.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAChE,OAAO,EAAmB,YAAY,EAAE,cAAc,EAAW,mBAAmB,EAAE,oBAAoB,EAAE,0BAA0B,EAAE,aAAa,EAAwE,MAAM,4BAA4B,CAAC;AAqDhQ,cAAM,QAAS,SAAQ,eAAe;;gBAMtB,IAAI,EAAE,YAAY;IA4F9B;;OAEG;IACY,OAAO;IAUtB;;;;OAIG;IACG,IAAI;IAWV;;;OAGG;IACG,IAAI;IAMV;;OAEG;IACG,UAAU;IAMhB;;OAEG;IACG,KAAK,IAAI,OAAO,CAAC,aAAa,CAAC;IAOrC;;;OAGG;IACY,IAAI,CAAC,GAAG,EAAE,MAAM;IAgB/B;;;OAGG;
|
|
1
|
+
{"version":3,"file":"promise.d.ts","sourceRoot":"","sources":["../promise.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAChE,OAAO,EAAmB,YAAY,EAAE,cAAc,EAAW,mBAAmB,EAAE,oBAAoB,EAAE,0BAA0B,EAAE,aAAa,EAAwE,MAAM,4BAA4B,CAAC;AAqDhQ,cAAM,QAAS,SAAQ,eAAe;;gBAMtB,IAAI,EAAE,YAAY;IA4F9B;;OAEG;IACY,OAAO;IAUtB;;;;OAIG;IACG,IAAI;IAWV;;;OAGG;IACG,IAAI;IAMV;;OAEG;IACG,UAAU;IAMhB;;OAEG;IACG,KAAK,IAAI,OAAO,CAAC,aAAa,CAAC;IAOrC;;;OAGG;IACY,IAAI,CAAC,GAAG,EAAE,MAAM;IAgB/B;;;OAGG;IACY,OAAO,CAAC,GAAG,EAAE,MAAM;IAkBlC;;;OAGG;IACM,WAAW,CAAC,EAAE,EAAE,CAAC,GAAG,GAAG,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC;IAsCtD;;OAEG;IACY,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CASxC;AAED;;;;;GAKG;AACH,iBAAe,OAAO,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,QAAQ,CAAC,CAI5D;AAED,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAA;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AACvD,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,0BAA0B,EAAE,CAAA;AACnH,YAAY,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA"}
|
package/dist/promise.js
CHANGED
|
@@ -227,8 +227,8 @@ class Database extends DatabasePromise {
|
|
|
227
227
|
* Prepares a SQL statement for execution.
|
|
228
228
|
* When remoteWrites is enabled, returns a wrapper that routes writes to remote.
|
|
229
229
|
*/
|
|
230
|
-
prepare(sql) {
|
|
231
|
-
const localStmt = super.prepare(sql);
|
|
230
|
+
async prepare(sql) {
|
|
231
|
+
const localStmt = await super.prepare(sql);
|
|
232
232
|
if (!this.#remoteWriter) {
|
|
233
233
|
return localStmt;
|
|
234
234
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tursodatabase/sync",
|
|
3
|
-
"version": "0.6.0-pre.
|
|
3
|
+
"version": "0.6.0-pre.28",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/tursodatabase/turso"
|
|
@@ -45,16 +45,16 @@
|
|
|
45
45
|
]
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@tursodatabase/database-common": "^0.6.0-pre.
|
|
49
|
-
"@tursodatabase/sync-common": "^0.6.0-pre.
|
|
48
|
+
"@tursodatabase/database-common": "^0.6.0-pre.28",
|
|
49
|
+
"@tursodatabase/sync-common": "^0.6.0-pre.28"
|
|
50
50
|
},
|
|
51
51
|
"imports": {
|
|
52
52
|
"#index": "./index.js"
|
|
53
53
|
},
|
|
54
54
|
"optionalDependencies": {
|
|
55
|
-
"@tursodatabase/sync-linux-x64-gnu": "0.6.0-pre.
|
|
56
|
-
"@tursodatabase/sync-win32-x64-msvc": "0.6.0-pre.
|
|
57
|
-
"@tursodatabase/sync-darwin-arm64": "0.6.0-pre.
|
|
58
|
-
"@tursodatabase/sync-linux-arm64-gnu": "0.6.0-pre.
|
|
55
|
+
"@tursodatabase/sync-linux-x64-gnu": "0.6.0-pre.28",
|
|
56
|
+
"@tursodatabase/sync-win32-x64-msvc": "0.6.0-pre.28",
|
|
57
|
+
"@tursodatabase/sync-darwin-arm64": "0.6.0-pre.28",
|
|
58
|
+
"@tursodatabase/sync-linux-arm64-gnu": "0.6.0-pre.28"
|
|
59
59
|
}
|
|
60
60
|
}
|