@ronin/compiler 0.14.11-leo-ron-1099-1-experimental-349 → 0.14.11
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.js +4 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -714,7 +714,7 @@ var compileQueryInput = (defaultQuery, models, statementParams, options) => {
|
|
714
714
|
instructions.orderedBy.descending.push("ronin.createdAt");
|
715
715
|
}
|
716
716
|
}
|
717
|
-
if (instructions && (
|
717
|
+
if (instructions && (Object.hasOwn(instructions, "before") || Object.hasOwn(instructions, "after"))) {
|
718
718
|
if (single) {
|
719
719
|
throw new RoninError({
|
720
720
|
message: "The `before` and `after` instructions are not supported when querying for a single record.",
|
@@ -988,16 +988,15 @@ var WITH_CONDITIONS = {
|
|
988
988
|
lessOrEqual: (value) => ["<=", value]
|
989
989
|
};
|
990
990
|
var handleWith = (models, model, statementParams, instruction, parentModel) => {
|
991
|
-
|
991
|
+
const subStatement = composeConditions(
|
992
992
|
models,
|
993
993
|
model,
|
994
994
|
statementParams,
|
995
995
|
"with",
|
996
996
|
instruction,
|
997
|
-
{
|
998
|
-
parentModel
|
999
|
-
}
|
997
|
+
{ parentModel }
|
1000
998
|
);
|
999
|
+
return `(${subStatement})`;
|
1001
1000
|
};
|
1002
1001
|
|
1003
1002
|
// node_modules/title/dist/esm/lower-case.js
|