proxydi 0.1.1 → 0.1.2
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/CHANGELOG.md
CHANGED
|
@@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
-
## [[0.1.
|
|
8
|
+
## [[0.1.2](https://www.npmjs.com/package/proxydi/v/0.1.2)] - 2025-03-25
|
|
9
9
|
|
|
10
10
|
### Fixed
|
|
11
11
|
|
|
@@ -10,18 +10,18 @@ export interface MiddlewareEvent {
|
|
|
10
10
|
remove: <T>(context: MiddlewareContext<T>) => void;
|
|
11
11
|
resolve: <T>(context: MiddlewareContext<T>) => MiddlewareContext<T>;
|
|
12
12
|
}
|
|
13
|
-
export interface MiddlewareResolver {
|
|
14
|
-
onResolve:
|
|
13
|
+
export interface MiddlewareResolver<T> {
|
|
14
|
+
onResolve: (context: MiddlewareContext<T>) => MiddlewareContext<T>;
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
17
|
* Describe the middleware that able to listen to the registering of a dependency in containers hierarchy
|
|
18
18
|
*/
|
|
19
|
-
export interface MiddlewareRegistrator {
|
|
20
|
-
onRegister
|
|
19
|
+
export interface MiddlewareRegistrator<T> {
|
|
20
|
+
onRegister(context: MiddlewareContext<T>): void;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
23
|
* Describe the middleware that able to listen to the removing of a dependency in containers hierarchy
|
|
24
24
|
*/
|
|
25
|
-
export interface MiddlewareRemover {
|
|
26
|
-
onRemove
|
|
25
|
+
export interface MiddlewareRemover<T> {
|
|
26
|
+
onRemove(context: MiddlewareContext<T>): void;
|
|
27
27
|
}
|