@rtcstats/rtcstats-shared 2.0.0 → 2.0.1

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.
Files changed (2) hide show
  1. package/dump.js +2 -1
  2. package/package.json +1 -1
package/dump.js CHANGED
@@ -62,7 +62,8 @@ export async function readRTCStatsDump(blob) {
62
62
  if (method === 'getStats') { // delta-compressed stats
63
63
  value = statsDecompression(baseStats[connection_id], value);
64
64
  baseStats[connection_id] = JSON.parse(JSON.stringify(value));
65
- } else if (method === 'setLocalDescription') {
65
+ } else if (method === 'setLocalDescription' && value) {
66
+ // Implicit SLD has no value to decompress.
66
67
  let createCall;
67
68
  for (let previousIndex = data.peerConnections[connection_id].length - 1; previousIndex >= 0; previousIndex--) {
68
69
  if ((value.type === 'offer' && data.peerConnections[connection_id][previousIndex].type === 'createOfferOnSuccess') ||
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtcstats/rtcstats-shared",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "main": "index.js",
5
5
  "description": "gather WebRTC API traces and statistics",
6
6
  "type": "module",