From d951e68c10a7dd27ce87b1b292d2b0539210e5f4 Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Tue, 5 Mar 2024 22:25:35 +0100 Subject: [PATCH] Patch HLS light module (#19993) Patch hls light module --- .../patches/hls.js-npm-1.5.7-f5bbd3d060.patch | 18 ++++++++++++++++++ package.json | 2 +- yarn.lock | 9 ++++++++- 3 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 .yarn/patches/hls.js-npm-1.5.7-f5bbd3d060.patch diff --git a/.yarn/patches/hls.js-npm-1.5.7-f5bbd3d060.patch b/.yarn/patches/hls.js-npm-1.5.7-f5bbd3d060.patch new file mode 100644 index 000000000000..1f2665c2df95 --- /dev/null +++ b/.yarn/patches/hls.js-npm-1.5.7-f5bbd3d060.patch @@ -0,0 +1,18 @@ +diff --git a/dist/hls.light.mjs b/dist/hls.light.mjs +index eed9d788fafdb159975e1a2eb08ac88ba9c9ac33..ace881935e6665946f1c8110ebd2f739cde4427e 100644 +--- a/dist/hls.light.mjs ++++ b/dist/hls.light.mjs +@@ -20523,9 +20523,9 @@ class Hls { + } + Hls.defaultConfig = void 0; + +-var KeySystemFormats = empty.KeySystemFormats; +-var KeySystems = empty.KeySystems; +-var SubtitleStreamController = empty.SubtitleStreamController; +-var TimelineController = empty.TimelineController; ++var KeySystemFormats = empty; ++var KeySystems = empty; ++var SubtitleStreamController = empty; ++var TimelineController = empty; + export { AbrController, AttrList, Cues as AudioStreamController, Cues as AudioTrackController, BasePlaylistController, BaseSegment, BaseStreamController, BufferController, Cues as CMCDController, CapLevelController, ChunkMetadata, ContentSteeringController, DateRange, Cues as EMEController, ErrorActionFlags, ErrorController, ErrorDetails, ErrorTypes, Events, FPSController, Fragment, Hls, HlsSkip, HlsUrlParameters, KeySystemFormats, KeySystems, Level, LevelDetails, LevelKey, LoadStats, MetadataSchema, NetworkErrorAction, Part, PlaylistLevelType, SubtitleStreamController, Cues as SubtitleTrackController, TimelineController, Hls as default, getMediaSource, isMSESupported, isSupported }; + //# sourceMappingURL=hls.light.mjs.map diff --git a/package.json b/package.json index 963667c56ac5..5097c7d5d4e2 100644 --- a/package.json +++ b/package.json @@ -110,7 +110,7 @@ "element-internals-polyfill": "1.3.10", "fuse.js": "7.0.0", "google-timezones-json": "1.2.0", - "hls.js": "1.5.7", + "hls.js": "patch:hls.js@npm%3A1.5.7#~/.yarn/patches/hls.js-npm-1.5.7-f5bbd3d060.patch", "home-assistant-js-websocket": "9.1.0", "idb-keyval": "6.2.1", "intl-messageformat": "10.5.11", diff --git a/yarn.lock b/yarn.lock index 517f47a7197f..89dc49c71d74 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9597,6 +9597,13 @@ __metadata: languageName: node linkType: hard +"hls.js@patch:hls.js@npm%3A1.5.7#~/.yarn/patches/hls.js-npm-1.5.7-f5bbd3d060.patch": + version: 1.5.7 + resolution: "hls.js@patch:hls.js@npm%3A1.5.7#~/.yarn/patches/hls.js-npm-1.5.7-f5bbd3d060.patch::version=1.5.7&hash=77028d" + checksum: 10/8c3eadf08e2486d2de9323c6b7cad38c1aa809f2dd7f799f437a7bbca617ff43b8833fb56e33f324f94609d6a949fb34609a25de6dcebcc5365e297e1b53b977 + languageName: node + linkType: hard + "home-assistant-frontend@workspace:.": version: 0.0.0-use.local resolution: "home-assistant-frontend@workspace:." @@ -9749,7 +9756,7 @@ __metadata: gulp-merge-json: "npm:2.2.1" gulp-rename: "npm:2.0.0" gulp-zopfli-green: "npm:6.0.1" - hls.js: "npm:1.5.7" + hls.js: "patch:hls.js@npm%3A1.5.7#~/.yarn/patches/hls.js-npm-1.5.7-f5bbd3d060.patch" home-assistant-js-websocket: "npm:9.1.0" html-minifier-terser: "npm:7.2.0" husky: "npm:9.0.11"