Files
n8n-nodes-gwezz-changdunovel/node_modules/n8n-workflow/dist/esm/expression-sandboxing.d.ts
2025-10-26 23:10:15 +08:00

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