- ✅ Ticket 1.1: Estructura Clean Architecture en backend - ✅ Ticket 1.2: Schemas Zod compartidos - ✅ Ticket 1.3: Refactorización drugs.ts (1362 → 8 archivos modulares) - ✅ Ticket 1.4: Refactorización procedures.ts (3583 → 6 archivos modulares) - ✅ Ticket 1.5: Eliminación de duplicidades (~50 líneas) Cambios principales: - Creada estructura Clean Architecture en backend/src/ - Schemas Zod compartidos en backend/src/shared/schemas/ - Refactorización modular de drugs y procedures - Utilidades genéricas en src/utils/ (filter, validation) - Eliminados scripts obsoletos y documentación antigua - Corregidos errores: QueryClient, import test-error-handling - Build verificado y funcionando correctamente
31 lines
915 B
TypeScript
31 lines
915 B
TypeScript
import IBrowserFrame from '../types/IBrowserFrame.js';
|
|
import { Script } from 'vm';
|
|
/**
|
|
* Browser frame script evaluator.
|
|
*/
|
|
export default class BrowserFrameScriptEvaluator {
|
|
/**
|
|
* Evaluates code or a VM Script in the frame's context.
|
|
*
|
|
* @param frame Frame.
|
|
* @param script Script.
|
|
* @returns Result.
|
|
*/
|
|
static evaluate(frame: IBrowserFrame, script: string | Script): any;
|
|
/**
|
|
* Evaluates a module in the frame's context.
|
|
*
|
|
* @param frame Frame.
|
|
* @param options Options.
|
|
* @param options.url URL.
|
|
* @param options.type Module type.
|
|
* @param options.code Code.
|
|
* @returns Exports.
|
|
*/
|
|
static evaluateModule(frame: IBrowserFrame, options: {
|
|
url?: string;
|
|
type?: 'esm' | 'css' | 'json';
|
|
code?: string;
|
|
}): Promise<Record<string, any>>;
|
|
}
|
|
//# sourceMappingURL=BrowserFrameScriptEvaluator.d.ts.map
|