@olympeio/runtime-node 9.5.2 → 9.5.3-test.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/import/olympe.dm/datamodel/05_permission_schema.updateInst.json +1 -1
- package/import/olympe.dm/datamodel/06_structure.newInst.json +1 -1
- package/import/olympe.sc/datamodel/01_language.newInst.json +1 -1
- package/index.js +612 -611
- package/package.json +3 -3
- package/types/utils.d.ts +4 -2
- package/import/dcInitConfig.json +0 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@olympeio/runtime-node",
|
|
3
|
-
"version": "9.5.
|
|
3
|
+
"version": "9.5.3-test.0",
|
|
4
4
|
"description": "Olympe Node Runtime Environment",
|
|
5
5
|
"types": "types/index.d.ts",
|
|
6
6
|
"dependencies": {
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
"bufferutil": "~4.0.7",
|
|
9
9
|
"utf-8-validate": "~5.0.10",
|
|
10
10
|
"rxjs": "7.8.1",
|
|
11
|
-
"fastify": "~
|
|
11
|
+
"fastify": "~4.24.3"
|
|
12
12
|
},
|
|
13
|
-
"
|
|
13
|
+
"codeAsData": "import",
|
|
14
14
|
"author": "Olympe S.A. <dev@olympe.ch>",
|
|
15
15
|
"homepage": "https://olympe.support",
|
|
16
16
|
"license": "See license in LICENSE.txt"
|
package/types/utils.d.ts
CHANGED
|
@@ -30,8 +30,9 @@ export class Process {
|
|
|
30
30
|
* The process is considered by the runtime as unhealthy if the promise is rejected.
|
|
31
31
|
*
|
|
32
32
|
* @param callback the callback executed each time the runtime check the health of the process.
|
|
33
|
+
* @param healthCheckId optional id to name the healthCheck hook, mainly for debug purpose
|
|
33
34
|
*/
|
|
34
|
-
static onHealthCheck(callback: () => Promise<string
|
|
35
|
+
static onHealthCheck(callback: () => Promise<string>, healthCheckId?: string): () => void;
|
|
35
36
|
|
|
36
37
|
/**
|
|
37
38
|
* Static method to register a callback called by the runtime when it receives the signal to be terminated.
|
|
@@ -40,8 +41,9 @@ export class Process {
|
|
|
40
41
|
* The callback must return a Promise which is resolved when the shutdown process is done.
|
|
41
42
|
*
|
|
42
43
|
* @param callback the callback executed when the runtime terminates.
|
|
44
|
+
* @param shutdownId optional id to name the shutdown hook, mainly for debug purpose
|
|
43
45
|
*/
|
|
44
|
-
static onShutdown(callback: () => Promise<void
|
|
46
|
+
static onShutdown(callback: () => Promise<void>, shutdownId?: string): () => void;
|
|
45
47
|
|
|
46
48
|
/**
|
|
47
49
|
* Static method that manually triggers a connection attempt to the server to go ONLINE.
|