Comparing version 4.12.2-dev.7a6e492.0 to 4.12.2-dev.973ee80.0
@@ -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 requestEIP6963Providers: () => Promise<EIP6963ProviderResponse>; | ||
export declare const onNewProviderDiscovered: (callback: (providerEvent: EIP6963AnnounceProviderEvent) => void) => void; |
@@ -15,3 +15,3 @@ import { Web3Context, Web3ContextInitOptions, Web3SubscriptionConstructor } from 'web3-core'; | ||
static utils: typeof utils; | ||
static requestEIP6963Providers: () => Promise<unknown>; | ||
static requestEIP6963Providers: () => Promise<import("./web3_eip6963.js").EIP6963ProviderResponse>; | ||
static onNewProviderDiscovered: (callback: (providerEvent: import("./web3_eip6963.js").EIP6963AnnounceProviderEvent<unknown>) => void) => void; | ||
@@ -18,0 +18,0 @@ static modules: { |
@@ -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 requestEIP6963Providers: () => Promise<EIP6963ProviderResponse>; | ||
export declare const onNewProviderDiscovered: (callback: (providerEvent: EIP6963AnnounceProviderEvent) => void) => void; | ||
//# sourceMappingURL=web3_eip6963.d.ts.map |
@@ -15,3 +15,3 @@ import { Web3Context, Web3ContextInitOptions, Web3SubscriptionConstructor } from 'web3-core'; | ||
static utils: typeof utils; | ||
static requestEIP6963Providers: () => Promise<unknown>; | ||
static requestEIP6963Providers: () => Promise<import("./web3_eip6963.js").EIP6963ProviderResponse>; | ||
static onNewProviderDiscovered: (callback: (providerEvent: import("./web3_eip6963.js").EIP6963AnnounceProviderEvent<unknown>) => void) => void; | ||
@@ -18,0 +18,0 @@ static modules: { |
{ | ||
"name": "web3", | ||
"version": "4.12.2-dev.7a6e492.0+7a6e492", | ||
"version": "4.12.2-dev.973ee80.0+973ee80", | ||
"description": "Ethereum JavaScript API", | ||
@@ -86,24 +86,24 @@ "main": "./lib/commonjs/index.js", | ||
"typescript": "^4.7.4", | ||
"web3-providers-ipc": "4.0.8-dev.7a6e492.0+7a6e492" | ||
"web3-providers-ipc": "4.0.8-dev.973ee80.0+973ee80" | ||
}, | ||
"dependencies": { | ||
"web3-core": "4.5.2-dev.7a6e492.0+7a6e492", | ||
"web3-errors": "1.3.1-dev.7a6e492.0+7a6e492", | ||
"web3-eth": "4.8.3-dev.7a6e492.0+7a6e492", | ||
"web3-eth-abi": "4.2.4-dev.7a6e492.0+7a6e492", | ||
"web3-eth-accounts": "4.2.2-dev.7a6e492.0+7a6e492", | ||
"web3-eth-contract": "4.7.1-dev.7a6e492.0+7a6e492", | ||
"web3-eth-ens": "4.4.1-dev.7a6e492.0+7a6e492", | ||
"web3-eth-iban": "4.0.8-dev.7a6e492.0+7a6e492", | ||
"web3-eth-personal": "4.0.9-dev.7a6e492.0+7a6e492", | ||
"web3-net": "4.1.1-dev.7a6e492.0+7a6e492", | ||
"web3-providers-http": "4.2.1-dev.7a6e492.0+7a6e492", | ||
"web3-providers-ws": "4.0.9-dev.7a6e492.0+7a6e492", | ||
"web3-rpc-methods": "1.3.1-dev.7a6e492.0+7a6e492", | ||
"web3-rpc-providers": "1.0.0-dev.7a6e492.0+7a6e492", | ||
"web3-types": "1.7.1-dev.7a6e492.0+7a6e492", | ||
"web3-utils": "4.3.2-dev.7a6e492.0+7a6e492", | ||
"web3-validator": "2.0.7-dev.7a6e492.0+7a6e492" | ||
"web3-core": "4.5.2-dev.973ee80.0+973ee80", | ||
"web3-errors": "1.3.1-dev.973ee80.0+973ee80", | ||
"web3-eth": "4.8.3-dev.973ee80.0+973ee80", | ||
"web3-eth-abi": "4.2.4-dev.973ee80.0+973ee80", | ||
"web3-eth-accounts": "4.2.2-dev.973ee80.0+973ee80", | ||
"web3-eth-contract": "4.7.1-dev.973ee80.0+973ee80", | ||
"web3-eth-ens": "4.4.1-dev.973ee80.0+973ee80", | ||
"web3-eth-iban": "4.0.8-dev.973ee80.0+973ee80", | ||
"web3-eth-personal": "4.0.9-dev.973ee80.0+973ee80", | ||
"web3-net": "4.1.1-dev.973ee80.0+973ee80", | ||
"web3-providers-http": "4.2.1-dev.973ee80.0+973ee80", | ||
"web3-providers-ws": "4.0.9-dev.973ee80.0+973ee80", | ||
"web3-rpc-methods": "1.3.1-dev.973ee80.0+973ee80", | ||
"web3-rpc-providers": "1.0.0-dev.973ee80.0+973ee80", | ||
"web3-types": "1.7.1-dev.973ee80.0+973ee80", | ||
"web3-utils": "4.3.2-dev.973ee80.0+973ee80", | ||
"web3-validator": "2.0.7-dev.973ee80.0+973ee80" | ||
}, | ||
"gitHead": "7a6e49200949325f69a05b3bf465ce64eb41bb8d" | ||
"gitHead": "973ee809d48a96441cbfd502f12915dcc0cb5dad" | ||
} |
@@ -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) => { | ||
@@ -60,0 +62,0 @@ if (typeof window === 'undefined') { |
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
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
3396200
6014