@sockethub/server 5.0.0-alpha.23 → 5.0.0-alpha.25
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/README.md +11 -0
- package/dist/api-info.d.ts +39 -0
- package/dist/bootstrap/load-platforms.d.ts +1 -0
- package/dist/http/actions.d.ts +4 -0
- package/dist/index.js +8066 -49042
- package/dist/message-handlers.d.ts +4 -0
- package/dist/observability.d.ts +12 -1
- package/dist/platform.js +1495 -42524
- package/dist/sentry.d.ts +2 -1
- package/dist/sockethub.d.ts +0 -6
- package/dist/version.d.ts +14 -0
- package/package.json +16 -16
- package/res/sockethub-client.js +29 -17681
- package/dist/index.js.map +0 -1513
- package/dist/platform.js.map +0 -1247
- package/dist/sentry_cpu_profiler-darwin-arm64-108-x9pvc8sn.node +0 -0
- package/dist/sentry_cpu_profiler-darwin-arm64-115-f1zntp0c.node +0 -0
- package/dist/sentry_cpu_profiler-darwin-arm64-127-bkbjv4gh.node +0 -0
- package/dist/sentry_cpu_profiler-darwin-arm64-137-bnbev7dh.node +0 -0
- package/dist/sentry_cpu_profiler-darwin-arm64-147-zca3q0df.node +0 -0
- package/dist/sentry_cpu_profiler-darwin-x64-108-k9ejvb8b.node +0 -0
- package/dist/sentry_cpu_profiler-darwin-x64-115-5y3qs5bt.node +0 -0
- package/dist/sentry_cpu_profiler-darwin-x64-127-a90vbs03.node +0 -0
- package/dist/sentry_cpu_profiler-darwin-x64-137-93m96kya.node +0 -0
- package/dist/sentry_cpu_profiler-darwin-x64-147-jyxe4y9b.node +0 -0
- package/dist/sentry_cpu_profiler-linux-arm64-glibc-108-mqfvew5f.node +0 -0
- package/dist/sentry_cpu_profiler-linux-arm64-glibc-115-mqfvew5f.node +0 -0
- package/dist/sentry_cpu_profiler-linux-arm64-glibc-127-3tk3cast.node +0 -0
- package/dist/sentry_cpu_profiler-linux-arm64-glibc-137-0718g7v6.node +0 -0
- package/dist/sentry_cpu_profiler-linux-arm64-glibc-147-ap99rr48.node +0 -0
- package/dist/sentry_cpu_profiler-linux-arm64-musl-108-g2bwvb9e.node +0 -0
- package/dist/sentry_cpu_profiler-linux-arm64-musl-115-g2bwvb9e.node +0 -0
- package/dist/sentry_cpu_profiler-linux-arm64-musl-127-g2bwvb9e.node +0 -0
- package/dist/sentry_cpu_profiler-linux-arm64-musl-137-fda5zb96.node +0 -0
- package/dist/sentry_cpu_profiler-linux-arm64-musl-147-ky1pmw1r.node +0 -0
- package/dist/sentry_cpu_profiler-linux-x64-glibc-108-b4v94gym.node +0 -0
- package/dist/sentry_cpu_profiler-linux-x64-glibc-115-b4v94gym.node +0 -0
- package/dist/sentry_cpu_profiler-linux-x64-glibc-127-77sdzmpr.node +0 -0
- package/dist/sentry_cpu_profiler-linux-x64-glibc-137-5pe8gxxz.node +0 -0
- package/dist/sentry_cpu_profiler-linux-x64-glibc-147-08jxr90t.node +0 -0
- package/dist/sentry_cpu_profiler-linux-x64-musl-108-09j0f4jg.node +0 -0
- package/dist/sentry_cpu_profiler-linux-x64-musl-115-09j0f4jg.node +0 -0
- package/dist/sentry_cpu_profiler-linux-x64-musl-127-saq18043.node +0 -0
- package/dist/sentry_cpu_profiler-linux-x64-musl-137-p73z6xnr.node +0 -0
- package/dist/sentry_cpu_profiler-linux-x64-musl-147-bg1yh1wf.node +0 -0
- package/dist/sentry_cpu_profiler-win32-x64-108-mse3z67f.node +0 -0
- package/dist/sentry_cpu_profiler-win32-x64-115-p638z8w6.node +0 -0
- package/dist/sentry_cpu_profiler-win32-x64-127-1t1rmdnc.node +0 -0
- package/dist/sentry_cpu_profiler-win32-x64-137-fd76n204.node +0 -0
- package/dist/sentry_cpu_profiler-win32-x64-147-w12dzy7w.node +0 -0
- package/res/sockethub-client.min.js +0 -32
package/dist/sentry.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export declare function reportError(err: Error): void;
|
|
|
12
12
|
export declare function flush(timeoutMs?: number): Promise<boolean>;
|
|
13
13
|
export declare function count(name: string, value?: number, attributes?: MetricAttributes): void;
|
|
14
14
|
export declare function gauge(name: string, value: number, attributes?: MetricAttributes): void;
|
|
15
|
-
export declare function
|
|
15
|
+
export declare function distribution(name: string, value: number, unit: string, attributes?: MetricAttributes): void;
|
|
16
|
+
export declare function startAction(platform: string, action: string, additionalAttributes?: MetricAttributes): (error?: boolean) => void;
|
|
16
17
|
export declare function sendTestEvent(): Promise<boolean>;
|
|
17
18
|
export {};
|
package/dist/sockethub.d.ts
CHANGED
|
@@ -15,13 +15,7 @@ declare class Sockethub {
|
|
|
15
15
|
private rateLimiter;
|
|
16
16
|
private readonly socketsPerIp;
|
|
17
17
|
private activeConnections;
|
|
18
|
-
private serverVersion?;
|
|
19
18
|
private platformRegistryPayloadCache?;
|
|
20
|
-
/**
|
|
21
|
-
* Build the platform registry payload sent to clients.
|
|
22
|
-
* This is the canonical source for base contexts + platform context/schema metadata.
|
|
23
|
-
*/
|
|
24
|
-
private buildPlatformRegistryPayload;
|
|
25
19
|
/**
|
|
26
20
|
* Return the platform registry payload plus a content fingerprint, computed
|
|
27
21
|
* once and cached. The registry is static after platform load, so clients
|
package/dist/version.d.ts
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
/** The running server's own version, read from the installed package manifest. */
|
|
2
2
|
export declare const SOCKETHUB_VERSION: string;
|
|
3
|
+
/**
|
|
4
|
+
* Derive a public API version from a package SemVer string: the major version.
|
|
5
|
+
* Breaking API changes always require a major bump (prereleases included), so
|
|
6
|
+
* the major is the compatibility number clients check, and the exact release
|
|
7
|
+
* never has to be published. `5.2.1` and `5.0.0-alpha.24` both report `5`.
|
|
8
|
+
*
|
|
9
|
+
* The whole string must be well formed, so malformed metadata (`1.invalid`,
|
|
10
|
+
* `1.`, `1+`) is rejected instead of being published as an API version. Minor
|
|
11
|
+
* and patch may be omitted: the platform schema only requires `version` to be
|
|
12
|
+
* a string, and third-party platforms do declare versions such as `1.0`.
|
|
13
|
+
*/
|
|
14
|
+
export declare function apiVersionFromSemver(version: string): number;
|
|
15
|
+
/** The global Sockethub API version published to clients. */
|
|
16
|
+
export declare const SOCKETHUB_API_VERSION: number;
|
|
3
17
|
/**
|
|
4
18
|
* The Sentry release identifier to report when the deployment has not set one
|
|
5
19
|
* explicitly. Derived from the running package version so a deployment does
|
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.25",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
7
7
|
"author": "Nick Jennings <nick@silverbucket.net>",
|
|
@@ -52,11 +52,11 @@
|
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@sentry/node": "^10.36.0",
|
|
54
54
|
"@sentry/profiling-node": "10.36.0",
|
|
55
|
-
"@sockethub/client": "^5.0.0-alpha.
|
|
56
|
-
"@sockethub/data-layer": "^1.0.0-alpha.
|
|
57
|
-
"@sockethub/logger": "^1.0.0-alpha.
|
|
58
|
-
"@sockethub/schemas": "^3.0.0-alpha.
|
|
59
|
-
"@sockethub/util": "^1.0.0-alpha.
|
|
55
|
+
"@sockethub/client": "^5.0.0-alpha.25",
|
|
56
|
+
"@sockethub/data-layer": "^1.0.0-alpha.25",
|
|
57
|
+
"@sockethub/logger": "^1.0.0-alpha.25",
|
|
58
|
+
"@sockethub/schemas": "^3.0.0-alpha.25",
|
|
59
|
+
"@sockethub/util": "^1.0.0-alpha.13",
|
|
60
60
|
"chalk": "^5.6.2",
|
|
61
61
|
"convict": "^6.2.5",
|
|
62
62
|
"ejs": "^3.1.10",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"socket.io": "^4.8.3"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|
|
70
|
-
"build": "bun build src/index.ts --outdir dist --target node --format esm --
|
|
70
|
+
"build": "bun run clean && bun build src/index.ts --outdir dist --target node --format esm --external '@sentry/node' --external '@sentry/profiling-node' && bun build src/platform.ts --outdir dist --target node --format esm --external '@sentry/node' --external '@sentry/profiling-node'",
|
|
71
71
|
"clean": "rm -rf dist",
|
|
72
72
|
"clean:deps": "rm -rf node_modules",
|
|
73
73
|
"dev": "bun run --hot ./bin/sockethub --examples",
|
|
@@ -87,15 +87,15 @@
|
|
|
87
87
|
"web-streams-polyfill": "^3.3.3"
|
|
88
88
|
},
|
|
89
89
|
"optionalDependencies": {
|
|
90
|
-
"@sockethub/examples": "^1.0.0-alpha.
|
|
91
|
-
"@sockethub/platform-caldav": "^1.0.0-alpha.
|
|
92
|
-
"@sockethub/platform-carddav": "^1.0.0-alpha.
|
|
93
|
-
"@sockethub/platform-dummy": "^3.0.0-alpha.
|
|
94
|
-
"@sockethub/platform-feeds": "^4.0.0-alpha.
|
|
95
|
-
"@sockethub/platform-irc": "^4.0.0-alpha.
|
|
96
|
-
"@sockethub/platform-metadata": "^1.0.1-alpha.
|
|
97
|
-
"@sockethub/platform-xmpp": "^5.0.0-alpha.
|
|
90
|
+
"@sockethub/examples": "^1.0.0-alpha.25",
|
|
91
|
+
"@sockethub/platform-caldav": "^1.0.0-alpha.9",
|
|
92
|
+
"@sockethub/platform-carddav": "^1.0.0-alpha.6",
|
|
93
|
+
"@sockethub/platform-dummy": "^3.0.0-alpha.25",
|
|
94
|
+
"@sockethub/platform-feeds": "^4.0.0-alpha.25",
|
|
95
|
+
"@sockethub/platform-irc": "^4.0.0-alpha.25",
|
|
96
|
+
"@sockethub/platform-metadata": "^1.0.1-alpha.20",
|
|
97
|
+
"@sockethub/platform-xmpp": "^5.0.0-alpha.25"
|
|
98
98
|
},
|
|
99
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "1a76cff52a7b6f405fc607f1402bf2346ec5c40f",
|
|
100
100
|
"types": "./dist/index.d.ts"
|
|
101
101
|
}
|