diff --git a/packages/core/package.json b/packages/core/package.json index d0c679045..c77a7922e 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -20,7 +20,6 @@ }, "homepage": "https://github.com/near/wallet-selector/tree/main/packages/core", "peerDependencies": { - "near-api-js": "4.0.3", - "@near-js/providers": "latest" + "near-api-js": "4.0.3" } -} \ No newline at end of file +} diff --git a/packages/core/src/lib/wallet-selector.spec.ts b/packages/core/src/lib/wallet-selector.spec.ts index 4edca0c64..bfdcc140d 100644 --- a/packages/core/src/lib/wallet-selector.spec.ts +++ b/packages/core/src/lib/wallet-selector.spec.ts @@ -1,7 +1,9 @@ import { setupWalletSelector } from "./wallet-selector"; -import { FailoverRpcProvider } from "@near-js/providers"; import { getNetworkPreset } from "./options"; -import { JsonRpcProvider } from "near-api-js/lib/providers"; +import { + JsonRpcProvider, + FailoverRpcProvider, +} from "near-api-js/lib/providers"; import type { Network } from "./options.types"; import type { Store } from "./store.types"; import type { WalletModuleFactory } from "./wallet"; @@ -52,8 +54,8 @@ jest.mock("./store", () => { }; }); -jest.mock("@near-js/providers", () => { - const originalModule = jest.requireActual("@near-js/providers"); +jest.mock("near-api-js/lib/providers", () => { + const originalModule = jest.requireActual("near-api-js/lib/providers"); return { ...originalModule, FailoverRpcProvider: jest.fn(),