gcs-resumable-upload
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -145,2 +145,5 @@ "use strict"; | ||
}); | ||
this.on('prefinish', () => { | ||
this.upstreamEnded = true; | ||
}); | ||
this.once('writing', () => { | ||
@@ -242,2 +245,3 @@ // Now that someone is writing to this object, let's attach | ||
this.upstream.removeListener('finish', upstreamFinishedCallback); | ||
this.removeListener('prefinish', upstreamFinishedCallback); | ||
}; | ||
@@ -248,2 +252,3 @@ // If there's data recently written it should be digested | ||
this.upstream.once('finish', upstreamFinishedCallback); | ||
this.once('prefinish', upstreamFinishedCallback); | ||
}); | ||
@@ -250,0 +255,0 @@ return willBeMoreChunks; |
@@ -7,2 +7,9 @@ # Changelog | ||
### [4.0.1](https://www.github.com/googleapis/gcs-resumable-upload/compare/v4.0.0...v4.0.1) (2022-01-06) | ||
### Bug Fixes | ||
* Fix support for streams without content-length property ([#491](https://www.github.com/googleapis/gcs-resumable-upload/issues/491)) ([ac2f73b](https://www.github.com/googleapis/gcs-resumable-upload/commit/ac2f73b73e3afbc218ca99cbba3c598af4aefa9e)) | ||
## [4.0.0](https://www.github.com/googleapis/gcs-resumable-upload/compare/v3.6.0...v4.0.0) (2021-12-30) | ||
@@ -9,0 +16,0 @@ |
{ | ||
"name": "gcs-resumable-upload", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"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
100537
1121