MCPcopy
hub / github.com/Kong/insomnia / process

Method process

packages/insomnia/bin/yarn-standalone.js:50827–50836  ·  view source on GitHub ↗
(proc, resolve, reject, done)

Source from the content-addressed store, hash-verified

50825 const hashStream = new (_crypto || _load_crypto()).HashStream();
50826 yield (0, (_gitSpawn || _load_gitSpawn()).spawn)(['archive', `--remote=${_this.gitUrl.repository}`, _this.ref], {
50827 process(proc, resolve, reject, done) {
50828 const writeStream = (0, (_fs || _load_fs()).createWriteStream)(dest);
50829 proc.on('error', reject);
50830 writeStream.on('error', reject);
50831 writeStream.on('end', done);
50832 writeStream.on('open', function () {
50833 proc.stdout.pipe(hashStream).pipe(writeStream);
50834 });
50835 writeStream.once('finish', done);
50836 }
50837 });
50838 return hashStream.getHash();
50839 })();

Callers 2

spawnFunction · 0.80
test.tsFile · 0.80

Calls 9

_load_fsFunction · 0.85
_load_tarFsFunction · 0.85
_load_tarStreamFunction · 0.85
_load_string_decoderFunction · 0.85
onMethod · 0.80
updateFunction · 0.70
nextFunction · 0.70
writeMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected