diff --git a/package-lock.json b/package-lock.json index 9578cdd..921a0ff 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,15 +1,15 @@ { "name": "@daily-co/react-native-daily-js", - "version": "0.39.0", + "version": "0.40.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@daily-co/react-native-daily-js", - "version": "0.39.0", + "version": "0.40.0", "license": "ISC", "dependencies": { - "@daily-co/daily-js": "^0.41.0", + "@daily-co/daily-js": "^0.42.2", "@types/react-native-background-timer": "^2.0.0", "react-native-url-polyfill": "^1.1.2" }, @@ -37,9 +37,9 @@ } }, "node_modules/@daily-co/daily-js": { - "version": "0.41.0", - "resolved": "https://registry.npmjs.org/@daily-co/daily-js/-/daily-js-0.41.0.tgz", - "integrity": "sha512-eDBbJMoWRkweipMnwEJzBPg7GLcCloP2CXmvgFYiSoSp4QcvpSAmvODIIEX3mQHU14AIFsVSZ1lFMiLhbTllyA==", + "version": "0.42.2", + "resolved": "https://registry.npmjs.org/@daily-co/daily-js/-/daily-js-0.42.2.tgz", + "integrity": "sha512-mTr2O3KVxOQrCPfbt+9d8nd7BkutfrIMfOMbDxMeWLlCGTOC15CRWskYkVLJPBE2ZwemUqMzVAqpQ00oIc+6xA==", "dependencies": { "@babel/runtime": "^7.12.5", "bowser": "^2.8.1", @@ -442,9 +442,9 @@ } }, "@daily-co/daily-js": { - "version": "0.41.0", - "resolved": "https://registry.npmjs.org/@daily-co/daily-js/-/daily-js-0.41.0.tgz", - "integrity": "sha512-eDBbJMoWRkweipMnwEJzBPg7GLcCloP2CXmvgFYiSoSp4QcvpSAmvODIIEX3mQHU14AIFsVSZ1lFMiLhbTllyA==", + "version": "0.42.2", + "resolved": "https://registry.npmjs.org/@daily-co/daily-js/-/daily-js-0.42.2.tgz", + "integrity": "sha512-mTr2O3KVxOQrCPfbt+9d8nd7BkutfrIMfOMbDxMeWLlCGTOC15CRWskYkVLJPBE2ZwemUqMzVAqpQ00oIc+6xA==", "requires": { "@babel/runtime": "^7.12.5", "bowser": "^2.8.1", diff --git a/package.json b/package.json index e4863d8..748faab 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@daily-co/react-native-daily-js", "private": true, "//": "^ COMMENT OUT 'private: true' BEFORE RUNNING NPM PUBLISH", - "version": "0.39.0", + "version": "0.40.0", "description": "React Native library for making video calls using Daily", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -28,7 +28,7 @@ "baseUrl": "https://github.com/daily-co/react-native-daily-js" }, "dependencies": { - "@daily-co/daily-js": "^0.41.0", + "@daily-co/daily-js": "^0.42.2", "@types/react-native-background-timer": "^2.0.0", "react-native-url-polyfill": "^1.1.2" }, diff --git a/type-overrides/@daily-co/daily-js/index.d.ts b/type-overrides/@daily-co/daily-js/index.d.ts index 495a668..e7fa198 100644 --- a/type-overrides/@daily-co/daily-js/index.d.ts +++ b/type-overrides/@daily-co/daily-js/index.d.ts @@ -494,17 +494,17 @@ export type DailyCameraError = { export interface DailyCamPermissionsError extends DailyCameraError { type: Extract; blockedBy: 'user' | 'browser'; - blockedMedia: Set<'video' | 'audio'>; + blockedMedia: Array<'video' | 'audio'>; } export interface DailyCamDeviceNotFoundError extends DailyCameraError { type: Extract; - missingMedia: Set<'video' | 'audio'>; + missingMedia: Array<'video' | 'audio'>; } export interface DailyCamConstraintsError extends DailyCameraError { type: Extract; - reason: Set<'invalid' | 'none-specified'>; + reason: 'invalid' | 'none-specified'; } export interface DailyCamInUseError extends DailyCameraError { @@ -522,7 +522,7 @@ export interface DailyCamUnknownError extends DailyCameraError { type: Extract; } -export type DailyCameraErrorObject = +export type DailyCameraErrorObject = T extends DailyCamPermissionsError['type'] ? DailyCamPermissionsError : T extends DailyCamDeviceNotFoundError['type'] @@ -544,7 +544,7 @@ export interface DailyEventObjectCameraError { audioOk?: boolean; videoOk?: boolean; }; - error: DailyCameraErrorObject; + error: DailyCameraErrorObject; } export type DailyFatalError = { @@ -553,7 +553,7 @@ export type DailyFatalError = { }; export interface DailyFatalConnectionError extends DailyFatalError { - type: Extract; + type: Extract; details: { on: 'join' | 'reconnect'; sourceError: Error; @@ -561,13 +561,13 @@ export interface DailyFatalConnectionError extends DailyFatalError { }; } -export type DailyFatalErrorObject = +export type DailyFatalErrorObject = T extends DailyFatalConnectionError['type'] ? DailyFatalConnectionError : any; export interface DailyEventObjectFatalError { action: Extract; errorMsg: string; - error?: DailyFatalErrorObject; + error?: DailyFatalErrorObject; } export interface DailyEventObjectNonFatalError {