query-core 0.2.6 → 0.2.7

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.
@@ -34,7 +34,7 @@ var SearchBuilder = (function () {
34
34
  this.map = meta.map;
35
35
  this.bools = meta.bools;
36
36
  }
37
- this.deleteSort = buildQ ? true : undefined;
37
+ this.deleteSort = buildQ ? undefined : true;
38
38
  this.buildQuery = buildQ ? buildQ : query_1.buildQuery;
39
39
  this.buildSort = buildSort ? buildSort : query_1.buildSort;
40
40
  this.q = q && q.length > 0 ? q : "q";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "query-core",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "query",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./src/index.ts",
@@ -57,7 +57,7 @@ export class SearchBuilder<T, S> {
57
57
  this.map = meta.map
58
58
  this.bools = meta.bools
59
59
  }
60
- this.deleteSort = buildQ ? true: undefined
60
+ this.deleteSort = buildQ ? undefined : true
61
61
  this.buildQuery = buildQ ? buildQ : buildQuery
62
62
  this.buildSort = buildSort ? buildSort : bs
63
63
  this.q = q && q.length > 0 ? q : "q"