dependency-inject
Advanced tools
Comparing version 1.0.18 to 1.0.19
{ | ||
"name": "dependency-inject", | ||
"version": "1.0.18", | ||
"version": "1.0.19", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "built/index.js", |
@@ -18,3 +18,3 @@ import Container from "./container" | ||
Object.keys(obj).forEach(key => { | ||
let instance: any = new obj[key]() | ||
let instance: any = new (obj as any)[key]() | ||
container.set((obj as any)[key], instance) | ||
@@ -24,3 +24,3 @@ }) | ||
const injectObj = Object.keys(obj).reduce((result, key) => { | ||
result[key] = container.get(obj[key]) | ||
result[key] = container.get((obj as any)[key]) | ||
return result | ||
@@ -27,0 +27,0 @@ }, {} as any) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
183124