@trenskow/pged 4.0.4 → 4.0.5

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 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trenskow/pged",
3
- "version": "4.0.4",
3
+ "version": "4.0.5",
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
@@ -421,7 +421,7 @@ module.exports = exports = class QueryBuilder extends CustomPromise {
421
421
  }
422
422
 
423
423
  _buildLimit() {
424
- if ((this._limit || Infinity) == Infinity) return;
424
+ if (typeof this._limit === 'undefined') return;
425
425
  return `limit ${this._limit}`;
426
426
  }
427
427