@trenskow/pged 4.0.5 → 4.0.6

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/package.json +1 -1
  2. package/query-builder.js +1 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trenskow/pged",
3
- "version": "4.0.5",
3
+ "version": "4.0.6",
4
4
  "description": "Just a silly little db management and query builder for PostgreSQL.",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/query-builder.js CHANGED
@@ -35,7 +35,6 @@ module.exports = exports = class QueryBuilder extends CustomPromise {
35
35
  this._having = [];
36
36
 
37
37
  this._offset = 0;
38
- this._limit = Infinity;
39
38
 
40
39
  this._executor = executor;
41
40
 
@@ -130,7 +129,7 @@ module.exports = exports = class QueryBuilder extends CustomPromise {
130
129
  return this;
131
130
  }
132
131
 
133
- limitTo(limit = Infinity) {
132
+ limitTo(limit) {
134
133
  this._limit = limit;
135
134
  return this;
136
135
  }