@ronin/compiler 0.11.0-leo-ron-1083-experimental-226 → 0.11.0-leo-ron-1083-experimental-228

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 +4 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -133,7 +133,6 @@ var getProperty = (obj, path) => {
133
133
  };
134
134
  var setProperty = (obj, path, value) => {
135
135
  if (!obj) return setProperty({}, path, value);
136
- if (!path || value === void 0) return obj;
137
136
  const segments = path.split(/[.[\]]/g).filter((x) => !!x.trim());
138
137
  const _set = (node) => {
139
138
  if (segments.length > 1) {
@@ -1616,16 +1615,16 @@ var Transaction = class {
1616
1615
  newValue = Boolean(value);
1617
1616
  }
1618
1617
  const parentFieldSlug = field.parentField;
1618
+ let usableRowIndex = rowIndex;
1619
1619
  if (parentFieldSlug) {
1620
1620
  if (rows.length === 1) {
1621
1621
  newSlug = `${parentFieldSlug}.${field.slug}`;
1622
1622
  } else {
1623
- const fieldPath = `${parentFieldSlug}[${rowIndex}].${field.slug}`;
1624
- records[0] = setProperty(records[0], fieldPath, newValue);
1625
- continue;
1623
+ newSlug = `${parentFieldSlug}[${rowIndex}].${field.slug}`;
1624
+ usableRowIndex = 0;
1626
1625
  }
1627
1626
  }
1628
- records[rowIndex] = setProperty(records[rowIndex], newSlug, newValue);
1627
+ records[usableRowIndex] = setProperty(records[usableRowIndex], newSlug, newValue);
1629
1628
  }
1630
1629
  }
1631
1630
  return single ? records[0] : records;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ronin/compiler",
3
- "version": "0.11.0-leo-ron-1083-experimental-226",
3
+ "version": "0.11.0-leo-ron-1083-experimental-228",
4
4
  "type": "module",
5
5
  "description": "Compiles RONIN queries to SQL statements.",
6
6
  "publishConfig": {