@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 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 (the browser then blocks the
27
- * response). The request origin is run through the same URL normalization as
28
- * the configured entries, so matching never depends on the client sending
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>;