@whereby.com/core 0.6.0 → 0.7.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/index.js +9 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -954,6 +954,11 @@ const signalConnectionSlice = createSlice({
|
|
|
954
954
|
return Object.assign(Object.assign({}, state), { deviceIdentified: true, isIdentifyingDevice: false });
|
|
955
955
|
},
|
|
956
956
|
},
|
|
957
|
+
extraReducers: (builder) => {
|
|
958
|
+
builder.addCase(signalEvents.disconnect, (state) => {
|
|
959
|
+
return Object.assign(Object.assign({}, state), { status: "disconnected" });
|
|
960
|
+
});
|
|
961
|
+
},
|
|
957
962
|
});
|
|
958
963
|
const { deviceIdentifying, deviceIdentified, socketConnected, socketConnecting, socketDisconnected } = signalConnectionSlice.actions;
|
|
959
964
|
const doSignalSocketConnect = createAppThunk(() => {
|
|
@@ -2502,6 +2507,9 @@ const roomConnectionSlice = createSlice({
|
|
|
2502
2507
|
}
|
|
2503
2508
|
return Object.assign(Object.assign({}, state), { status: "connected", session: (_b = (_a = action.payload.room) === null || _a === void 0 ? void 0 : _a.session) !== null && _b !== void 0 ? _b : null });
|
|
2504
2509
|
});
|
|
2510
|
+
builder.addCase(signalEvents.disconnect, (state) => {
|
|
2511
|
+
return Object.assign(Object.assign({}, state), { status: "disconnected" });
|
|
2512
|
+
});
|
|
2505
2513
|
builder.addCase(signalEvents.newClient, (state, action) => {
|
|
2506
2514
|
var _a, _b;
|
|
2507
2515
|
return Object.assign(Object.assign({}, state), { session: (_b = (_a = action.payload.room) === null || _a === void 0 ? void 0 : _a.session) !== null && _b !== void 0 ? _b : null });
|
|
@@ -9496,7 +9504,7 @@ class LocalParticipant extends RoomParticipant {
|
|
|
9496
9504
|
}
|
|
9497
9505
|
}
|
|
9498
9506
|
|
|
9499
|
-
const sdkVersion = "0.
|
|
9507
|
+
const sdkVersion = "0.7.0";
|
|
9500
9508
|
|
|
9501
9509
|
const defaultSubdomainPattern = /^(?:([^.]+)[.])?((:?[^.]+[.]){1,}[^.]+)$/;
|
|
9502
9510
|
const localstackPattern = /^(?:([^.]+)-)?(ip-[^.]*[.](?:hereby[.]dev|rfc1918[.]disappear[.]at)(?::\d+|))$/;
|
package/package.json
CHANGED