@angular-devkit/schematics 14.2.3 → 14.2.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 +2 -2
- package/src/rules/call.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-devkit/schematics",
|
|
3
|
-
"version": "14.2.
|
|
3
|
+
"version": "14.2.5",
|
|
4
4
|
"description": "Angular Schematics - Library",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"typings": "src/index.d.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"schematics"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@angular-devkit/core": "14.2.
|
|
21
|
+
"@angular-devkit/core": "14.2.5",
|
|
22
22
|
"jsonc-parser": "3.1.0",
|
|
23
23
|
"magic-string": "0.26.2",
|
|
24
24
|
"ora": "5.4.1",
|
package/src/rules/call.js
CHANGED
|
@@ -86,7 +86,7 @@ async function callRuleAsync(rule, tree, context) {
|
|
|
86
86
|
if ((0, rxjs_1.isObservable)(result)) {
|
|
87
87
|
result = await result.pipe((0, operators_1.defaultIfEmpty)(tree)).toPromise();
|
|
88
88
|
}
|
|
89
|
-
if (interface_1.TreeSymbol in result) {
|
|
89
|
+
if (result && interface_1.TreeSymbol in result) {
|
|
90
90
|
return result;
|
|
91
91
|
}
|
|
92
92
|
throw new InvalidRuleResultException(result);
|