idmission-web-sdk 2.2.142 → 2.2.144

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.
@@ -233,7 +233,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
233
233
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
234
234
  };
235
235
 
236
- var webSdkVersion = '2.2.142';
236
+ var webSdkVersion = '2.2.144';
237
237
 
238
238
  function getPlatform() {
239
239
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -1963,12 +1963,15 @@ function performUpload(_a) {
1963
1963
  fingerprint = _c.sent();
1964
1964
  return [2 /*return*/, new Promise(function (resolve, reject) {
1965
1965
  var documentId;
1966
+ var headers = {
1967
+ 'X-Session-Id': sessionId
1968
+ };
1969
+ if (metadata === null || metadata === void 0 ? void 0 : metadata.jobid) headers['X-Job-Id'] = metadata.jobid;
1970
+ if (metadata === null || metadata === void 0 ? void 0 : metadata.taskid) headers['X-Task-Id'] = metadata.taskid;
1966
1971
  var upload = createUpload(blob, {
1967
1972
  endpoint: endpoint,
1968
1973
  retryDelays: [0, 1000, 1000, 1000, 3000, 5000, 10000, 20000],
1969
- headers: {
1970
- 'X-Session-Id': sessionId
1971
- },
1974
+ headers: headers,
1972
1975
  metadata: _assign({
1973
1976
  filetype: blob.type,
1974
1977
  contentType: blob.type,