veryfi-lens-wasm 1.2.6 → 1.2.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "veryfi-lens-wasm",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
4
4
  "description": "Lens For Web SDK with WASM",
5
5
  "main": "veryfi-lens.js",
6
6
  "type": "module",
package/veryfi-lens.js CHANGED
@@ -271,11 +271,12 @@ const VeryfiLens = (function () {
271
271
  );
272
272
  const video = videoRef;
273
273
  video.srcObject = stream;
274
+ torchTrack = stream.getVideoTracks()[0];
274
275
  })
275
276
  .catch((err) => {
276
277
  console.log(`[Event] Error: ${err}`);
277
278
  });
278
- torchTrack = stream.getVideoTracks()[0];
279
+
279
280
  } catch (error) {
280
281
  console.error("Error accessing the camera", error);
281
282
  }
@@ -1881,7 +1882,18 @@ const VeryfiLens = (function () {
1881
1882
 
1882
1883
  toggleTorch: () => {
1883
1884
  toggleTorchLight()
1884
- }
1885
+ },
1886
+
1887
+ getLcdStatus: () => {
1888
+ if (wasmWrapper.lcdStatus.LCDProb > 0.5) {
1889
+ cardData.cvv = ""
1890
+ cardData.date = ""
1891
+ cardData.name = ""
1892
+ cardData.number = ""
1893
+ cardData.status = ""
1894
+ }
1895
+ return wasmWrapper.lcdStatus();
1896
+ },
1885
1897
  };
1886
1898
  })();
1887
1899