ditox 2.4.0 → 2.4.1
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 +2 -2
package/README.md
CHANGED
|
@@ -79,7 +79,7 @@ class UserService {
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
// Define tokens for injections.
|
|
82
|
-
const STORAGE_TOKEN = token
|
|
82
|
+
const STORAGE_TOKEN = token<UserService>('Token description for debugging');
|
|
83
83
|
const LOGGER_TOKEN = token();
|
|
84
84
|
const USER_SERVICE_TOKEN = token();
|
|
85
85
|
|
|
@@ -127,7 +127,7 @@ container.bindFactory(
|
|
|
127
127
|
const logger = container.get(LOGGER_TOKEN);
|
|
128
128
|
|
|
129
129
|
// Resolve a value, it throws `ResolverError` in case a value is not found.
|
|
130
|
-
const userService = container.resolve(
|
|
130
|
+
const userService = container.resolve(USER_SERVICE_TOKEN);
|
|
131
131
|
|
|
132
132
|
// Remove a value from the container.
|
|
133
133
|
container.remove(LOGGER_TOKEN);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ditox",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.1",
|
|
4
4
|
"description": "Dependency injection for modular web applications",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Mikhail Nasyrov <mikhail@mnasyrov.com> (https://github.com/mnasyrov)",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"build:rollup": "rollup -c",
|
|
53
53
|
"typedoc": "typedoc"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "e9c66f51c861a7598ab73415d7b2041700bc6d69"
|
|
56
56
|
}
|