@ronin/compiler 0.18.1 → 0.18.2

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 +6 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1052,10 +1052,12 @@ var handleUsing = (model, instructions) => {
1052
1052
  if (currentValue) {
1053
1053
  let newValue;
1054
1054
  if (Array.isArray(currentValue)) {
1055
- newValue = [
1056
- ...replacedUsingFilter[instructionName],
1057
- ...currentValue
1058
- ];
1055
+ newValue = Array.from(
1056
+ /* @__PURE__ */ new Set([
1057
+ ...replacedUsingFilter[instructionName],
1058
+ ...currentValue
1059
+ ])
1060
+ );
1059
1061
  } else if (isObject(currentValue)) {
1060
1062
  newValue = {
1061
1063
  ...replacedUsingFilter[instructionName],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ronin/compiler",
3
- "version": "0.18.1",
3
+ "version": "0.18.2",
4
4
  "type": "module",
5
5
  "description": "Compiles RONIN queries to SQL statements.",
6
6
  "publishConfig": {