@sockethub/server 5.0.0-beta.0 → 5.0.0-beta.1
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 +3 -3
- package/dist/index.d.ts +7 -0
- package/dist/index.js +1069 -896
- 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 +1 -0
- package/dist/platform.js +72 -21
- package/dist/process-manager.d.ts +2 -10
- package/dist/trust-proxy.d.ts +19 -0
- package/package.json +18 -15
- package/res/sockethub-client.js +13 -13
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>;
|