Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@huddle01/react

Package Overview
Dependencies
Maintainers
5
Versions
268
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@huddle01/react - npm Package Compare versions

Comparing version 0.0.13 to 0.0.14-beta.0

12

dist/declarations/src/hooks/useEventListener.d.ts

@@ -13,2 +13,8 @@ import { MediaStream as _MediaStream } from 'react-native-webrtc';

'lobby:failed': [Error];
'lobby:metadata': [{
peers: {
avatarUrl: string;
displayName: string;
}[];
}];
'room:joined': [Map<string, _IPeer>];

@@ -60,2 +66,8 @@ 'room:failed': [any];

'lobby:failed': [Error];
'lobby:metadata': [{
peers: {
avatarUrl: string;
displayName: string;
}[];
}];
'room:joined': [Map<string, _IPeer>];

@@ -62,0 +74,0 @@ 'room:failed': [any];

@@ -0,1 +1,5 @@

export type TRoomMetaPeer = {
avatarUrl: string;
displayName: string;
};
declare const useLobby: () => {

@@ -13,4 +17,5 @@ isLoading: boolean;

error: Error | null;
previewPeers: TRoomMetaPeer[];
};
export default useLobby;
//# sourceMappingURL=useLobby.d.ts.map

11

hooks/dist/huddle01-react-hooks.cjs.dev.js

@@ -395,2 +395,6 @@ 'use strict';

setError = _useState4[1];
var _useState5 = React.useState([]),
_useState6 = objectWithoutProperties._slicedToArray(_useState5, 2),
previewPeers = _useState6[0],
setPreviewPeers = _useState6[1];

@@ -440,2 +444,6 @@ // funcs

});
webCore.huddleClient.on('lobby:metadata', function (_ref2) {
var peers = _ref2.peers;
setPreviewPeers(peers);
});
}, []);

@@ -447,3 +455,4 @@ return {

leaveLobby: leaveLobby,
error: error
error: error,
previewPeers: previewPeers
};

@@ -450,0 +459,0 @@ };

@@ -395,2 +395,6 @@ 'use strict';

setError = _useState4[1];
var _useState5 = React.useState([]),
_useState6 = objectWithoutProperties._slicedToArray(_useState5, 2),
previewPeers = _useState6[0],
setPreviewPeers = _useState6[1];

@@ -440,2 +444,6 @@ // funcs

});
webCore.huddleClient.on('lobby:metadata', function (_ref2) {
var peers = _ref2.peers;
setPreviewPeers(peers);
});
}, []);

@@ -447,3 +455,4 @@ return {

leaveLobby: leaveLobby,
error: error
error: error,
previewPeers: previewPeers
};

@@ -450,0 +459,0 @@ };

@@ -393,2 +393,6 @@ import { b as useHuddle01AtomValue, _ as _objectSpread2, c as _defineProperty, u as useHuddle01Atom, d as _toPropertyKey, a as useMeAtom, i as initialHuddle01State, e as initialMeState } from '../../dist/me.atom-255e381d.esm.js';

setError = _useState4[1];
var _useState5 = useState([]),
_useState6 = _slicedToArray(_useState5, 2),
previewPeers = _useState6[0],
setPreviewPeers = _useState6[1];

@@ -438,2 +442,6 @@ // funcs

});
huddleClient.on('lobby:metadata', function (_ref2) {
var peers = _ref2.peers;
setPreviewPeers(peers);
});
}, []);

@@ -445,3 +453,4 @@ return {

leaveLobby: leaveLobby,
error: error
error: error,
previewPeers: previewPeers
};

@@ -448,0 +457,0 @@ };

4

package.json
{
"name": "@huddle01/react",
"version": "0.0.13",
"version": "0.0.14-beta.0",
"description": "The Huddle01 React SDK offers a comprehensive suite of hooks, methods and event listeners that allow for seamless real-time audio and video communication with minimal coding required.",

@@ -40,3 +40,3 @@ "main": "dist/huddle01-react.cjs.js",

"dependencies": {
"@huddle01/web-core": "0.0.15",
"@huddle01/web-core": "0.0.16-beta.0",
"jotai": "^2.0.3",

@@ -43,0 +43,0 @@ "react": "18.2.0",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc