ts-ioc-container 32.0.1 → 32.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.
|
@@ -31,8 +31,8 @@ class ProviderDecorator {
|
|
|
31
31
|
isVisible(parent, child) {
|
|
32
32
|
return this.decorated.isVisible(parent, child);
|
|
33
33
|
}
|
|
34
|
-
resolve(container,
|
|
35
|
-
return (0, utils_1.lazyInstance)(() => this.resolveInstantly(container,
|
|
34
|
+
resolve(container, { args, lazy }) {
|
|
35
|
+
return (0, utils_1.lazyInstance)(() => this.resolveInstantly(container, { args }), lazy);
|
|
36
36
|
}
|
|
37
37
|
pipe(...mappers) {
|
|
38
38
|
return (0, utils_1.pipe)(...mappers)(this);
|
|
@@ -22,8 +22,8 @@ export class ProviderDecorator {
|
|
|
22
22
|
isVisible(parent, child) {
|
|
23
23
|
return this.decorated.isVisible(parent, child);
|
|
24
24
|
}
|
|
25
|
-
resolve(container,
|
|
26
|
-
return lazyInstance(() => this.resolveInstantly(container,
|
|
25
|
+
resolve(container, { args, lazy }) {
|
|
26
|
+
return lazyInstance(() => this.resolveInstantly(container, { args }), lazy);
|
|
27
27
|
}
|
|
28
28
|
pipe(...mappers) {
|
|
29
29
|
return pipe(...mappers)(this);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ts-ioc-container",
|
|
3
|
-
"version": "32.0.
|
|
3
|
+
"version": "32.0.3",
|
|
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": "589ba5dc812a341de949b39a397518db5820d26a"
|
|
63
63
|
}
|
package/typings/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export { IInjector } from './injector/IInjector';
|
|
|
6
6
|
export { MetadataInjector, inject } from './injector/MetadataInjector';
|
|
7
7
|
export { SimpleInjector } from './injector/SimpleInjector';
|
|
8
8
|
export { ProxyInjector } from './injector/ProxyInjector';
|
|
9
|
-
export { ResolveDependency, IProvider, provider, visible, alias, argsFn, args, ArgsFn, ProviderDecorator, } from './provider/IProvider';
|
|
9
|
+
export { ResolveDependency, IProvider, provider, visible, alias, argsFn, args, ArgsFn, ProviderDecorator, InstantDependencyOptions, ProviderResolveOptions, } from './provider/IProvider';
|
|
10
10
|
export { Provider } from './provider/Provider';
|
|
11
11
|
export { singleton, SingletonProvider } from './provider/singleton/SingletonProvider';
|
|
12
12
|
export { MultiCache, multiCache } from './provider/singleton/MultiCache';
|
|
@@ -31,7 +31,7 @@ export declare abstract class ProviderDecorator<T> implements IProvider<T> {
|
|
|
31
31
|
protected constructor(decorated: IProvider<T>);
|
|
32
32
|
setVisibility(predicate: ChildrenVisibilityPredicate): this;
|
|
33
33
|
isVisible(parent: IContainer, child: Tagged): boolean;
|
|
34
|
-
resolve(container: IContainer,
|
|
34
|
+
resolve(container: IContainer, { args, lazy }: ProviderResolveOptions): T;
|
|
35
35
|
protected abstract resolveInstantly(container: IContainer, options: InstantDependencyOptions): T;
|
|
36
36
|
pipe(...mappers: MapFn<IProvider<T>>[]): IProvider<T>;
|
|
37
37
|
matchAliases(predicate: AliasPredicate): boolean;
|