Socket
Socket
Sign inDemoInstall

@web3-onboard/dcent

Package Overview
Dependencies
Maintainers
2
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@web3-onboard/dcent - npm Package Compare versions

Comparing version 2.2.3-alpha.2 to 2.2.3-alpha.3

3

dist/index.d.ts
import type { WalletInit, Platform } from '@web3-onboard/common';
import type { CustomNetwork } from '@web3-onboard/hw-common';
declare function dcent({ customNetwork, filter }?: {
declare function dcent({ customNetwork, filter, containerElement }?: {
customNetwork?: CustomNetwork;
filter?: Platform[];
containerElement?: string;
}): WalletInit;
export default dcent;

@@ -28,3 +28,3 @@ const DEFAULT_BASE_PATH = "m/44'/60'/0'/0/0";

};
function dcent({ customNetwork, filter } = {}) {
function dcent({ customNetwork, filter, containerElement } = {}) {
const getIcon = async () => (await import('./icon.js')).default;

@@ -73,3 +73,4 @@ return ({ device }) => {

scanAccounts,
supportsCustomPath: false
supportsCustomPath: false,
containerElement
});

@@ -76,0 +77,0 @@ if (accounts.length) {

{
"name": "@web3-onboard/dcent",
"version": "2.2.3-alpha.2",
"version": "2.2.3-alpha.3",
"description": "D'CENT wallet module for connecting to Web3-Onboard. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.",

@@ -60,3 +60,3 @@ "keywords": [

"@web3-onboard/common": "^2.2.3",
"@web3-onboard/hw-common": "^2.1.0-alpha.1",
"@web3-onboard/hw-common": "^2.1.0-alpha.2",
"@ethereumjs/tx": "^3.4.0",

@@ -63,0 +63,0 @@ "@ethersproject/providers": "^5.5.0",

@@ -51,5 +51,16 @@ # @web3-onboard/dcent

Initialization options:
```typescript
type dcentInitOptions = {
customNetwork?: CustomNetwork
filter?: Platform[]
containerElement?: string
}
```
The following is a list of the platforms that can be filtered:
```typescript
type Platform = DeviceOSName | DeviceBrowserName | DeviceType | 'all';
type Platform =

@@ -56,0 +67,0 @@ | 'Windows Phone'

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