curtain-web-api 1.0.85 → 1.0.88

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,12 +889,11 @@ 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 });
893
892
  try {
894
893
  const chunkBuffer = await chunk.arrayBuffer();
895
894
  sha256Hasher.update(chunkBuffer);
896
895
  const response = await this.uploadCurtainChunk({
897
- file: chunkFile,
896
+ file: chunk,
898
897
  filename: file.name,
899
898
  upload_session_id: options?.upload_session_id,
900
899
  description: options?.description,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "curtain-web-api",
3
- "version": "1.0.85",
3
+ "version": "1.0.88",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./build/index.js",
@@ -1177,14 +1177,13 @@ 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 });
1181
1180
 
1182
1181
  try {
1183
1182
  const chunkBuffer = await chunk.arrayBuffer();
1184
1183
  sha256Hasher.update(chunkBuffer);
1185
1184
 
1186
1185
  const response = await this.uploadCurtainChunk({
1187
- file: chunkFile,
1186
+ file: chunk,
1188
1187
  filename: file.name,
1189
1188
  upload_session_id: options?.upload_session_id,
1190
1189
  description: options?.description,