@ronin/compiler 0.17.16 → 0.17.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.
Files changed (2) hide show
  1. package/dist/index.js +2 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -444,6 +444,8 @@ var handleSelecting = (models, model, statementParams, single, instructions, opt
444
444
  } else {
445
445
  mountedValue = prepareStatementValue(statementParams, value);
446
446
  }
447
+ const existingField = selectedFields.findIndex((field) => field.slug === key);
448
+ if (existingField > -1) selectedFields.splice(existingField, 1);
447
449
  selectedFields.push({
448
450
  slug: key,
449
451
  mountingPath: key,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ronin/compiler",
3
- "version": "0.17.16",
3
+ "version": "0.17.17",
4
4
  "type": "module",
5
5
  "description": "Compiles RONIN queries to SQL statements.",
6
6
  "publishConfig": {