New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

batch-cluster

Package Overview
Dependencies
Maintainers
1
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

batch-cluster - npm Package Compare versions

Comparing version 5.6.4 to 5.6.5

12

CHANGELOG.md

@@ -20,2 +20,8 @@ # Changelog

## v5.6.5
- 📦 wrapped `stdin.write()` with try/catch that rejects the current task and
closes the current process.
- 📦 wrapped `stdin.end()` with try/catch (as `.writable` isn't reliable)
## v5.6.4

@@ -32,3 +38,4 @@

- 📦 Updated deps
- 📦 Removed trace and debug log calls in `BatchProcess` (which incurred GC overhead even when disabled)
- 📦 Removed trace and debug log calls in `BatchProcess` (which incurred GC
overhead even when disabled)

@@ -94,3 +101,4 @@ ## v5.6.1

There's a new `SimpleParser` implementation you can use that fails if `stderr` is non-blank or a stream matched the `.fail` pattern.
There's a new `SimpleParser` implementation you can use that fails if `stderr`
is non-blank or a stream matched the `.fail` pattern.

@@ -97,0 +105,0 @@ - 🐞 initial `BatchProcess` validation uses the new `SimpleParser` to verify the

16

dist/BatchProcess.js

@@ -236,4 +236,12 @@ "use strict";

});
this.proc.stdin.write(cmd);
return true;
try {
this.proc.stdin.write(cmd);
return true;
}
catch (err) {
// child process went away. We should too.
// tslint:disable-next-line: no-floating-promises
this.end(false, "proc.stdin.write(cmd)");
return false;
}
};

@@ -297,7 +305,5 @@ /**

cmd = Object_1.map(this.opts.exitCommand, function (ea) { return String_1.ensureSuffix(ea, "\n"); });
if (this.proc.stdin != null && this.proc.stdin.writable) {
this.proc.stdin.end(cmd);
}
// proc cleanup:
Error_1.tryEach([
function () { return Object_1.map(_this.proc.stdin, function (ea) { return ea.end(cmd); }); },
function () { return Object_1.map(_this.proc.stdout, function (ea) { return ea.destroy(); }); },

@@ -304,0 +310,0 @@ function () { return Object_1.map(_this.proc.stderr, function (ea) { return ea.destroy(); }); },

{
"name": "batch-cluster",
"version": "5.6.4",
"version": "5.6.5",
"description": "Manage a cluster of child processes",

@@ -5,0 +5,0 @@ "main": "dist/BatchCluster.js",

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