mirror of
https://github.com/koush/scrypted.git
synced 2026-03-01 08:42:57 +00:00
14 lines
482 B
TypeScript
14 lines
482 B
TypeScript
import { ScryptedDeviceBase } from "@scrypted/sdk";
|
|
import { scryptedEval as scryptedEvalBase } from "../../../common/src/scrypted-eval";
|
|
|
|
const util = require("!!raw-loader!./api/util.ts").default;
|
|
const frigate = require("!!raw-loader!./api/frigate.ts").default;
|
|
const libs = {
|
|
frigate,
|
|
util,
|
|
};
|
|
|
|
export async function scryptedEval(device: ScryptedDeviceBase, script: string, params: { [name: string]: any }) {
|
|
return scryptedEvalBase(device, script, libs, params);
|
|
}
|