MCPcopy Create free account
hub / github.com/sindresorhus/execa / applySingleInputGeneratorsSync

Function applySingleInputGeneratorsSync

lib/io/input-sync.js:33–37  ·  view source on GitHub ↗
(contents, stdioItems)

Source from the content-addressed store, hash-verified

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

Callers 1

addInputOptionSyncFunction · 0.85

Calls 3

runGeneratorsSyncFunction · 0.90
joinToUint8ArrayFunction · 0.90
validateSerializableFunction · 0.85

Tested by

no test coverage detected