@clickhouse/client
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -121,3 +121,3 @@ "use strict"; | ||
// Prefer 'abort' event since it always triggered unlike 'error' and 'close' | ||
// * see the full sequence of events https://nodejs.org/api/http.html#httprequesturl-options-callback | ||
// see the full sequence of events https://nodejs.org/api/http.html#httprequesturl-options-callback | ||
removeRequestListeners(); | ||
@@ -135,5 +135,4 @@ request.once('error', function () { | ||
// It's necessary in order to handle 'abort' and 'timeout' events while response is streamed. | ||
// setImmediate is a workaround. If a request cancelled before sent, the 'abort' happens after 'close'. | ||
// Which contradicts the docs https://nodejs.org/docs/latest-v14.x/api/http.html#http_http_request_url_options_callback | ||
setImmediate(removeRequestListeners); | ||
// It's always the last event, according to https://nodejs.org/docs/latest-v14.x/api/http.html#http_http_request_url_options_callback | ||
removeRequestListeners(); | ||
} | ||
@@ -140,0 +139,0 @@ function removeRequestListeners() { |
{ | ||
"name": "@clickhouse/client", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "Official JS client for ClickHouse DB", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.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
249779
3879