first commit
This commit is contained in:
20
node_modules/n8n-workflow/dist/cjs/expression-sandboxing.d.ts
generated
vendored
Normal file
20
node_modules/n8n-workflow/dist/cjs/expression-sandboxing.d.ts
generated
vendored
Normal 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
|
||||
Reference in New Issue
Block a user