@marianmeres/condition-parser 1.4.0 → 1.5.0

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/parser.js +2 -2
  2. package/package.json +1 -1
package/dist/parser.js CHANGED
@@ -26,8 +26,8 @@ export class ConditionParser {
26
26
  #preAddHook;
27
27
  constructor(input, options = {}) {
28
28
  input = `${input}`.trim();
29
- if (!input)
30
- throw new TypeError(`Expecting non empty input`);
29
+ // removing this... makes no sense
30
+ // if (!input) throw new TypeError(`Expecting non empty input`);
31
31
  const { defaultOperator = ConditionParser.DEFAULT_OPERATOR, debug = false, transform = (c) => c, preAddHook, } = options ?? {};
32
32
  this.#input = input;
33
33
  this.#length = input.length;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marianmeres/condition-parser",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "type": "module",
5
5
  "main": "dist/mod.js",
6
6
  "types": "dist/mod.d.ts",