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

web3

Package Overview
Dependencies
Maintainers
4
Versions
548
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web3 - npm Package Compare versions

Comparing version 4.12.1 to 4.12.2-dev.27155ea.0

9

lib/commonjs/web3_eip6963.d.ts

@@ -16,2 +16,3 @@ import { Web3APISpec, EIP1193Provider } from "web3-types";

}
export declare type EIP6963ProviderResponse = Map<string, EIP6963ProviderDetail>;
export interface EIP6963AnnounceProviderEvent<API = Web3APISpec> extends CustomEvent {

@@ -24,9 +25,9 @@ type: Eip6963EventName.eip6963announceProvider;

}
export declare const eip6963ProvidersMap: Map<string, EIP6963ProviderDetail>;
export declare const eip6963ProvidersMap: EIP6963ProviderResponse;
export declare const web3ProvidersMapUpdated = "web3:providersMapUpdated";
export interface EIP6963ProvidersMapUpdateEvent extends CustomEvent {
type: string;
detail: Map<string, EIP6963ProviderDetail>;
detail: EIP6963ProviderResponse;
}
export declare const requestEIP6963Providers: () => Promise<unknown>;
export declare const onNewProviderDiscovered: (callback: (providerEvent: EIP6963AnnounceProviderEvent) => void) => void;
export declare const requestEIP6963Providers: () => Promise<EIP6963ProviderResponse>;
export declare const onNewProviderDiscovered: (callback: (providerEvent: EIP6963ProvidersMapUpdateEvent) => void) => void;

@@ -15,4 +15,4 @@ import { Web3Context, Web3ContextInitOptions, Web3SubscriptionConstructor } from 'web3-core';

static utils: typeof utils;
static requestEIP6963Providers: () => Promise<unknown>;
static onNewProviderDiscovered: (callback: (providerEvent: import("./web3_eip6963.js").EIP6963AnnounceProviderEvent<unknown>) => void) => void;
static requestEIP6963Providers: () => Promise<import("./web3_eip6963.js").EIP6963ProviderResponse>;
static onNewProviderDiscovered: (callback: (providerEvent: import("./web3_eip6963.js").EIP6963ProvidersMapUpdateEvent) => void) => void;
static modules: {

@@ -19,0 +19,0 @@ Web3Eth: typeof Web3Eth;

@@ -16,2 +16,3 @@ import { Web3APISpec, EIP1193Provider } from "web3-types";

}
export declare type EIP6963ProviderResponse = Map<string, EIP6963ProviderDetail>;
export interface EIP6963AnnounceProviderEvent<API = Web3APISpec> extends CustomEvent {

@@ -24,10 +25,10 @@ type: Eip6963EventName.eip6963announceProvider;

}
export declare const eip6963ProvidersMap: Map<string, EIP6963ProviderDetail>;
export declare const eip6963ProvidersMap: EIP6963ProviderResponse;
export declare const web3ProvidersMapUpdated = "web3:providersMapUpdated";
export interface EIP6963ProvidersMapUpdateEvent extends CustomEvent {
type: string;
detail: Map<string, EIP6963ProviderDetail>;
detail: EIP6963ProviderResponse;
}
export declare const requestEIP6963Providers: () => Promise<unknown>;
export declare const onNewProviderDiscovered: (callback: (providerEvent: EIP6963AnnounceProviderEvent) => void) => void;
export declare const requestEIP6963Providers: () => Promise<EIP6963ProviderResponse>;
export declare const onNewProviderDiscovered: (callback: (providerEvent: EIP6963ProvidersMapUpdateEvent) => void) => void;
//# sourceMappingURL=web3_eip6963.d.ts.map

@@ -15,4 +15,4 @@ import { Web3Context, Web3ContextInitOptions, Web3SubscriptionConstructor } from 'web3-core';

static utils: typeof utils;
static requestEIP6963Providers: () => Promise<unknown>;
static onNewProviderDiscovered: (callback: (providerEvent: import("./web3_eip6963.js").EIP6963AnnounceProviderEvent<unknown>) => void) => void;
static requestEIP6963Providers: () => Promise<import("./web3_eip6963.js").EIP6963ProviderResponse>;
static onNewProviderDiscovered: (callback: (providerEvent: import("./web3_eip6963.js").EIP6963ProvidersMapUpdateEvent) => void) => void;
static modules: {

@@ -19,0 +19,0 @@ Web3Eth: typeof Web3Eth;

{
"name": "web3",
"version": "4.12.1",
"version": "4.12.2-dev.27155ea.0+27155ea",
"description": "Ethereum JavaScript API",

@@ -86,24 +86,24 @@ "main": "./lib/commonjs/index.js",

"typescript": "^4.7.4",
"web3-providers-ipc": "^4.0.7"
"web3-providers-ipc": "4.0.8-dev.27155ea.0+27155ea"
},
"dependencies": {
"web3-core": "^4.5.1",
"web3-errors": "^1.3.0",
"web3-eth": "^4.8.2",
"web3-eth-abi": "^4.2.3",
"web3-eth-accounts": "^4.2.1",
"web3-eth-contract": "^4.7.0",
"web3-eth-ens": "^4.4.0",
"web3-eth-iban": "^4.0.7",
"web3-eth-personal": "^4.0.8",
"web3-net": "^4.1.0",
"web3-providers-http": "^4.2.0",
"web3-providers-ws": "^4.0.8",
"web3-rpc-methods": "^1.3.0",
"web3-rpc-providers": "^1.0.0-rc.2",
"web3-types": "^1.7.0",
"web3-utils": "^4.3.1",
"web3-validator": "^2.0.6"
"web3-core": "4.5.2-dev.27155ea.0+27155ea",
"web3-errors": "1.3.1-dev.27155ea.0+27155ea",
"web3-eth": "4.8.3-dev.27155ea.0+27155ea",
"web3-eth-abi": "4.2.4-dev.27155ea.0+27155ea",
"web3-eth-accounts": "4.2.2-dev.27155ea.0+27155ea",
"web3-eth-contract": "4.7.1-dev.27155ea.0+27155ea",
"web3-eth-ens": "4.4.1-dev.27155ea.0+27155ea",
"web3-eth-iban": "4.0.8-dev.27155ea.0+27155ea",
"web3-eth-personal": "4.0.9-dev.27155ea.0+27155ea",
"web3-net": "4.1.1-dev.27155ea.0+27155ea",
"web3-providers-http": "4.2.1-dev.27155ea.0+27155ea",
"web3-providers-ws": "4.0.9-dev.27155ea.0+27155ea",
"web3-rpc-methods": "1.3.1-dev.27155ea.0+27155ea",
"web3-rpc-providers": "1.0.0-dev.27155ea.0+27155ea",
"web3-types": "1.7.1-dev.27155ea.0+27155ea",
"web3-utils": "4.3.2-dev.27155ea.0+27155ea",
"web3-validator": "2.0.7-dev.27155ea.0+27155ea"
},
"gitHead": "4de0bd185a6b7cb1d432a1f02501dc369d22590b"
"gitHead": "27155eaf29f8b7a3b36e7958188076aa420c4c46"
}

@@ -38,2 +38,4 @@ /*

export type EIP6963ProviderResponse = Map<string, EIP6963ProviderDetail>;
export interface EIP6963AnnounceProviderEvent<API = Web3APISpec> extends CustomEvent {

@@ -48,3 +50,3 @@ type: Eip6963EventName.eip6963announceProvider;

export const eip6963ProvidersMap: Map<string, EIP6963ProviderDetail> = new Map();
export const eip6963ProvidersMap: EIP6963ProviderResponse = new Map();

@@ -54,6 +56,6 @@ export const web3ProvidersMapUpdated = "web3:providersMapUpdated";

type: string;
detail: Map<string, EIP6963ProviderDetail>;
detail: EIP6963ProviderResponse;
}
export const requestEIP6963Providers = async () =>
export const requestEIP6963Providers = async (): Promise<EIP6963ProviderResponse> =>
new Promise((resolve, reject) => {

@@ -88,3 +90,3 @@ if (typeof window === 'undefined') {

export const onNewProviderDiscovered = (callback: (providerEvent: EIP6963AnnounceProviderEvent) => void) => {
export const onNewProviderDiscovered = (callback: (providerEvent: EIP6963ProvidersMapUpdateEvent) => void) => {
if (typeof window === 'undefined') {

@@ -91,0 +93,0 @@ throw new Error("window object not available, EIP-6963 is intended to be used within a browser");

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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