@ronin/compiler 0.14.0-leo-ron-1099-1-experimental-312 → 0.14.0-leo-ron-1099-1-experimental-313

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1944,13 +1944,11 @@ var Transaction = class {
1944
1944
  records.push(record);
1945
1945
  continue;
1946
1946
  }
1947
- const joinFields = fields.reduce(
1948
- (acc, { mountingPath }) => {
1949
- return mountingPath.includes("[0]") && !acc.includes(mountingPath.split("[0]")[0]) ? acc.concat([mountingPath.split("[0]")[0]]) : acc;
1950
- },
1951
- []
1952
- );
1953
- for (const arrayField of joinFields) {
1947
+ const joinFields = fields.reduce((acc, { mountingPath }) => {
1948
+ if (mountingPath.includes("[0]")) acc.add(mountingPath.split("[0]")[0]);
1949
+ return acc;
1950
+ }, /* @__PURE__ */ new Set());
1951
+ for (const arrayField of joinFields.values()) {
1954
1952
  const currentValue = existingRecord[arrayField];
1955
1953
  const newValue = record[arrayField];
1956
1954
  currentValue.push(...newValue);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ronin/compiler",
3
- "version": "0.14.0-leo-ron-1099-1-experimental-312",
3
+ "version": "0.14.0-leo-ron-1099-1-experimental-313",
4
4
  "type": "module",
5
5
  "description": "Compiles RONIN queries to SQL statements.",
6
6
  "publishConfig": {