@ronin/compiler 0.16.0-leo-ron-1099-1-experimental-365 → 0.16.0

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
@@ -392,9 +392,7 @@ type AmountResult = {
392
392
  amount: number;
393
393
  };
394
394
  type RegularResult<T = ResultRecord> = SingleRecordResult<T> | MultipleRecordResult<T> | AmountResult;
395
- type ExpandedResult<T = ResultRecord> = {
396
- models: Record<Model['slug'], RegularResult<T>>;
397
- };
395
+ type ExpandedResult<T = ResultRecord> = Record<Model['slug'], RegularResult<T>>;
398
396
  type Result<T = ResultRecord> = RegularResult<T> | ExpandedResult<T>;
399
397
 
400
398
  interface TransactionOptions {
@@ -417,4 +415,4 @@ declare class Transaction {
417
415
 
418
416
  declare const CLEAN_ROOT_MODEL: PublicModel;
419
417
 
420
- export { type AddInstructions, type AddQuery, type AddInstructions as AddQueryInstructions, type AlterQuery, type CombinedInstructions, type CountInstructions, type CountQuery, type CountInstructions as CountQueryInstructions, type CreateQuery, type DropQuery, type ExpandedResult, type GetInstructions, type GetQuery, type GetInstructions as GetQueryInstructions, type PublicModel as Model, type ModelField, type ModelIndex, type ModelPreset, type ModelTrigger, QUERY_SYMBOLS, type Query, type QueryInstructionType as QueryInstruction, type QuerySchemaType, type QueryType, CLEAN_ROOT_MODEL as ROOT_MODEL, type RegularResult, type RemoveInstructions, type RemoveQuery, type RemoveInstructions as RemoveQueryInstructions, type Result, type ResultRecord, RoninError, type SetInstructions, type SetQuery, type SetInstructions as SetQueryInstructions, type Statement, type StoredObject, Transaction, type WithInstruction, getQuerySymbol };
418
+ export { type AddInstructions, type AddQuery, type AddInstructions as AddQueryInstructions, type AlterQuery, type CombinedInstructions, type CountInstructions, type CountQuery, type CountInstructions as CountQueryInstructions, type CreateQuery, type DropQuery, type GetInstructions, type GetQuery, type GetInstructions as GetQueryInstructions, type PublicModel as Model, type ModelField, type ModelIndex, type ModelPreset, type ModelTrigger, QUERY_SYMBOLS, type Query, type QueryInstructionType as QueryInstruction, type QuerySchemaType, type QueryType, CLEAN_ROOT_MODEL as ROOT_MODEL, type RemoveInstructions, type RemoveQuery, type RemoveInstructions as RemoveQueryInstructions, type Result, type ResultRecord, RoninError, type SetInstructions, type SetQuery, type SetInstructions as SetQueryInstructions, type Statement, type StoredObject, Transaction, type WithInstruction, getQuerySymbol };
package/dist/index.js CHANGED
@@ -2145,9 +2145,8 @@ var Transaction = class {
2145
2145
  if (!returning) return finalResults;
2146
2146
  const addResult = (result2) => {
2147
2147
  if (typeof expansionIndex !== "undefined") {
2148
- let match = finalResults[expansionIndex];
2149
- if (!match) match = finalResults[expansionIndex] = { models: {} };
2150
- match.models[queryModel] = result2;
2148
+ if (!finalResults[expansionIndex]) finalResults[expansionIndex] = {};
2149
+ finalResults[expansionIndex][queryModel] = result2;
2151
2150
  } else {
2152
2151
  finalResults.push(result2);
2153
2152
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ronin/compiler",
3
- "version": "0.16.0-leo-ron-1099-1-experimental-365",
3
+ "version": "0.16.0",
4
4
  "type": "module",
5
5
  "description": "Compiles RONIN queries to SQL statements.",
6
6
  "publishConfig": {