UNPKG

redis-smq

Version:

A simple high-performance Redis message queue for Node.js.

14 lines 497 B
import { v4 } from 'uuid'; import { EExchangeType, } from '../../types/exchange.js'; import { _validateExchangeTopicParams } from './_validate-exchange-topic-params.js'; export function _getExchangeTopicTransferable(topic) { const params = _validateExchangeTopicParams(topic); if (params instanceof Error) return params; return { params, type: EExchangeType.TOPIC, exchangeTag: v4(), }; } //# sourceMappingURL=_get-exchange-topic-transferable.js.map