@ronin/compiler 0.17.21-leo-pagination-bug-experimental-425 → 0.17.21-leo-pagination-bug-experimental-427

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 +4 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -396,7 +396,7 @@ var handleOrderedBy = (model, instruction) => {
396
396
  };
397
397
 
398
398
  // src/instructions/selecting.ts
399
- var handleSelecting = (models, model, statementParams, single, instructions, queryType, options = { inlineDefaults: false }) => {
399
+ var handleSelecting = (models, model, statementParams, queryType, single, instructions, options = { inlineDefaults: false }) => {
400
400
  let isJoining = false;
401
401
  const selectedFields = filterSelectedFields(
402
402
  model,
@@ -444,14 +444,14 @@ var handleSelecting = (models, model, statementParams, single, instructions, que
444
444
  models,
445
445
  { ...subQueryModel, tableAlias: `including_${subMountingPath}` },
446
446
  statementParams,
447
+ queryType2,
447
448
  subSingle,
448
449
  {
449
450
  selecting: queryInstructions?.selecting,
450
451
  including: queryInstructions?.including,
451
452
  orderedBy: queryInstructions?.orderedBy,
452
- limitedTo: instructions.limitedTo
453
+ limitedTo: queryInstructions?.limitedTo
453
454
  },
454
- queryType2,
455
455
  { ...options, mountingPath: subMountingPath }
456
456
  );
457
457
  if (nestedColumns !== "*") joinedColumns.push(nestedColumns);
@@ -1127,6 +1127,7 @@ var compileQueryInput = (defaultQuery, models, statementParams, options) => {
1127
1127
  models,
1128
1128
  model,
1129
1129
  statementParams,
1130
+ queryType,
1130
1131
  single,
1131
1132
  {
1132
1133
  selecting: instructions?.selecting,
@@ -1134,7 +1135,6 @@ var compileQueryInput = (defaultQuery, models, statementParams, options) => {
1134
1135
  orderedBy: instructions?.orderedBy,
1135
1136
  limitedTo: instructions?.limitedTo
1136
1137
  },
1137
- queryType,
1138
1138
  // biome-ignore lint/complexity/useSimplifiedLogicExpression: This is needed.
1139
1139
  { inlineDefaults: options?.inlineDefaults || false }
1140
1140
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ronin/compiler",
3
- "version": "0.17.21-leo-pagination-bug-experimental-425",
3
+ "version": "0.17.21-leo-pagination-bug-experimental-427",
4
4
  "type": "module",
5
5
  "description": "Compiles RONIN queries to SQL statements.",
6
6
  "publishConfig": {