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

winston-syslog

Package Overview
Dependencies
Maintainers
4
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

winston-syslog - npm Package Compare versions

Comparing version 1.2.4 to 1.2.5

2

lib/winston-syslog.js

@@ -65,3 +65,3 @@ /*

if (!/^udp[4,6]$|^unix$|^unix-connect$|^tcp$/.test(this.protocol)) {
if (!/^udp|unix|unix-connect|tcp/.test(this.protocol)) {
throw new Error('Invalid syslog protocol: ' + this.protocol);

@@ -68,0 +68,0 @@ }

{
"name": "winston-syslog",
"description": "A syslog transport for winston",
"version": "1.2.4",
"version": "1.2.5",
"author": "Charlie Robbins <charlie.robbins@gmail.com>",

@@ -6,0 +6,0 @@ "contributors": [

@@ -42,10 +42,2 @@ /*

function checkInvalidProtocol(protocol) {
assert.throws(function () {
var t = new Syslog({
protocol: protocol
});
}, /Invalid syslog protocol/);
}
var transport = new Syslog();

@@ -109,18 +101,4 @@

}
},
'adding invalid unix transport': {
'should throw': function () {
checkInvalidProtocol('unix-test');
checkInvalidProtocol('unix-connect-test');
checkInvalidProtocol('test-unix');
checkInvalidProtocol('test-unix-connect');
checkInvalidProtocol('udp4-test');
checkInvalidProtocol('test-udp4');
checkInvalidProtocol('tcp-test');
checkInvalidProtocol('test-tcp');
checkInvalidProtocol('udp5');
checkInvalidProtocol('udp45');
}
}
}
}).export(module);
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