@aikidosec/firewall
Version:
Zen by Aikido is an embedded Web Application Firewall that autonomously protects Node.js apps against common and critical attacks
20 lines (19 loc) • 568 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getInstance = getInstance;
exports.setInstance = setInstance;
let instance = undefined;
/**
* This module is a storage unit, this function retrieves the stored value
* @returns The current instance stored in the instance variable
*/
function getInstance() {
return instance;
}
/**
* This module is a storage unit, this function sets the stored value
* @param agent The agent you want stored as the current instance.
*/
function setInstance(agent) {
instance = agent;
}