@enonic/mock-xp
Version:
Mock Enonic XP API JavaScript Library
20 lines (19 loc) • 768 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.LibEvent = void 0;
var LibEvent = (function () {
function LibEvent(_a) {
var server = _a.server;
this.server = server;
}
LibEvent.prototype.listener = function (_a) {
var type = _a.type, localOnly = _a.localOnly, callback = _a.callback;
this.server.log.debug('event.listener({ type:%s, localOnly:%s callback:%s})', type, localOnly, callback);
};
LibEvent.prototype.send = function (_a) {
var type = _a.type, distributed = _a.distributed, data = _a.data;
this.server.log.debug('event.send({ type:%s, distributed:%s data:%s})', type, distributed, data);
};
return LibEvent;
}());
exports.LibEvent = LibEvent;