curtain-web-api 1.0.84 → 1.0.85

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -889,11 +889,12 @@ export class CurtainWebAPI {
889
889
  }
890
890
  const end = Math.min(offset + chunkSize, totalSize);
891
891
  const chunk = file.slice(offset, end);
892
+ const chunkFile = new File([chunk], file.name, { type: file.type });
892
893
  try {
893
894
  const chunkBuffer = await chunk.arrayBuffer();
894
895
  sha256Hasher.update(chunkBuffer);
895
896
  const response = await this.uploadCurtainChunk({
896
- file: chunk,
897
+ file: chunkFile,
897
898
  filename: file.name,
898
899
  upload_session_id: options?.upload_session_id,
899
900
  description: options?.description,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "curtain-web-api",
3
- "version": "1.0.84",
3
+ "version": "1.0.85",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./build/index.js",
@@ -1177,13 +1177,14 @@ export class CurtainWebAPI {
1177
1177
 
1178
1178
  const end = Math.min(offset + chunkSize, totalSize);
1179
1179
  const chunk = file.slice(offset, end);
1180
+ const chunkFile = new File([chunk], file.name, { type: file.type });
1180
1181
 
1181
1182
  try {
1182
1183
  const chunkBuffer = await chunk.arrayBuffer();
1183
1184
  sha256Hasher.update(chunkBuffer);
1184
1185
 
1185
1186
  const response = await this.uploadCurtainChunk({
1186
- file: chunk,
1187
+ file: chunkFile,
1187
1188
  filename: file.name,
1188
1189
  upload_session_id: options?.upload_session_id,
1189
1190
  description: options?.description,