@metamask/eth-query
Advanced tools
Comparing version 3.0.1 to 4.0.0
@@ -13,2 +13,12 @@ declare module '@metamask/eth-query' { | ||
type Json = | ||
| null | ||
| boolean | ||
| number | ||
| string | ||
| Json[] | ||
| { [prop: string]: Json }; | ||
type JsonRpcParams = Json[] | Record<string, Json>; | ||
type ProviderSendAsyncResponse<Result> = { | ||
@@ -25,3 +35,3 @@ error?: { message: string }; | ||
type Provider = { | ||
sendAsync<Params, Result>( | ||
sendAsync<Params extends JsonRpcParams, Result>( | ||
payload: SendAsyncPayload<Params>, | ||
@@ -32,3 +42,3 @@ callback: ProviderSendAsyncCallback<Result>, | ||
type SendAsyncPayload<Params> = { | ||
type SendAsyncPayload<Params extends JsonRpcParams> = { | ||
id: number; | ||
@@ -49,3 +59,3 @@ jsonrpc: '2.0'; | ||
sendAsync<Params, Result>( | ||
sendAsync<Params extends JsonRpcParams, Result>( | ||
opts: Partial<SendAsyncPayload<Params>>, | ||
@@ -52,0 +62,0 @@ callback: SendAsyncCallback<Result>, |
{ | ||
"name": "@metamask/eth-query", | ||
"version": "3.0.1", | ||
"version": "4.0.0", | ||
"description": "like web3 but for minimalists", | ||
@@ -68,2 +68,2 @@ "homepage": "https://github.com/MetaMask/eth-query#readme", | ||
} | ||
} | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a 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
242
10771
4
1