Socket
Socket
Sign inDemoInstall

@web3-react/types

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@web3-react/types - npm Package Compare versions

Comparing version 8.0.17-beta.0 to 8.0.18-beta.0

18

dist/index.d.ts

@@ -8,3 +8,2 @@ /// <reference types="node" />

activating: boolean;
error: Error | undefined;
}

@@ -25,3 +24,3 @@ export declare type Web3ReactStore = StoreApi<Web3ReactState>;

update: (stateUpdate: Web3ReactStateUpdate) => void;
reportError: (error: Error | undefined) => void;
resetState: () => void;
}

@@ -69,3 +68,3 @@ export interface RequestArguments {

*/
provider: Provider | undefined;
provider?: Provider;
/**

@@ -76,9 +75,18 @@ * An optional property meant to allow ethers providers to be used directly rather than via the experimental

*/
customProvider: unknown | undefined;
customProvider?: unknown;
protected readonly actions: Actions;
/**
* An optional handler which will report errors thrown from event listeners. Any errors caused from
* user-defined behavior will be thrown inline through a Promise.
*/
protected onError?: (error: Error) => void;
/**
* @param actions - Methods bound to a zustand store that tracks the state of the connector.
* @param onError - An optional handler which will report errors thrown from event listeners.
* Actions are used by the connector to report changes in connection status.
*/
constructor(actions: Actions);
constructor(actions: Actions, onError?: (error: Error) => void);
/**
* A function to determine whether or not this code is executing on a server.
*/
protected get serverSide(): boolean;

@@ -85,0 +93,0 @@ /**

@@ -7,7 +7,12 @@ "use strict";

* @param actions - Methods bound to a zustand store that tracks the state of the connector.
* @param onError - An optional handler which will report errors thrown from event listeners.
* Actions are used by the connector to report changes in connection status.
*/
constructor(actions) {
constructor(actions, onError) {
this.actions = actions;
this.onError = onError;
}
/**
* A function to determine whether or not this code is executing on a server.
*/
get serverSide() {

@@ -21,5 +26,5 @@ return typeof window === 'undefined';

deactivate(...args) {
this.actions.reportError(undefined);
this.actions.resetState();
}
}
exports.Connector = Connector;

@@ -12,3 +12,3 @@ {

},
"version": "8.0.17-beta.0",
"version": "8.0.18-beta.0",
"files": [

@@ -29,3 +29,3 @@ "dist/*"

},
"gitHead": "f8e5531f8facb53d7cb35165d1878db284c24736"
"gitHead": "b497295f7f4aeecf86845551e8fd0ee53d27d202"
}
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