@leankylin-sheet/formula-parser 5.2.9 → 5.2.11

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.esm.js CHANGED
@@ -329,6 +329,9 @@ function compare(exp1, exp2, type) {
329
329
  } else if (type === ">=") {
330
330
  return tsValue(exp1) >= tsValue(exp2);
331
331
  } else if (type === "=") {
332
+ if (exp1 === 0 || epx2 === 0) {
333
+ return (exp1 || 0) === (exp2 || 0);
334
+ }
332
335
  return tsValue(exp1) === tsValue(exp2);
333
336
  }
334
337
  }
package/dist/index.js CHANGED
@@ -357,6 +357,9 @@ function compare(exp1, exp2, type) {
357
357
  } else if (type === ">=") {
358
358
  return tsValue(exp1) >= tsValue(exp2);
359
359
  } else if (type === "=") {
360
+ if (exp1 === 0 || epx2 === 0) {
361
+ return (exp1 || 0) === (exp2 || 0);
362
+ }
360
363
  return tsValue(exp1) === tsValue(exp2);
361
364
  }
362
365
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leankylin-sheet/formula-parser",
3
- "version": "5.2.9",
3
+ "version": "5.2.11",
4
4
  "description": "Formula parser",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",