@tursodatabase/sync 0.7.0-pre.1 → 0.7.0-pre.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/dist/promise.d.ts +2 -2
- package/dist/promise.d.ts.map +1 -1
- package/dist/promise.js +2 -0
- package/package.json +7 -7
package/dist/promise.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DatabasePromise } from "@tursodatabase/database-common";
|
|
1
|
+
import { DatabasePromise, TransactionFunction } from "@tursodatabase/database-common";
|
|
2
2
|
import { DatabaseOpts, EncryptionOpts, DatabaseRowMutation, DatabaseRowStatement, DatabaseRowTransformResult, DatabaseStats } from "@tursodatabase/sync-common";
|
|
3
3
|
declare class Database extends DatabasePromise {
|
|
4
4
|
#private;
|
|
@@ -40,7 +40,7 @@ declare class Database extends DatabasePromise {
|
|
|
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.
|
|
42
42
|
*/
|
|
43
|
-
transaction
|
|
43
|
+
transaction<F extends (...args: any[]) => Promise<any>>(fn: F): TransactionFunction<F>;
|
|
44
44
|
/**
|
|
45
45
|
* close the database
|
|
46
46
|
*/
|
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;
|
|
1
|
+
{"version":3,"file":"promise.d.ts","sourceRoot":"","sources":["../promise.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAA;AACrF,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,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC,GAAG,CAAC,EAC3D,EAAE,EAAE,CAAC,GACN,mBAAmB,CAAC,CAAC,CAAC;IAwCzB;;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
|
@@ -266,12 +266,14 @@ class Database extends DatabasePromise {
|
|
|
266
266
|
const properties = {
|
|
267
267
|
default: { value: wrapTxn("") },
|
|
268
268
|
deferred: { value: wrapTxn("DEFERRED") },
|
|
269
|
+
concurrent: { value: wrapTxn("CONCURRENT") },
|
|
269
270
|
immediate: { value: wrapTxn("IMMEDIATE") },
|
|
270
271
|
exclusive: { value: wrapTxn("EXCLUSIVE") },
|
|
271
272
|
database: { value: this, enumerable: true },
|
|
272
273
|
};
|
|
273
274
|
Object.defineProperties(properties.default.value, properties);
|
|
274
275
|
Object.defineProperties(properties.deferred.value, properties);
|
|
276
|
+
Object.defineProperties(properties.concurrent.value, properties);
|
|
275
277
|
Object.defineProperties(properties.immediate.value, properties);
|
|
276
278
|
Object.defineProperties(properties.exclusive.value, properties);
|
|
277
279
|
return properties.default.value;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tursodatabase/sync",
|
|
3
|
-
"version": "0.7.0-pre.
|
|
3
|
+
"version": "0.7.0-pre.2",
|
|
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.7.0-pre.
|
|
49
|
-
"@tursodatabase/sync-common": "^0.7.0-pre.
|
|
48
|
+
"@tursodatabase/database-common": "^0.7.0-pre.2",
|
|
49
|
+
"@tursodatabase/sync-common": "^0.7.0-pre.2"
|
|
50
50
|
},
|
|
51
51
|
"imports": {
|
|
52
52
|
"#index": "./index.js"
|
|
53
53
|
},
|
|
54
54
|
"optionalDependencies": {
|
|
55
|
-
"@tursodatabase/sync-linux-x64-gnu": "0.7.0-pre.
|
|
56
|
-
"@tursodatabase/sync-win32-x64-msvc": "0.7.0-pre.
|
|
57
|
-
"@tursodatabase/sync-darwin-arm64": "0.7.0-pre.
|
|
58
|
-
"@tursodatabase/sync-linux-arm64-gnu": "0.7.0-pre.
|
|
55
|
+
"@tursodatabase/sync-linux-x64-gnu": "0.7.0-pre.2",
|
|
56
|
+
"@tursodatabase/sync-win32-x64-msvc": "0.7.0-pre.2",
|
|
57
|
+
"@tursodatabase/sync-darwin-arm64": "0.7.0-pre.2",
|
|
58
|
+
"@tursodatabase/sync-linux-arm64-gnu": "0.7.0-pre.2"
|
|
59
59
|
}
|
|
60
60
|
}
|