UNPKG

@nodesecure/js-x-ray

Version:
19 lines 682 B
import type { ESTree } from "meriyah"; import type { ProbeMainContext } from "../ProbeRunner.js"; /** * @description Detect unsafe statement * @example * eval("this"); * Function("return this")(); */ declare function validateNode(node: ESTree.Node): [boolean, any?]; declare function main(node: ESTree.CallExpression, ctx: ProbeMainContext): symbol; export declare function isUnsafeCallee(node: ESTree.CallExpression | ESTree.Node): [boolean, "eval" | "Function" | null]; declare const _default: { name: string; validateNode: typeof validateNode; main: typeof main; breakOnMatch: boolean; }; export default _default; //# sourceMappingURL=isUnsafeCallee.d.ts.map