@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.
21 lines (20 loc) • 568 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.getAgentVersion = getAgentVersion;
const path_1 = require("path");
function getAgentVersion() {
try {
const json = require((0, path_1.resolve)(__dirname, "../package.json"));
/* c8 ignore start */
if (!json.version) {
throw new Error("Missing version in package.json");
}
/* c8 ignore stop */
return json.version;
/* c8 ignore start */
}
catch {
return "0.0.0";
}
/* c8 ignore stop */
}
;