Comparing version 2.1.1 to 2.2.0
@@ -477,2 +477,7 @@ /* | ||
mod_assert.optionalBool(options.throwError, 'options.throwError'); | ||
this.ch_throwError = options.throwError; | ||
if (options.throwError === undefined || options.throwError === null) | ||
this.ch_throwError = true; | ||
mod_assert.string(options.claimStack, 'options.claimStack'); | ||
@@ -632,3 +637,3 @@ this.ch_claimStack = options.claimStack.split('\n').slice(1). | ||
var count = countListeners(self.ch_connection, 'error'); | ||
if (count === 0) { | ||
if (count === 0 && self.ch_throwError) { | ||
/* | ||
@@ -635,0 +640,0 @@ * Our end-user never set up an 'error' event listener |
@@ -23,2 +23,3 @@ /* | ||
Resolver: mod_resolver.Resolver, | ||
DNSResolver: mod_resolver.DNSResolver, | ||
StaticIpResolver: mod_resolver.StaticIpResolver, | ||
@@ -25,0 +26,0 @@ resolverForIpOrDomain: mod_resolver.resolverForIpOrDomain, |
@@ -49,2 +49,6 @@ /* | ||
mod_assert.optionalBool(options.connectionHandlesError, | ||
'options.connectionHandlesError'); | ||
this.cs_connHandlesErr = !!(options.connectionHandlesError); | ||
mod_assert.optionalObject(options.log, 'options.log'); | ||
@@ -678,2 +682,3 @@ this.cs_log = options.log || mod_bunyan.createLogger({ | ||
log: this.lc_log, | ||
throwError: !(this.lc_set.cs_connHandlesErr), | ||
claimTimeout: Infinity | ||
@@ -680,0 +685,0 @@ }; |
{ | ||
"name": "cueball", | ||
"version": "2.1.1", | ||
"version": "2.2.0", | ||
"description": "manage a pool of connections to a multi-node service where nodes are listed in DNS", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
167927
4601