@ronin/compiler 0.13.1-leo-ron-1071-experimental-290 → 0.13.1-leo-ron-1071-experimental-292

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
@@ -1697,7 +1697,6 @@ var transformMetaQuery = (models, dependencyStatements, statementParams, query)
1697
1697
  if (entity === "index") {
1698
1698
  const index = jsonValue;
1699
1699
  const indexName = convertToSnakeCase(slug);
1700
- const params = [];
1701
1700
  let statement = `${statementAction}${index?.unique ? " UNIQUE" : ""} INDEX "${indexName}"`;
1702
1701
  if (action === "create") {
1703
1702
  const columns = index.fields.map((field2) => {
@@ -1713,15 +1712,14 @@ var transformMetaQuery = (models, dependencyStatements, statementParams, query)
1713
1712
  });
1714
1713
  statement += ` ON "${existingModel.table}" (${columns.join(", ")})`;
1715
1714
  if (index.filter) {
1716
- const withStatement = handleWith(models, existingModel, params, index.filter);
1715
+ const withStatement = handleWith(models, existingModel, null, index.filter);
1717
1716
  statement += ` WHERE (${withStatement})`;
1718
1717
  }
1719
1718
  }
1720
- dependencyStatements.push({ statement, params });
1719
+ dependencyStatements.push({ statement, params: [] });
1721
1720
  }
1722
1721
  if (entity === "trigger") {
1723
1722
  const triggerName = convertToSnakeCase(slug);
1724
- const params = [];
1725
1723
  let statement = `${statementAction} TRIGGER "${triggerName}"`;
1726
1724
  if (action === "create") {
1727
1725
  const trigger = jsonValue;
@@ -1764,7 +1762,7 @@ var transformMetaQuery = (models, dependencyStatements, statementParams, query)
1764
1762
  statementParts.push("END");
1765
1763
  statement += ` ${statementParts.join(" ")}`;
1766
1764
  }
1767
- dependencyStatements.push({ statement, params });
1765
+ dependencyStatements.push({ statement, params: [] });
1768
1766
  }
1769
1767
  const field = `${QUERY_SYMBOLS.FIELD}${pluralType}`;
1770
1768
  let json;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ronin/compiler",
3
- "version": "0.13.1-leo-ron-1071-experimental-290",
3
+ "version": "0.13.1-leo-ron-1071-experimental-292",
4
4
  "type": "module",
5
5
  "description": "Compiles RONIN queries to SQL statements.",
6
6
  "publishConfig": {