(contents, stdioItems)
| 31 | }; |
| 32 | |
| 33 | const applySingleInputGeneratorsSync = (contents, stdioItems) => { |
| 34 | const newContents = runGeneratorsSync(contents, stdioItems, 'utf8', true); |
| 35 | validateSerializable(newContents); |
| 36 | return joinToUint8Array(newContents); |
| 37 | }; |
| 38 | |
| 39 | const validateSerializable = newContents => { |
| 40 | const invalidItem = newContents.find(item => typeof item !== 'string' && !isUint8Array(item)); |
no test coverage detected