Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
formatter.addLabel(winnerInd).addLabel(desc.label);
if (desc.root) {
formatter
.addEffectType("root")
.resetStyle()
.addCall(desc.saga.name, desc.args)
.addDescResult(desc);
} else if (is.iterator(desc.effect)) {
formatter.addValue(desc.effect.name).addDescResult(desc, true);
} else if (is.promise(desc.effect)) {
formatter
.addEffectType("promise")
.resetStyle()
.addDescResult(desc);
} else if (is.effect(desc.effect)) {
const { type, payload } = desc.effect;
if (type === effectTypes.TAKE) {
formatter
.addEffectType("take")
.resetStyle()
.addValue(payload.channel == null ? payload.pattern : payload)
.addDescResult(desc);
} else if (type === effectTypes.PUT) {
formatter
.addEffectType("put")
.resetStyle()
.addDescResult(Object.assign({}, desc, { result: payload }));
} else if (type === effectTypes.ALL) {
formatter
.addEffectType("all")
export const isRaceEffect = eff => is.effect(eff) && eff.type === effectTypes.RACE;
formatter.addLabel(winnerInd).addLabel(desc.label)
if (desc.root) {
formatter
.addEffectType('root')
.resetStyle()
.addCall(desc.saga.name, desc.args)
.addDescResult(desc)
} else if (is.iterator(desc.effect)) {
formatter.addValue(desc.effect.name).addDescResult(desc, true)
} else if (is.promise(desc.effect)) {
formatter
.addEffectType('promise')
.resetStyle()
.addDescResult(desc)
} else if (is.effect(desc.effect)) {
const { type, payload } = desc.effect
if (type === effectTypes.TAKE) {
formatter
.addEffectType('take')
.resetStyle()
.addValue(payload.channel == null ? payload.pattern : payload)
.addDescResult(desc)
} else if (type === effectTypes.PUT) {
formatter
.addEffectType('put')
.resetStyle()
.addDescResult(Object.assign({}, desc, { result: payload }))
} else if (type === effectTypes.ALL) {
formatter
.addEffectType('all')
export const isRaceEffect = eff => is.effect(eff) && eff.type === effectTypes.RACE
check(fnDescriptor, arg => !is.effect(arg), 'fork: argument must not be an effect')
}
const isForkEffect = eff => is.effect(eff) && eff.type === effectTypes.FORK