kuzzle 2.22.0 → 2.24.0
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
CHANGED
|
@@ -52,15 +52,14 @@ npx kourou app:scaffold playground
|
|
|
52
52
|
|
|
53
53
|
🚀 Kourou - Scaffolds a new Kuzzle application
|
|
54
54
|
|
|
55
|
-
✔ Creating playground/ directory
|
|
56
55
|
✔ Creating and rendering application files
|
|
57
|
-
|
|
58
|
-
[✔] Scaffolding complete! Use
|
|
56
|
+
|
|
57
|
+
[✔] Scaffolding complete! Use cd playground && npm run docker npm install install dependencies and then npm run docker:dev to run your application!
|
|
59
58
|
```
|
|
60
59
|
|
|
61
60
|
Then you need to run Kuzzle services, Elasticsearch and Redis: `kourou app:start-services`
|
|
62
61
|
|
|
63
|
-
Finally you can run your application inside Docker with `npm run dev
|
|
62
|
+
Finally you can run your application inside Docker with `npm run docker:dev`
|
|
64
63
|
|
|
65
64
|
Kuzzle is now listening for requests on the port `7512`!
|
|
66
65
|
|
|
@@ -115,8 +115,11 @@ class ClusterIdCardHandler {
|
|
|
115
115
|
await this.node.evictSelf(message.error);
|
|
116
116
|
}
|
|
117
117
|
});
|
|
118
|
-
this.refreshWorker.on("close", () => {
|
|
119
|
-
this.disposed
|
|
118
|
+
this.refreshWorker.on("close", async () => {
|
|
119
|
+
if (!this.disposed) {
|
|
120
|
+
this.disposed = true;
|
|
121
|
+
await this.node.evictSelf("ID Card renewer worker closed unexpectedly");
|
|
122
|
+
}
|
|
120
123
|
});
|
|
121
124
|
// Transfer informations to the worker
|
|
122
125
|
this.refreshWorker.send({
|
|
@@ -140,7 +143,17 @@ class ClusterIdCardHandler {
|
|
|
140
143
|
* Helper method to mock worker instantiation in unit tests
|
|
141
144
|
*/
|
|
142
145
|
constructWorker(path) {
|
|
143
|
-
|
|
146
|
+
const childProcess = (0, child_process_1.fork)(path);
|
|
147
|
+
const exitHandler = () => {
|
|
148
|
+
if (!childProcess.killed || childProcess.connected) {
|
|
149
|
+
childProcess.kill();
|
|
150
|
+
}
|
|
151
|
+
process.exit();
|
|
152
|
+
};
|
|
153
|
+
process.on("exit", exitHandler);
|
|
154
|
+
process.on("SIGINT", exitHandler);
|
|
155
|
+
process.on("SIGTERM", exitHandler);
|
|
156
|
+
return childProcess;
|
|
144
157
|
}
|
|
145
158
|
/**
|
|
146
159
|
* Start refreshing the ID Card before the worker starts to ensure the ID Card
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kuzzle",
|
|
3
3
|
"author": "The Kuzzle Team <support@kuzzle.io>",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.24.0",
|
|
5
5
|
"description": "Kuzzle is an open-source solution that handles all the data management through a secured API, with a large choice of protocols.",
|
|
6
6
|
"bin": "bin/start-kuzzle-server",
|
|
7
7
|
"scripts": {
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"json-stable-stringify": "^1.0.2",
|
|
62
62
|
"json2yaml": "^1.1.0",
|
|
63
63
|
"jsonwebtoken": "^8.5.1",
|
|
64
|
-
"koncorde": "^4.0
|
|
64
|
+
"koncorde": "^4.1.0",
|
|
65
65
|
"kuzzle-plugin-auth-passport-local": "^6.3.6",
|
|
66
66
|
"kuzzle-plugin-logger": "^3.0.3",
|
|
67
67
|
"kuzzle-sdk": "^7.10.5",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"semver": "^7.3.8",
|
|
80
80
|
"sorted-array": "^2.0.4",
|
|
81
81
|
"uuid": "^9.0.0",
|
|
82
|
-
"uWebSockets.js": "https://github.com/uNetworking/uWebSockets.js/archive/refs/tags/v20.
|
|
82
|
+
"uWebSockets.js": "https://github.com/uNetworking/uWebSockets.js/archive/refs/tags/v20.7.0.tar.gz",
|
|
83
83
|
"validator": "^13.9.0",
|
|
84
84
|
"winston": "^3.8.2",
|
|
85
85
|
"winston-elasticsearch": "0.17.1",
|