@neofaceid/web-sdk 1.9.0 → 1.9.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.
@@ -1135,10 +1135,7 @@ class NeoFaceError extends Error {
1135
1135
  }
1136
1136
  }
1137
1137
  const __vite_import_meta_env__$1 = {};
1138
- const API_BASE_URL = __vite_import_meta_env__$1 == null ? void 0 : __vite_import_meta_env__$1.VITE_API_BASE_URL;
1139
- if (!API_BASE_URL) {
1140
- console.error("[NeoFaceID SDK] VITE_API_BASE_URL não está configurado. Configure no arquivo .env");
1141
- }
1138
+ const API_BASE_URL = (__vite_import_meta_env__$1 == null ? void 0 : __vite_import_meta_env__$1.VITE_API_BASE_URL) || "https://sandbox-core.neofaceid.com";
1142
1139
  const REQUEST_TIMEOUT = 1e4;
1143
1140
  const ensureSecureContext = () => {
1144
1141
  const isLocalhost = window.location.hostname === "localhost" || window.location.hostname === "127.0.0.1" || window.location.hostname === "";
@@ -5714,7 +5711,7 @@ const biometricDetection = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.
5714
5711
  initializeBiometricDetection,
5715
5712
  isAdvancedDetectionAvailable
5716
5713
  }, Symbol.toStringTag, { value: "Module" }));
5717
- const VERSION = "1.9.0";
5714
+ const VERSION = "1.9.2";
5718
5715
  const RELEASE_DATE = "2026-01-20";
5719
5716
  class OnboardingCaptureModal {
5720
5717
  constructor(options) {
@@ -5946,15 +5943,9 @@ class NeoFaceID {
5946
5943
  __publicField(this, "signature");
5947
5944
  __publicField(this, "sessionData");
5948
5945
  this.appToken = config.appToken;
5949
- this.baseUrl = config.baseUrl || (__vite_import_meta_env__ == null ? void 0 : __vite_import_meta_env__.VITE_API_BASE_URL);
5946
+ this.baseUrl = config.baseUrl || (__vite_import_meta_env__ == null ? void 0 : __vite_import_meta_env__.VITE_API_BASE_URL) || "https://sandbox-core.neofaceid.com";
5950
5947
  this.signature = config.signature;
5951
5948
  this.sessionData = config.sessionData;
5952
- if (!this.baseUrl) {
5953
- throw new NeoFaceError(
5954
- "baseUrl não configurado. Passe via config ou configure VITE_API_BASE_URL no .env",
5955
- ErrorType.VALIDATION_ERROR
5956
- );
5957
- }
5958
5949
  if (this.signature && !this.validateSignatureFormat(this.signature)) {
5959
5950
  throw new NeoFaceError(
5960
5951
  "Invalid signature format. Expected HMAC-SHA256 hex string (minimum 64 characters)",