google-gax
Advanced tools
Comparing version 4.3.4 to 4.3.5
@@ -183,3 +183,3 @@ "use strict"; | ||
let enteredError = false; | ||
const eventsToForward = ['metadata', 'response', 'status', 'data']; | ||
const eventsToForward = ['metadata', 'response', 'status']; | ||
eventsToForward.forEach(event => { | ||
@@ -192,2 +192,6 @@ stream.on(event, this.emit.bind(this, event)); | ||
}); | ||
stream.on('data', (data) => { | ||
this.retries = 0; | ||
this.emit.bind(this, 'data')(data); | ||
}); | ||
stream.on('end', () => { | ||
@@ -331,2 +335,8 @@ if (!enteredError) { | ||
else { | ||
if (maxRetries === 0) { | ||
const e = googleError_1.GoogleError.parseGRPCStatusDetails(error); | ||
e.note = 'Max retries is set to zero.'; | ||
this.destroy(e); | ||
return; // end chunk | ||
} | ||
return googleError_1.GoogleError.parseGRPCStatusDetails(error); | ||
@@ -333,0 +343,0 @@ } |
{ | ||
"name": "google-gax", | ||
"version": "4.3.4", | ||
"version": "4.3.5", | ||
"description": "Google API Extensions", | ||
@@ -5,0 +5,0 @@ "main": "build/src/index.js", |
Sorry, the diff of this file is too big to display
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
3287582
27352