pqb 0.18.31 → 0.18.32

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
@@ -5575,6 +5575,9 @@ const del = (self) => {
5575
5575
  };
5576
5576
  const _del = (q) => {
5577
5577
  if (!q.q.select) {
5578
+ if (q.q.returnType === "oneOrThrow" || q.q.returnType === "valueOrThrow") {
5579
+ q.q.throwOnNotFound = true;
5580
+ }
5578
5581
  q.q.returnType = "rowCount";
5579
5582
  }
5580
5583
  throwIfNoWhere(q, "delete");
@@ -5584,12 +5587,15 @@ const _del = (q) => {
5584
5587
  class Delete {
5585
5588
  /**
5586
5589
  * Alias for `delete` method
5590
+ *
5591
+ * @deprecated use `delete` instead, this method will be removed
5587
5592
  */
5588
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
5589
5593
  del(..._args) {
5590
5594
  return del(this);
5591
5595
  }
5592
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
5596
+ /**
5597
+ * @deprecated use `_del` instead, this method will be removed
5598
+ */
5593
5599
  _del(..._args) {
5594
5600
  return _del(this);
5595
5601
  }