@ronin/compiler 0.14.11-leo-ron-1099-1-experimental-347 → 0.14.11-leo-ron-1099-1-experimental-349

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 +1 -1
  2. 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 && (Object.hasOwn(instructions, "before") || Object.hasOwn(instructions, "after"))) {
717
+ if (instructions && (typeof instructions.before !== "undefined" || typeof instructions.after !== "undefined")) {
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.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ronin/compiler",
3
- "version": "0.14.11-leo-ron-1099-1-experimental-347",
3
+ "version": "0.14.11-leo-ron-1099-1-experimental-349",
4
4
  "type": "module",
5
5
  "description": "Compiles RONIN queries to SQL statements.",
6
6
  "publishConfig": {