@whereby.com/core 0.15.1 → 0.15.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 CHANGED
@@ -45,7 +45,7 @@ const createReactor = (selectors, callback) => {
45
45
  });
46
46
  };
47
47
 
48
- const coreVersion = "0.15.1";
48
+ const coreVersion = "0.15.2";
49
49
 
50
50
  const initialState$e = {
51
51
  isNodeSdk: false,
@@ -1412,7 +1412,12 @@ const remoteParticipantsSlice = toolkit.createSlice({
1412
1412
  });
1413
1413
  });
1414
1414
  builder.addCase(signalEvents.clientMetadataReceived, (state, action) => {
1415
- const { clientId, displayName } = action.payload.payload;
1415
+ const { error, payload } = action.payload;
1416
+ if (error || !payload) {
1417
+ console.warn(error || "Client metadata error received");
1418
+ return state;
1419
+ }
1420
+ const { clientId, displayName } = payload;
1416
1421
  return updateParticipant(state, clientId, {
1417
1422
  displayName,
1418
1423
  });
package/dist/index.mjs CHANGED
@@ -43,7 +43,7 @@ const createReactor = (selectors, callback) => {
43
43
  });
44
44
  };
45
45
 
46
- const coreVersion = "0.15.1";
46
+ const coreVersion = "0.15.2";
47
47
 
48
48
  const initialState$e = {
49
49
  isNodeSdk: false,
@@ -1410,7 +1410,12 @@ const remoteParticipantsSlice = createSlice({
1410
1410
  });
1411
1411
  });
1412
1412
  builder.addCase(signalEvents.clientMetadataReceived, (state, action) => {
1413
- const { clientId, displayName } = action.payload.payload;
1413
+ const { error, payload } = action.payload;
1414
+ if (error || !payload) {
1415
+ console.warn(error || "Client metadata error received");
1416
+ return state;
1417
+ }
1418
+ const { clientId, displayName } = payload;
1414
1419
  return updateParticipant(state, clientId, {
1415
1420
  displayName,
1416
1421
  });
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.15.1",
5
+ "version": "0.15.2",
6
6
  "license": "MIT",
7
7
  "scripts": {
8
8
  "build": "rimraf dist && rollup -c rollup.config.js",
@@ -50,7 +50,7 @@
50
50
  },
51
51
  "dependencies": {
52
52
  "@reduxjs/toolkit": "^2.2.3",
53
- "@whereby.com/media": "1.4.0",
53
+ "@whereby.com/media": "1.4.1",
54
54
  "axios": "^1.2.3",
55
55
  "btoa": "^1.2.1",
56
56
  "events": "^3.3.0"