@nestjs/core 8.2.0 → 8.2.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.
|
@@ -10,7 +10,7 @@ const transient_instances_1 = require("../injector/helpers/transient-instances")
|
|
|
10
10
|
* @param instance The instance which should be checked
|
|
11
11
|
*/
|
|
12
12
|
function hasBeforeApplicationShutdownHook(instance) {
|
|
13
|
-
return
|
|
13
|
+
return shared_utils_1.isFunction(instance.beforeApplicationShutdown);
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
16
|
* Calls the given instances
|
|
@@ -10,7 +10,7 @@ const transient_instances_1 = require("../injector/helpers/transient-instances")
|
|
|
10
10
|
* @param instance The instance which should be checked
|
|
11
11
|
*/
|
|
12
12
|
function hasOnAppBootstrapHook(instance) {
|
|
13
|
-
return
|
|
13
|
+
return shared_utils_1.isFunction(instance.onApplicationBootstrap);
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
16
|
* Calls the given instances
|
|
@@ -10,7 +10,7 @@ const transient_instances_1 = require("../injector/helpers/transient-instances")
|
|
|
10
10
|
* @param instance The instance which should be checked
|
|
11
11
|
*/
|
|
12
12
|
function hasOnAppShutdownHook(instance) {
|
|
13
|
-
return
|
|
13
|
+
return shared_utils_1.isFunction(instance.onApplicationShutdown);
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
16
|
* Calls the given instances
|
|
@@ -10,7 +10,7 @@ const transient_instances_1 = require("../injector/helpers/transient-instances")
|
|
|
10
10
|
* @param instance The instance which should be checked
|
|
11
11
|
*/
|
|
12
12
|
function hasOnModuleDestroyHook(instance) {
|
|
13
|
-
return
|
|
13
|
+
return shared_utils_1.isFunction(instance.onModuleDestroy);
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
16
|
* Calls the given instances onModuleDestroy hook
|
|
@@ -10,7 +10,7 @@ const transient_instances_1 = require("../injector/helpers/transient-instances")
|
|
|
10
10
|
* @param instance The instance which should be checked
|
|
11
11
|
*/
|
|
12
12
|
function hasOnModuleInitHook(instance) {
|
|
13
|
-
return
|
|
13
|
+
return shared_utils_1.isFunction(instance.onModuleInit);
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
16
|
* Calls the given instances
|
package/injector/injector.js
CHANGED
|
@@ -137,6 +137,7 @@ class Injector {
|
|
|
137
137
|
}
|
|
138
138
|
async resolveSingleParam(wrapper, param, dependencyContext, moduleRef, contextId = constants_2.STATIC_CONTEXT, inquirer, keyOrIndex) {
|
|
139
139
|
if (shared_utils_1.isUndefined(param)) {
|
|
140
|
+
this.logger.log('Nest encountered an undefined dependency. This may be due to a circular import or a missing dependency declaration.');
|
|
140
141
|
throw new undefined_dependency_exception_1.UndefinedDependencyException(wrapper.name, dependencyContext, moduleRef);
|
|
141
142
|
}
|
|
142
143
|
const token = this.resolveParamToken(wrapper, param);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nestjs/core",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.1",
|
|
4
4
|
"description": "Nest - modern, fast, powerful node.js web framework (@core)",
|
|
5
5
|
"author": "Kamil Mysliwiec",
|
|
6
6
|
"license": "MIT",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"uuid": "8.3.2"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@nestjs/common": "8.2.
|
|
39
|
+
"@nestjs/common": "8.2.1"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@nestjs/common": "^8.0.0",
|