@cloudflare/realtimekit-react 1.0.2-staging.4 → 1.0.2-staging.6

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.es.js CHANGED
@@ -22793,7 +22793,7 @@ class m0 extends Ut {
22793
22793
  g = false, this.localMediaHandler = i.getValue("defaults").mediaHandler.localMediaHandler;
22794
22794
  else if (navigator.RNLocalMediaHandlerImpl) {
22795
22795
  const { RNLocalMediaHandlerImpl: T } = navigator;
22796
- this.localMediaHandler = yield T.init();
22796
+ this.localMediaHandler = yield T.init(e);
22797
22797
  } else
22798
22798
  this.localMediaHandler = new Dt(
22799
22799
  i,
@@ -24386,7 +24386,7 @@ class Sh extends wl {
24386
24386
  return yield this.pc.setLocalDescription(r), l.info(`connect offer: ${JSON.stringify(r)}`), {
24387
24387
  offerSdp: r,
24388
24388
  callback: (n) => u(this, null, function* () {
24389
- l.debug(`${this.name}::connect() | calling pc.setRemoteDescription() [answer:${JSON.stringify(n)}]`), yield this.pc.setRemoteDescription(n), e.close();
24389
+ l.debug(`${this.name}::connect() | calling pc.setRemoteDescription() [answer:${JSON.stringify(n)}]`), yield this.pc.setRemoteDescription(n), e == null || e.close();
24390
24390
  })
24391
24391
  };
24392
24392
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudflare/realtimekit-react",
3
- "version": "1.0.2-staging.4",
3
+ "version": "1.0.2-staging.6",
4
4
  "description": "A real-time video and audio SDK for building custom, collaborative communication experiences.",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.es.js",
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "private": false,
19
19
  "dependencies": {
20
- "@cloudflare/realtimekit": "0.0.2-staging.4"
20
+ "@cloudflare/realtimekit": "0.0.2-staging.6"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "react": ">=16.8.6"