@whereby.com/core 0.28.0 → 0.28.2
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.cjs +6 -1
- package/dist/index.mjs +6 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -76,7 +76,7 @@ const createReactor = (selectors, callback) => {
|
|
|
76
76
|
});
|
|
77
77
|
};
|
|
78
78
|
|
|
79
|
-
const coreVersion = "0.28.
|
|
79
|
+
const coreVersion = "0.28.2";
|
|
80
80
|
|
|
81
81
|
const initialState$g = {
|
|
82
82
|
isNodeSdk: false,
|
|
@@ -1353,6 +1353,11 @@ const doKnockRoom = createAppThunk(() => (dispatch, getState) => {
|
|
|
1353
1353
|
const userAgent = selectAppUserAgent(state);
|
|
1354
1354
|
const externalId = selectAppExternalId(state);
|
|
1355
1355
|
const organizationId = selectOrganizationId(state);
|
|
1356
|
+
const connectionStatus = selectRoomConnectionStatus(state);
|
|
1357
|
+
if (connectionStatus !== "room_locked") {
|
|
1358
|
+
console.warn("Room is not locked, knock aborted");
|
|
1359
|
+
return;
|
|
1360
|
+
}
|
|
1356
1361
|
socket === null || socket === void 0 ? void 0 : socket.emit("knock_room", {
|
|
1357
1362
|
avatarUrl: null,
|
|
1358
1363
|
config: {
|
package/dist/index.mjs
CHANGED
|
@@ -74,7 +74,7 @@ const createReactor = (selectors, callback) => {
|
|
|
74
74
|
});
|
|
75
75
|
};
|
|
76
76
|
|
|
77
|
-
const coreVersion = "0.28.
|
|
77
|
+
const coreVersion = "0.28.2";
|
|
78
78
|
|
|
79
79
|
const initialState$g = {
|
|
80
80
|
isNodeSdk: false,
|
|
@@ -1351,6 +1351,11 @@ const doKnockRoom = createAppThunk(() => (dispatch, getState) => {
|
|
|
1351
1351
|
const userAgent = selectAppUserAgent(state);
|
|
1352
1352
|
const externalId = selectAppExternalId(state);
|
|
1353
1353
|
const organizationId = selectOrganizationId(state);
|
|
1354
|
+
const connectionStatus = selectRoomConnectionStatus(state);
|
|
1355
|
+
if (connectionStatus !== "room_locked") {
|
|
1356
|
+
console.warn("Room is not locked, knock aborted");
|
|
1357
|
+
return;
|
|
1358
|
+
}
|
|
1354
1359
|
socket === null || socket === void 0 ? void 0 : socket.emit("knock_room", {
|
|
1355
1360
|
avatarUrl: null,
|
|
1356
1361
|
config: {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@whereby.com/core",
|
|
3
3
|
"description": "Core library for whereby.com sdk",
|
|
4
4
|
"author": "Whereby AS",
|
|
5
|
-
"version": "0.28.
|
|
5
|
+
"version": "0.28.2",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"clean": "rimraf dist node_modules .turbo",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@reduxjs/toolkit": "^2.2.3",
|
|
51
|
-
"@whereby.com/media": "1.
|
|
51
|
+
"@whereby.com/media": "1.16.0",
|
|
52
52
|
"axios": "^1.2.3",
|
|
53
53
|
"btoa": "^1.2.1",
|
|
54
54
|
"events": "^3.3.0"
|