@haechi-labs/face-sdk
Advanced tools
Comparing version 1.1.0-alpha.0 to 1.2.0
@@ -34,3 +34,3 @@ "use strict"; | ||
}; | ||
this.network = network || face_types_1.Network.ETH_MAINNET; | ||
this.network = network || face_types_1.Network.ETHEREUM; | ||
this.internal = new internal_1.Internal(apiKey, network, rest.env, rest.iframeUrl); | ||
@@ -37,0 +37,0 @@ this.auth = new auth_1.Auth(this.internal); |
@@ -131,13 +131,13 @@ "use strict"; | ||
switch (network) { | ||
case face_1.Network.ETH_MAINNET: | ||
case face_1.Network.ETH_TESTNET: | ||
case face_1.Network.ETHEREUM: | ||
case face_1.Network.ROPSTEN: | ||
return face_types_1.Blockchain.ETHEREUM; | ||
case face_1.Network.MATIC_MAINNET: | ||
case face_1.Network.MATIC_TESTNET: | ||
case face_1.Network.POLYGON: | ||
case face_1.Network.MUMBAI: | ||
return face_types_1.Blockchain.POLYGON; | ||
case face_1.Network.BINANCE_COIN_MAINNET: | ||
case face_1.Network.BINANCE_COIN_TESTNET: | ||
case face_1.Network.BNB_SMART_CHAIN: | ||
case face_1.Network.BNB_SMART_CHAIN_TESTNET: | ||
return face_types_1.Blockchain.BNB_SMART_CHAIN; | ||
case face_1.Network.KLAYTN_MAINNET: | ||
case face_1.Network.KLAYTN_TESTNET: | ||
case face_1.Network.KLAYTN: | ||
case face_1.Network.BAOBAB: | ||
return face_types_1.Blockchain.KLAYTN; | ||
@@ -173,6 +173,6 @@ default: | ||
} | ||
if (network === face_1.Network.ETH_TESTNET || | ||
network === face_1.Network.MATIC_TESTNET || | ||
network === face_1.Network.KLAYTN_TESTNET || | ||
network === face_1.Network.BINANCE_COIN_TESTNET) { | ||
if (network === face_1.Network.ROPSTEN || | ||
network === face_1.Network.MUMBAI || | ||
network === face_1.Network.BAOBAB || | ||
network === face_1.Network.BNB_SMART_CHAIN_TESTNET) { | ||
return face_types_1.Env.ProdTest; | ||
@@ -179,0 +179,0 @@ } |
{ | ||
"name": "@haechi-labs/face-sdk", | ||
"version": "1.1.0-alpha.0", | ||
"version": "1.2.0", | ||
"description": "", | ||
@@ -18,3 +18,3 @@ "author": "", | ||
"devDependencies": { | ||
"@haechi-labs/face-types": "^1.1.0-alpha.0", | ||
"@haechi-labs/face-types": "^1.2.0", | ||
"@tsconfig/node16": "^1.0.2", | ||
@@ -27,3 +27,3 @@ "@types/node": "^17.0.33", | ||
}, | ||
"gitHead": "418023f9c9b0e55af54cdc3e9b67e52b70984769", | ||
"gitHead": "e2252d25c71a6f76c64fdc81951c97ff7bd7407d", | ||
"publishConfig": { | ||
@@ -30,0 +30,0 @@ "access": "public" |
@@ -23,3 +23,3 @@ import { Env, JsonRpcMethod, Network, NetworkChainIdMap } from '@haechi-labs/face-types'; | ||
constructor({ apiKey, network, ...rest }: FaceConfig) { | ||
this.network = network || Network.ETH_MAINNET; | ||
this.network = network || Network.ETHEREUM; | ||
this.internal = new Internal( | ||
@@ -26,0 +26,0 @@ apiKey, |
@@ -178,13 +178,13 @@ import { | ||
switch (network) { | ||
case Network.ETH_MAINNET: | ||
case Network.ETH_TESTNET: | ||
case Network.ETHEREUM: | ||
case Network.ROPSTEN: | ||
return Blockchain.ETHEREUM; | ||
case Network.MATIC_MAINNET: | ||
case Network.MATIC_TESTNET: | ||
case Network.POLYGON: | ||
case Network.MUMBAI: | ||
return Blockchain.POLYGON; | ||
case Network.BINANCE_COIN_MAINNET: | ||
case Network.BINANCE_COIN_TESTNET: | ||
case Network.BNB_SMART_CHAIN: | ||
case Network.BNB_SMART_CHAIN_TESTNET: | ||
return Blockchain.BNB_SMART_CHAIN; | ||
case Network.KLAYTN_MAINNET: | ||
case Network.KLAYTN_TESTNET: | ||
case Network.KLAYTN: | ||
case Network.BAOBAB: | ||
return Blockchain.KLAYTN; | ||
@@ -223,6 +223,6 @@ default: | ||
if ( | ||
network === Network.ETH_TESTNET || | ||
network === Network.MATIC_TESTNET || | ||
network === Network.KLAYTN_TESTNET || | ||
network === Network.BINANCE_COIN_TESTNET | ||
network === Network.ROPSTEN || | ||
network === Network.MUMBAI || | ||
network === Network.BAOBAB || | ||
network === Network.BNB_SMART_CHAIN_TESTNET | ||
) { | ||
@@ -229,0 +229,0 @@ return Env.ProdTest; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Unpublished package
Supply chain riskPackage version was not found on the registry. It may exist on a different registry and need to be configured to pull from that registry.
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
Unpopular package
QualityThis package is not very popular.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
69454
36
1552
1
0
1