@meshstream/p2p-web 0.2.1 → 1.0.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/README.md +113 -110
- package/dist/adapters.js +1 -1
- package/dist/advanced.js +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/hls.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/logging.d.ts +12 -0
- package/dist/session-token.d.ts +1 -1
- package/dist/version.d.ts +3 -1
- package/package.json +15 -11
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** SDK diagnostics only: never changes the host or dependency-global logger. */
|
|
2
|
+
export type LogLevel = "none" | "error" | "warn" | "info" | "debug";
|
|
3
|
+
type MessageLevel = Exclude<LogLevel, "none">;
|
|
4
|
+
export declare function sanitizeLogMessage(message: string): string;
|
|
5
|
+
export declare class SdkLogger {
|
|
6
|
+
private readonly level;
|
|
7
|
+
private readonly clientId;
|
|
8
|
+
private readonly repeats;
|
|
9
|
+
constructor(level?: LogLevel);
|
|
10
|
+
log(level: MessageLevel, event: string, message: () => string): void;
|
|
11
|
+
}
|
|
12
|
+
export {};
|
package/dist/session-token.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export interface WebSessionTokenManagerOptions {
|
|
|
10
10
|
now?: () => number;
|
|
11
11
|
timeoutMs?: number;
|
|
12
12
|
}
|
|
13
|
-
export declare const DEFAULT_ACCESS_TIMEOUT_MS =
|
|
13
|
+
export declare const DEFAULT_ACCESS_TIMEOUT_MS = 8000;
|
|
14
14
|
export interface SessionTokenDiagnostics {
|
|
15
15
|
attempts: number;
|
|
16
16
|
successes: number;
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
/** SDK release identifier attached to all Web usage reports. */
|
|
2
|
-
export declare const MESHSTREAM_WEB_SDK_VERSION = "0.
|
|
2
|
+
export declare const MESHSTREAM_WEB_SDK_VERSION = "1.0.1";
|
|
3
|
+
/** Returns the version of the Web MeshStream SDK loaded by this page. */
|
|
4
|
+
export declare function getSdkVersion(): string;
|
package/package.json
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@meshstream/p2p-web",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@meshstream/p2p-web",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "https://github.com/Mesh-Stream/meshstream-p2p-web-sdk"
|
|
7
|
+
},
|
|
8
|
+
"type": "module",
|
|
9
|
+
"main": "./dist/index.js",
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"exports": {
|
|
8
12
|
".": {
|
|
9
13
|
"types": "./dist/index.d.ts",
|
|
10
14
|
"import": "./dist/index.js"
|
|
@@ -21,7 +25,7 @@
|
|
|
21
25
|
"types": "./dist/service-worker.d.ts",
|
|
22
26
|
"import": "./dist/service-worker.js"
|
|
23
27
|
}
|
|
24
|
-
},
|
|
28
|
+
},
|
|
25
29
|
"files": [
|
|
26
30
|
"dist/*.d.ts",
|
|
27
31
|
"dist/**/*.d.ts",
|
|
@@ -48,6 +52,6 @@
|
|
|
48
52
|
"p2p-media-loader-shaka": "3.0.1",
|
|
49
53
|
"shaka-player": "^4.16.47",
|
|
50
54
|
"terser": "^5.51.2",
|
|
51
|
-
"typescript": "^5.9.0"
|
|
52
|
-
}
|
|
53
|
-
}
|
|
55
|
+
"typescript": "^5.9.0"
|
|
56
|
+
}
|
|
57
|
+
}
|