@litepos/autoquery 5.0.3 → 5.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/dist/index.js +2 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -92,7 +92,8 @@ let MonthValues = /* @__PURE__ */ function(MonthValues$1) {
92
92
  var QueryBuilder = class {
93
93
  params = {};
94
94
  addParam(property, operator, value) {
95
- const key = `${property.toString()}${operator}`;
95
+ const operatorStr = operator === "EqualTo" ? "" : operator;
96
+ const key = `${property.toString()}${operatorStr}`;
96
97
  if (operator === "IsNull" || operator === "IsNotNull") this.params[key] = "";
97
98
  else this.params[key] = `${value}`;
98
99
  return this;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@litepos/autoquery",
3
3
  "type": "module",
4
- "version": "5.0.3",
4
+ "version": "5.0.6",
5
5
  "description": "AutoQuery is a library for building queries for LitePOS.",
6
6
  "author": "LitePOS <info@litepos.ai>",
7
7
  "license": "MIT",