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.
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.142';
206
+ var webSdkVersion = '2.2.144';
207
207
 
208
208
  function getPlatform() {
209
209
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -1933,12 +1933,15 @@ function performUpload(_a) {
1933
1933
  fingerprint = _c.sent();
1934
1934
  return [2 /*return*/, new Promise(function (resolve, reject) {
1935
1935
  var documentId;
1936
+ var headers = {
1937
+ 'X-Session-Id': sessionId
1938
+ };
1939
+ if (metadata === null || metadata === void 0 ? void 0 : metadata.jobid) headers['X-Job-Id'] = metadata.jobid;
1940
+ if (metadata === null || metadata === void 0 ? void 0 : metadata.taskid) headers['X-Task-Id'] = metadata.taskid;
1936
1941
  var upload = createUpload(blob, {
1937
1942
  endpoint: endpoint,
1938
1943
  retryDelays: [0, 1000, 1000, 1000, 3000, 5000, 10000, 20000],
1939
- headers: {
1940
- 'X-Session-Id': sessionId
1941
- },
1944
+ headers: headers,
1942
1945
  metadata: _assign({
1943
1946
  filetype: blob.type,
1944
1947
  contentType: blob.type,