@nestjs/core 10.1.2 → 10.1.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.
- package/Readme.md +2 -0
- package/injector/settlement-signal.d.ts +1 -0
- package/injector/settlement-signal.js +4 -1
- package/nest-factory.js +2 -2
- package/package.json +2 -2
package/Readme.md
CHANGED
|
@@ -111,6 +111,8 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
|
|
|
111
111
|
<td align="center" valign="middle"><a href="https://nordbot.app/" target="_blank"><img src="https://nestjs.com/img/nordbot-logo.png" width="120" valign="middle" /></a></td></tr><tr>
|
|
112
112
|
<td align="center" valign="middle"><a href="https://doppio.sh/" target="_blank"><img src="https://nestjs.com/img/dopiosh-logo.png" width="50" valign="middle" /></a></td>
|
|
113
113
|
<td align="center" valign="middle"><a href="https://www.hingehealth.com/" target="_blank"><img src="https://nestjs.com/img/hinge-health-logo.svg" width="100" valign="middle" /></a></td>
|
|
114
|
+
<td align="center" valign="middle"><a href="https://julienferand.dev/" target="_blank"><img src="https://nestjs.com/img/julienferand-logo.jpeg" width="65" valign="middle" /></a></td>
|
|
115
|
+
<td align="center" valign="middle"><a href="https://www.tripoffice.com/" target="_blank"><img src="https://nestjs.com/img/tripoffice-logo.png" width="140" valign="middle" /></a></td>
|
|
114
116
|
</tr></table>
|
|
115
117
|
|
|
116
118
|
## Backers
|
|
@@ -9,6 +9,7 @@ exports.SettlementSignal = void 0;
|
|
|
9
9
|
class SettlementSignal {
|
|
10
10
|
constructor() {
|
|
11
11
|
this._refs = new Set();
|
|
12
|
+
this.completed = false;
|
|
12
13
|
this.settledPromise = new Promise(resolve => {
|
|
13
14
|
this.settleFn = resolve;
|
|
14
15
|
});
|
|
@@ -17,6 +18,7 @@ class SettlementSignal {
|
|
|
17
18
|
* Resolves the promise returned by `asPromise`.
|
|
18
19
|
*/
|
|
19
20
|
complete() {
|
|
21
|
+
this.completed = true;
|
|
20
22
|
this.settleFn();
|
|
21
23
|
}
|
|
22
24
|
/**
|
|
@@ -24,6 +26,7 @@ class SettlementSignal {
|
|
|
24
26
|
* @param err Error to reject the promise returned by `asPromise` with.
|
|
25
27
|
*/
|
|
26
28
|
error(err) {
|
|
29
|
+
this.completed = true;
|
|
27
30
|
this.settleFn(err);
|
|
28
31
|
}
|
|
29
32
|
/**
|
|
@@ -46,7 +49,7 @@ class SettlementSignal {
|
|
|
46
49
|
* @returns True if relationship is circular, false otherwise.
|
|
47
50
|
*/
|
|
48
51
|
isCycle(wrapperId) {
|
|
49
|
-
return this._refs.has(wrapperId);
|
|
52
|
+
return !this.completed && this._refs.has(wrapperId);
|
|
50
53
|
}
|
|
51
54
|
}
|
|
52
55
|
exports.SettlementSignal = SettlementSignal;
|
package/nest-factory.js
CHANGED
|
@@ -73,11 +73,11 @@ class NestFactoryStatic {
|
|
|
73
73
|
* contains a reference to the NestApplicationContext instance.
|
|
74
74
|
*/
|
|
75
75
|
async createApplicationContext(moduleCls, options) {
|
|
76
|
-
const
|
|
76
|
+
const applicationConfig = new application_config_1.ApplicationConfig();
|
|
77
|
+
const container = new container_1.NestContainer(applicationConfig);
|
|
77
78
|
const graphInspector = this.createGraphInspector(options, container);
|
|
78
79
|
this.setAbortOnError(options);
|
|
79
80
|
this.registerLoggerConfiguration(options);
|
|
80
|
-
const applicationConfig = undefined;
|
|
81
81
|
await this.initialize(moduleCls, container, graphInspector, applicationConfig, options);
|
|
82
82
|
const modules = container.getModules().values();
|
|
83
83
|
const root = modules.next().value;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nestjs/core",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.3",
|
|
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
|
"uid": "2.0.2"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@nestjs/common": "10.1.
|
|
39
|
+
"@nestjs/common": "10.1.3"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@nestjs/common": "^10.0.0",
|