curtain-web-api 1.0.84 → 1.0.87

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.
@@ -864,6 +864,7 @@ export class CurtainWebAPI {
864
864
  if (uploadId) {
865
865
  try {
866
866
  const sha256Hash = sha256Hasher.getHash('HEX');
867
+ console.log(`[CHUNK UPLOAD] Complete - totalSize: ${totalSize}, final hash: ${sha256Hash}`);
867
868
  const completionResponse = await this.completeCurtainUpload(uploadId, {
868
869
  sha256: sha256Hash,
869
870
  name: options?.name,
@@ -891,6 +892,7 @@ export class CurtainWebAPI {
891
892
  const chunk = file.slice(offset, end);
892
893
  try {
893
894
  const chunkBuffer = await chunk.arrayBuffer();
895
+ console.log(`[CHUNK UPLOAD] Chunk offset: ${offset}, size: ${chunkBuffer.byteLength}, end: ${end}`);
894
896
  sha256Hasher.update(chunkBuffer);
895
897
  const response = await this.uploadCurtainChunk({
896
898
  file: chunk,
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.87",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./build/index.js",
@@ -1153,6 +1153,7 @@ export class CurtainWebAPI {
1153
1153
  if (uploadId) {
1154
1154
  try {
1155
1155
  const sha256Hash = sha256Hasher.getHash('HEX');
1156
+ console.log(`[CHUNK UPLOAD] Complete - totalSize: ${totalSize}, final hash: ${sha256Hash}`);
1156
1157
  const completionResponse = await this.completeCurtainUpload(uploadId, {
1157
1158
  sha256: sha256Hash,
1158
1159
  name: options?.name,
@@ -1180,6 +1181,7 @@ export class CurtainWebAPI {
1180
1181
 
1181
1182
  try {
1182
1183
  const chunkBuffer = await chunk.arrayBuffer();
1184
+ console.log(`[CHUNK UPLOAD] Chunk offset: ${offset}, size: ${chunkBuffer.byteLength}, end: ${end}`);
1183
1185
  sha256Hasher.update(chunkBuffer);
1184
1186
 
1185
1187
  const response = await this.uploadCurtainChunk({