static-injector 1.0.9 → 1.0.10

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": "static-injector",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "Angular的静态注入器独立使用版本",
5
5
  "keywords": [
6
6
  "angular",
@@ -74,6 +74,9 @@ class InjectableTransformerFactory {
74
74
  this.reflectionHost.isClass(node)) {
75
75
  const decorators = this.reflectionHost.getDecoratorsOfDeclaration(node);
76
76
  let result = this.handler.detect(node, decorators);
77
+ if (!result) {
78
+ return;
79
+ }
77
80
  let analysisOutput = this.handler.analyze(node, result.metadata);
78
81
  let compileResult = this.handler.compileFull(node, analysisOutput.analysis);
79
82
  let resultNode = this.translate(compileResult, importManager);