@nodesecure/js-x-ray
Version:
JavaScript AST XRay analysis
21 lines • 786 B
TypeScript
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 initialize(ctx: ProbeContext): void;
declare function main(node: ESTree.Node, options: ProbeMainContext): void;
declare const _default: {
name: string;
nodeTypes: string[];
validateNode: (typeof validateNodeAssignment)[];
main: typeof main;
initialize: typeof initialize;
breakOnMatch: boolean;
};
export default _default;
//# sourceMappingURL=isMonkeyPatch.d.ts.map