@google-cloud/storage
Advanced tools
Comparing version 5.18.0 to 5.18.1
@@ -444,8 +444,2 @@ "use strict"; | ||
}); | ||
// This should be 'once' as `startUploading` can be called again for | ||
// multi chunk uploads and each request would have its own response. | ||
this.once('response', resp => { | ||
responseReceived = true; | ||
this.responseHandler(resp); | ||
}); | ||
let headers = {}; | ||
@@ -473,3 +467,7 @@ // If using multiple chunk upload, set appropriate header | ||
try { | ||
await this.makeRequestStream(reqOpts); | ||
const resp = await this.makeRequestStream(reqOpts); | ||
if (resp) { | ||
responseReceived = true; | ||
this.responseHandler(resp); | ||
} | ||
} | ||
@@ -647,5 +645,5 @@ catch (err) { | ||
const res = await this.authClient.request(combinedReqOpts); | ||
this.onResponse(res); | ||
const successfulRequest = this.onResponse(res); | ||
this.removeListener('error', errorCallback); | ||
return res; | ||
return successfulRequest ? res : null; | ||
} | ||
@@ -652,0 +650,0 @@ restart() { |
{ | ||
"name": "@google-cloud/storage", | ||
"description": "Cloud Storage Client Library for Node.js", | ||
"version": "5.18.0", | ||
"version": "5.18.1", | ||
"license": "Apache-2.0", | ||
@@ -6,0 +6,0 @@ "author": "Google Inc.", |
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
669414
13455