UNPKG

@aikidosec/firewall

Version:

Zen by Aikido is an embedded Web Application Firewall that autonomously protects Node.js apps against common and critical attacks

10 lines (9 loc) 491 B
import { SQLDialect } from "./dialects/SQLDialect"; export declare const SQLInjectionDetectionResult: { readonly SAFE: 0; readonly INJECTION_DETECTED: 1; readonly INTERNAL_ERROR: 2; readonly FAILED_TO_TOKENIZE: 3; }; export type SQLInjectionDetectionResultType = (typeof SQLInjectionDetectionResult)[keyof typeof SQLInjectionDetectionResult]; export declare function detectSQLInjection(query: string, userInput: string, dialect: SQLDialect): SQLInjectionDetectionResultType;