bruce-models 3.6.2 → 3.6.3

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.
@@ -1331,7 +1331,7 @@
1331
1331
  });
1332
1332
  }
1333
1333
  // Start web socket connection.
1334
- if (loadWebSocket != false) {
1334
+ if (loadWebSocket == true) {
1335
1335
  try {
1336
1336
  this.messageBroker = new exports.MessageBroker.WebSocketBroker(this.baseUrl, this.env);
1337
1337
  }
@@ -6519,12 +6519,13 @@
6519
6519
  while (retryCount > 0) {
6520
6520
  try {
6521
6521
  const blob = file.slice(fileOffset, fileOffset + partSize);
6522
+ const partialFile = new File([blob], file.name, { type: file.type });
6522
6523
  const formData = new FormData();
6523
6524
  formData.append("originalFileName", file.name);
6524
6525
  formData.append("token", uploadToken);
6525
6526
  formData.append("count", "" + filePartsCount);
6526
6527
  formData.append("part", "" + filePartIndex);
6527
- formData.append("file", blob);
6528
+ formData.append("file", partialFile);
6528
6529
  const reqParams = exports.Api.PrepReqParams(req);
6529
6530
  reqParams.formData = formData;
6530
6531
  reqParams.onProgress = (progress) => {
@@ -6535,7 +6536,7 @@
6535
6536
  uploaded: false
6536
6537
  });
6537
6538
  };
6538
- data = yield api.UPLOAD(url, blob, reqParams);
6539
+ data = yield api.UPLOAD(url, partialFile, reqParams);
6539
6540
  retryCount = 0;
6540
6541
  }
6541
6542
  catch (up) {
@@ -10712,7 +10713,7 @@
10712
10713
  })(exports.DataSource || (exports.DataSource = {}));
10713
10714
 
10714
10715
  // This is updated with the package.json version on build.
10715
- const VERSION = "3.6.2";
10716
+ const VERSION = "3.6.3";
10716
10717
 
10717
10718
  exports.VERSION = VERSION;
10718
10719
  exports.AbstractApi = AbstractApi;