@ronin/compiler 0.17.21-leo-pagination-bug-experimental-427 → 0.17.21-leo-pagination-bug-experimental-428

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 +3 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2346,12 +2346,10 @@ var Transaction = class {
2346
2346
  );
2347
2347
  }
2348
2348
  }
2349
- const fieldsToDrop = selectedFields.filter((field) => field.excluded === true);
2350
- if (fieldsToDrop.length > 0) {
2349
+ for (const field of selectedFields) {
2350
+ if (!field.excluded) continue;
2351
2351
  for (const record of result.records) {
2352
- for (const field of fieldsToDrop) {
2353
- deleteProperty(record, field.slug);
2354
- }
2352
+ deleteProperty(record, field.slug);
2355
2353
  }
2356
2354
  }
2357
2355
  return result;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ronin/compiler",
3
- "version": "0.17.21-leo-pagination-bug-experimental-427",
3
+ "version": "0.17.21-leo-pagination-bug-experimental-428",
4
4
  "type": "module",
5
5
  "description": "Compiles RONIN queries to SQL statements.",
6
6
  "publishConfig": {