vesant-sdk 1.4.5 → 1.5.2
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/README.md +5 -3
- package/dist/{client-BlAt791q.d.ts → client-B8pFrXx_.d.ts} +11 -5
- package/dist/{client-oo_3-0YW.d.mts → client-BZxzOidG.d.mts} +11 -5
- package/dist/{client-CY41e2Z_.d.mts → client-CIon-bGS.d.mts} +9 -5
- package/dist/{client-CY41e2Z_.d.ts → client-CIon-bGS.d.ts} +9 -5
- package/dist/compliance/index.d.mts +7 -7
- package/dist/compliance/index.d.ts +7 -7
- package/dist/compliance/index.js +46 -51
- package/dist/compliance/index.js.map +1 -1
- package/dist/compliance/index.mjs +46 -51
- package/dist/compliance/index.mjs.map +1 -1
- package/dist/decisions/index.d.mts +2 -2
- package/dist/decisions/index.d.ts +2 -2
- package/dist/decisions/index.js +32 -33
- package/dist/decisions/index.js.map +1 -1
- package/dist/decisions/index.mjs +32 -33
- package/dist/decisions/index.mjs.map +1 -1
- package/dist/geolocation/index.d.mts +4 -4
- package/dist/geolocation/index.d.ts +4 -4
- package/dist/geolocation/index.js +33 -34
- package/dist/geolocation/index.js.map +1 -1
- package/dist/geolocation/index.mjs +33 -34
- package/dist/geolocation/index.mjs.map +1 -1
- package/dist/index.d.mts +553 -21
- package/dist/index.d.ts +553 -21
- package/dist/index.js +320 -161
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +318 -159
- package/dist/index.mjs.map +1 -1
- package/dist/kyc/core.d.mts +3 -3
- package/dist/kyc/core.d.ts +3 -3
- package/dist/kyc/core.js +32 -33
- package/dist/kyc/core.js.map +1 -1
- package/dist/kyc/core.mjs +32 -33
- package/dist/kyc/core.mjs.map +1 -1
- package/dist/kyc/index.d.mts +11 -7
- package/dist/kyc/index.d.ts +11 -7
- package/dist/kyc/index.js +32 -33
- package/dist/kyc/index.js.map +1 -1
- package/dist/kyc/index.mjs +32 -33
- package/dist/kyc/index.mjs.map +1 -1
- package/dist/react.d.mts +6 -6
- package/dist/react.d.ts +6 -6
- package/dist/react.js +5 -5
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +5 -5
- package/dist/react.mjs.map +1 -1
- package/dist/risk-profile/index.d.mts +4 -4
- package/dist/risk-profile/index.d.ts +4 -4
- package/dist/risk-profile/index.js +35 -36
- package/dist/risk-profile/index.js.map +1 -1
- package/dist/risk-profile/index.mjs +35 -36
- package/dist/risk-profile/index.mjs.map +1 -1
- package/dist/scores/index.d.mts +2 -2
- package/dist/scores/index.d.ts +2 -2
- package/dist/scores/index.js +32 -33
- package/dist/scores/index.js.map +1 -1
- package/dist/scores/index.mjs +32 -33
- package/dist/scores/index.mjs.map +1 -1
- package/dist/{types-jaLuzruy.d.mts → types-1RzYeSal.d.mts} +2 -2
- package/dist/{types-DZHongaK.d.mts → types-B4Ezqo7V.d.mts} +2 -2
- package/dist/{types-DZHongaK.d.ts → types-B4Ezqo7V.d.ts} +2 -2
- package/dist/{types-DLC7Sfy5.d.ts → types-X5Md_dD_.d.ts} +2 -2
- package/dist/webhooks/index.d.mts +1 -1
- package/dist/webhooks/index.d.ts +1 -1
- package/package.json +6 -1
package/dist/react.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { createRoot } from 'react-dom/client';
|
|
|
4
4
|
// src/geolocation/hooks.ts
|
|
5
5
|
|
|
6
6
|
// src/core/version.ts
|
|
7
|
-
var SDK_VERSION = "1.
|
|
7
|
+
var SDK_VERSION = "1.5.2";
|
|
8
8
|
|
|
9
9
|
// src/shared/browser-utils.ts
|
|
10
10
|
function generateUUID() {
|
|
@@ -21,7 +21,7 @@ function generateDeviceId() {
|
|
|
21
21
|
if (typeof window === "undefined" || typeof localStorage === "undefined") {
|
|
22
22
|
return generateUUID();
|
|
23
23
|
}
|
|
24
|
-
const storageKey = "
|
|
24
|
+
const storageKey = "vesant_device_id";
|
|
25
25
|
let deviceId = localStorage.getItem(storageKey);
|
|
26
26
|
if (!deviceId) {
|
|
27
27
|
deviceId = generateUUID();
|
|
@@ -340,7 +340,7 @@ function useGeolocation(client, options = {}) {
|
|
|
340
340
|
device_fingerprint: deviceFingerprint
|
|
341
341
|
});
|
|
342
342
|
} catch (err) {
|
|
343
|
-
console.error("Auto-verification failed:", err);
|
|
343
|
+
console.error("[Vesant SDK] Auto-verification failed:", err instanceof Error ? err.message : "Unknown error");
|
|
344
344
|
}
|
|
345
345
|
};
|
|
346
346
|
detectAndVerify();
|
|
@@ -413,7 +413,7 @@ function useCipherText(client) {
|
|
|
413
413
|
}
|
|
414
414
|
return await generateCipherText(options, configRef.current);
|
|
415
415
|
} catch (error) {
|
|
416
|
-
console.error("[
|
|
416
|
+
console.error("[Vesant SDK] Failed to generate cipherText:", error instanceof Error ? error.message : "Unknown error");
|
|
417
417
|
return null;
|
|
418
418
|
}
|
|
419
419
|
},
|
|
@@ -900,7 +900,7 @@ function FaceCaptureModal({
|
|
|
900
900
|
onCapture(base64);
|
|
901
901
|
}, 300);
|
|
902
902
|
} catch (error) {
|
|
903
|
-
console.error("Error processing image:", error);
|
|
903
|
+
console.error("[Vesant SDK] Error processing image:", error instanceof Error ? error.message : "Unknown error");
|
|
904
904
|
setIsProcessing(false);
|
|
905
905
|
}
|
|
906
906
|
};
|