UNPKG

redis-smq

Version:

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

12 lines 584 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports._validateExchangeFanOutParams = _validateExchangeFanOutParams; const redis_keys_js_1 = require("../../../../common/redis-keys/redis-keys.js"); const index_js_1 = require("../../errors/index.js"); function _validateExchangeFanOutParams(fanOutName) { const name = redis_keys_js_1.redisKeys.validateRedisKey(fanOutName); if (name instanceof Error) return new index_js_1.ExchangeInvalidFanOutParamsError(); return name; } //# sourceMappingURL=_validate-exchange-fan-out-params.js.map