pqb 0.1.9 → 0.2.0

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 CHANGED
@@ -5102,7 +5102,7 @@ class QueryUpsert {
5102
5102
 
5103
5103
  class QueryMethods {
5104
5104
  all() {
5105
- return this.query.returnType === "all" ? this : this.clone()._all();
5105
+ return this.clone()._all();
5106
5106
  }
5107
5107
  _all() {
5108
5108
  this.query.returnType = "all";
@@ -5110,7 +5110,7 @@ class QueryMethods {
5110
5110
  return this;
5111
5111
  }
5112
5112
  take() {
5113
- return this.query.returnType === "oneOrThrow" ? this : this.clone()._take();
5113
+ return this.clone()._take();
5114
5114
  }
5115
5115
  _take() {
5116
5116
  this.query.returnType = "oneOrThrow";
@@ -5118,7 +5118,7 @@ class QueryMethods {
5118
5118
  return this;
5119
5119
  }
5120
5120
  takeOptional() {
5121
- return this.query.returnType === "one" ? this : this.clone()._takeOptional();
5121
+ return this.clone()._takeOptional();
5122
5122
  }
5123
5123
  _takeOptional() {
5124
5124
  this.query.returnType = "one";
@@ -5126,7 +5126,7 @@ class QueryMethods {
5126
5126
  return this;
5127
5127
  }
5128
5128
  rows() {
5129
- return this.query.returnType === "rows" ? this : this.clone()._rows();
5129
+ return this.clone()._rows();
5130
5130
  }
5131
5131
  _rows() {
5132
5132
  this.query.returnType = "rows";
@@ -5134,7 +5134,7 @@ class QueryMethods {
5134
5134
  return this;
5135
5135
  }
5136
5136
  pluck(select) {
5137
- return this.query.returnType === "pluck" ? this : this.clone()._pluck(select);
5137
+ return this.clone()._pluck(select);
5138
5138
  }
5139
5139
  _pluck(select) {
5140
5140
  this.query.returnType = "pluck";
@@ -5144,7 +5144,7 @@ class QueryMethods {
5144
5144
  return this;
5145
5145
  }
5146
5146
  exec() {
5147
- return this.query.returnType === "void" ? this : this.clone()._exec();
5147
+ return this.clone()._exec();
5148
5148
  }
5149
5149
  _exec() {
5150
5150
  this.query.returnType = "void";