UNPKG

hud-sdk

Version:

Hud's Node SDK

68 lines (65 loc) 1.91 kB
/* tslint:disable */ /* eslint-disable */ /* auto-generated by NAPI-RS */ export interface LoaderEnrichments { filename: string format: string } export interface Config { data: LoaderEnrichments bundlerBuildId?: string prefix: string functionWrapper: string awaitWrapper: string yieldWrapper: string yieldStarWrapper: string initialStatements: Array<string> bodyPlaceholder: string functionIdPlaceholder: string awaitablePlaceholder: string exceptionVariablePlaceholder: string argsArrayPlaceholder: string fixStackFunction: string wrapperUserCatch: string asyncIteratorWrapper: string uuidNamespace: string fileHash: string functionsToInstrument?: Array<string> useInputSourcemap: boolean isNextJsFile: boolean markCode: string enableForAwaitInstrumentation: boolean disableParametersExtraction?: boolean } export interface EsbuildConfig { data: LoaderEnrichments initialStatements: Array<string> suffixStatements: Array<string> } export interface FunctionMarkConfig { filename: string markCode?: string firstFunctionMarkCode?: string } export interface TransformFullOutput { code: string map: string functionsIds: Array<string> totalFunctionsCountIncludeUninstrumented: number isInputSourcemap: boolean moduleBase: number marksCount: number detectedForAwaitLoops: number } export interface MarkFileOutput { code: string map: string } export interface FunctionMarkOutput { code: string map: string } export declare function transform(moduleCode: string, config: Config): TransformFullOutput export declare function markFile(moduleCode: string, config: EsbuildConfig): MarkFileOutput export declare function markFunctions(moduleCode: string, config: FunctionMarkConfig, map?: string | undefined | null): FunctionMarkOutput export declare function getSourceMap(sourcePath: string, sourceCode: string): string | null