mongo-milestone
Version:
*A life-saving little tool to work around the lack of ACID Transactions in MongoDB*
18 lines (15 loc) • 381 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
const TYPE_REQUIRED = exports.TYPE_REQUIRED = 'The Event type is required';
class Event {
constructor(type, parameters) {
if (!type) {
throw new Error(TYPE_REQUIRED);
}
this.type = type;
this.parameters = parameters;
}
}
exports.default = Event;