mirror of
https://github.com/koush/scrypted.git
synced 2026-06-20 08:30:30 +01:00
common: fixup imports
This commit is contained in:
2
common/fs/@types/sdk/index.d.ts
vendored
2
common/fs/@types/sdk/index.d.ts
vendored
@@ -1 +1 @@
|
||||
../../../../sdk/index.d.ts
|
||||
../../../../sdk/dist/index.d.ts
|
||||
2
common/fs/@types/sdk/types.d.ts
vendored
2
common/fs/@types/sdk/types.d.ts
vendored
@@ -1 +1 @@
|
||||
../../../../sdk/types/index.d.ts
|
||||
../../../../sdk/types/dist/index.d.ts
|
||||
@@ -4,7 +4,7 @@ import vm from "vm";
|
||||
import fs from 'fs';
|
||||
import { newThread } from '@scrypted/server/src/threading';
|
||||
import { ScriptDevice } from "./monaco/script-device";
|
||||
import { ScryptedInterfaceDescriptors } from "@scrypted/sdk/types";
|
||||
import { ScryptedInterfaceDescriptors } from "@scrypted/sdk";
|
||||
import fetch from 'node-fetch-commonjs';
|
||||
|
||||
const { systemManager, deviceManager, mediaManager, endpointManager } = sdk;
|
||||
@@ -71,6 +71,7 @@ export async function scryptedEval(device: ScryptedDeviceBase, script: string, e
|
||||
}
|
||||
|
||||
const allParams = Object.assign({}, params, {
|
||||
fs: require('realfs'),
|
||||
fetch,
|
||||
ScryptedDeviceBase,
|
||||
MixinDeviceBase,
|
||||
|
||||
Reference in New Issue
Block a user