20 lines
875 B
TypeScript
20 lines
875 B
TypeScript
import { type ASTAfterHook } from '@n8n/tournament';
|
|
export declare const sanitizerName = "__sanitize";
|
|
export declare const DOLLAR_SIGN_ERROR = "Cannot access \"$\" without calling it as a function";
|
|
/**
|
|
* Validates that the $ identifier is only used in allowed contexts.
|
|
* This prevents user errors like `{{ $ }}` which would return the function object itself.
|
|
*
|
|
* Allowed contexts:
|
|
* - As a function call: $()
|
|
* - As a property name: obj.$ (where $ is a valid property name in JavaScript)
|
|
*
|
|
* Disallowed contexts:
|
|
* - Bare identifier: $
|
|
* - As object in member expression: $.property
|
|
* - In expressions: "prefix" + $, [1, 2, $], etc.
|
|
*/
|
|
export declare const DollarSignValidator: ASTAfterHook;
|
|
export declare const PrototypeSanitizer: ASTAfterHook;
|
|
export declare const sanitizer: (value: unknown) => unknown;
|
|
//# sourceMappingURL=expression-sandboxing.d.ts.map
|