UNPKG

@aikidosec/firewall

Version:

Zen by Aikido is an embedded Application Firewall that autonomously protects Node.js apps against common and critical attacks, provides rate limiting, detects malicious traffic (including bots), and more.

17 lines (16 loc) 526 B
"use strict"; // Based on https://github.com/rexxars/eventsource-parser // MIT License - Copyright (c) 2025 Espen Hovlandsdal Object.defineProperty(exports, "__esModule", { value: true }); exports.ParseError = void 0; class ParseError extends Error { constructor(message, options) { super(message); this.name = "ParseError"; this.type = options.type; this.field = options.field; this.value = options.value; this.line = options.line; } } exports.ParseError = ParseError;