ts-ioc-container 33.0.2 → 33.1.0
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/cjm/container/AutoMockedContainer.js +3 -0
- package/cjm/container/Container.js +3 -0
- package/cjm/container/EmptyContainer.js +3 -0
- package/esm/container/AutoMockedContainer.js +3 -0
- package/esm/container/Container.js +3 -0
- package/esm/container/EmptyContainer.js +3 -0
- package/package.json +2 -2
- package/typings/container/AutoMockedContainer.d.ts +1 -0
- package/typings/container/Container.d.ts +1 -0
- package/typings/container/EmptyContainer.d.ts +1 -0
- package/typings/container/IContainer.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ts-ioc-container",
|
|
3
|
-
"version": "33.0
|
|
3
|
+
"version": "33.1.0",
|
|
4
4
|
"description": "Typescript IoC container",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"ts-node": "^10.9.1",
|
|
60
60
|
"typescript": "5.4.3"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "284fe762ac07beb7f3747dfb5faf3409055d75df"
|
|
63
63
|
}
|
|
@@ -13,6 +13,7 @@ export declare abstract class AutoMockedContainer implements IContainer {
|
|
|
13
13
|
dispose(): void;
|
|
14
14
|
register(): this;
|
|
15
15
|
getInstances(): object[];
|
|
16
|
+
getOwnInstances(): object[];
|
|
16
17
|
reduceToRoot<TResult>(fn: ReduceScope<TResult>, initial: TResult): TResult;
|
|
17
18
|
removeScope(): void;
|
|
18
19
|
use(): this;
|
|
@@ -26,6 +26,7 @@ export declare class Container implements IContainer {
|
|
|
26
26
|
createScope(...tags: Tag[]): Container;
|
|
27
27
|
dispose(): void;
|
|
28
28
|
getInstances(direction?: 'parent' | 'child'): object[];
|
|
29
|
+
getOwnInstances(): object[];
|
|
29
30
|
hasTag(tag: Tag): boolean;
|
|
30
31
|
use(module: IContainerModule): this;
|
|
31
32
|
hasDependency(key: DependencyKey): boolean;
|
|
@@ -18,6 +18,7 @@ export declare class EmptyContainer implements IContainer {
|
|
|
18
18
|
resolve<T>(key: InjectionToken<T>, options: ResolveOptions): T;
|
|
19
19
|
getRegistrations(): never[];
|
|
20
20
|
getInstances(): object[];
|
|
21
|
+
getOwnInstances(): object[];
|
|
21
22
|
removeScope(): void;
|
|
22
23
|
use(module: IContainerModule): this;
|
|
23
24
|
add(registration: IRegistration): this;
|
|
@@ -33,6 +33,7 @@ export interface IContainer extends Resolvable, Tagged {
|
|
|
33
33
|
add(registration: IRegistration): this;
|
|
34
34
|
removeScope(child: IContainer): void;
|
|
35
35
|
getInstances(direction?: 'parent' | 'child'): object[];
|
|
36
|
+
getOwnInstances(): object[];
|
|
36
37
|
dispose(): void;
|
|
37
38
|
use(module: IContainerModule): this;
|
|
38
39
|
getRegistrations(): IRegistration[];
|