UNPKG

@nodesecure/js-x-ray

Version:
17 lines 645 B
import type { ESTree } from "meriyah"; import type { ProbeMainContext, ProbeContext } from "../ProbeRunner.ts"; export declare const JS_TYPES: Set<string>; /** * @description Search for monkey patching of built-in prototypes. * @example * Array.prototype.map = function() {}; */ declare function validateNodeAssignment(node: ESTree.Node, ctx: ProbeContext): [boolean, any?]; declare function main(node: ESTree.Node, options: ProbeMainContext): void; declare const _default: { name: string; validateNode: (typeof validateNodeAssignment)[]; main: typeof main; }; export default _default; //# sourceMappingURL=isMonkeyPatch.d.ts.map