UNPKG

@hexadrop/command

Version:

Hexagonal architecture utils library

2 lines 441 B
import{a as m}from"./chunk-TLIEMEYR.js";import{a}from"./chunk-LHZGEWBL.js";import"./chunk-NW4ORICH.js";import"./chunk-YUO2TGC7.js";import n from"@hexadrop/either";import i from"@hexadrop/error";var t=class extends m{info;constructor(r){super(),this.info=r}async dispatch(r){let e=this.info.search(r);try{return await e(r)}catch(o){return o instanceof i?n.left(o):n.left(new a(o))}}};export{t as default}; //# sourceMappingURL=bus.sync.js.map