@web3auth/base-provider
Advanced tools
Comparing version 0.2.2 to 0.3.0
@@ -14,3 +14,3 @@ import { BaseConfig, BaseController, BaseState, SafeEventEmitterProvider } from "@toruslabs/base-controllers"; | ||
constructor({ config, state }: { | ||
config?: C; | ||
config: C; | ||
state?: S; | ||
@@ -21,3 +21,3 @@ }); | ||
addChain(chainConfig: CustomChainConfig): void; | ||
getChainConfig(chainId: string): CustomChainConfig | undefined; | ||
getChainConfig(chainId: string): CustomChainConfig | null; | ||
protected getProviderEngineProxy(): SafeEventEmitterProvider | null; | ||
@@ -24,0 +24,0 @@ protected updateProviderEngineProxy(providerEngineProxy: SafeEventEmitterProvider): void; |
{ | ||
"name": "@web3auth/base-provider", | ||
"version": "0.2.2", | ||
"version": "0.3.0", | ||
"homepage": "https://github.com/Web3Auth/Web3Auth#readme", | ||
@@ -13,15 +13,14 @@ "license": "ISC", | ||
"scripts": { | ||
"local-publish": "yalc publish", | ||
"test": "mocha --config ../../.mocharc.json test/**.ts", | ||
"test-debugger": "mocha --config ../../.mocharc.json --inspect-brk test/**.ts", | ||
"dev": "rimraf dist/ && cross-env NODE_ENV=development torus-scripts build", | ||
"build": "rimraf dist/ && cross-env NODE_ENV=production torus-scripts build", | ||
"dev": "rimraf dist/ && torus-scripts start", | ||
"build": "rimraf dist/ && torus-scripts build", | ||
"lint": "eslint --fix 'src/**/*.ts'", | ||
"prepack": "yarn run build", | ||
"pre-commit": "lint-staged" | ||
"pre-commit": "lint-staged --cwd ." | ||
}, | ||
"dependencies": { | ||
"@toruslabs/base-controllers": "^1.6.1", | ||
"@toruslabs/openlogin-jrpc": "^1.3.4", | ||
"@web3auth/base": "^0.2.2", | ||
"@toruslabs/base-controllers": "^1.6.2", | ||
"@toruslabs/openlogin-jrpc": "^1.5.0", | ||
"@web3auth/base": "^0.3.0", | ||
"eth-rpc-errors": "^4.0.3", | ||
@@ -32,3 +31,3 @@ "json-rpc-random-id": "^1.0.1" | ||
"@types/json-rpc-random-id": "^1.0.1", | ||
"lint-staged": "^12.1.7" | ||
"lint-staged": "^12.3.4" | ||
}, | ||
@@ -59,3 +58,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "5f40f0d957f5a7cbadb32dcced96de2f548ada9e" | ||
"gitHead": "2b972f089db5dd6553f4cad685918c6c4fb3fe56" | ||
} |
@@ -23,3 +23,3 @@ import { BaseConfig, BaseController, BaseState, createEventEmitterProxy, SafeEventEmitterProvider } from "@toruslabs/base-controllers"; | ||
constructor({ config, state }: { config?: C; state?: S }) { | ||
constructor({ config, state }: { config: C; state?: S }) { | ||
super({ config, state }); | ||
@@ -55,3 +55,3 @@ if (!config.chainConfig) throw WalletInitializationError.invalidProviderConfigError("Please provide chainConfig"); | ||
public getChainConfig(chainId: string): CustomChainConfig | undefined { | ||
public getChainConfig(chainId: string): CustomChainConfig | null { | ||
const chainConfig = this.config.networks?.[chainId]; | ||
@@ -58,0 +58,0 @@ if (!chainConfig) throw ethErrors.rpc.invalidRequest(`Chain ${chainId} is not supported, please add chainConfig for it`); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
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
3244161
2514
+ Added@web3auth/base@0.3.1(transitive)
- Removed@web3auth/base@0.2.2(transitive)
Updated@web3auth/base@^0.3.0