@sockethub/server 5.0.0-alpha.14 → 5.0.0-alpha.15
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/dist/cors.d.ts +30 -0
- package/dist/http/actions.d.ts +0 -8
- package/dist/index.js +155 -98
- package/dist/index.js.map +10 -9
- package/dist/platform-instance.d.ts +10 -1
- package/dist/platform.js +5 -3
- package/dist/platform.js.map +3 -3
- package/dist/process-manager.d.ts +10 -1
- package/package.json +13 -13
|
@@ -5,10 +5,19 @@ declare class ProcessManager {
|
|
|
5
5
|
private readonly parentSecret1;
|
|
6
6
|
private readonly parentSecret2;
|
|
7
7
|
private init;
|
|
8
|
+
private readonly ensureChains;
|
|
8
9
|
constructor(parentId: string, parentSecret1: string, parentSecret2: string, init: IInitObject);
|
|
9
|
-
get(platform: string, actorId: string, sessionId?: string, sessionIp?: string): PlatformInstance
|
|
10
|
+
get(platform: string, actorId: string, sessionId?: string, sessionIp?: string): Promise<PlatformInstance>;
|
|
10
11
|
private createPlatformInstance;
|
|
12
|
+
/**
|
|
13
|
+
* ensureProcessNow() yields the event loop while awaiting a dead
|
|
14
|
+
* predecessor's teardown, so two concurrent messages for the same
|
|
15
|
+
* identifier could otherwise both find no live instance and each fork
|
|
16
|
+
* a replacement child. Chain runs per identifier so only one is
|
|
17
|
+
* inspecting or creating that identifier's instance at a time.
|
|
18
|
+
*/
|
|
11
19
|
private ensureProcess;
|
|
20
|
+
private ensureProcessNow;
|
|
12
21
|
/**
|
|
13
22
|
* Each platform instance forks a full child process; without an upper
|
|
14
23
|
* bound, a public instance can be driven into resource exhaustion.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sockethub/server",
|
|
3
3
|
"description": "A polyglot messaging service, server libraries",
|
|
4
|
-
"version": "5.0.0-alpha.
|
|
4
|
+
"version": "5.0.0-alpha.15",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
7
7
|
"author": "Nick Jennings <nick@silverbucket.net>",
|
|
@@ -51,11 +51,11 @@
|
|
|
51
51
|
"homepage": "https://sockethub.org",
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@sentry/node": "^10.36.0",
|
|
54
|
-
"@sockethub/client": "^5.0.0-alpha.
|
|
55
|
-
"@sockethub/data-layer": "^1.0.0-alpha.
|
|
56
|
-
"@sockethub/logger": "^1.0.0-alpha.
|
|
57
|
-
"@sockethub/schemas": "^3.0.0-alpha.
|
|
58
|
-
"@sockethub/util": "^1.0.0-alpha.
|
|
54
|
+
"@sockethub/client": "^5.0.0-alpha.15",
|
|
55
|
+
"@sockethub/data-layer": "^1.0.0-alpha.15",
|
|
56
|
+
"@sockethub/logger": "^1.0.0-alpha.15",
|
|
57
|
+
"@sockethub/schemas": "^3.0.0-alpha.15",
|
|
58
|
+
"@sockethub/util": "^1.0.0-alpha.3",
|
|
59
59
|
"chalk": "^5.6.2",
|
|
60
60
|
"convict": "^6.2.5",
|
|
61
61
|
"ejs": "^3.1.10",
|
|
@@ -86,13 +86,13 @@
|
|
|
86
86
|
"web-streams-polyfill": "^3.3.3"
|
|
87
87
|
},
|
|
88
88
|
"optionalDependencies": {
|
|
89
|
-
"@sockethub/examples": "^1.0.0-alpha.
|
|
90
|
-
"@sockethub/platform-dummy": "^3.0.0-alpha.
|
|
91
|
-
"@sockethub/platform-feeds": "^4.0.0-alpha.
|
|
92
|
-
"@sockethub/platform-irc": "^4.0.0-alpha.
|
|
93
|
-
"@sockethub/platform-metadata": "^1.0.1-alpha.
|
|
94
|
-
"@sockethub/platform-xmpp": "^5.0.0-alpha.
|
|
89
|
+
"@sockethub/examples": "^1.0.0-alpha.15",
|
|
90
|
+
"@sockethub/platform-dummy": "^3.0.0-alpha.15",
|
|
91
|
+
"@sockethub/platform-feeds": "^4.0.0-alpha.15",
|
|
92
|
+
"@sockethub/platform-irc": "^4.0.0-alpha.15",
|
|
93
|
+
"@sockethub/platform-metadata": "^1.0.1-alpha.10",
|
|
94
|
+
"@sockethub/platform-xmpp": "^5.0.0-alpha.15"
|
|
95
95
|
},
|
|
96
|
-
"gitHead": "
|
|
96
|
+
"gitHead": "e7cd0a35abb39c878ff82a60884f0f7ecf4a0a87",
|
|
97
97
|
"types": "./dist/index.d.ts"
|
|
98
98
|
}
|