@gbraver-burst-network/local-webrtc-browser-sdk 1.25.2-beta.0 → 1.26.0
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.
|
@@ -65,8 +65,7 @@ class GuestBattleSDK {
|
|
|
65
65
|
* @returns 通知ストリーム
|
|
66
66
|
*/
|
|
67
67
|
suddenlyBattleEndNotifier() {
|
|
68
|
-
|
|
69
|
-
return rxjs_1.EMPTY;
|
|
68
|
+
return (0, rxjs_1.from)(__classPrivateFieldGet(this, _GuestBattleSDK_webRTCConnection, "f").getOrCreateConnection().connectionPromise).pipe((0, rxjs_1.mergeMap)((connection) => (0, rxjs_1.merge)((0, rxjs_1.fromEvent)(connection, "connectionstatechange").pipe((0, rxjs_1.map)(() => connection.connectionState)), (0, rxjs_1.fromEvent)(connection, "iceconnectionstatechange").pipe((0, rxjs_1.map)(() => connection.iceConnectionState)))), (0, rxjs_1.filter)((state) => state === "failed"), (0, rxjs_1.take)(1));
|
|
70
69
|
}
|
|
71
70
|
}
|
|
72
71
|
exports.GuestBattleSDK = GuestBattleSDK;
|
|
@@ -44,7 +44,6 @@ class HostBattleSDK {
|
|
|
44
44
|
_HostBattleSDK_core.set(this, void 0);
|
|
45
45
|
/** ホスト側のWebRTCコネクションマネージャー */
|
|
46
46
|
_HostBattleSDK_webRTCConnection.set(this, void 0);
|
|
47
|
-
/** ゲストからのコマンド受信プロミス */
|
|
48
47
|
_HostBattleSDK_sendCommandPromise.set(this, void 0);
|
|
49
48
|
const hostPlayerId = (0, nanoid_1.nanoid)();
|
|
50
49
|
this.player = {
|
|
@@ -92,8 +91,7 @@ class HostBattleSDK {
|
|
|
92
91
|
* @returns 通知ストリーム
|
|
93
92
|
*/
|
|
94
93
|
suddenlyBattleEndNotifier() {
|
|
95
|
-
|
|
96
|
-
return rxjs_1.EMPTY;
|
|
94
|
+
return (0, rxjs_1.from)(__classPrivateFieldGet(this, _HostBattleSDK_webRTCConnection, "f").getOrCreateConnection().connectionPromise).pipe((0, rxjs_1.mergeMap)((connection) => (0, rxjs_1.merge)((0, rxjs_1.fromEvent)(connection, "connectionstatechange").pipe((0, rxjs_1.map)(() => connection.connectionState)), (0, rxjs_1.fromEvent)(connection, "iceconnectionstatechange").pipe((0, rxjs_1.map)(() => connection.iceConnectionState)))), (0, rxjs_1.filter)((state) => state === "failed"), (0, rxjs_1.take)(1));
|
|
97
95
|
}
|
|
98
96
|
}
|
|
99
97
|
exports.HostBattleSDK = HostBattleSDK;
|
package/package.json
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gbraver-burst-network/local-webrtc-browser-sdk",
|
|
3
3
|
"description": "gbraver burst local webrtc browser sdk",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.26.0",
|
|
5
5
|
"author": "Y.Takeuchi",
|
|
6
6
|
"bugs": {
|
|
7
7
|
"url": "https://github.com/kaidouji85/gbraver-burst-network/issues",
|
|
8
8
|
"email": "kaidouji85@gmail.com"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"nanoid": "^5.1.
|
|
11
|
+
"nanoid": "^5.1.16",
|
|
12
12
|
"rxjs": "^7.8.2"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@eslint/js": "^10.0.1",
|
|
16
|
-
"dependency-cruiser": "^
|
|
17
|
-
"eslint": "^10.
|
|
16
|
+
"dependency-cruiser": "^18.0.0",
|
|
17
|
+
"eslint": "^10.6.0",
|
|
18
18
|
"eslint-plugin-simple-import-sort": "^13.0.0",
|
|
19
|
-
"gbraver-burst-core": "^1.
|
|
19
|
+
"gbraver-burst-core": "^1.45.0",
|
|
20
20
|
"npm-run-all": "^4.1.5",
|
|
21
|
-
"prettier": "^3.8.
|
|
21
|
+
"prettier": "^3.8.5",
|
|
22
22
|
"rimraf": "^6.1.3",
|
|
23
|
-
"typescript-eslint": "^8.
|
|
23
|
+
"typescript-eslint": "^8.62.0",
|
|
24
24
|
"zod": "^4.4.3"
|
|
25
25
|
},
|
|
26
26
|
"files": [
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"license": "MIT",
|
|
35
35
|
"main": "lib/index.js",
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"gbraver-burst-core": "^1.
|
|
37
|
+
"gbraver-burst-core": "^1.45.0",
|
|
38
38
|
"zod": "^4.4.3"
|
|
39
39
|
},
|
|
40
40
|
"repository": "https://github.com/kaidouji85/gbraver-burst-network/tree/develop/packages/local-webrtc-browser-sdk",
|