New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@near-wallet-selector/core

Package Overview
Dependencies
Maintainers
6
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@near-wallet-selector/core - npm Package Compare versions

Comparing version 4.0.0-alpha.1 to 4.0.0

2

lib/wallet-selector.types.d.ts

@@ -20,7 +20,7 @@ import type { Wallet, WalletModuleFactory } from "./wallet/wallet.types";

options: Options;
signedIn: boolean;
store: WalletSelectorStore;
wallet<Variation extends Wallet = Wallet>(id?: string): Promise<Variation>;
isSignedIn(): boolean;
on<EventName extends keyof WalletSelectorEvents>(eventName: EventName, callback: (event: WalletSelectorEvents[EventName]) => void): Subscription;
off<EventName extends keyof WalletSelectorEvents>(eventName: EventName, callback: (event: WalletSelectorEvents[EventName]) => void): void;
}

@@ -85,2 +85,5 @@ import { providers } from "near-api-js";

export declare type WalletType = Wallet["type"];
export interface WalletModuleOptions {
options: Options;
}
export interface WalletBehaviourOptions<Variation extends Wallet> {

@@ -104,3 +107,3 @@ id: Variation["id"];

};
export declare type WalletModuleFactory<Variation extends Wallet = Wallet> = () => Promise<WalletModule<Variation> | null>;
export declare type WalletModuleFactory<Variation extends Wallet = Wallet> = (options: WalletModuleOptions) => Promise<WalletModule<Variation> | null>;
export {};
{
"name": "@near-wallet-selector/core",
"version": "4.0.0-alpha.1",
"version": "4.0.0",
"main": "./index.umd.js",

@@ -5,0 +5,0 @@ "module": "./index.esm.js",

@@ -40,5 +40,2 @@ # @near-wallet-selector/core

- `modules` (`Array<WalletModuleFactory>`): List of wallets to support in your dApp.
- `ui` (`ModalOptions?`)
- `theme` (`Theme?`): Specify light/dark theme for UI. Defaults to the browser configuration when omitted or set to 'auto'. This can be either `light`, `dark` or `auto`.
- `description` (`string?`): Define a custom description in the UI.

@@ -45,0 +42,0 @@ ## API Reference

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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