@tus/s3-store
Advanced tools
Comparing version 1.0.0-beta.4 to 1.0.0-beta.5
@@ -245,8 +245,10 @@ "use strict"; | ||
} | ||
const readable = node_fs_1.default.createReadStream(path); | ||
readable.on('error', reject); | ||
if (partSize > this.minPartSize || isFinalChunk) { | ||
await this.uploadPart(metadata, node_fs_1.default.createReadStream(path), partNumber); | ||
await this.uploadPart(metadata, readable, partNumber); | ||
offset += partSize; | ||
} | ||
else { | ||
await this.uploadIncompletePart(incompletePartId, node_fs_1.default.createReadStream(path)); | ||
await this.uploadIncompletePart(incompletePartId, readable); | ||
} | ||
@@ -253,0 +255,0 @@ bytesUploaded += partSize; |
{ | ||
"$schema": "https://json.schemastore.org/package.json", | ||
"name": "@tus/s3-store", | ||
"version": "1.0.0-beta.4", | ||
"version": "1.0.0-beta.5", | ||
"description": "AWS S3 store for @tus/server", | ||
@@ -6,0 +6,0 @@ "main": "dist/index.js", |
@@ -5,3 +5,3 @@ # `@tus/s3-store` | ||
> The old package, `tus-node-server`, is considered unstable and will only receive security fixes. | ||
> Make sure to use the new package, currently in beta at `1.0.0-beta.4`. | ||
> Make sure to use the new package, currently in beta at `1.0.0-beta.5`. | ||
@@ -8,0 +8,0 @@ ## Contents |
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
28796
572