idmission-web-sdk 2.2.142 → 2.2.143

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.142';
214
+ var webSdkVersion = '2.2.143';
215
215
 
216
216
  function getPlatform() {
217
217
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -2915,12 +2915,15 @@
2915
2915
  fingerprint = _c.sent();
2916
2916
  return [2 /*return*/, new Promise(function (resolve, reject) {
2917
2917
  var documentId;
2918
+ var headers = {
2919
+ 'X-Session-Id': sessionId
2920
+ };
2921
+ if (metadata === null || metadata === void 0 ? void 0 : metadata.jobid) headers['X-Job-Id'] = metadata.jobid;
2922
+ if (metadata === null || metadata === void 0 ? void 0 : metadata.taskid) headers['X-Task-Id'] = metadata.taskid;
2918
2923
  var upload = createUpload(blob, {
2919
2924
  endpoint: endpoint,
2920
2925
  retryDelays: [0, 1000, 1000, 1000, 3000, 5000, 10000, 20000],
2921
- headers: {
2922
- 'X-Session-Id': sessionId
2923
- },
2926
+ headers: headers,
2924
2927
  metadata: _assign({
2925
2928
  filetype: blob.type,
2926
2929
  contentType: blob.type,