Socket
Socket
Sign inDemoInstall

@onekeyfe/cross-inpage-provider-types

Package Overview
Dependencies
Maintainers
2
Versions
129
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@onekeyfe/cross-inpage-provider-types - npm Package Compare versions

Comparing version 2.0.0-alpha.10 to 2.0.0-alpha.11

./dist/cjs/index.js

28

dist/index.d.ts

@@ -32,3 +32,3 @@ declare global {

}
export declare type ConsoleLike = Pick<Console, 'log' | 'warn' | 'error' | 'debug' | 'info' | 'trace'>;
export type ConsoleLike = Pick<Console, 'log' | 'warn' | 'error' | 'debug' | 'info' | 'trace'>;
export declare enum IJsBridgeMessageTypes {

@@ -38,3 +38,3 @@ RESPONSE = "RESPONSE",

}
export declare type IJsBridgeMessageTypesStrings = keyof typeof IJsBridgeMessageTypes;
export type IJsBridgeMessageTypesStrings = keyof typeof IJsBridgeMessageTypes;
export declare enum IInjectedProviderNames {

@@ -63,4 +63,4 @@ btc = "btc",

}
export declare type IInjectedProviderNamesStrings = keyof typeof IInjectedProviderNames;
export declare type IJsonRpcRequest = {
export type IInjectedProviderNamesStrings = keyof typeof IInjectedProviderNames;
export type IJsonRpcRequest = {
id?: number | string;

@@ -71,3 +71,3 @@ jsonrpc?: '2.0' | '1.0';

};
export declare type IJsonRpcResponse<T> = {
export type IJsonRpcResponse<T> = {
id?: number | string;

@@ -77,3 +77,3 @@ jsonrpc: string;

};
export declare type IJsBridgeCallback = {
export type IJsBridgeCallback = {
id: number;

@@ -84,3 +84,3 @@ resolve: (value: unknown) => void;

};
export declare type IJsBridgeMessagePayload = {
export type IJsBridgeMessagePayload = {
id?: number;

@@ -101,3 +101,3 @@ data?: unknown | IJsonRpcRequest;

};
export declare type IDebugLogger = {
export type IDebugLogger = {
_externalLogger: ConsoleLike;

@@ -117,6 +117,6 @@ _debug: {

};
export declare type IOptionsWithDebugLogger = {
export type IOptionsWithDebugLogger = {
debugLogger?: IDebugLogger;
};
export declare type IJsBridgeConfig = {
export type IJsBridgeConfig = {
sendAsString?: boolean;

@@ -127,4 +127,4 @@ timeout?: number;

} & IOptionsWithDebugLogger;
export declare type IJsBridgeReceiveHandler = (payload: IJsBridgeMessagePayload, bridge?: any) => any | Promise<any>;
export declare type IElectronWebView = {
export type IJsBridgeReceiveHandler = (payload: IJsBridgeMessagePayload, bridge?: any) => any | Promise<any>;
export type IElectronWebView = {
reload: () => void;

@@ -142,3 +142,3 @@ loadURL: (...args: any) => void;

};
export declare type IPostMessageEventData = {
export type IPostMessageEventData = {
channel: string;

@@ -148,3 +148,3 @@ direction: string;

};
export declare type InpageProviderWebViewProps = {
export type InpageProviderWebViewProps = {
src: string;

@@ -151,0 +151,0 @@ onSrcChange?: (src: string) => void;

{
"name": "@onekeyfe/cross-inpage-provider-types",
"version": "2.0.0-alpha.10",
"version": "2.0.0-alpha.11",
"keywords": [

@@ -30,3 +30,3 @@ "cross-inpage-provider"

},
"gitHead": "f760989b7ea7bfca832ba396544808fb99081007"
"gitHead": "db33d14c2a164072b2f5dd4cf94e18886539ab5b"
}
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