@dnax/core 0.8.15 → 0.8.17

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.
@@ -220,7 +220,7 @@ class useRest {
220
220
  });
221
221
  }
222
222
 
223
- return resolve(result.docs);
223
+ return resolve(toJson(result.docs));
224
224
  } catch (err) {
225
225
  return reject(err);
226
226
  }
@@ -1306,6 +1306,12 @@ class useRest {
1306
1306
  this.#session?.startTransaction();
1307
1307
  }
1308
1308
  }
1309
+
1310
+ abortTransaction() {
1311
+ if (this.#session) {
1312
+ this.#session?.abortTransaction();
1313
+ }
1314
+ }
1309
1315
  async commitTransaction() {
1310
1316
  return new Promise(async (resolve, reject) => {
1311
1317
  if (this.#session) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnax/core",
3
- "version": "0.8.15",
3
+ "version": "0.8.17",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "bin": {