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
22
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.22.0 to 0.23.0

babel.config.js

27

index.d.ts

@@ -117,3 +117,4 @@ // Type definitions for daily-js

| 'screen-share-error'
| 'video-processor-error';
| 'video-processor-error'
| 'remote-media-player-error';

@@ -428,2 +429,3 @@ export type DailyNetworkTopology = 'sfu' | 'peer';

max_live_streams?: number;
enable_advanced_chat?: boolean;
enable_network_ui?: boolean;

@@ -493,3 +495,3 @@ enable_people_ui?: boolean;

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

@@ -701,3 +703,4 @@ }

updatedBy: string;
playerState: DailyRemoteMediaPlayerState;
session_id: string;
remoteMediaPlayerState: DailyRemoteMediaPlayerState;
}

@@ -863,5 +866,11 @@

export interface RemoteMediaPlayerSimulcastEncoding {
maxBitrate: number;
maxFramerate?: number;
scaleResolutionDownBy?: number;
}
export interface DailyRemoteMediaPlayerSettings {
state: DailyRemoteMediaPlayerSettingPlay | DailyRemoteMediaPlayerSettingPause;
// other fields like position, enocding-settings
simulcastEncodings?: RemoteMediaPlayerSimulcastEncoding[];
}

@@ -880,3 +889,2 @@

export interface DailyRemoteMediaPlayerState {
session_id: string;
state:

@@ -889,2 +897,7 @@ | DailyRemoteMediaPlayerStatePlaying

export interface DailyRemoteMediaPlayerInfo {
session_id: string;
remoteMediaPlayerState: DailyRemoteMediaPlayerState;
}
export interface DailyCall {

@@ -982,7 +995,7 @@ iframe(): HTMLIFrameElement | null;

options: DailyRemoteMediaPlayerStartOptions
): Promise<DailyRemoteMediaPlayerState>;
): Promise<DailyRemoteMediaPlayerInfo>;
stopRemoteMediaPlayer(session_id: string): Promise<void>;
updateRemoteMediaPlayer(
options: DailyRemoteMediaPlayerUpdateOptions
): Promise<DailyRemoteMediaPlayerState>;
): Promise<DailyRemoteMediaPlayerInfo>;
startTranscription(): void;

@@ -989,0 +1002,0 @@ stopTranscription(): void;

{
"name": "@daily-co/daily-js",
"version": "0.22.0",
"version": "0.23.0",
"engines": {

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

"tag": "scripts/tag",
"prepublishOnly": "npm run build && npm run tag"
"prepublishOnly": "npm run build && npm run tag",
"test": "jest"
},

@@ -39,4 +40,7 @@ "devDependencies": {

"babel-cli": "^6.26.0",
"babel-jest": "^27.4.6",
"babel-loader": "^8.0.6",
"babel-plugin-rewire": "^1.2.0",
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
"jest": "^27.4.7",
"rollup": "^1.29.0",

@@ -47,2 +51,3 @@ "rollup-plugin-cjs-es": "^0.7.0",

"rollup-plugin-terser": "^4.0.4",
"ts-jest": "^27.1.2",
"webpack": "^4.41.5",

@@ -58,3 +63,7 @@ "webpack-cli": "^3.3.11",

"lodash": "^4.17.15"
},
"jest": {
"verbose": true,
"testEnvironment": "jsdom"
}
}

@@ -101,3 +101,3 @@ //

'remote-media-player-stopped';
export const DAILY_REMOTE_MEDIA_PLAYER_ERROR_TYPE = 'remote-media-player';
export const DAILY_REMOTE_MEDIA_PLAYER_ERROR_TYPE = 'remote-media-player-error';

@@ -231,3 +231,3 @@ export const DAILY_EVENT_LOCAL_SCREEN_SHARE_STARTED =

BGBLUR: 'background-blur',
// BGIMAGE: 'background-image',
BGIMAGE: 'background-image',
// CUSTOM: 'custom',

@@ -251,1 +251,5 @@ };

};
export const DAILY_PRESELECTED_BG_IMAGE_URLS_LENGTH = 10;
export const DAILY_SUPPORTED_BG_IMG_TYPES = ['jpg', 'png', 'jpeg'];

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

export function getDailyJsVersion() {
let major = 0,
minor = 0,
patch = 0;
if (typeof _dailyConfig !== 'undefined' && _dailyConfig.dailyJsVersion) {
const versionParts = _dailyConfig.dailyJsVersion.split('.');
major = parseInt(versionParts[0], 10);
minor = parseInt(versionParts[1], 10);
patch = parseInt(versionParts[2], 10);
}
return { major, minor, patch };
}
function isDisplayMediaAccessible() {

@@ -227,0 +240,0 @@ return !!(

@@ -47,1 +47,10 @@ import { isSfuSupported } from './shared-with-pluot-core/Environment';

}
export function validateHttpUrl(string) {
try {
let url = new URL(string);
} catch (_) {
return false;
}
return true;
}

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