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

@web3-react/metamask

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@web3-react/metamask - npm Package Compare versions

Comparing version 8.0.2-beta.0 to 8.0.3-beta.0

13

dist/cjs/index.js

@@ -45,2 +45,6 @@ "use strict";

class MetaMask extends types_1.Connector {
/**
* @param connectEagerly - A flag indicating whether connection should be initiated when the class is constructed.
* @param options - Options to pass to `@metamask/detect-provider`
*/
constructor(actions, connectEagerly = true, options) {

@@ -107,2 +111,11 @@ super(actions);

}
/**
* Initiates a connection.
*
* @param desiredChainIdOrChainParameters - If defined, indicates the desired chain to connect to. If the user is
* already connected to this chain, no additional steps will be taken. Otherwise, the user will be prompted to switch
* to the chain, if one of two conditions is met: either they already have it added in their extension, or the
* argument is of type AddEthereumChainParameter, in which case the user will be prompted to add the chain with the
* specified parameters first, before being prompted to switch.
*/
activate(desiredChainIdOrChainParameters) {

@@ -109,0 +122,0 @@ return __awaiter(this, void 0, void 0, function* () {

@@ -22,5 +22,18 @@ import type detectEthereumProvider from '@metamask/detect-provider';

private eagerConnection?;
/**
* @param connectEagerly - A flag indicating whether connection should be initiated when the class is constructed.
* @param options - Options to pass to `@metamask/detect-provider`
*/
constructor(actions: Actions, connectEagerly?: boolean, options?: Parameters<typeof detectEthereumProvider>[0]);
private initialize;
/**
* Initiates a connection.
*
* @param desiredChainIdOrChainParameters - If defined, indicates the desired chain to connect to. If the user is
* already connected to this chain, no additional steps will be taken. Otherwise, the user will be prompted to switch
* to the chain, if one of two conditions is met: either they already have it added in their extension, or the
* argument is of type AddEthereumChainParameter, in which case the user will be prompted to add the chain with the
* specified parameters first, before being prompted to switch.
*/
activate(desiredChainIdOrChainParameters?: number | AddEthereumChainParameter): Promise<void>;
}

@@ -22,2 +22,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

export class MetaMask extends Connector {
/**
* @param connectEagerly - A flag indicating whether connection should be initiated when the class is constructed.
* @param options - Options to pass to `@metamask/detect-provider`
*/
constructor(actions, connectEagerly = true, options) {

@@ -85,2 +89,11 @@ super(actions);

}
/**
* Initiates a connection.
*
* @param desiredChainIdOrChainParameters - If defined, indicates the desired chain to connect to. If the user is
* already connected to this chain, no additional steps will be taken. Otherwise, the user will be prompted to switch
* to the chain, if one of two conditions is met: either they already have it added in their extension, or the
* argument is of type AddEthereumChainParameter, in which case the user will be prompted to add the chain with the
* specified parameters first, before being prompted to switch.
*/
activate(desiredChainIdOrChainParameters) {

@@ -87,0 +100,0 @@ return __awaiter(this, void 0, void 0, function* () {

8

package.json

@@ -13,3 +13,3 @@ {

},
"version": "8.0.2-beta.0",
"version": "8.0.3-beta.0",
"type": "module",

@@ -34,8 +34,8 @@ "files": [

"@metamask/detect-provider": "^1.2.0",
"@web3-react/types": "^8.0.1-beta.0"
"@web3-react/types": "^8.0.2-beta.0"
},
"devDependencies": {
"@web3-react/store": "^8.0.1-beta.0"
"@web3-react/store": "^8.0.2-beta.0"
},
"gitHead": "cbe15d77b9b9a237562733d7d217ec7ef0ef2e39"
"gitHead": "1bb87f2036a4f70b11aaf9b3c9c165f12811d8de"
}
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