fix npm run build
This commit is contained in:
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.InMemoryEventPublisher = void 0;
|
||||
class InMemoryEventPublisher {
|
||||
handlers = [];
|
||||
register(handler) {
|
||||
this.handlers.push(handler);
|
||||
}
|
||||
async publish(event) {
|
||||
await Promise.all(this.handlers.map((h) => h(event)));
|
||||
}
|
||||
}
|
||||
exports.InMemoryEventPublisher = InMemoryEventPublisher;
|
||||
//# sourceMappingURL=event-publisher.js.map
|
||||
Reference in New Issue
Block a user