bunyan-syslog
Advanced tools
Comparing version 0.3.2 to 0.3.3
// Copyright 2013 Mark Cavage, Inc. All rights reserved. | ||
var os = require('os'); | ||
var Buffer = require('safer-buffer').Buffer; | ||
var Stream = require('stream').Stream; | ||
@@ -5,0 +6,0 @@ var util = require('util'); |
@@ -8,2 +8,3 @@ // Copyright 2013 Mark Cavage, Inc. All rights reserved. | ||
var Buffer = require('safer-buffer').Buffer; | ||
var SyslogStream = require('./sys'); | ||
@@ -115,3 +116,3 @@ | ||
TCPStream.prototype._send = function _send(msg) { | ||
this.socket.write(new Buffer(msg + '\n', 'utf-8')); | ||
this.socket.write(Buffer.from(msg + '\n', 'utf-8')); | ||
}; |
@@ -8,2 +8,3 @@ // Copyright 2013 Mark Cavage, Inc. All rights reserved. | ||
var Buffer = require('safer-buffer').Buffer; | ||
var SyslogStream = require('./sys'); | ||
@@ -48,3 +49,3 @@ | ||
UDPStream.prototype._send = function _send(msg) { | ||
var buf = new Buffer(msg, 'utf-8'); | ||
var buf = Buffer.from(msg, 'utf-8'); | ||
var s = this.socket; | ||
@@ -51,0 +52,0 @@ var self = this; |
{ | ||
"name": "bunyan-syslog", | ||
"description": "Syslog Stream for Bunyan", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"author": "Mark Cavage", | ||
"license": "MIT", | ||
"main": "./lib/index.js", | ||
"keywords": [ | ||
"bunyan", | ||
"syslog" | ||
], | ||
"repository": { | ||
@@ -12,5 +16,9 @@ "type": "git", | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/joyent/node-bunyan-syslog/issues" | ||
}, | ||
"dependencies": { | ||
"assert-plus": "0.1.5", | ||
"nan": "^2.10.0" | ||
"nan": "^2.14.0", | ||
"safer-buffer": "~2.1.0" | ||
}, | ||
@@ -21,3 +29,3 @@ "devDependencies": { | ||
"faucet": "0.0.1", | ||
"tape": "^3.5.0", | ||
"tape": "^4.11.0", | ||
"eslint": "^4.13.1", | ||
@@ -24,0 +32,0 @@ "eslint-plugin-joyent": "~2.1.0" |
@@ -80,3 +80,3 @@ bunyan-syslog is a stream for [bunyan](https://github.com/trentm/node-bunyan) | ||
``` | ||
$ rsyslogd -f ./test/rsyslog.conf -i ./test.pid -u $USER | ||
$ rsyslogd -f ./test/rsyslog.conf -i $PWD/test.pid -u $USER | ||
$ make test | ||
@@ -83,0 +83,0 @@ $ kill $(cat test.pid) |
Sorry, the diff of this file is not supported yet
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
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
331
0
3
18281
3
+ Addedsafer-buffer@~2.1.0
+ Addedsafer-buffer@2.1.2(transitive)
Updatednan@^2.14.0