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

fluentd-node

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fluentd-node - npm Package Compare versions

Comparing version 0.0.17 to 0.0.18

2

build/src/socket.d.ts

@@ -60,4 +60,2 @@ /// <reference types="node" />

* Defaults to 3000 (3 seconds)
*
* Set to -1 for no timeout
*/

@@ -64,0 +62,0 @@ timeout?: number;

12

build/src/socket.js

@@ -272,4 +272,3 @@ "use strict";

this.reconnectTimeoutId = null;
// Ignore errors if there are any
this.connect().catch(() => { });
this.connect();
}, reconnectInterval);

@@ -289,7 +288,3 @@ }

createTcpSocket() {
let opts = this.socketParams;
if (this.timeout >= 0) {
opts = { ...opts, timeout: this.timeout };
}
return net.createConnection(opts);
return net.createConnection({ ...this.socketParams, timeout: this.timeout });
}

@@ -558,4 +553,3 @@ /**

if (this.state === SocketState.IDLE) {
// Ignore errors if there are any
this.connect().catch(() => { });
this.connect();
}

@@ -562,0 +556,0 @@ return false;

{
"name": "fluentd-node",
"version": "0.0.17",
"version": "0.0.18",
"description": "A fluent protocol implementation in node",

@@ -5,0 +5,0 @@ "main": "./build/src/index.js",

@@ -11,2 +11,4 @@ # fluentd-node

# This project is deprecated, and has moved to [@fluent-org/logger](https://github.com/fluent/fluent-logger-bulk-node). Follow releases there.
## Install

@@ -13,0 +15,0 @@

@@ -71,4 +71,2 @@ import * as net from "net";

* Defaults to 3000 (3 seconds)
*
* Set to -1 for no timeout
*/

@@ -393,4 +391,3 @@ timeout?: number;

this.reconnectTimeoutId = null;
// Ignore errors if there are any
this.connect().catch(() => {});
this.connect();
}, reconnectInterval);

@@ -412,7 +409,3 @@ }

private createTcpSocket(): net.Socket {
let opts: net.NetConnectOpts = this.socketParams;
if (this.timeout >= 0) {
opts = {...opts, timeout: this.timeout};
}
return net.createConnection(opts);
return net.createConnection({...this.socketParams, timeout: this.timeout});
}

@@ -716,4 +709,3 @@

if (this.state === SocketState.IDLE) {
// Ignore errors if there are any
this.connect().catch(() => {});
this.connect();
}

@@ -720,0 +712,0 @@ return false;

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