Comparing version 4.12.1 to 4.12.2-dev.27155ea.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 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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
3396194
6014
2
1
- Removed@adraffy/ens-normalize@1.11.0(transitive)
- Removed@ethereumjs/rlp@4.0.15.0.2(transitive)
- Removed@noble/curves@1.4.2(transitive)
- Removed@noble/hashes@1.4.0(transitive)
- Removed@scure/base@1.1.9(transitive)
- Removed@scure/bip32@1.4.0(transitive)
- Removed@scure/bip39@1.3.0(transitive)
- Removed@types/node@22.9.0(transitive)
- Removed@types/ws@8.5.3(transitive)
- Removedabitype@0.7.1(transitive)
- Removedavailable-typed-arrays@1.0.7(transitive)
- Removedcall-bind@1.0.7(transitive)
- Removedcrc-32@1.2.2(transitive)
- Removedcross-fetch@4.0.0(transitive)
- Removeddefine-data-property@1.1.4(transitive)
- Removedes-define-property@1.0.0(transitive)
- Removedes-errors@1.3.0(transitive)
- Removedethereum-cryptography@2.2.1(transitive)
- Removedeventemitter3@5.0.1(transitive)
- Removedfor-each@0.3.3(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedget-intrinsic@1.2.4(transitive)
- Removedgopd@1.0.1(transitive)
- Removedhas-property-descriptors@1.0.2(transitive)
- Removedhas-proto@1.0.3(transitive)
- Removedhas-symbols@1.0.3(transitive)
- Removedhas-tostringtag@1.0.2(transitive)
- Removedhasown@2.0.2(transitive)
- Removedinherits@2.0.4(transitive)
- Removedis-arguments@1.1.1(transitive)
- Removedis-callable@1.2.7(transitive)
- Removedis-generator-function@1.0.10(transitive)
- Removedis-typed-array@1.1.13(transitive)
- Removedisomorphic-ws@5.0.0(transitive)
- Removednode-fetch@2.7.0(transitive)
- Removedpossible-typed-array-names@1.0.0(transitive)
- Removedset-function-length@1.2.2(transitive)
- Removedsetimmediate@1.0.5(transitive)
- Removedtr46@0.0.3(transitive)
- Removedtypescript@5.6.3(transitive)
- Removedundici-types@6.19.8(transitive)
- Removedutil@0.12.5(transitive)
- Removedweb3-core@4.7.0(transitive)
- Removedweb3-errors@1.3.0(transitive)
- Removedweb3-eth@4.11.0(transitive)
- Removedweb3-eth-abi@4.4.0(transitive)
- Removedweb3-eth-accounts@4.3.0(transitive)
- Removedweb3-eth-contract@4.7.1(transitive)
- Removedweb3-eth-ens@4.4.0(transitive)
- Removedweb3-eth-iban@4.0.7(transitive)
- Removedweb3-eth-personal@4.1.0(transitive)
- Removedweb3-net@4.1.0(transitive)
- Removedweb3-providers-http@4.2.0(transitive)
- Removedweb3-providers-ipc@4.0.7(transitive)
- Removedweb3-providers-ws@4.0.8(transitive)
- Removedweb3-rpc-methods@1.3.0(transitive)
- Removedweb3-rpc-providers@1.0.0-rc.3(transitive)
- Removedweb3-types@1.9.0(transitive)
- Removedweb3-utils@4.3.2(transitive)
- Removedweb3-validator@2.0.6(transitive)
- Removedwebidl-conversions@3.0.1(transitive)
- Removedwhatwg-url@5.0.0(transitive)
- Removedwhich-typed-array@1.1.15(transitive)
- Removedws@8.18.0(transitive)
- Removedzod@3.23.8(transitive)