@unifold/connect-react 0.1.30 → 0.1.31

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/dist/index.js CHANGED
@@ -6064,7 +6064,13 @@ var import_react9 = require("react");
6064
6064
 
6065
6065
  // ../core/dist/index.mjs
6066
6066
  var import_react_query2 = require("@tanstack/react-query");
6067
- var API_BASE_URL = process.env.NEXT_PUBLIC_API_BASE_URL || "https://api.unifold.io";
6067
+ var API_BASE_URL = (() => {
6068
+ try {
6069
+ return process.env.NEXT_PUBLIC_API_BASE_URL || "https://api.unifold.io";
6070
+ } catch {
6071
+ return "https://api.unifold.io";
6072
+ }
6073
+ })();
6068
6074
  var DEFAULT_PUBLISHABLE_KEY = "pk_test_123";
6069
6075
  var DEFAULT_CONFIG = {};
6070
6076
  function setApiConfig(config) {
package/dist/index.mjs CHANGED
@@ -6038,7 +6038,13 @@ import { useState as useState92, useEffect as useEffect52, useRef as useRef22 }
6038
6038
 
6039
6039
  // ../core/dist/index.mjs
6040
6040
  import { useQuery } from "@tanstack/react-query";
6041
- var API_BASE_URL = process.env.NEXT_PUBLIC_API_BASE_URL || "https://api.unifold.io";
6041
+ var API_BASE_URL = (() => {
6042
+ try {
6043
+ return process.env.NEXT_PUBLIC_API_BASE_URL || "https://api.unifold.io";
6044
+ } catch {
6045
+ return "https://api.unifold.io";
6046
+ }
6047
+ })();
6042
6048
  var DEFAULT_PUBLISHABLE_KEY = "pk_test_123";
6043
6049
  var DEFAULT_CONFIG = {};
6044
6050
  function setApiConfig(config) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unifold/connect-react",
3
- "version": "0.1.30",
3
+ "version": "0.1.31",
4
4
  "description": "Unifold Connect React - Complete React SDK with UI components for crypto deposits",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -25,9 +25,9 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@tanstack/react-query": "^5.90.11",
28
- "@unifold/core": "0.1.30",
29
- "@unifold/react-provider": "0.1.30",
30
- "@unifold/ui-react": "0.1.30"
28
+ "@unifold/core": "0.1.31",
29
+ "@unifold/react-provider": "0.1.31",
30
+ "@unifold/ui-react": "0.1.31"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/react": "^19.0.0",