From a729da323f0733038308d34a97ebd8321cb22da3 Mon Sep 17 00:00:00 2001 From: JohnDoe6345789 Date: Thu, 25 Dec 2025 22:55:54 +0000 Subject: [PATCH] code: nextjs,frontends,with (2 files) --- .../src/lib/lua/functions/sandbox/execute-with-timeout.ts | 4 ++-- .../lib/lua/functions/sandbox/setup-sandboxed-environment.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontends/nextjs/src/lib/lua/functions/sandbox/execute-with-timeout.ts b/frontends/nextjs/src/lib/lua/functions/sandbox/execute-with-timeout.ts index 21772b442..a62f7cd4d 100644 --- a/frontends/nextjs/src/lib/lua/functions/sandbox/execute-with-timeout.ts +++ b/frontends/nextjs/src/lib/lua/functions/sandbox/execute-with-timeout.ts @@ -1,11 +1,11 @@ import type { LuaExecutionContext, LuaExecutionResult } from '../types' -import type { SandboxedLuaEngine } from '../../sandboxed-lua-engine' +import type { SandboxedLuaEngineState } from './types' /** * Execute Lua code with a timeout guard */ export function executeWithTimeout( - this: SandboxedLuaEngine, + this: SandboxedLuaEngineState, code: string, context: LuaExecutionContext ): Promise { diff --git a/frontends/nextjs/src/lib/lua/functions/sandbox/setup-sandboxed-environment.ts b/frontends/nextjs/src/lib/lua/functions/sandbox/setup-sandboxed-environment.ts index 6503bef8c..124b668b7 100644 --- a/frontends/nextjs/src/lib/lua/functions/sandbox/setup-sandboxed-environment.ts +++ b/frontends/nextjs/src/lib/lua/functions/sandbox/setup-sandboxed-environment.ts @@ -1,12 +1,12 @@ import * as fengari from 'fengari-web' -import type { SandboxedLuaEngine } from '../../sandboxed-lua-engine' +import type { SandboxedLuaEngineState } from './types' const lua = fengari.lua /** * Replace globals with a safe sandbox environment */ -export function setupSandboxedEnvironment(this: SandboxedLuaEngine): void { +export function setupSandboxedEnvironment(this: SandboxedLuaEngineState): void { if (!this.engine) return const { L } = this.engine