UNPKG

@aimee-blue/ab-service-kit

Version:
23 lines (16 loc) 692 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.echoEpic = void 0; var _operators = require("rxjs/operators"); var _joi = _interopRequireDefault(require("joi")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } const echoEpic = (cmd, { logger }) => cmd.pipe((0, _operators.map)(action => ({ ...action, type: action.type + '_PROC_AGAIN' })), (0, _operators.takeUntil)(cmd.pipe((0, _operators.filter)(action => action.type === 'STOP'))), logger.logEvents('debug-cmd')); exports.echoEpic = echoEpic; echoEpic.actionSchemaByType = () => _joi.default.object(); //# sourceMappingURL=testEpicMod.js.map