@signalwire/js 3.21.0-dev.202306120940.aaa0747.0 → 3.21.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.
- package/dist/core/src/BaseSession.d.ts.map +1 -1
- package/dist/core/src/types/index.d.ts +2 -0
- package/dist/core/src/types/index.d.ts.map +1 -1
- package/dist/core/src/types/videoRoomSession.d.ts +4 -1
- package/dist/core/src/types/videoRoomSession.d.ts.map +1 -1
- package/dist/core/src/types/voiceCall.d.ts +2 -0
- package/dist/core/src/types/voiceCall.d.ts.map +1 -1
- package/dist/index.esm.js +6 -6
- package/dist/index.esm.js.map +2 -2
- package/dist/index.js +6 -6
- package/dist/index.js.map +2 -2
- package/dist/index.umd.js +3 -3
- package/dist/index.umd.js.map +1 -1
- package/dist/js/src/JWTSession.d.ts.map +1 -1
- package/dist/js/src/RoomSessionDevice.d.ts +2 -2
- package/dist/js/src/RoomSessionDevice.d.ts.map +1 -1
- package/dist/js/src/RoomSessionScreenShare.d.ts +2 -2
- package/dist/js/src/RoomSessionScreenShare.d.ts.map +1 -1
- package/dist/js/src/utils/interfaces.d.ts +2 -2
- package/dist/js/src/utils/interfaces.d.ts.map +1 -1
- package/dist/js/tsconfig.build.tsbuildinfo +1 -1
- package/dist/webrtc/src/BaseConnection.d.ts +2 -0
- package/dist/webrtc/src/BaseConnection.d.ts.map +1 -1
- package/dist/webrtc/src/RTCPeer.d.ts +2 -1
- package/dist/webrtc/src/RTCPeer.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/JWTSession.ts +4 -4
- package/src/RoomSession.ts +1 -1
- package/src/RoomSessionDevice.ts +2 -1
- package/src/RoomSessionScreenShare.ts +2 -1
- package/src/utils/interfaces.ts +2 -1
package/dist/index.js
CHANGED
|
@@ -1421,7 +1421,7 @@ var JWTSession = class extends import_core14.BaseJWTSession {
|
|
|
1421
1421
|
this.options = options;
|
|
1422
1422
|
__publicField(this, "WebSocketConstructor", WebSocket);
|
|
1423
1423
|
__publicField(this, "CloseEventConstructor", CloseEvent);
|
|
1424
|
-
__publicField(this, "agent", "@signalwire/js/browser/3.21.0
|
|
1424
|
+
__publicField(this, "agent", "@signalwire/js/browser/3.21.0");
|
|
1425
1425
|
}
|
|
1426
1426
|
get allowReattach() {
|
|
1427
1427
|
var _a;
|
|
@@ -1435,7 +1435,7 @@ var JWTSession = class extends import_core14.BaseJWTSession {
|
|
|
1435
1435
|
}
|
|
1436
1436
|
const key = this.getProtocolSessionStorageKey();
|
|
1437
1437
|
if (key) {
|
|
1438
|
-
this.logger.
|
|
1438
|
+
this.logger.trace("Hijacking: search protocol for", key);
|
|
1439
1439
|
return (_b = (_a = getStorage()) == null ? void 0 : _a.getItem(key)) != null ? _b : "";
|
|
1440
1440
|
}
|
|
1441
1441
|
return "";
|
|
@@ -1449,7 +1449,7 @@ var JWTSession = class extends import_core14.BaseJWTSession {
|
|
|
1449
1449
|
}
|
|
1450
1450
|
const key = this.getProtocolSessionStorageKey();
|
|
1451
1451
|
if (key) {
|
|
1452
|
-
this.logger.
|
|
1452
|
+
this.logger.trace("Hijacking: persist protocol", key, this.relayProtocol);
|
|
1453
1453
|
(_a = getStorage()) == null ? void 0 : _a.setItem(key, this.relayProtocol);
|
|
1454
1454
|
}
|
|
1455
1455
|
});
|
|
@@ -1472,7 +1472,7 @@ var JWTSession = class extends import_core14.BaseJWTSession {
|
|
|
1472
1472
|
}
|
|
1473
1473
|
const key = this.getAuthStateSessionStorageKey();
|
|
1474
1474
|
if (key) {
|
|
1475
|
-
this.logger.
|
|
1475
|
+
this.logger.trace("Hijacking: persist auth state", key, state);
|
|
1476
1476
|
(_a = getStorage()) == null ? void 0 : _a.setItem(key, state);
|
|
1477
1477
|
}
|
|
1478
1478
|
});
|
|
@@ -1480,7 +1480,7 @@ var JWTSession = class extends import_core14.BaseJWTSession {
|
|
|
1480
1480
|
_onSocketClose(event) {
|
|
1481
1481
|
var _a, _b, _c;
|
|
1482
1482
|
if (this.status === "unknown") {
|
|
1483
|
-
this.logger.
|
|
1483
|
+
this.logger.trace("Hijacking: invalid values - cleaning up storage");
|
|
1484
1484
|
const protocolKey = this.getProtocolSessionStorageKey();
|
|
1485
1485
|
if (protocolKey) {
|
|
1486
1486
|
(_a = getStorage()) == null ? void 0 : _a.removeItem(protocolKey);
|
|
@@ -2020,7 +2020,7 @@ var RoomSession = function(roomOptions) {
|
|
|
2020
2020
|
}
|
|
2021
2021
|
};
|
|
2022
2022
|
room.once("destroy", () => {
|
|
2023
|
-
room.emit("room.left");
|
|
2023
|
+
room.emit("room.left", { reason: room.leaveReason });
|
|
2024
2024
|
reattachManager.destroy();
|
|
2025
2025
|
client.disconnect();
|
|
2026
2026
|
});
|