@haechi-labs/face-sdk
Advanced tools
Comparing version 0.1.1-alpha.6 to 0.1.1-alpha.7
{ | ||
"name": "@haechi-labs/face-sdk", | ||
"version": "0.1.1-alpha.6", | ||
"version": "0.1.1-alpha.7", | ||
"description": "", | ||
@@ -18,3 +18,3 @@ "author": "", | ||
"devDependencies": { | ||
"@haechi-labs/face-types": "^0.1.1-alpha.6", | ||
"@haechi-labs/face-types": "^0.1.1-alpha.7", | ||
"@tsconfig/node16": "^1.0.2", | ||
@@ -27,3 +27,3 @@ "@types/node": "^17.0.33", | ||
}, | ||
"gitHead": "98c7633ca7f92453e34de26285963fc5b0928c5e", | ||
"gitHead": "a7597d9393c98a38484cf1c6955e4a04ddeda3ec", | ||
"publishConfig": { | ||
@@ -30,0 +30,0 @@ "access": "public" |
@@ -20,4 +20,4 @@ import { Blockchain, Env } from '@haechi-labs/face-types'; | ||
apiKey: string, | ||
iframeUrl: string, | ||
apiUrl: string, | ||
iframeUrl?: string, | ||
apiUrl?: string, | ||
env?: Env | ||
@@ -24,0 +24,0 @@ ) { |
@@ -87,6 +87,10 @@ import { | ||
// TODO: We should change iframeUrl calculate code | ||
if (network === Network.ETHEREUM) { | ||
iframeUrl = iframeUrl || 'https://app.facewallet.xyz'; | ||
} else { | ||
iframeUrl = iframeUrl || 'https://app.test.facewallet.xyz'; | ||
if (env === Env.ProdMainnet) { | ||
if (network === Network.ETHEREUM) { | ||
iframeUrl = iframeUrl || 'https://app.facewallet.xyz'; | ||
apiUrl = "null"; | ||
} else { | ||
iframeUrl = iframeUrl || 'https://app.test.facewallet.xyz'; | ||
apiUrl = "null"; | ||
} | ||
} | ||
@@ -93,0 +97,0 @@ iframe.src = new URL( |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
53820
1286