ts-ioc-container 44.0.2 → 44.0.3
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/README.md +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1416,7 +1416,7 @@ describe('onConstruct', function () {
|
|
|
1416
1416
|
it('should run methods and resolve arguments from container', function () {
|
|
1417
1417
|
const root = new Container()
|
|
1418
1418
|
.addOnConstructHook((instance, scope) => {
|
|
1419
|
-
onConstructHooksRunner.execute(instance
|
|
1419
|
+
onConstructHooksRunner.execute(instance, { scope });
|
|
1420
1420
|
})
|
|
1421
1421
|
.addRegistration(R.fromValue('bmw').bindTo('engine'));
|
|
1422
1422
|
|
|
@@ -1485,7 +1485,7 @@ describe('onDispose', function () {
|
|
|
1485
1485
|
logger.log('Hello');
|
|
1486
1486
|
|
|
1487
1487
|
for (const instance of select.instances().resolve(container)) {
|
|
1488
|
-
onDisposeHookRunner.execute(instance
|
|
1488
|
+
onDisposeHookRunner.execute(instance, { scope: container });
|
|
1489
1489
|
}
|
|
1490
1490
|
|
|
1491
1491
|
expect(container.resolve<LogsRepo>('logsRepo').savedLogs.join(',')).toBe('Hello,world');
|