UNPKG

@amirmarmul/waba-common

Version:

![GitHub release](https://img.shields.io/github/v/release/amirmarmul/waba-common?style=flat-square)

12 lines (11 loc) 487 B
"use strict"; 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;