From e703efc1aab508fc3487550726cf394ff2e0da33 Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Sun, 28 Sep 2025 16:18:14 -0700 Subject: [PATCH] core: fix missing module types --- common/src/eval/monaco-libs.ts | 1 + common/src/eval/scrypted-eval.ts | 1 + plugins/core/package-lock.json | 4 ++-- plugins/core/package.json | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/common/src/eval/monaco-libs.ts b/common/src/eval/monaco-libs.ts index 8901ce5cc..787710c40 100644 --- a/common/src/eval/monaco-libs.ts +++ b/common/src/eval/monaco-libs.ts @@ -2,6 +2,7 @@ import type * as monacoEditor from 'monaco-editor'; export interface StandardLibs { '@types/node/globals.d.ts': string, + '@types/node/module.d.ts': string, '@types/node/buffer.d.ts': string, '@types/node/process.d.ts': string, '@types/node/events.d.ts': string, diff --git a/common/src/eval/scrypted-eval.ts b/common/src/eval/scrypted-eval.ts index 7003ff86f..8d9b67457 100644 --- a/common/src/eval/scrypted-eval.ts +++ b/common/src/eval/scrypted-eval.ts @@ -116,6 +116,7 @@ export async function scryptedEval(device: ScryptedDeviceBase, script: string, e export function createMonacoEvalDefaults(extraLibs: { [lib: string]: string }) { const standardlibs: StandardLibs = { "@types/node/globals.d.ts": readFileAsString('@types/node/globals.d.ts'), + "@types/node/module.d.ts": readFileAsString('@types/node/module.d.ts'), "@types/node/buffer.d.ts": readFileAsString('@types/node/buffer.d.ts'), "@types/node/process.d.ts": readFileAsString('@types/node/process.d.ts'), "@types/node/events.d.ts": readFileAsString('@types/node/events.d.ts'), diff --git a/plugins/core/package-lock.json b/plugins/core/package-lock.json index cba53d046..33b4c7083 100644 --- a/plugins/core/package-lock.json +++ b/plugins/core/package-lock.json @@ -1,12 +1,12 @@ { "name": "@scrypted/core", - "version": "0.3.132", + "version": "0.3.133", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@scrypted/core", - "version": "0.3.132", + "version": "0.3.133", "license": "Apache-2.0", "dependencies": { "@scrypted/common": "file:../../common", diff --git a/plugins/core/package.json b/plugins/core/package.json index 0464c2d01..209f9d6b5 100644 --- a/plugins/core/package.json +++ b/plugins/core/package.json @@ -1,6 +1,6 @@ { "name": "@scrypted/core", - "version": "0.3.132", + "version": "0.3.133", "description": "Scrypted Core plugin. Provides the UI, websocket, and engine.io APIs.", "author": "Scrypted", "license": "Apache-2.0",