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

winston-syslog

Package Overview
Dependencies
Maintainers
5
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 2.5.0 to 2.6.0

5

CHANGELOG.md
# CHANGELOG
## v2.6.0 / 2022-06-28
- (@wbt) Bump dependencies
- #[192], (@Omidznlp) Add TLSsocket Options
## v2.5.0 / 2022-02-04

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

18

lib/winston-syslog.js

@@ -18,3 +18,3 @@ /*

const _noop = () => {};
const _noop = () => { };

@@ -95,3 +95,9 @@ // Ensure we have the correct winston here.

this.parseProtocol(this.protocol);
// this options provides a secure socket for sending logs to the syslog server based on
// TLSSocket options (https://nodejs.org/api/tls.html#class-tlstlssocket).
// Therefore, TLSSocket options are configurable through the code.
this.secureProtocol = options.secureProtocol;
this.ciphers = options.ciphers;
this.ecdhCurve = options.ecdhCurve;
// end options for secure socket
//

@@ -347,5 +353,11 @@ // Merge the default message options.

}
// Set Secure options for TLS
const options = {
secureProtocol: this.secureProtocol,
ciphers: this.ciphers,
ecdhCurve: this.ecdhCurve
};
this.socket = /^tls[4|6]?$/.test(this.protocol)
? new secNet.TLSSocket()
? new secNet.TLSSocket(this.socket, options) // Set options for TLSSocket
: new net.Socket();

@@ -352,0 +364,0 @@ this.socket.setKeepAlive(true);

9

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

@@ -41,4 +41,5 @@ "contributors": [

"devDependencies": {
"eslint-config-populist": "^4.2.0",
"sinon": "^13.0.1",
"eslint": "^8.8.0",
"@dabh/eslint-config-populist": "^5.0.0",
"sinon": "^14.0.0",
"vows": "^0.8.3",

@@ -49,3 +50,3 @@ "winston": "^3.0.0"

"scripts": {
"lint": "populist **/*.js",
"lint": "eslint **/*.js --resolve-plugins-relative-to ./node_modules/@dabh/eslint-config-populist",
"pretest": "npm run lint",

@@ -52,0 +53,0 @@ "test": "vows test/*-test.js --spec"

@@ -5,5 +5,5 @@ # winston-syslog

[![Version npm](https://img.shields.io/npm/v/winston-syslog.svg?style=flat-square)](https://www.npmjs.com/package/winston-syslog)[![npm
Downloads](https://img.shields.io/npm/dm/winston-syslog.svg?style=flat-square)](https://npmcharts.com/compare/winston-syslog?minimal=true)[![Build
Status](https://img.shields.io/travis/winstonjs/winston-syslog/master.svg?style=flat-square)](https://travis-ci.org/winstonjs/winston-syslog)[![Dependencies](https://img.shields.io/david/winstonjs/winston-syslog.svg?style=flat-square)](https://david-dm.org/winstonjs/winston-syslog)
[![Version npm](https://img.shields.io/npm/v/winston-syslog.svg?style=flat-square)](https://www.npmjs.com/package/winston-syslog)
[![npm Downloads](https://img.shields.io/npm/dm/winston-syslog.svg?style=flat-square)](https://npmcharts.com/compare/winston-syslog?minimal=true)
[![build status](https://github.com/winstonjs/winston-syslog/actions/workflows/ci.yml/badge.svg)](https://github.com/winstonjs/winston-syslog/actions/workflows/ci.yml)

@@ -63,3 +63,10 @@ [![NPM](https://nodei.co/npm/winston-syslog.png?downloads=true&downloadRank=true)](https://nodei.co/npm/winston-syslog/)

* __app_name:__ The name of the application (Default: `process.title`).
* __eol:__ The end of line character to be added to the end of the message (Default: Message without modifications).
* __eol:__ The end of line character to be added to the end of the message
(Default: Message without modifications).
* __secureProtocol:__ See <https://nodejs.org/api/tls.html#tlscreatesecurecontextoptions> for more information on this option,
passed through from [this](https://nodejs.org/api/tls.html#new-tlstlssocketsocket-options) constructor.
* __ciphers:__ See <https://nodejs.org/api/tls.html#tlscreatesecurecontextoptions> for more information on this option,
passed through from [this](https://nodejs.org/api/tls.html#new-tlstlssocketsocket-options) constructor.
* __ecdhCurve:__ See <https://nodejs.org/api/tls.html#tlscreatesecurecontextoptions> for more information on this option,
passed through from [this](https://nodejs.org/api/tls.html#new-tlstlssocketsocket-options) constructor.

@@ -66,0 +73,0 @@ *Metadata:* Logged as string compiled by [glossy][3].

Sorry, the diff of this file is not supported yet

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