diff options
| author | Adam Mathes <adam@adammathes.com> | 2026-02-14 14:46:37 -0800 |
|---|---|---|
| committer | Adam Mathes <adam@adammathes.com> | 2026-02-14 14:46:37 -0800 |
| commit | afa87af01c79a9baa539f2992d32154d2a4739bd (patch) | |
| tree | 92c7416db734270a2fee1d72ee9cc119379ff8e1 /vanilla/node_modules/vitest/dist/module-evaluator.d.ts | |
| parent | 3b927e84d200402281f68181cd4253bc77e5528d (diff) | |
| download | neko-afa87af01c79a9baa539f2992d32154d2a4739bd.tar.gz neko-afa87af01c79a9baa539f2992d32154d2a4739bd.tar.bz2 neko-afa87af01c79a9baa539f2992d32154d2a4739bd.zip | |
task: delete vanilla js prototype\n\n- Removed vanilla/ directory and web/dist/vanilla directory\n- Updated Makefile, Dockerfile, and CI workflow to remove vanilla references\n- Cleaned up web/web.go to remove vanilla embed and routes\n- Verified build and tests pass\n\nCloses NK-2tcnmq
Diffstat (limited to 'vanilla/node_modules/vitest/dist/module-evaluator.d.ts')
| -rw-r--r-- | vanilla/node_modules/vitest/dist/module-evaluator.d.ts | 124 |
1 files changed, 0 insertions, 124 deletions
diff --git a/vanilla/node_modules/vitest/dist/module-evaluator.d.ts b/vanilla/node_modules/vitest/dist/module-evaluator.d.ts deleted file mode 100644 index c87577d..0000000 --- a/vanilla/node_modules/vitest/dist/module-evaluator.d.ts +++ /dev/null @@ -1,124 +0,0 @@ -import { ModuleEvaluator, ModuleRunnerImportMeta, ModuleRunnerContext, EvaluatedModuleNode } from 'vite/module-runner'; -import { V as VitestEvaluatedModules } from './chunks/evaluatedModules.d.BxJ5omdx.js'; -import vm from 'node:vm'; -import { R as RuntimeRPC } from './chunks/rpc.d.RH3apGEf.js'; -import '@vitest/runner'; -import '@vitest/snapshot'; -import './chunks/traces.d.402V_yFI.js'; - -type ModuleExecutionInfo = Map<string, ModuleExecutionInfoEntry>; -interface ModuleExecutionInfoEntry { - startOffset: number; - /** The duration that was spent executing the module. */ - duration: number; - /** The time that was spent executing the module itself and externalized imports. */ - selfTime: number; - external?: boolean; - importer?: string; -} - -declare class FileMap { - private fsCache; - private fsBufferCache; - readFileAsync(path: string): Promise<string>; - readFile(path: string): string; - readBuffer(path: string): Buffer<ArrayBuffer>; -} - -interface ModuleEvaluateOptions { - timeout?: vm.RunningScriptOptions["timeout"] | undefined; - breakOnSigint?: vm.RunningScriptOptions["breakOnSigint"] | undefined; -} -type ModuleLinker = (specifier: string, referencingModule: VMModule, extra: { - assert: object; -}) => VMModule | Promise<VMModule>; -type ModuleStatus = "unlinked" | "linking" | "linked" | "evaluating" | "evaluated" | "errored"; -declare class VMModule { - dependencySpecifiers: readonly string[]; - error: any; - identifier: string; - context: vm.Context; - namespace: object; - status: ModuleStatus; - evaluate(options?: ModuleEvaluateOptions): Promise<void>; - link(linker: ModuleLinker): Promise<void>; -} - -interface ExternalModulesExecutorOptions { - context: vm.Context; - fileMap: FileMap; - packageCache: Map<string, any>; - transform: RuntimeRPC["transform"]; - interopDefault?: boolean; - viteClientModule: Record<string, unknown>; -} -declare class ExternalModulesExecutor { - #private; - private options; - private cjs; - private esm; - private vite; - private context; - private fs; - private resolvers; - constructor(options: ExternalModulesExecutorOptions); - import(identifier: string): Promise<object>; - require(identifier: string): any; - createRequire(identifier: string): NodeJS.Require; - importModuleDynamically: (specifier: string, referencer: VMModule) => Promise<VMModule>; - resolveModule: (specifier: string, referencer: string) => Promise<VMModule>; - resolve(specifier: string, parent: string): string; - private getModuleInformation; - private createModule; - private get isNetworkSupported(); -} - -declare module "vite/module-runner" { - interface EvaluatedModuleNode { - /** - * @internal - */ - mockedExports?: Record<string, any>; - } -} - -interface VitestVmOptions { - context: vm.Context; - externalModulesExecutor: ExternalModulesExecutor; -} - -interface VitestModuleEvaluatorOptions { - evaluatedModules?: VitestEvaluatedModules; - interopDefault?: boolean | undefined; - moduleExecutionInfo?: ModuleExecutionInfo; - getCurrentTestFilepath?: () => string | undefined; - compiledFunctionArgumentsNames?: string[]; - compiledFunctionArgumentsValues?: unknown[]; -} -declare class VitestModuleEvaluator implements ModuleEvaluator { - private options; - stubs: Record<string, any>; - env: ModuleRunnerImportMeta["env"]; - private vm; - private compiledFunctionArgumentsNames?; - private compiledFunctionArgumentsValues; - private primitives; - private debug; - private _otel; - private _evaluatedModules?; - constructor(vmOptions?: VitestVmOptions | undefined, options?: VitestModuleEvaluatorOptions); - private convertIdToImportUrl; - runExternalModule(id: string): Promise<any>; - runInlinedModule(context: ModuleRunnerContext, code: string, module: Readonly<EvaluatedModuleNode>): Promise<any>; - private _runInlinedModule; - private createRequire; - private shouldInterop; -} -declare function createImportMetaEnvProxy(): ModuleRunnerImportMeta["env"]; -declare function getDefaultRequestStubs(context?: vm.Context): Record<string, any>; -declare function isPrimitive(v: any): boolean; -declare function wrapId(id: string): string; -declare function unwrapId(id: string): string; - -export { VitestModuleEvaluator, createImportMetaEnvProxy, getDefaultRequestStubs, isPrimitive, unwrapId, wrapId }; -export type { VitestModuleEvaluatorOptions }; |
