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
16
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.19.0 to 0.20.0

12

index.d.ts

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

| 'pt'
| 'ru'
| 'sv'

@@ -124,2 +125,3 @@ | 'tr';

supportsSfu: boolean;
supportsVideoProcessing: boolean;
}

@@ -387,2 +389,3 @@

enable_prejoin_ui?: boolean;
enable_video_processing_ui?: boolean;
start_video_off?: boolean;

@@ -415,2 +418,3 @@ start_audio_off?: boolean;

enable_prejoin_ui?: boolean;
enable_video_processing_ui?: boolean;
};

@@ -476,4 +480,4 @@ tokenConfig: {

export interface DailyInputVideoProcessorSettings {
type: 'none' | 'background-blur' | 'background-image' | 'custom';
config: {};
type: 'none' | 'background-blur';
config?: {};
}

@@ -756,5 +760,3 @@ export interface DailyEventObjectNoPayload {

export type DailyStreamingPortraitLayoutVariant =
| 'vertical'
| 'inset';
export type DailyStreamingPortraitLayoutVariant = 'vertical' | 'inset';

@@ -761,0 +763,0 @@ export interface DailyStreamingPortraitLayoutConfig {

{
"name": "@daily-co/daily-js",
"version": "0.19.0",
"version": "0.20.0",
"engines": {

@@ -5,0 +5,0 @@ "node": ">=10.0.0"

@@ -50,2 +50,10 @@ // This method should be used instead of window.navigator.userAgent, which

const supportedBrowsersForVideoProcessors = ['Chrome', 'Firefox'];
export function isVideoProcessingSupported() {
if (isReactNative()) return false;
if (browserMobile_p()) return false;
return supportedBrowsersForVideoProcessors.includes(getBrowserName());
}
export function isSfuSupported() {

@@ -89,2 +97,20 @@ if (isReactNative()) return true;

export function isAndroidApp() {
return getUserAgent().match(/DailyAnd\//);
}
export function isAndroidWeb() {
return getUserAgent().match(/Linux; Android/);
}
export function browserMobile_p() {
const userAgent = getUserAgent();
if (userAgent.match(/Mobi/) || userAgent.match(/Android/)) {
return true;
}
if (isAndroidApp()) {
return true;
}
}
export function browserNeedsUpgrade() {

@@ -91,0 +117,0 @@ let browser = getBrowserName(),

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

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