Comparing version 8.9.0 to 8.10.0
@@ -40,2 +40,3 @@ 'use strict' | ||
this._ending = false | ||
this._ended = false | ||
this._connecting = false | ||
@@ -136,2 +137,3 @@ this._connected = false | ||
this._errorAllQueries(error) | ||
this._ended = true | ||
@@ -608,3 +610,3 @@ if (!this._ending) { | ||
// if we have never connected, then end is a noop, callback immediately | ||
if (!this.connection._connecting) { | ||
if (!this.connection._connecting || this._ended) { | ||
if (cb) { | ||
@@ -611,0 +613,0 @@ cb() |
@@ -111,5 +111,2 @@ 'use strict' | ||
attachListeners(stream) { | ||
stream.on('end', () => { | ||
this.emit('end') | ||
}) | ||
parse(stream, (msg) => { | ||
@@ -116,0 +113,0 @@ var eventName = msg.name === 'error' ? 'errorMessage' : msg.name |
{ | ||
"name": "pg", | ||
"version": "8.9.0", | ||
"version": "8.10.0", | ||
"description": "PostgreSQL client - pure javascript & libpq with the same API", | ||
@@ -26,3 +26,3 @@ "keywords": [ | ||
"pg-connection-string": "^2.5.0", | ||
"pg-pool": "^3.5.2", | ||
"pg-pool": "^3.6.0", | ||
"pg-protocol": "^1.6.0", | ||
@@ -57,3 +57,3 @@ "pg-types": "^2.1.0", | ||
}, | ||
"gitHead": "20a243e8b30926a348cafc44177e95345618f7bc" | ||
"gitHead": "ee302cbcf10437e34fd05d70fc003c357b14c654" | ||
} |
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
71556
2042
Updatedpg-pool@^3.6.0