@travetto/di
Advanced tools
Comparing version 0.0.24 to 0.0.25
@@ -24,3 +24,3 @@ { | ||
}, | ||
"version": "0.0.24" | ||
"version": "0.0.25" | ||
} |
@@ -112,7 +112,9 @@ import { Dependency, InjectableConfig, ClassTarget, InjectableFactoryConfig } from '../types'; | ||
if (this.autoCreate.length && !AppEnv.test) { | ||
console.debug('Auto-creating', this.autoCreate.map(x => x.target.name)); | ||
const items = this.autoCreate.slice(0).sort((a, b) => a.priority - b.priority); | ||
for (const i of items) { | ||
await this.getInstance(i.target, i.qualifier); | ||
} | ||
setTimeout(async () => { // Run after initialization finishes | ||
console.debug('Auto-creating', this.autoCreate.map(x => x.target.name)); | ||
const items = this.autoCreate.slice(0).sort((a, b) => a.priority - b.priority); | ||
for (const i of items) { | ||
await this.getInstance(i.target, i.qualifier); | ||
} | ||
}, 0); | ||
} | ||
@@ -119,0 +121,0 @@ } |
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
30971
834