redis-smq
Version:
A simple high-performance Redis message queue for Node.js.
17 lines • 720 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports._getExchangeTopicTransferable = _getExchangeTopicTransferable;
const uuid_1 = require("uuid");
const exchange_js_1 = require("../../types/exchange.js");
const _validate_exchange_topic_params_js_1 = require("./_validate-exchange-topic-params.js");
function _getExchangeTopicTransferable(topic) {
const params = (0, _validate_exchange_topic_params_js_1._validateExchangeTopicParams)(topic);
if (params instanceof Error)
return params;
return {
params,
type: exchange_js_1.EExchangeType.TOPIC,
exchangeTag: (0, uuid_1.v4)(),
};
}
//# sourceMappingURL=_get-exchange-topic-transferable.js.map