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.
@@ -211,7 +211,7 @@
211
211
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
212
212
  };
213
213
 
214
- var webSdkVersion = '2.2.96';
214
+ var webSdkVersion = '2.2.97';
215
215
 
216
216
  function getPlatform() {
217
217
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -2371,14 +2371,15 @@
2371
2371
  if (!documentServiceUrl) return [3 /*break*/, 8];
2372
2372
  return [4 /*yield*/, Promise.all(Object.keys(documents).map(function (k) {
2373
2373
  return __awaiter(void 0, void 0, void 0, function () {
2374
- var _a, _b;
2374
+ var filetype, _a, _b;
2375
2375
  return __generator(this, function (_c) {
2376
2376
  switch (_c.label) {
2377
2377
  case 0:
2378
2378
  if (!documents[k]) return [3 /*break*/, 2];
2379
+ filetype = k.endsWith('Video') ? 'video/mp4' : k.endsWith('Audio') ? 'audio/mp4' : 'image/jpeg';
2379
2380
  _a = documents;
2380
2381
  _b = k;
2381
- return [4 /*yield*/, uploadIfPossible(documents[k], k)];
2382
+ return [4 /*yield*/, uploadIfPossible(documents[k], k, filetype)];
2382
2383
  case 1:
2383
2384
  _a[_b] = _c.sent();
2384
2385
  _c.label = 2;