UNPKG

@unchainedshop/plugins

Version:

Because of a Typescript issue with upstream "postfinancecheckout", the Postfinance plugin has been disabled from transpilation, import the source ts files from src and enable node_module tsc or copy over the src/payment/postfinance-checkout to your projec

15 lines 502 B
import { EventEmitter } from 'node:events'; import { setEmitAdapter } from '@unchainedshop/events'; const NodeEventEmitter = () => { const eventEmitter = new EventEmitter(); return { publish: (eventName, payload) => { eventEmitter.emit(eventName, payload); }, subscribe: (eventName, callback) => { return eventEmitter.on(eventName, callback); }, }; }; setEmitAdapter(NodeEventEmitter()); //# sourceMappingURL=node-event-emitter.js.map