veryfi-lens-wasm 3.2.0 → 3.2.1
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/core/constants.js +9 -5
- package/package.json +1 -1
package/core/constants.js
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
export const WASM = {
|
|
2
|
-
BASE_URL: 'https://lens.veryfi.com/static/wasm/',
|
|
3
|
-
};
|
|
4
|
-
|
|
5
1
|
export const API_BASES = {
|
|
6
2
|
PROD: 'https://lens.veryfi.com',
|
|
7
3
|
DEV: 'https://lens-dev.veryfi.com',
|
|
8
4
|
};
|
|
9
5
|
|
|
6
|
+
const WASM_PATH = '/static/wasm/';
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
export const WASM = {
|
|
10
|
+
BASE_URL: `${API_BASES.PROD}${WASM_PATH}`,
|
|
11
|
+
};
|
|
12
|
+
|
|
10
13
|
const buildApiUrls = (base) => ({
|
|
11
14
|
VALIDATE_PARTNER: `${base}/rest/validate_partner`,
|
|
12
15
|
SEND_CROPPED: `${base}/rest/send-cropped`,
|
|
@@ -25,10 +28,11 @@ export const API_URLS = buildApiUrls(API_BASES.PROD);
|
|
|
25
28
|
export const setApiEnvironment = (useDevApi) => {
|
|
26
29
|
const base = useDevApi ? API_BASES.DEV : API_BASES.PROD;
|
|
27
30
|
Object.assign(API_URLS, buildApiUrls(base));
|
|
31
|
+
WASM.BASE_URL = `${base}${WASM_PATH}`;
|
|
28
32
|
};
|
|
29
33
|
|
|
30
34
|
export const DEFAULTS = {
|
|
31
|
-
SDK_VERSION: '3.2.
|
|
35
|
+
SDK_VERSION: '3.2.1',
|
|
32
36
|
BLUR_THRESHOLD: 0.7,
|
|
33
37
|
LCD_THRESHOLD: 0.5,
|
|
34
38
|
BOX_COLOR: 'rgba(84, 192, 139, 0.6)',
|