@sockethub/server 5.0.0-beta.0 → 5.0.0-beta.2
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/connection-scope.d.ts +1 -0
- package/dist/cors.d.ts +3 -3
- package/dist/index.d.ts +7 -0
- package/dist/index.js +1212 -932
- package/dist/message-handlers.d.ts +1 -3
- package/dist/middleware/normalize-activity-stream.d.ts +13 -0
- package/dist/payload-debug.d.ts +2 -0
- package/dist/platform-instance.d.ts +5 -1
- package/dist/platform.js +107 -26
- package/dist/process-manager.d.ts +13 -10
- package/dist/trust-proxy.d.ts +19 -0
- package/package.json +22 -16
- package/res/sockethub-client.js +17 -17
|
@@ -58,6 +58,7 @@ export declare function beginCredentialScope(sessionId: string, platform: string
|
|
|
58
58
|
/** Drops a session's scopes. Called when the session ends. */
|
|
59
59
|
export declare function clearSessionScopes(sessionId: string): void;
|
|
60
60
|
export interface ScopeRequest {
|
|
61
|
+
shareConnections?: boolean;
|
|
61
62
|
/**
|
|
62
63
|
* Session the credentials were submitted under. Over a socket this is the
|
|
63
64
|
* socket id; over HTTP it is the request's single-use session, which is
|
package/dist/cors.d.ts
CHANGED
|
@@ -23,9 +23,9 @@ export declare function parseCorsOrigins(configured: unknown): "*" | Array<strin
|
|
|
23
23
|
* Resolve the `Access-Control-Allow-Origin` value for a request against an
|
|
24
24
|
* allow-list already parsed by `parseCorsOrigins`. Returns `"*"` when any
|
|
25
25
|
* origin is allowed, the request's own origin when it is in the allow-list,
|
|
26
|
-
* or `undefined` when it is not allowed
|
|
27
|
-
*
|
|
28
|
-
*
|
|
26
|
+
* or `undefined` when it is not allowed. The request origin is run through
|
|
27
|
+
* the same URL normalization as the configured entries, so matching never
|
|
28
|
+
* depends on the client sending
|
|
29
29
|
* the canonical serialization.
|
|
30
30
|
*/
|
|
31
31
|
export declare function resolveAllowedOrigin(allowedOrigins: "*" | Array<string>, requestOrigin: string | undefined): string | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1,8 @@
|
|
|
1
|
+
import "./payload-debug.js";
|
|
2
|
+
/**
|
|
3
|
+
* Start the Sockethub server. Handles the `--help`/`--version`/`--write-config`
|
|
4
|
+
* short-circuits, then boots the HTTP/Socket.IO listener. Refuses to start when
|
|
5
|
+
* the environment forbids code generation, since schema validation would fail
|
|
6
|
+
* open.
|
|
7
|
+
*/
|
|
1
8
|
export declare function server(): Promise<void>;
|