idmission-web-sdk 2.2.96 → 2.2.97

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.
package/dist/sdk2.esm.js CHANGED
@@ -203,7 +203,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
203
203
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
204
204
  };
205
205
 
206
- var webSdkVersion = '2.2.96';
206
+ var webSdkVersion = '2.2.97';
207
207
 
208
208
  function getPlatform() {
209
209
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -1399,14 +1399,15 @@ var SubmissionProvider = function SubmissionProvider(_a) {
1399
1399
  if (!documentServiceUrl) return [3 /*break*/, 8];
1400
1400
  return [4 /*yield*/, Promise.all(Object.keys(documents).map(function (k) {
1401
1401
  return __awaiter(void 0, void 0, void 0, function () {
1402
- var _a, _b;
1402
+ var filetype, _a, _b;
1403
1403
  return __generator(this, function (_c) {
1404
1404
  switch (_c.label) {
1405
1405
  case 0:
1406
1406
  if (!documents[k]) return [3 /*break*/, 2];
1407
+ filetype = k.endsWith('Video') ? 'video/mp4' : k.endsWith('Audio') ? 'audio/mp4' : 'image/jpeg';
1407
1408
  _a = documents;
1408
1409
  _b = k;
1409
- return [4 /*yield*/, uploadIfPossible(documents[k], k)];
1410
+ return [4 /*yield*/, uploadIfPossible(documents[k], k, filetype)];
1410
1411
  case 1:
1411
1412
  _a[_b] = _c.sent();
1412
1413
  _c.label = 2;