From 5fe01df10ae6bc0a2adcec2151c772a120475409 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 23 Sep 2023 08:07:19 +0000 Subject: [PATCH 1/2] chore(deps): update dependency @types/chromecast-caf-receiver to v6 --- package-lock.json | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 06c61598..abc35561 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,7 @@ "axios": "1.5.0" }, "devDependencies": { - "@types/chromecast-caf-receiver": "5.0.15", + "@types/chromecast-caf-receiver": "6.0.10", "@types/jest": "29.5.5", "@types/node": "16.18.51", "@types/webpack": "5.28.0", @@ -1532,9 +1532,9 @@ } }, "node_modules/@types/chromecast-caf-receiver": { - "version": "5.0.15", - "resolved": "https://registry.npmjs.org/@types/chromecast-caf-receiver/-/chromecast-caf-receiver-5.0.15.tgz", - "integrity": "sha512-VKxL/A2NPGAWHTuTv3sKcbdzIY+z4sAV/sVWTvBVc0IRSKMdY2ZHLXAzOkSo3Hs+XRuBunMiL8M5Z6P7optroA==", + "version": "6.0.10", + "resolved": "https://registry.npmjs.org/@types/chromecast-caf-receiver/-/chromecast-caf-receiver-6.0.10.tgz", + "integrity": "sha512-MaM4DisEr8pD9Mvt4nxag9Ff7v95dRYklxRdCEduxTx5djSgSFf/+zg7kORevB36YDE2yDoCB89Q1cPwhmS7mA==", "dev": true }, "node_modules/@types/connect": { diff --git a/package.json b/package.json index 12f15d9d..542ac8f4 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "axios": "1.5.0" }, "devDependencies": { - "@types/chromecast-caf-receiver": "5.0.15", + "@types/chromecast-caf-receiver": "6.0.10", "@types/jest": "29.5.5", "@types/node": "16.18.51", "@types/webpack": "5.28.0", From 12ba510561005606d7856668b3e29982f503a3cf Mon Sep 17 00:00:00 2001 From: Niels van Velzen Date: Sat, 23 Sep 2023 10:29:51 +0200 Subject: [PATCH 2/2] Fix nullability issues --- src/components/maincontroller.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/maincontroller.ts b/src/components/maincontroller.ts index b41f3e42..3df3da81 100644 --- a/src/components/maincontroller.ts +++ b/src/components/maincontroller.ts @@ -228,7 +228,7 @@ window.playerManager.addEventListener( cast.framework.events.EventType.PLAYER_LOAD_COMPLETE, () => { setTextTrack( - window.playerManager.getMediaInformation().customData + window.playerManager.getMediaInformation()?.customData .subtitleStreamIndex ); } @@ -463,7 +463,7 @@ export async function changeStream( params: any = undefined ): Promise { if ( - window.playerManager.getMediaInformation().customData.canClientSeek && + window.playerManager.getMediaInformation()?.customData.canClientSeek && params == null ) { window.playerManager.seek(ticks / 10000000);