Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@haechi-labs/face-sdk

Package Overview
Dependencies
Maintainers
2
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@haechi-labs/face-sdk - npm Package Compare versions

Comparing version 1.1.0-alpha.0 to 1.2.0

lib/providers/json-rpc-provider.d.ts

2

lib/face.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc