Socket
Socket
Sign inDemoInstall

@web3-onboard/injected-wallets

Package Overview
Dependencies
Maintainers
2
Versions
151
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@web3-onboard/injected-wallets - npm Package Compare versions

Comparing version 2.0.5 to 2.0.6

6

dist/validation.js
import Joi from 'joi';
const walletModule = Joi.object({
label: Joi.string().required(),
getIcon: Joi.function().arity(1).required(),
getInterface: Joi.function().arity(1).required(),
getIcon: Joi.function().arity(0).required(),
getInterface: Joi.function().maxArity(1).required(),
injectedNamespace: Joi.string().required(),
checkProviderIdentity: Joi.function().arity(1).required().required(),
checkProviderIdentity: Joi.function().arity(1).required(),
platforms: Joi.array().items(Joi.string())

@@ -9,0 +9,0 @@ });

{
"name": "@web3-onboard/injected-wallets",
"version": "2.0.5",
"version": "2.0.6",
"description": "Injected wallets module for web3-onboard",

@@ -28,3 +28,3 @@ "module": "dist/index.js",

"dependencies": {
"@web3-onboard/common": "^2.0.2",
"@web3-onboard/common": "^2.0.7",
"joi": "^17.4.2",

@@ -31,0 +31,0 @@ "lodash.uniqby": "^4.7.0"

@@ -114,6 +114,11 @@ # @web3-onboard/injected-wallets

injectedNamespace: 'ethereum',
// A unique property on the provider that is used to identify the provider
// A function that returns a bool indicating whether or not the provider is
// of a certain identity. In this case, a unique property on the provider
// is used to identify the provider.
// In most cases this is in the format: `is<provider-name>`.
// Example: window.ethereum.isEQLWallet
providerIdentityFlag: 'isEQLWallet',
// You may also include custom logic here if checking for the property
// isn't sufficient.
checkProviderIdentity: ({ provider }) =>
!!provider && !!provider[ProviderIdentityFlag.MetaMask],
// A method that returns a string of the wallet icon which will be displayed

@@ -120,0 +125,0 @@ getIcon: async () => (await import('<PATH_TO_ICON>')).default,

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