Socket
Socket
Sign inDemoInstall

@wagmi/core

Package Overview
Dependencies
Maintainers
2
Versions
490
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wagmi/core - npm Package Compare versions

Comparing version 2.11.8 to 2.12.0

dist/esm/actions/watchAsset.js

8

dist/esm/connectors/mock.js

@@ -115,2 +115,10 @@ import { RpcRequestError, SwitchChainError, UserRejectedRequestError, custom, fromHex, getAddress, keccak256, numberToHex, stringToHex, } from 'viem';

}
if (method === 'wallet_watchAsset') {
if (features.watchAssetError) {
if (typeof features.watchAssetError === 'boolean')
throw new UserRejectedRequestError(new Error('Failed to switch chain.'));
throw features.watchAssetError;
}
return connected;
}
if (method === 'wallet_getCapabilities')

@@ -117,0 +125,0 @@ return {

1

dist/esm/exports/actions.js

@@ -72,2 +72,3 @@ ////////////////////////////////////////////////////////////////////////////////

export { watchAccount, } from '../actions/watchAccount.js';
export { watchAsset, } from '../actions/watchAsset.js';
export { watchBlocks, } from '../actions/watchBlocks.js';

@@ -74,0 +75,0 @@ export { watchBlockNumber, } from '../actions/watchBlockNumber.js';

@@ -72,2 +72,3 @@ ////////////////////////////////////////////////////////////////////////////////

export { watchAccount, } from '../actions/watchAccount.js';
export { watchAsset, } from '../actions/watchAsset.js';
export { watchBlocks, } from '../actions/watchBlocks.js';

@@ -74,0 +75,0 @@ export { watchBlockNumber, } from '../actions/watchBlockNumber.js';

@@ -47,4 +47,5 @@ ////////////////////////////////////////////////////////////////////////////////

export { waitForTransactionReceiptQueryKey, waitForTransactionReceiptQueryOptions, } from '../query/waitForTransactionReceipt.js';
export { watchAssetMutationOptions, } from '../query/watchAsset.js';
export { writeContractMutationOptions, } from '../query/writeContract.js';
export { hashFn, structuralSharing } from '../query/utils.js';
//# sourceMappingURL=query.js.map

2

dist/esm/version.js

@@ -1,2 +0,2 @@

export const version = '2.11.8';
export const version = '2.12.0';
//# sourceMappingURL=version.js.map

@@ -10,2 +10,3 @@ import { type Address, type EIP1193RequestFn, type WalletRpcSchema } from 'viem';

reconnect?: boolean | undefined;
watchAssetError?: boolean | Error | undefined;
} | undefined;

@@ -12,0 +13,0 @@ };

@@ -68,2 +68,3 @@ export { type CallErrorType, type CallParameters, type CallReturnType, call, } from '../actions/call.js';

export { type WatchAccountParameters, type WatchAccountReturnType, watchAccount, } from '../actions/watchAccount.js';
export { type WatchAssetParameters, type WatchAssetReturnType, watchAsset, } from '../actions/watchAsset.js';
export { type WatchBlocksParameters, type WatchBlocksReturnType, watchBlocks, } from '../actions/watchBlocks.js';

@@ -70,0 +71,0 @@ export { type WatchBlockNumberParameters, type WatchBlockNumberReturnType, watchBlockNumber, } from '../actions/watchBlockNumber.js';

@@ -68,2 +68,3 @@ export { type CallErrorType, type CallParameters, type CallReturnType, call, } from '../actions/call.js';

export { type WatchAccountParameters, type WatchAccountReturnType, watchAccount, } from '../actions/watchAccount.js';
export { type WatchAssetParameters, type WatchAssetErrorType, type WatchAssetReturnType, watchAsset, } from '../actions/watchAsset.js';
export { type WatchBlocksParameters, type WatchBlocksReturnType, watchBlocks, } from '../actions/watchBlocks.js';

@@ -70,0 +71,0 @@ export { type WatchBlockNumberParameters, type WatchBlockNumberReturnType, watchBlockNumber, } from '../actions/watchBlockNumber.js';

@@ -43,4 +43,5 @@ export { type CallData, type CallOptions, type CallQueryFnData, type CallQueryKey, callQueryKey, callQueryOptions, } from '../query/call.js';

export { type WaitForTransactionReceiptData, type WaitForTransactionReceiptOptions, type WaitForTransactionReceiptQueryFnData, type WaitForTransactionReceiptQueryKey, waitForTransactionReceiptQueryKey, waitForTransactionReceiptQueryOptions, } from '../query/waitForTransactionReceipt.js';
export { type WatchAssetData, type WatchAssetVariables, type WatchAssetMutate, type WatchAssetMutateAsync, watchAssetMutationOptions, } from '../query/watchAsset.js';
export { type WriteContractData, type WriteContractVariables, type WriteContractMutate, type WriteContractMutateAsync, writeContractMutationOptions, } from '../query/writeContract.js';
export { hashFn, structuralSharing } from '../query/utils.js';
//# sourceMappingURL=query.d.ts.map

@@ -1,2 +0,2 @@

export declare const version = "2.11.8";
export declare const version = "2.12.0";
//# sourceMappingURL=version.d.ts.map
{
"name": "@wagmi/core",
"description": "VanillaJS library for Ethereum",
"version": "2.11.8",
"version": "2.12.0",
"license": "MIT",

@@ -6,0 +6,0 @@ "repository": {

@@ -35,2 +35,3 @@ import {

reconnect?: boolean | undefined
watchAssetError?: boolean | Error | undefined
}

@@ -162,2 +163,13 @@ | undefined

if (method === 'wallet_watchAsset') {
if (features.watchAssetError) {
if (typeof features.watchAssetError === 'boolean')
throw new UserRejectedRequestError(
new Error('Failed to switch chain.'),
)
throw features.watchAssetError
}
return connected
}
if (method === 'wallet_getCapabilities')

@@ -164,0 +176,0 @@ return {

@@ -352,2 +352,8 @@ ////////////////////////////////////////////////////////////////////////////////

export {
type WatchAssetParameters,
type WatchAssetReturnType,
watchAsset,
} from '../actions/watchAsset.js'
export {
type WatchBlocksParameters,

@@ -354,0 +360,0 @@ type WatchBlocksReturnType,

@@ -354,2 +354,9 @@ ////////////////////////////////////////////////////////////////////////////////

export {
type WatchAssetParameters,
type WatchAssetErrorType,
type WatchAssetReturnType,
watchAsset,
} from '../actions/watchAsset.js'
export {
type WatchBlocksParameters,

@@ -356,0 +363,0 @@ type WatchBlocksReturnType,

@@ -376,2 +376,10 @@ ////////////////////////////////////////////////////////////////////////////////

export {
type WatchAssetData,
type WatchAssetVariables,
type WatchAssetMutate,
type WatchAssetMutateAsync,
watchAssetMutationOptions,
} from '../query/watchAsset.js'
export {
type WriteContractData,

@@ -378,0 +386,0 @@ type WriteContractVariables,

@@ -1,1 +0,1 @@

export const version = '2.11.8'
export const version = '2.12.0'

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

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