From c0d3275eb80f37bfadbe9b098ff5053a6bc68fef Mon Sep 17 00:00:00 2001 From: Wenderson Pires Date: Fri, 11 Oct 2024 13:33:11 -0300 Subject: [PATCH] update walletSelectorModules type to support the new wallet selector core function --- package.json | 2 +- src/managers/types.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 1bf275d..19e115d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@wpdas/naxios", - "version": "2.2.2", + "version": "2.2.3", "description": "Promise based NEAR Contract and NEAR Wallet client for browser", "main": "dist/cjs/index.js", "module": "dist/esm/index.js", diff --git a/src/managers/types.ts b/src/managers/types.ts index 22a3ca5..5f74d58 100644 --- a/src/managers/types.ts +++ b/src/managers/types.ts @@ -77,7 +77,10 @@ export type BuildViewInterfaceConfig = { export type NaxiosConstructor = Pick & { contractId: string network: Network - walletSelectorModules?: WalletModuleFactory[] + // INFO: included since version 2.2.3 to support the new WalletModuleFactory type + walletSelectorModules?: any[] + // INFO: removed since version 2.2.3 (version 2.2.1 and 2.2.1 was using a different version of this WalletModuleFactory) + // walletSelectorModules?: WalletModuleFactory[] // cache?: MemoryCache | StorageCache onInit?: () => void }