idmission-web-sdk 2.6.3-t3code-callback-homes-submit-handoff-cda6379 → 2.6.3-t3code-callback-homes-submit-handoff-ee11df0

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/index.d.ts CHANGED
@@ -11274,7 +11274,7 @@ declare global {
11274
11274
  var IDmissionSDK: IDmissionSDK;
11275
11275
  }
11276
11276
 
11277
- declare const webSdkVersion = "2.6.3-t3code-callback-homes-submit-handoff-cda6379";
11277
+ declare const webSdkVersion = "2.6.3-t3code-callback-homes-submit-handoff-ee11df0";
11278
11278
 
11279
11279
  /**
11280
11280
  * sdk2's imperative handle on the video-signature capture screen
package/dist/props.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$comment": "GENERATED by scripts/propsManifest.mjs at build time. Each customer flow's props, read off dist/index.d.ts.",
3
3
  "schemaVersion": 1,
4
- "version": "2.6.3-t3code-callback-homes-submit-handoff-cda6379",
4
+ "version": "2.6.3-t3code-callback-homes-submit-handoff-ee11df0",
5
5
  "components": {
6
6
  "IdValidation": {
7
7
  "description": "Render a fullscreen ID capture component that instructs the user to\nphotograph both sides of their ID card, or the full page of their passport.",
@@ -4875,12 +4875,11 @@ function withJobTaskMetadata(metadata, jobID, taskID) {
4875
4875
  */
4876
4876
  function notifySafely$1(name, notify) {
4877
4877
  try {
4878
- var result = notify();
4879
- if (result instanceof Promise) {
4880
- result["catch"](function (e) {
4881
- return warn$1(name + " rejected", e);
4882
- });
4883
- }
4878
+ // `Promise.resolve`, not `instanceof Promise`: a promise from another
4879
+ // realm (an iframe) fails that check, and its rejection would go unhandled.
4880
+ Promise.resolve(notify())["catch"](function (e) {
4881
+ return warn$1(name + " rejected", e);
4882
+ });
4884
4883
  } catch (e) {
4885
4884
  warn$1(name + " threw", e);
4886
4885
  }
@@ -5080,7 +5079,7 @@ function createIdmissionClient(config) {
5080
5079
  }
5081
5080
  function _runSessionValidation() {
5082
5081
  _runSessionValidation = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(epoch) {
5083
- var authUrl, adoptSessionUrls, resolvedSessionId, err, valid, finalState, _err, _t, _t2;
5082
+ var authUrl, adoptSessionUrls, resolvedSessionId, err, responseNonce, valid, finalState, _err, _t, _t2;
5084
5083
  return _regeneratorRuntime.wrap(function (_context3) {
5085
5084
  while (1) switch (_context3.prev = _context3.next) {
5086
5085
  case 0:
@@ -5175,15 +5174,22 @@ function createIdmissionClient(config) {
5175
5174
  payload: 'RUNNING'
5176
5175
  });
5177
5176
  _context3.prev = 8;
5177
+ // The nonce THIS response carried, taken as it is ingested: reading
5178
+ // the shared holder after the await could pick up another client's.
5179
+ responseNonce = null;
5178
5180
  _context3.next = 9;
5179
5181
  return validateSession(authUrl, resolvedSessionId, {
5180
5182
  fetch: config.fetch,
5181
- delay: config.delay
5183
+ delay: config.delay,
5184
+ ingestNonce: function ingestNonce(nonce) {
5185
+ responseNonce = typeof nonce === 'string' && nonce ? nonce : null;
5186
+ ingestSessionAttestation(nonce);
5187
+ }
5182
5188
  });
5183
5189
  case 9:
5184
5190
  valid = _context3.sent;
5185
5191
  finalState = valid ? 'PASSED' : 'FAILED';
5186
- if (epoch === sessionRunEpoch) validatedSessionNonce = getLastSessionNonce();
5192
+ if (epoch === sessionRunEpoch) validatedSessionNonce = responseNonce;
5187
5193
  dispatchSessionIfCurrent(epoch, {
5188
5194
  type: 'setCheckState',
5189
5195
  payload: finalState
@@ -38815,12 +38821,11 @@ function missingMethod(method, needs) {
38815
38821
  */
38816
38822
  function notifySafely(name, notify) {
38817
38823
  try {
38818
- var result = notify();
38819
- if (result instanceof Promise) {
38820
- result["catch"](function (e) {
38821
- return warn(name + " rejected", e);
38822
- });
38823
- }
38824
+ // `Promise.resolve`, not `instanceof Promise`: a promise from another
38825
+ // realm (an iframe) fails that check, and its rejection would go unhandled.
38826
+ Promise.resolve(notify())["catch"](function (e) {
38827
+ return warn(name + " rejected", e);
38828
+ });
38824
38829
  } catch (e) {
38825
38830
  warn(name + " threw", e);
38826
38831
  }
@@ -49263,7 +49268,7 @@ function mapCustomerIdAndBiometricsEnrollmentProps(props, ctx) {
49263
49268
  });
49264
49269
  }
49265
49270
 
49266
- var webSdkVersion = '2.6.3-t3code-callback-homes-submit-handoff-cda6379';
49271
+ var webSdkVersion = '2.6.3-t3code-callback-homes-submit-handoff-ee11df0';
49267
49272
 
49268
49273
  // GENERATED by scripts/styleBagTypes.mjs from
49269
49274
  // src/__fixtures__/sdk2StyleBags.json and the mapper sweep — do not