Socket
Socket
Sign inDemoInstall

ain2

Package Overview
Dependencies
3
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.5.1 to 1.5.2

dgram_test.js

5

CHANGELOG.md
# CHANGELOG
## v1.5.2
* Fix socket bind problem in combination with cluster.js for node verions > v0.10.x (Issue #33)
* Have travis test more node versions
## v1.5.1

@@ -4,0 +9,0 @@

15

index.js

@@ -12,2 +12,13 @@ var dgram = require('dgram');

var releaseTimeout
// HACK: On Node v0.11.x and v0.12.x bind the socket to ensure that it works when clustering
// This should be a temporary fix until node fixes the cluster module
var socketBindRequired = (function(){
if(/^v0\.([0-9]|10)\..*$/.test(process.version)) {
return false;
}
else {
return true;
}
})();
var socketErrorHandler = function (err) {

@@ -46,5 +57,3 @@

// HACK: On Node v0.11.x bind the socket to ensure that it works when clustering
// THis should be a temporary fix until node fixes the cluster module
if (/^v0\.11\..*$/.test(process.version)) {
if (socketBindRequired && type == 'udp4') {
socket.bind({

@@ -51,0 +60,0 @@ port: 0,

2

package.json
{
"name": "ain2",
"description": "Syslog logging for node.js. Continuation of ain",
"version": "1.5.1",
"version": "1.5.2",
"main": "./index",

@@ -6,0 +6,0 @@ "author": "Alexander Dorofeev <aka.spin@gmail.com>",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc