advanced-poe-filter-parser 0.9.10 → 0.9.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/lib/parser.cjs CHANGED
@@ -601,7 +601,7 @@ function peg$parse(input, options) {
601
601
  }
602
602
  };
603
603
  var peg$f52 = function(operator, num) { return { ope: operator, val: num } };
604
- var peg$f53 = function(operator, num, socketTypes) { return operator ? { ope: operator[0], val: `${num ? num : ''}${socketTypes}` } : { ope: '=', val: `${num ? num : ''}${socketTypes}` } };
604
+ var peg$f53 = function(operator, num, socketTypes) { return operator ? { ope: operator[0], val: `${num == undefined ? '' : num}${socketTypes}` } : { ope: '=', val: `${num == undefined ? '' : num}${socketTypes}` } };
605
605
  var peg$f54 = function(operator, rarity) { return operator ? { ope: operator[0], val: rarity } : { ope: '=', val: rarity } };
606
606
  var peg$f55 = function(operator, modTier) { return { ope: operator, val: modTier } };
607
607
  var peg$f56 = function(attr, val) { return { lineType: 'action', attr, val } };
package/lib/parser.mjs CHANGED
@@ -599,7 +599,7 @@ function peg$parse(input, options) {
599
599
  }
600
600
  };
601
601
  var peg$f52 = function(operator, num) { return { ope: operator, val: num } };
602
- var peg$f53 = function(operator, num, socketTypes) { return operator ? { ope: operator[0], val: `${num ? num : ''}${socketTypes}` } : { ope: '=', val: `${num ? num : ''}${socketTypes}` } };
602
+ var peg$f53 = function(operator, num, socketTypes) { return operator ? { ope: operator[0], val: `${num == undefined ? '' : num}${socketTypes}` } : { ope: '=', val: `${num == undefined ? '' : num}${socketTypes}` } };
603
603
  var peg$f54 = function(operator, rarity) { return operator ? { ope: operator[0], val: rarity } : { ope: '=', val: rarity } };
604
604
  var peg$f55 = function(operator, modTier) { return { ope: operator, val: modTier } };
605
605
  var peg$f56 = function(attr, val) { return { lineType: 'action', attr, val } };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "advanced-poe-filter-parser",
3
- "version": "0.9.10",
3
+ "version": "0.9.11",
4
4
  "keywords": [
5
5
  "path-of-exile",
6
6
  "filter-of-kalandra",
@@ -188,7 +188,7 @@ conditionValueNumericAndArray = pre:((numOperator __ num __) / (matchOperator __
188
188
  }
189
189
  }
190
190
  conditionValueNumber = operator:numOperator __ num:num { return { ope: operator, val: num } }
191
- conditionValueSocketType = operator:(numOperator __)? num:(num)? socketTypes:socketTypes { return operator ? { ope: operator[0], val: `${num ? num : ''}${socketTypes}` } : { ope: '=', val: `${num ? num : ''}${socketTypes}` } }
191
+ conditionValueSocketType = operator:(numOperator __)? num:(num)? socketTypes:socketTypes { return operator ? { ope: operator[0], val: `${num == undefined ? '' : num}${socketTypes}` } : { ope: '=', val: `${num == undefined ? '' : num}${socketTypes}` } }
192
192
  conditionValueRarity = operator:(numOperator __)? rarity:rarity { return operator ? { ope: operator[0], val: rarity } : { ope: '=', val: rarity } }
193
193
  conditionValueBoolean = boolean
194
194
  conditionValueImplicitModTier = operator:numOperator __ modTier:implicitModTier { return { ope: operator, val: modTier } }