veryfi-lens-wasm 3.0.0-beta.2 → 3.0.0-beta.3

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 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "veryfi-lens-wasm",
3
- "version": "3.0.0-beta.2",
3
+ "version": "3.0.0-beta.3",
4
4
  "description": "Lens For Web SDK with WASM",
5
5
  "main": "veryfi-lens.js",
6
6
  "type": "module",
package/veryfi-lens.js CHANGED
@@ -146,6 +146,9 @@ const VeryfiLens = {
146
146
  break;
147
147
  }
148
148
  await flavorModule.setup(state, refs, actions);
149
+
150
+ loadingSpinner.remove();
151
+
149
152
  await flavorModule.render(state, refs, actions);
150
153
 
151
154
  if (!state.started && state.lensFlavor !== 'caps' && state.lensFlavor !== 'code_strips') {
@@ -154,8 +157,9 @@ const VeryfiLens = {
154
157
  }
155
158
 
156
159
  state.debug_mode && console.log("Camera initialization complete");
157
- } finally {
160
+ } catch (e) {
158
161
  loadingSpinner.remove();
162
+ throw e;
159
163
  }
160
164
  } catch (error) {
161
165
  console.error("Error in showCamera:", error);