@appolo/inject
Advanced tools
Comparing version 8.0.9 to 8.0.10
@@ -12,2 +12,4 @@ "use strict"; | ||
this.beforeInitialize = new index_1.Event(); | ||
this.beforeInitMethods = new index_1.Event(); | ||
this.beforeBootstrapMethods = new index_1.Event(); | ||
this.afterInitialize = new index_1.Event(); | ||
@@ -14,0 +16,0 @@ } |
@@ -14,4 +14,6 @@ import {Event, IEvent} from "@appolo/events/index"; | ||
public readonly beforeInitialize: IEvent<void> = new Event(); | ||
public readonly beforeInitMethods: IEvent<void> = new Event(); | ||
public readonly beforeBootstrapMethods: IEvent<void> = new Event(); | ||
public readonly afterInitialize: IEvent<void> = new Event(); | ||
} |
@@ -126,2 +126,3 @@ "use strict"; | ||
} | ||
await this._events.beforeInitMethods.fireEventAsync(); | ||
let keys = Object.keys(this._instances); | ||
@@ -141,2 +142,3 @@ await Promise.all(this.children.map(injector => injector.initInitMethods())); | ||
} | ||
await this._events.beforeBootstrapMethods.fireEventAsync(); | ||
let asyncBootstrapPromises = []; | ||
@@ -143,0 +145,0 @@ for (let i = 0, len = keys.length; i < len; i++) { |
@@ -205,2 +205,4 @@ "use strict"; | ||
await (this._events.beforeInitMethods as Event<void>).fireEventAsync() | ||
let keys = Object.keys(this._instances); | ||
@@ -226,2 +228,5 @@ | ||
await (this._events.beforeBootstrapMethods as Event<void>).fireEventAsync(); | ||
let asyncBootstrapPromises = []; | ||
@@ -228,0 +233,0 @@ |
@@ -34,3 +34,3 @@ { | ||
"main": "./index.js", | ||
"version": "8.0.9", | ||
"version": "8.0.10", | ||
"license": "MIT", | ||
@@ -37,0 +37,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
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
177272
2785