advanced-poe-filter-parser 0.9.10 → 0.9.12

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/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.12",
4
4
  "keywords": [
5
5
  "path-of-exile",
6
6
  "filter-of-kalandra",
@@ -90,6 +90,7 @@ condition =
90
90
  / conditionTransfiguredGem
91
91
  / conditionStackSize
92
92
  / conditionMapTier
93
+ / conditionWaystoneTier
93
94
  / conditionQuality
94
95
  / conditionLinkedSockets
95
96
  / conditionSockets
@@ -136,6 +137,7 @@ conditionGemLevel = attr:'GemLevel' __ val:condition
136
137
  conditionTransfiguredGem = attr:'TransfiguredGem' __ val:conditionValueBoolean { return { lineType: 'condition', attr, val} }
137
138
  conditionStackSize = attr:'StackSize' __ val:conditionValueNumber { return { lineType: 'condition', attr, val} }
138
139
  conditionMapTier = attr:'MapTier' __ val:conditionValueNumber { return { lineType: 'condition', attr, val} }
140
+ conditionWaystoneTier = attr:'WaystoneTier' __ val:conditionValueNumber { return { lineType: 'condition', attr, val} }
139
141
  conditionQuality = attr:'Quality' __ val:conditionValueNumber { return { lineType: 'condition', attr, val} }
140
142
  conditionLinkedSockets = attr:'LinkedSockets' __ val:conditionValueNumber { return { lineType: 'condition', attr, val} }
141
143
  conditionSockets = attr:'Sockets' __ val:conditionValueSocketType { return { lineType: 'condition', attr, val} }
@@ -188,7 +190,7 @@ conditionValueNumericAndArray = pre:((numOperator __ num __) / (matchOperator __
188
190
  }
189
191
  }
190
192
  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}` } }
193
+ conditionValueSocketType = operator:(numOperator __)? num:(num)? socketTypes:socketTypes { return operator ? { ope: operator[0], val: `${num == undefined ? '' : num}${socketTypes}` } : { ope: '=', val: `${num == undefined ? '' : num}${socketTypes}` } }
192
194
  conditionValueRarity = operator:(numOperator __)? rarity:rarity { return operator ? { ope: operator[0], val: rarity } : { ope: '=', val: rarity } }
193
195
  conditionValueBoolean = boolean
194
196
  conditionValueImplicitModTier = operator:numOperator __ modTier:implicitModTier { return { ope: operator, val: modTier } }