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

@web3-react/network

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@web3-react/network - npm Package Compare versions

Comparing version 8.0.15-alpha.0 to 8.0.16-alpha.0

5

dist/cjs/index.js

@@ -50,2 +50,3 @@ "use strict";

return __awaiter(this, void 0, void 0, function* () {
this.provider = undefined;
this.actions.startActivation();

@@ -72,4 +73,4 @@ // cache the desired chainId before async logic

if (chainId === this.chainId) {
const provider = this.providerCache[chainId];
return provider
this.provider = this.providerCache[chainId];
return this.provider
.request({ method: 'eth_chainId' })

@@ -76,0 +77,0 @@ .then((returnedChainId) => {

2

dist/index.d.ts

@@ -0,1 +1,2 @@

import type { Eip1193Bridge } from '@ethersproject/experimental';
import type { ConnectionInfo } from '@ethersproject/web';

@@ -6,2 +7,3 @@ import type { Actions } from '@web3-react/types';

export declare class Network extends Connector {
provider: Eip1193Bridge | undefined;
private urlMap;

@@ -8,0 +10,0 @@ private chainId;

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

return __awaiter(this, void 0, void 0, function* () {
this.provider = undefined;
this.actions.startActivation();

@@ -50,4 +51,4 @@ // cache the desired chainId before async logic

if (chainId === this.chainId) {
const provider = this.providerCache[chainId];
return provider
this.provider = this.providerCache[chainId];
return this.provider
.request({ method: 'eth_chainId' })

@@ -54,0 +55,0 @@ .then((returnedChainId) => {

@@ -6,3 +6,3 @@ {

},
"version": "8.0.15-alpha.0",
"version": "8.0.16-alpha.0",
"type": "module",

@@ -30,3 +30,6 @@ "files": [

},
"gitHead": "a2e294ebdec567b9fc2f81a7254d1dc1f20c8860"
"devDependencies": {
"@web3-react/store": "^8.0.15-alpha.0"
},
"gitHead": "318fce50fd26cd26fe2d99df1a95b24bdc029ec3"
}
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