gcs-resumable-upload
Advanced tools
Comparing version 3.5.1 to 3.6.0
@@ -247,3 +247,8 @@ "use strict"; | ||
if (resp.status < 200 || resp.status > 299) { | ||
this.destroy(new Error('Upload failed')); | ||
const err = { | ||
code: resp.status, | ||
name: 'Upload failed', | ||
message: 'Upload failed', | ||
}; | ||
this.destroy(err); | ||
return; | ||
@@ -250,0 +255,0 @@ } |
@@ -7,2 +7,9 @@ # Changelog | ||
## [3.6.0](https://www.github.com/googleapis/gcs-resumable-upload/compare/v3.5.1...v3.6.0) (2021-11-09) | ||
### Features | ||
* add error code to error in startUploading ([#474](https://www.github.com/googleapis/gcs-resumable-upload/issues/474)) ([1ae6987](https://www.github.com/googleapis/gcs-resumable-upload/commit/1ae69870a4ad52340eb2e67c4d3d13391002c6fa)) | ||
### [3.5.1](https://www.github.com/googleapis/gcs-resumable-upload/compare/v3.5.0...v3.5.1) (2021-11-04) | ||
@@ -9,0 +16,0 @@ |
{ | ||
"name": "gcs-resumable-upload", | ||
"version": "3.5.1", | ||
"version": "3.6.0", | ||
"description": "Upload a file to Google Cloud Storage with built-in resumable behavior", | ||
@@ -5,0 +5,0 @@ "repository": "googleapis/gcs-resumable-upload", |
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
77619
768