@web3-react/metamask
Advanced tools
Comparing version 8.0.2-beta.0 to 8.0.3-beta.0
@@ -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* () { |
@@ -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" | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
53332
355
0