@fluent-org/logger
Advanced tools
Comparing version 1.0.9 to 1.0.10
@@ -280,3 +280,7 @@ "use strict"; | ||
createTlsSocket() { | ||
return tls.connect({ ...this.tlsOptions, ...this.socketParams }); | ||
let opts = { ...this.tlsOptions, ...this.socketParams }; | ||
if (this.timeout >= 0) { | ||
opts = { ...opts, timeout: this.timeout }; | ||
} | ||
return tls.connect(opts); | ||
} | ||
@@ -283,0 +287,0 @@ /** |
{ | ||
"name": "@fluent-org/logger", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"description": "A node fluent protocol compatible logger", | ||
@@ -5,0 +5,0 @@ "main": "./build/src/index.js", |
@@ -403,3 +403,7 @@ import * as net from "net"; | ||
private createTlsSocket(): tls.TLSSocket { | ||
return tls.connect({...this.tlsOptions, ...this.socketParams}); | ||
let opts: net.NetConnectOpts = {...this.tlsOptions, ...this.socketParams}; | ||
if (this.timeout >= 0) { | ||
opts = {...opts, timeout: this.timeout}; | ||
} | ||
return tls.connect(opts); | ||
} | ||
@@ -406,0 +410,0 @@ |
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
332732
7737