veryfi-lens-wasm 1.2.0-beta.2 → 1.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "veryfi-lens-wasm",
3
- "version": "1.2.0-beta.2",
3
+ "version": "1.2.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
@@ -2,11 +2,11 @@ import DeviceUUID from "./wasm/device-uuid.js";
2
2
  import { WasmWrapper } from "./wasm/wasm.js";
3
3
  import gatherBrowserData from "./wasm/device-data.js";
4
4
  import UAParser from "./wasm/ua-parser.cjs";
5
-
6
- if (typeof document !== 'undefined') {
7
- const script = document.createElement("script");
8
- script.src = "./wasm/opencv.cjs";
9
- }
5
+ import cv from "./wasm/opencv.cjs";
6
+ // if (typeof document !== 'undefined') {
7
+ // const script = document.createElement("script");
8
+ // script.src = "./wasm/opencv.js";
9
+ // }
10
10
 
11
11
  const VeryfiLens = (function () {
12
12
  const DEFAULT_BOX_COlOR = "rgba(84, 192, 139, 0.6)";
@@ -51,6 +51,7 @@ const VeryfiLens = (function () {
51
51
  let userAgent = null;
52
52
  let device_uuid = null;
53
53
  let fullSizeImage;
54
+ // let wasmWrapper = null;
54
55
  let finalImage;
55
56
 
56
57
  let previewData = null;
File without changes