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

@daily-co/daily-js

Package Overview
Dependencies
Maintainers
8
Versions
152
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@daily-co/daily-js - npm Package Compare versions

Comparing version 0.9.993-beta.1 to 0.9.993-beta.3

6

index.d.ts

@@ -38,3 +38,2 @@ // Type definitions for daily-js 0.9.992

| 'app-message'
| 'input-event'
| 'local-screen-share-started'

@@ -125,2 +124,3 @@ | 'local-screen-share-stopped'

screenVideoTrack?: MediaStreamTrack;
screenAudioTrack?: MediaStreamTrack;

@@ -434,5 +434,5 @@ // user/session info

}): DailyCall;
setOutputDevice(audioDevice: { id?: string }): DailyCall;
setOutputDevice(audioDevice: { outputDeviceId?: string }): DailyCall;
getInputDevices(): Promise<DailyDeviceInfos>;
load(properties: DailyLoadOptions): Promise<void>;
load(properties?: DailyLoadOptions): Promise<void>;
startScreenShare(captureOptions?: DailyScreenCaptureOptions): void;

@@ -439,0 +439,0 @@ stopScreenShare(): void;

{
"name": "@daily-co/daily-js",
"version": "0.9.993-beta.1",
"version": "0.9.993-beta.3",
"engines": {

@@ -25,3 +25,4 @@ "node": ">=10.0.0"

"build-module-dev": "NODE_ENV=development npm run build-module",
"prepublishOnly": "npm run build"
"tag": "scripts/tag",
"prepublishOnly": "npm run build && npm run tag"
},

@@ -28,0 +29,0 @@ "devDependencies": {

@@ -228,3 +228,10 @@ import EventEmitter from 'events';

for (const s in subs) {
if (!(s === 'audio' || s === 'video' || s === 'screenVideo')) {
if (
!(
s === 'audio' ||
s === 'video' ||
s === 'screenVideo' ||
s === 'screenAudio'
)
) {
return false;

@@ -593,3 +600,2 @@ }

cycleCamera() {
methodNotSupportedInReactNative();
return new Promise((resolve, _) => {

@@ -753,4 +759,8 @@ let k = (msg) => {

this._iframe.src = this.assembleMeetingUrl();
return new Promise((resolve, _) => {
this._loadedCallback = () => {
return new Promise((resolve, reject) => {
this._loadedCallback = (error) => {
if (this._meetingState === DAILY_STATE_ERROR) {
reject(error);
return;
}
this._meetingState = DAILY_STATE_LOADED;

@@ -835,3 +845,7 @@ if (this.properties.cssFile || this.properties.cssText) {

return new Promise((resolve, reject) => {
this._joinedCallback = (participants) => {
this._joinedCallback = (participants, error) => {
if (this._meetingState === DAILY_STATE_ERROR) {
reject(error);
return;
}
this._meetingState = DAILY_STATE_JOINED;

@@ -881,2 +895,8 @@ if (participants) {

k();
} else if (
this._meetingState === DAILY_STATE_LEFT ||
this._meetingState === DAILY_STATE_ERROR
) {
// nothing to do, here, just resolve
resolve();
} else {

@@ -1357,2 +1377,11 @@ // TODO: the possibility that the iframe call machine is not yet loaded

this._meetingState = DAILY_STATE_ERROR;
this._participants = {};
if (this._loadedCallback) {
this._loadedCallback(msg.errorMsg);
this._loadedCallback = null;
}
if (this._joinedCallback) {
this._joinedCallback(null, msg.errorMsg);
this._joinedCallback = null;
}
try {

@@ -1454,3 +1483,3 @@ this.emit(msg.action, msg);

} catch (e) {
console.log('could not emit', msg);
console.log('could not emit', msg, e);
}

@@ -1457,0 +1486,0 @@ break;

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

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

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