@ronin/compiler 0.17.3 → 0.17.4-corny-ron-1099-experimental-383

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.
package/dist/index.d.ts CHANGED
@@ -277,7 +277,7 @@ type ModelIndex<T extends ModelEntityList<ModelField> = ModelEntityList<ModelFie
277
277
  /**
278
278
  * The list of fields in the model for which the index should be created.
279
279
  */
280
- fields: Array<ModelIndexField<T>>;
280
+ fields: [ModelIndexField<T>, ...Array<ModelIndexField<T>>];
281
281
  /**
282
282
  * The identifier of the index.
283
283
  */
package/dist/index.js CHANGED
@@ -1987,11 +1987,17 @@ var transformMetaQuery = (models, dependencyStatements, statementParams, query,
1987
1987
  statementParts.push("WHEN", `(${withStatement})`);
1988
1988
  }
1989
1989
  const effectStatements = trigger.effects.map((effectQuery) => {
1990
- return compileQueryInput(effectQuery, models, null, {
1991
- returning: false,
1992
- parentModel: existingModel,
1993
- inlineDefaults: options.inlineDefaults
1994
- }).main.statement;
1990
+ return compileQueryInput(
1991
+ // @ts-expect-error - The query is always wrapped in a `QUERY_SYMBOLS.QUERY` object.
1992
+ effectQuery[QUERY_SYMBOLS.QUERY],
1993
+ models,
1994
+ null,
1995
+ {
1996
+ returning: false,
1997
+ parentModel: existingModel,
1998
+ inlineDefaults: options.inlineDefaults
1999
+ }
2000
+ ).main.statement;
1995
2001
  });
1996
2002
  statementParts.push("BEGIN");
1997
2003
  statementParts.push(`${effectStatements.join("; ")};`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ronin/compiler",
3
- "version": "0.17.3",
3
+ "version": "0.17.4-corny-ron-1099-experimental-383",
4
4
  "type": "module",
5
5
  "description": "Compiles RONIN queries to SQL statements.",
6
6
  "publishConfig": {