first commit

This commit is contained in:
2025-10-26 23:10:15 +08:00
commit 8f0345b7be
14961 changed files with 2356381 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
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