@dnax/core 0.64.6 → 0.64.7

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.
@@ -2023,9 +2023,9 @@ class useRest {
2023
2023
  }
2024
2024
  }
2025
2025
 
2026
- abortTransaction() {
2026
+ async abortTransaction() {
2027
2027
  if (this.#session) {
2028
- this.#session?.abortTransaction();
2028
+ await this.#session?.abortTransaction();
2029
2029
  }
2030
2030
  }
2031
2031
  async commitTransaction() {
@@ -242,6 +242,7 @@ function deepSetId(col: Collection, data: any) {
242
242
  if (col) {
243
243
  col?.fields?.map((f) => {
244
244
  if (f?.type?.match(/(json|array)/) && data[f?.name]) {
245
+
245
246
  if (f?.injectAutoId && f?.type == "array") {
246
247
  data[f.name]?.map((d, index) => {
247
248
  if (!d?._id) {
@@ -256,6 +257,7 @@ function deepSetId(col: Collection, data: any) {
256
257
  }
257
258
  }
258
259
  }
260
+
259
261
 
260
262
  if (f?.type?.match(/(relationship|media)/) && data[f.name]) {
261
263
  if (typeof data[f.name] == "object" && !Array.isArray(data[f.name])) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnax/core",
3
- "version": "0.64.6",
3
+ "version": "0.64.7",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "bin": {