ember-eslint-parser 0.3.4 → 0.3.5

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": "ember-eslint-parser",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "repository": {
@@ -124,7 +124,7 @@ function traverse(visitorKeys, node, visitor) {
124
124
 
125
125
  if (!currentPath.node) continue;
126
126
 
127
- const visitorKeys = allVisitorKeys[currentPath.node.type];
127
+ const visitorKeys = [...(allVisitorKeys[currentPath.node.type] || [])];
128
128
  if (currentPath.node.type === 'GlimmerElementNode') {
129
129
  if (!visitorKeys.includes('blockParamNodes')) {
130
130
  visitorKeys.push('blockParamNodes', 'parts');