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

@huddle01/web-core

Package Overview
Dependencies
Maintainers
5
Versions
258
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@huddle01/web-core - npm Package Compare versions

Comparing version 0.0.15-beta.0 to 0.0.15-beta.1

6

dist/index.d.ts

@@ -299,3 +299,4 @@ import { MediaStream as MediaStream$1 } from 'react-native-webrtc';

leaveRoom: () => void;
fetchAudioStream: () => Promise<MediaStream>;
enumerateMicDevices: () => Promise<MediaDeviceInfo[]>;
fetchAudioStream: (deviceId?: string) => Promise<MediaStream>;
stopAudioStream: () => void;

@@ -306,3 +307,4 @@ produceAudio(micStream: MediaStream, peerIds?: string[]): void;

closeMicConsumer: (peerId: string) => void;
fetchVideoStream: () => Promise<MediaStream>;
enumerateCamDevices: () => Promise<MediaDeviceInfo[]>;
fetchVideoStream: (deviceId?: string) => Promise<MediaStream>;
stopVideoStream: () => void;

@@ -309,0 +311,0 @@ produceVideo(camStream: MediaStream, peerIds?: string[]): void;

@@ -1203,3 +1203,3 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var _class; var _class2; var _class3; var _class4; var _class5; var _class6;// src/client/HuddleWebClient.ts

constructor() {
super();_class6.prototype.__init49.call(this);_class6.prototype.__init50.call(this);_class6.prototype.__init51.call(this);_class6.prototype.__init52.call(this);_class6.prototype.__init53.call(this);_class6.prototype.__init54.call(this);_class6.prototype.__init55.call(this);_class6.prototype.__init56.call(this);_class6.prototype.__init57.call(this);_class6.prototype.__init58.call(this);_class6.prototype.__init59.call(this);_class6.prototype.__init60.call(this);_class6.prototype.__init61.call(this);_class6.prototype.__init62.call(this);_class6.prototype.__init63.call(this);_class6.prototype.__init64.call(this);_class6.prototype.__init65.call(this);_class6.prototype.__init66.call(this);_class6.prototype.__init67.call(this);_class6.prototype.__init68.call(this);_class6.prototype.__init69.call(this);_class6.prototype.__init70.call(this);_class6.prototype.__init71.call(this);_class6.prototype.__init72.call(this);_class6.prototype.__init73.call(this);_class6.prototype.__init74.call(this);_class6.prototype.__init75.call(this);;
super();_class6.prototype.__init49.call(this);_class6.prototype.__init50.call(this);_class6.prototype.__init51.call(this);_class6.prototype.__init52.call(this);_class6.prototype.__init53.call(this);_class6.prototype.__init54.call(this);_class6.prototype.__init55.call(this);_class6.prototype.__init56.call(this);_class6.prototype.__init57.call(this);_class6.prototype.__init58.call(this);_class6.prototype.__init59.call(this);_class6.prototype.__init60.call(this);_class6.prototype.__init61.call(this);_class6.prototype.__init62.call(this);_class6.prototype.__init63.call(this);_class6.prototype.__init64.call(this);_class6.prototype.__init65.call(this);_class6.prototype.__init66.call(this);_class6.prototype.__init67.call(this);_class6.prototype.__init68.call(this);_class6.prototype.__init69.call(this);_class6.prototype.__init70.call(this);_class6.prototype.__init71.call(this);_class6.prototype.__init72.call(this);_class6.prototype.__init73.call(this);_class6.prototype.__init74.call(this);_class6.prototype.__init75.call(this);_class6.prototype.__init76.call(this);_class6.prototype.__init77.call(this);;
}

@@ -1246,3 +1246,9 @@ // useHuddle01()

//useAudio()
__init55() {this.fetchAudioStream = async () => {
__init55() {this.enumerateMicDevices = async () => {
return navigator.mediaDevices.enumerateDevices().then((devices) => {
const micDevices = devices.filter((device) => device.kind === "audioinput");
return micDevices;
});
}}
__init56() {this.fetchAudioStream = async (deviceId) => {
if (this._audioStream) {

@@ -1253,4 +1259,9 @@ console.info("Audio stream already exists, returning the same");

try {
const stream = await navigator.mediaDevices.getUserMedia({ audio: true });
this._audioStream = stream;
const stream = await navigator.mediaDevices.getUserMedia({
audio: {
deviceId: {
ideal: deviceId
}
}
});
return stream;

@@ -1262,3 +1273,3 @@ } catch (error) {

}}
__init56() {this.stopAudioStream = () => {
__init57() {this.stopAudioStream = () => {
if (this._audioProducer) {

@@ -1284,3 +1295,3 @@ console.log("Audio producer found, stopping audio producer first");

}
__init57() {this.stopProducingAudio = () => {
__init58() {this.stopProducingAudio = () => {
if (!this._audioProducer) {

@@ -1294,3 +1305,3 @@ throw new Error("Audio producer not found, produce audio first");

}}
__init58() {this.createMicConsumer = (peerId) => {
__init59() {this.createMicConsumer = (peerId) => {
if (!this._socket) {

@@ -1304,3 +1315,3 @@ throw new Error("Room not joined yet, please join room first");

}}
__init59() {this.closeMicConsumer = (peerId) => {
__init60() {this.closeMicConsumer = (peerId) => {
if (!peerId) {

@@ -1315,3 +1326,9 @@ throw new Error("peerId is missing");

// useVideo()
__init60() {this.fetchVideoStream = async () => {
__init61() {this.enumerateCamDevices = () => {
return navigator.mediaDevices.enumerateDevices().then((devices) => {
const camDevices = devices.filter((device) => device.kind === "videoinput");
return camDevices;
});
}}
__init62() {this.fetchVideoStream = async (deviceId) => {
if (this._videoStream) {

@@ -1322,4 +1339,9 @@ console.info("Video stream already exists, returning the same");

try {
const stream = await navigator.mediaDevices.getUserMedia({ video: true });
this._videoStream = stream;
const stream = await navigator.mediaDevices.getUserMedia({
video: {
deviceId: {
ideal: deviceId
}
}
});
this.emit("app:cam-on", stream);

@@ -1333,3 +1355,3 @@ this.logger.info("app:cam-on", stream);

}}
__init61() {this.stopVideoStream = () => {
__init63() {this.stopVideoStream = () => {
if (this._videoProducer) {

@@ -1375,3 +1397,3 @@ console.log("Video producer found, stopping video producer first");

}
__init62() {this.closeCamConsumer = (peerId) => {
__init64() {this.closeCamConsumer = (peerId) => {
if (!peerId) {

@@ -1386,3 +1408,3 @@ throw new Error("peerId is missing");

// usePeers()
__init63() {this.getPeers = () => {
__init65() {this.getPeers = () => {
const peers = Array.from(this._peers, ([_, value]) => {

@@ -1394,3 +1416,3 @@ return value;

}}
__init64() {this.getPeer = (peerId) => {
__init66() {this.getPeer = (peerId) => {
const peer = this._peers.get(peerId);

@@ -1402,3 +1424,3 @@ if (!peer) {

}}
__init65() {this.getPeerTracks = (peerId) => {
__init67() {this.getPeerTracks = (peerId) => {
var _a, _b;

@@ -1420,3 +1442,3 @@ const peer = this._peers.get(peerId);

// useRecording()
__init66() {this.startRecording = async (sourceUrl) => {
__init68() {this.startRecording = async (sourceUrl) => {
if (!sourceUrl) {

@@ -1427,7 +1449,7 @@ throw new Error("sourceUrl is missing");

}}
__init67() {this.stopRecording = (storeOnIpfs = false) => {
__init69() {this.stopRecording = (storeOnIpfs = false) => {
this._stopRecording(storeOnIpfs);
}}
// useDisplayName
__init68() {this.setDisplayName = async (displayName) => {
__init70() {this.setDisplayName = async (displayName) => {
if (!displayName) {

@@ -1445,3 +1467,3 @@ throw new Error("displayName is missing");

*/
__init69() {this.changePeerControls = async (data) => {
__init71() {this.changePeerControls = async (data) => {
if (!this._acl.getAcl().changePermission) {

@@ -1468,3 +1490,3 @@ this.logger.error(

*/
__init70() {this.changeRoomControls = async (data) => {
__init72() {this.changeRoomControls = async (data) => {
if (!this._acl.getAcl().changePermission) {

@@ -1491,3 +1513,3 @@ this.logger.error(

*/
__init71() {this.changePeerRole = async (data) => {
__init73() {this.changePeerRole = async (data) => {
console.log("changePeerRole");

@@ -1511,3 +1533,3 @@ if (!this._acl.getAcl().changeRole) {

}}
__init72() {this.handlePeerControlResponse = async (data) => {
__init74() {this.handlePeerControlResponse = async (data) => {
const { media, type } = data;

@@ -1530,3 +1552,3 @@ const shouldBeLocked = type === "locked";

}}
__init73() {this.handleRoomControlResponse = async (data) => {
__init75() {this.handleRoomControlResponse = async (data) => {
this.setIndividualControl(data.type, data.value);

@@ -1562,6 +1584,6 @@ if (this._acl.getAcl().changePermission)

}}
__init74() {this.handleRoleControlResponse = async (data) => {
__init76() {this.handleRoleControlResponse = async (data) => {
this.emit("room:peer-role-update", data.peerId, data.role);
}}
__init75() {this.handleRoleChangeResponse = async (data) => {
__init77() {this.handleRoleChangeResponse = async (data) => {
console.log("ACL | Me Role Changed Response", data);

@@ -1568,0 +1590,0 @@ this._me.role = data.role;

{
"name": "@huddle01/web-core",
"version": "0.0.15-beta.0",
"version": "0.0.15-beta.1",
"description": "Huddle01 Web Core Library - The Communication Toolkit",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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