@amirmarmul/waba-common
Version:

12 lines (11 loc) • 487 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.dispatcherWithoutPersistence = exports.dispatcher = void 0;
async function dispatcher(publisher, options) {
return await publisher.init().publish(options);
}
exports.dispatcher = dispatcher;
async function dispatcherWithoutPersistence(publisher, options) {
return await publisher.init().publishWithoutPersistence(options);
}
exports.dispatcherWithoutPersistence = dispatcherWithoutPersistence;