({stdioItem, stdioItem: {type}, index, newTransforms, optionName, direction, encoding})
| 29 | }; |
| 30 | |
| 31 | const normalizeTransform = ({stdioItem, stdioItem: {type}, index, newTransforms, optionName, direction, encoding}) => { |
| 32 | if (type === 'duplex') { |
| 33 | return normalizeDuplex({stdioItem, optionName}); |
| 34 | } |
| 35 | |
| 36 | if (type === 'webTransform') { |
| 37 | return normalizeTransformStream({ |
| 38 | stdioItem, |
| 39 | index, |
| 40 | newTransforms, |
| 41 | direction, |
| 42 | }); |
| 43 | } |
| 44 | |
| 45 | return normalizeGenerator({ |
| 46 | stdioItem, |
| 47 | index, |
| 48 | newTransforms, |
| 49 | direction, |
| 50 | encoding, |
| 51 | }); |
| 52 | }; |
| 53 | |
| 54 | const normalizeDuplex = ({stdioItem, optionName}) => { |
| 55 | const {value} = stdioItem; |
no test coverage detected