src.nth.io/

summaryrefslogtreecommitdiff
path: root/.gitignore
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2026-06-14 18:46:40 -0500
committerLuke Hoersten <[email protected]>2026-06-14 18:46:40 -0500
commit03cf7001bad0e34f065747434f801d19f59b9497 (patch)
treee8a87a65ab43a58c244171e3352ed52a7c1df0c6 /.gitignore
parent731040bcf844c4ad88dca1ada2f84c2e400d3c87 (diff)
scrypted: declare runtime SDK names directly as globals
The scryptedEval sandbox pre-injects SDK names (ScryptedDeviceBase, ScryptedDeviceType, ScryptedInterface, systemManager, deviceManager, mediaManager, endpointManager, log, device, sdk, require) into the script's scope. The previous attempt destructured them from `sdk`, but on user's Scrypted 0.143.0 / @scrypted/core 0.3.147 something in the compile pipeline was still emitting a `require('@scrypted/sdk')` that failed to resolve. Switch to `declare const <name>: any` for each runtime value — the declarations fully erase at compile time, no require is emitted, and the values come straight from the sandbox scope.
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions