Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

child_process-remote

Package Overview
Dependencies
Maintainers
3
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

child_process-remote - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

2

package.json
{
"name": "child_process-remote",
"version": "1.1.0",
"version": "1.2.0",
"description": "child_process spawn over TCP",

@@ -5,0 +5,0 @@ "main": "spawn.js",

@@ -30,2 +30,3 @@ "use strict";

var remotestderr = multi.createStream('stderr');
var remotestdin = multi.receiveStream('stdin');

@@ -42,13 +43,12 @@ var data = await new Promise(resolve => control.once('data', resolve));

child.on('exit', function(code) {
var payload = {
type : 'event',
event : 'exit',
args : [code],
};
debug("ACK exit", payload);
control.end(JSON.stringify(payload));
client.end();
['close', 'error', 'exit'].map(function(event) {
child.on(event, function(...args) {
var payload = {type : 'event', event, args};
debug("ACK ", event, payload);
control.write(JSON.stringify(payload));
});
});
if(child.stdin)
remotestdin.pipe(child.stdin);
if(child.stdout)

@@ -55,0 +55,0 @@ child.stdout.pipe(remotestdout);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc