winston-syslog
Advanced tools
Comparing version 1.2.4 to 1.2.5
@@ -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); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25554
8
657
4