pqb 0.11.21 → 0.11.22

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.mjs CHANGED
@@ -6282,6 +6282,12 @@ class QueryMethods {
6282
6282
  return this.clone()._find(value);
6283
6283
  }
6284
6284
  _find(value) {
6285
+ if (value === null || value === void 0) {
6286
+ throw new OrchidOrmInternalError(
6287
+ this,
6288
+ `${value} is not allowed in the find method`
6289
+ );
6290
+ }
6285
6291
  return this._where({
6286
6292
  [this.singlePrimaryKey]: value
6287
6293
  })._take();