prismcast 1.10.0 → 1.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -38,6 +38,11 @@ export function generateStatusScript() {
|
|
|
38
38
|
// window.X = ... before this script loads, and bare identifiers in non-strict script-tag scope resolve through the global object. updateRestartDialogStatus
|
|
39
39
|
// is wrapped in a typeof guard inside a getter because config.ts loads after status.ts; a streamRemoved event arriving before config.ts has registered the
|
|
40
40
|
// callback must not throw.
|
|
41
|
+
//
|
|
42
|
+
// Trampoline capture: the handlers toggleStreamPopover, toggleStreamDetails, and copyOverviewPlaylistUrl share names with the window.* properties we bind
|
|
43
|
+
// them to. In classic-script scope, function declarations live as properties of the global object, so assigning window.toggleStreamPopover = ... would
|
|
44
|
+
// overwrite the global binding...subsequent bare-identifier lookups inside the arrow body would then resolve back to the arrow itself, causing infinite
|
|
45
|
+
// recursion. We capture the original function references in IIFE-local consts first; the arrow bodies close over those locals instead of the global.
|
|
41
46
|
const iife = [
|
|
42
47
|
"(function() {",
|
|
43
48
|
" const state = {",
|
|
@@ -78,9 +83,12 @@ export function generateStatusScript() {
|
|
|
78
83
|
" on('channelUpdate', (e) => handleChannelUpdate(JSON.parse(e.data), ctx));",
|
|
79
84
|
" statusEventSource.onerror = () => handleSseError(ctx);",
|
|
80
85
|
" }",
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
86
|
+
" const togglePopoverImpl = toggleStreamPopover;",
|
|
87
|
+
" const toggleDetailsImpl = toggleStreamDetails;",
|
|
88
|
+
" const copyPlaylistImpl = copyOverviewPlaylistUrl;",
|
|
89
|
+
" window.toggleStreamPopover = () => togglePopoverImpl(ctx);",
|
|
90
|
+
" window.toggleStreamDetails = (id) => toggleDetailsImpl(id, ctx);",
|
|
91
|
+
" window.copyOverviewPlaylistUrl = () => copyPlaylistImpl(ctx);",
|
|
84
92
|
" connectStatusSSE();",
|
|
85
93
|
" setInterval(() => updateDurations(ctx), 1000);",
|
|
86
94
|
" setInterval(() => {",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status.js","sourceRoot":"","sources":["../../../../src/routes/root/scripts/status.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE5E;;;GAGG;AACH,MAAM,UAAU,oBAAoB;IAElC,oJAAoJ;IACpJ,mEAAmE;IACnE,MAAM,aAAa,GAAG,iBAAiB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,GAAG,CAAC,CAAC,IAAI,GAAG,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAEzH,+JAA+J;IAC/J,0JAA0J;IAC1J,sCAAsC;IACtC,MAAM,cAAc,GAAG,iBAAiB,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAEjF,6JAA6J;IAC7J,uJAAuJ;IACvJ,qJAAqJ;IACrJ,4JAA4J;IAC5J,2JAA2J;IAC3J,2BAA2B;IAC3B,MAAM,IAAI,GAAG;QAEX,eAAe;QACf,mBAAmB;QACnB,0BAA0B;QAC1B,qBAAqB;QACrB,sCAAsC;QACtC,kCAAkC;QAClC,qBAAqB;QACrB,uBAAuB;QACvB,+BAA+B;QAC/B,MAAM;QACN,uBAAuB;QACvB,6CAA6C;QAC7C,iCAAiC;QACjC,uCAAuC;QACvC,2BAA2B;QAC3B,4IAA4I;QAC5I,MAAM;QACN,2EAA2E;QAC3E,iCAAiC;QACjC,iCAAiC;QACjC,0DAA0D;QAC1D,6DAA6D;QAC7D,6CAA6C;QAC7C,mCAAmC;QACnC,0DAA0D;QAC1D,i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AuB;QACvB,6CAA6C;QAC7C,iCAAiC;QACjC,uCAAuC;QACvC,2BAA2B;QAC3B,4IAA4I;QAC5I,MAAM;QACN,2EAA2E;QAC3E,iCAAiC;QACjC,iCAAiC;QACjC,0DAA0D;QAC1D,6DAA6D;QAC7D,6CAA6C;QAC7C,mCAAmC;QACnC,0DAA0D;QAC1D,iDAAiD;QACjD,qCAAqC;QACrC,WAAW;QACX,OAAO;QACP,sBAAsB;QACtB,qEAAqE;QACrE,2EAA2E;QAC3E,+EAA+E;QAC/E,2FAA2F;QAC3F,2FAA2F;QAC3F,+EAA+E;QAC/E,+EAA+E;QAC/E,4DAA4D;QAC5D,KAAK;QACL,kDAAkD;QAClD,kDAAkD;QAClD,qDAAqD;QACrD,8DAA8D;QAC9D,oEAAoE;QACpE,iEAAiE;QACjE,uBAAuB;QACvB,kDAAkD;QAClD,uBAAuB;QACvB,kFAAkF;QAClF,cAAc;QACd,uGAAuG;QACvG,0BAA0B;QAC1B,OAAO;KACR,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAEb,OAAO,CAAE,UAAU,EAAE,aAAa,EAAE,cAAc,EAAE,IAAI,EAAE,WAAW,CAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACrF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "prismcast",
|
|
3
3
|
"displayName": "PrismCast",
|
|
4
|
-
"version": "1.10.
|
|
4
|
+
"version": "1.10.1",
|
|
5
5
|
"description": "Browser-based live TV capture server for Channels DVR, Plex, and other streaming clients.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "HJD",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"video-streaming"
|
|
44
44
|
],
|
|
45
45
|
"engines": {
|
|
46
|
-
"node": ">=22.
|
|
46
|
+
"node": ">=22.10"
|
|
47
47
|
},
|
|
48
48
|
"repository": {
|
|
49
49
|
"type": "git",
|