veryfi-lens-wasm 2.0.0-beta.4 → 2.0.0

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/veryfi-lens.js +5 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "veryfi-lens-wasm",
3
- "version": "2.0.0-beta.4",
3
+ "version": "2.0.0",
4
4
  "description": "Lens For Web SDK with WASM",
5
5
  "main": "veryfi-lens.js",
6
6
  "type": "module",
package/veryfi-lens.js CHANGED
@@ -884,7 +884,7 @@ const VeryfiLens = (function () {
884
884
  }
885
885
  !state.cardOverlay && (state.cardOverlay = createCreditCardComponent(state.container));
886
886
  if (state.exitButton) {
887
- createExitButton(state.cardOverlay.element, {
887
+ createExitButton(state.container, {
888
888
  setter: state.onClose,
889
889
  redirectUrl: state.onCloseRedirectUrl,
890
890
  }, removeOverlay);
@@ -933,8 +933,8 @@ const VeryfiLens = (function () {
933
933
  try {
934
934
  state.updateHandler && state.updateHandler({ status: 'validation_started' });
935
935
  const response = await fetch(
936
- // 'https://lens.veryfi.com/rest/validate_partner',
937
- 'https://lens-dev.veryfi.com/rest/validate_partner',
936
+ 'https://lens.veryfi.com/rest/validate_partner',
937
+ // 'https://lens-dev.veryfi.com/rest/validate_partner',
938
938
  // 'http://localhost:5050/rest/validate_partner',
939
939
 
940
940
  {
@@ -997,7 +997,7 @@ const VeryfiLens = (function () {
997
997
  };
998
998
 
999
999
  const response = await fetch(
1000
- "https://lens-dev.veryfi.com/rest/send-cropped",
1000
+ "https://lens.veryfi.com/rest/send-cropped",
1001
1001
  {
1002
1002
  method: "POST",
1003
1003
  headers: {
@@ -1032,7 +1032,7 @@ const VeryfiLens = (function () {
1032
1032
  spinner.show();
1033
1033
  state.updateHandler && state.updateHandler({ status: 'submission_started' });
1034
1034
 
1035
- const processDocumentUrl = "https://lens-dev.veryfi.com/api/document";
1035
+ const processDocumentUrl = "https://lens.veryfi.com/api/document";
1036
1036
  const deviceData = await getDeviceData();
1037
1037
 
1038
1038
  const requestBody = {