@bn-onboard/injected-wallets
Advanced tools
Comparing version 2.0.0-alpha.2 to 2.0.0-alpha.3
import type { WalletInit, InjectedWalletOptions } from '@bn-onboard/common'; | ||
declare function injected(options: InjectedWalletOptions): WalletInit; | ||
declare function injected(options?: InjectedWalletOptions): WalletInit; | ||
export default injected; |
@@ -7,5 +7,7 @@ import uniqBy from 'lodash.uniqby'; | ||
function injected(options) { | ||
const result = validateWalletOptions(options); | ||
if (result?.error) | ||
throw result.error; | ||
if (options) { | ||
const result = validateWalletOptions(options); | ||
if (result?.error) | ||
throw result.error; | ||
} | ||
return helpers => { | ||
@@ -12,0 +14,0 @@ const { device } = helpers; |
{ | ||
"name": "@bn-onboard/injected-wallets", | ||
"version": "2.0.0-alpha.2", | ||
"version": "2.0.0-alpha.3", | ||
"description": "Injected wallets module for Onboard.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/index.js", |
230794
1597