@angular-eslint/template-parser 17.1.2-alpha.5 → 17.1.2-alpha.7

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/index.js +5 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -18,10 +18,11 @@ const KEYS = {
18
18
  PropertyRead: ['receiver'],
19
19
  Template: ['templateAttrs', 'children', 'inputs'],
20
20
  BindingPipe: ['exp'],
21
- DeferredBlock: ['children'],
21
+ DeferredBlock: ['children', 'placeholder', 'loading', 'error'],
22
22
  DeferredBlockLoading: ['children'],
23
23
  DeferredBlockError: ['children'],
24
24
  DeferredBlockPlaceholder: ['children'],
25
+ ForLoopBlock: ['children', 'empty'],
25
26
  };
26
27
  function fallbackKeysFilter(key) {
27
28
  let value = null;
@@ -57,6 +58,9 @@ function preprocessNode(node) {
57
58
  }
58
59
  for (i = 0; i < keys.length; ++i) {
59
60
  const child = node[keys[i]];
61
+ if (child == null) {
62
+ continue;
63
+ }
60
64
  const isArr = Array.isArray(child);
61
65
  if (child.type !== undefined) {
62
66
  // Angular sometimes uses a prop called type already
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular-eslint/template-parser",
3
- "version": "17.1.2-alpha.5",
3
+ "version": "17.1.2-alpha.7",
4
4
  "description": "Angular Template parser for ESLint",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -17,7 +17,7 @@
17
17
  "LICENSE"
18
18
  ],
19
19
  "dependencies": {
20
- "@angular-eslint/bundled-angular-compiler": "17.1.2-alpha.5",
20
+ "@angular-eslint/bundled-angular-compiler": "17.1.2-alpha.7",
21
21
  "eslint-scope": "^7.0.0"
22
22
  },
23
23
  "peerDependencies": {