@toruslabs/base-controllers
Advanced tools
Comparing version 1.1.6 to 1.1.7
@@ -39,10 +39,2 @@ import { SafeEventEmitter } from "@toruslabs/openlogin-jrpc"; | ||
/** | ||
* Enables the controller. This sets each config option as a member | ||
* variable on this instance and triggers any defined setters. This | ||
* also sets initial state and triggers any listeners. | ||
* | ||
* @returns - This controller instance | ||
*/ | ||
protected initialize(): this; | ||
/** | ||
* Retrieves current controller configuration options | ||
@@ -74,3 +66,11 @@ * | ||
update(state: Partial<S>, overwrite?: boolean): void; | ||
/** | ||
* Enables the controller. This sets each config option as a member | ||
* variable on this instance and triggers any defined setters. This | ||
* also sets initial state and triggers any listeners. | ||
* | ||
* @returns - This controller instance | ||
*/ | ||
protected initialize(): this; | ||
} | ||
export default BaseController; |
@@ -24,2 +24,3 @@ import BaseController from "../BaseController"; | ||
protected _end(): void; | ||
protected _newPotentialLatest(newBlock: T): void; | ||
private _setupInternalEvents; | ||
@@ -31,3 +32,2 @@ private _onNewListener; | ||
private _getBlockTrackerEventCount; | ||
protected _newPotentialLatest(newBlock: T): void; | ||
private _setCurrentBlock; | ||
@@ -34,0 +34,0 @@ private _setupBlockResetTimeout; |
@@ -11,3 +11,2 @@ import BaseController from "../BaseController"; | ||
}); | ||
private setCommunicationProvider; | ||
/** | ||
@@ -19,2 +18,3 @@ * Called by orchestrator once while initializing the class | ||
initializeProvider(handlers: ICommunicationProviderHandlers): void; | ||
private setCommunicationProvider; | ||
} |
import { BroadcastChannel } from "broadcast-channel"; | ||
import { PopupData } from "./interfaces"; | ||
export default class BroadcastChannelHandler { | ||
bc: BroadcastChannel<PopupData<unknown>>; | ||
private channel; | ||
bc: BroadcastChannel<PopupData<unknown>>; | ||
constructor(channelPrefix: string); | ||
getMessageFromChannel<T>(): Promise<T>; | ||
} |
@@ -13,6 +13,6 @@ import BaseController from "../BaseController"; | ||
}); | ||
private _setupTimer; | ||
open(): Promise<void>; | ||
close(): void; | ||
private _setupTimer; | ||
} | ||
export default PopupHandler; |
@@ -31,8 +31,4 @@ import BaseController from "../BaseController"; | ||
}); | ||
private headers; | ||
setIframeOrigin(origin: string): void; | ||
protected updateState(preferences?: Partial<P>, address?: string): P; | ||
getAddressState(address?: string): P | undefined; | ||
protected init(address: string, userInfo: UserInfo, jwtToken?: string): Promise<void>; | ||
abstract sync(address: string): Promise<boolean>; | ||
/** | ||
@@ -87,2 +83,6 @@ * Sets selected address | ||
}): Promise<void>; | ||
protected init(address: string, userInfo: UserInfo, jwtToken?: string): Promise<void>; | ||
protected updateState(preferences?: Partial<P>, address?: string): P; | ||
private headers; | ||
abstract sync(address: string): Promise<boolean>; | ||
} |
@@ -35,3 +35,2 @@ import BaseController from "../BaseController"; | ||
clearUnapprovedTxs(): void; | ||
protected _setTransactionStatus(txId: string, status: TransactionStatus): void; | ||
/** | ||
@@ -47,2 +46,3 @@ * will append new transactions to old txns. | ||
_deleteTransactions(targetTransactionIds: string[]): void; | ||
protected _setTransactionStatus(txId: string, status: TransactionStatus): void; | ||
} |
{ | ||
"name": "@toruslabs/base-controllers", | ||
"version": "1.1.6", | ||
"version": "1.1.7", | ||
"homepage": "https://github.com/torusresearch/controllers#readme", | ||
@@ -23,7 +23,7 @@ "license": "ISC", | ||
"@toruslabs/http-helpers": "^1.4.0", | ||
"@toruslabs/openlogin-jrpc": "^1.0.0", | ||
"@toruslabs/openlogin-jrpc": "^1.0.2", | ||
"async-mutex": "^0.3.2", | ||
"bignumber.js": "^9.0.1", | ||
"bowser": "^2.11.0", | ||
"broadcast-channel": "^4.2.0", | ||
"broadcast-channel": "^4.5.0", | ||
"eth-rpc-errors": "^4.0.3", | ||
@@ -35,5 +35,5 @@ "ethereumjs-util": "^7.1.3", | ||
"devDependencies": { | ||
"@types/lodash": "^4.14.175", | ||
"@types/lodash": "^4.14.176", | ||
"@types/readable-stream": "^2.3.11", | ||
"lint-staged": "^11.2.3" | ||
"lint-staged": "^11.2.6" | ||
}, | ||
@@ -64,3 +64,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "b32335b678704bf7abb075fa754dc411181731b2" | ||
"gitHead": "39c46eb085c3fa77b5beb44a7545ca9a5f37b117" | ||
} |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3345306
Updatedbroadcast-channel@^4.5.0