Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@toruslabs/base-controllers

Package Overview
Dependencies
Maintainers
5
Versions
150
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@toruslabs/base-controllers - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

dist/types/Popup/PopupStoreChannel.d.ts

11

dist/types/enums.d.ts

@@ -63,2 +63,13 @@ export declare const FEATURES_PROVIDER_CHANGE_WINDOW: {

TRANSACTION_CHANNEL: string;
WALLET_LOGOUT_CHANNEL: string;
WALLET_SELECTED_ADDRESS_CHANNEL: string;
WALLET_NETWORK_CHANGE_CHANNEL: string;
WALLET_ACCOUNT_IMPORT_CHANNEL: string;
};
export declare const BROADCAST_CHANNELS_MSGS: {
LOGOUT: string;
ACCOUNT_IMPORTED: string;
SELECTED_ADDRESS_CHANGE: string;
NETWORK_CHANGE: string;
};
export declare type BROADCAST_CHANNELS_MSGS_TYPE = typeof BROADCAST_CHANNELS_MSGS[keyof typeof BROADCAST_CHANNELS_MSGS];

1

dist/types/Popup/index.d.ts
export { default as BroadcastChannelHandler } from "./BroadcastChannelHandler";
export * from "./interfaces";
export { default as PopupHandler } from "./PopupHandler";
export { default as PopupStoreChannel } from "./PopupStoreChannel";
export { default as PopupWithBcHandler } from "./PopupWithBcHandler";
export { default as RedirectHandler } from "./RedirectHandler";
export { default as StreamWindow } from "./StreamWindow";
import { JRPCEngine, SafeEventEmitter } from "@toruslabs/openlogin-jrpc";
import { BROADCAST_CHANNELS_MSGS_TYPE } from "../enums";
import { BaseConfig, BaseState, IWindow } from "../interfaces";
import { ProviderConfig } from "../Network/INetworkController";
export interface StreamWindowConfig extends BaseConfig {

@@ -55,1 +57,19 @@ /**

export declare type SuccessExtraFn<T> = (data: T) => Promise<void>;
export interface BasePopupChannelData {
type: BROADCAST_CHANNELS_MSGS_TYPE;
}
export interface AccountImportedChannelData extends BasePopupChannelData {
privKey: string;
}
export interface NetworkChangeChannelData extends BasePopupChannelData {
network: ProviderConfig;
}
export interface SelectedAddresssChangeChannelData extends BasePopupChannelData {
selectedAddress: string;
}
export interface PopupStoreChannelHandlers {
handleLogout(): void;
handleAccountImport(privKey: string): void;
handleNetworkChange(network: ProviderConfig): void;
handleSelectedAddressChange(address: string): void;
}

4

package.json
{
"name": "@toruslabs/base-controllers",
"version": "1.1.2",
"version": "1.1.3",
"homepage": "https://github.com/torusresearch/controllers#readme",

@@ -62,3 +62,3 @@ "license": "ISC",

},
"gitHead": "791558f3b1fea0aa1b2ddd2cc6537e0581514025"
"gitHead": "e458e4abd7a2a75ee2ac80ae5228109552173784"
}

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

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

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

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