@onekeyfe/cross-inpage-provider-core
Advanced tools
Comparing version 2.0.0-alpha.10 to 2.0.0-alpha.11
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k; |
@@ -111,5 +111,4 @@ "use strict"; | ||
this.on(BRIDGE_EVENTS.error, (error) => { | ||
var _a; | ||
(0, loggers_1.consoleErrorInDev)('JsBridge ERROR: ', error, { | ||
code: (_a = error) === null || _a === void 0 ? void 0 : _a.code, | ||
code: error === null || error === void 0 ? void 0 : error.code, | ||
}); | ||
@@ -116,0 +115,0 @@ }); |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k; |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const version = '2.0.0-alpha.10'; | ||
const version = '2.0.0-alpha.11'; | ||
const versionBuild = '2020-0101-1'; | ||
@@ -5,0 +5,0 @@ exports.default = { |
@@ -104,5 +104,4 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
this.on(BRIDGE_EVENTS.error, (error) => { | ||
var _a; | ||
consoleErrorInDev('JsBridge ERROR: ', error, { | ||
code: (_a = error) === null || _a === void 0 ? void 0 : _a.code, | ||
code: error === null || error === void 0 ? void 0 : error.code, | ||
}); | ||
@@ -109,0 +108,0 @@ }); |
import { IJsBridgeConfig, IJsBridgeMessagePayload, IPostMessageEventData, IOptionsWithDebugLogger } from '@onekeyfe/cross-inpage-provider-types'; | ||
import { JsBridgeBase } from './JsBridgeBase'; | ||
export declare type ISetupPostMessageListenerOptions = IOptionsWithDebugLogger & { | ||
export type ISetupPostMessageListenerOptions = IOptionsWithDebugLogger & { | ||
bridge?: JsBridgeIframe; | ||
origin?: string; | ||
}; | ||
export declare type IPostMessageEventDataIframe = IPostMessageEventData & { | ||
export type IPostMessageEventDataIframe = IPostMessageEventData & { | ||
frameName: string; | ||
@@ -14,3 +14,3 @@ }; | ||
declare function setPostMessageListenerFlag(value: boolean): void; | ||
export declare type IJsBridgeIframeConfig = IJsBridgeConfig & { | ||
export type IJsBridgeIframeConfig = IJsBridgeConfig & { | ||
remoteFrame: Window; | ||
@@ -17,0 +17,0 @@ selfFrameName: string; |
import { CrossEventEmitter } from './CrossEventEmitter'; | ||
import { JsBridgeBase } from './JsBridgeBase'; | ||
import { IInjectedProviderNamesStrings, IJsonRpcResponse, ConsoleLike, IDebugLogger } from '@onekeyfe/cross-inpage-provider-types'; | ||
export declare type IBridgeRequestCallback = (error: Error | null, result?: IJsonRpcResponse<unknown>) => void; | ||
export declare type IInpageProviderConfig = { | ||
export type IBridgeRequestCallback = (error: Error | null, result?: IJsonRpcResponse<unknown>) => void; | ||
export type IInpageProviderConfig = { | ||
bridge?: JsBridgeBase; | ||
@@ -10,7 +10,7 @@ logger?: ConsoleLike | null; | ||
}; | ||
export declare type DebugLoggerConfig = { | ||
export type DebugLoggerConfig = { | ||
config: string; | ||
enabledKeys: string[]; | ||
}; | ||
export declare type ConnectWalletInfo = { | ||
export type ConnectWalletInfo = { | ||
debugLoggerConfig?: DebugLoggerConfig; | ||
@@ -23,3 +23,3 @@ walletInfo?: { | ||
}; | ||
export declare type IProviderBaseConnectionStatus = 'connected' | 'disconnected'; | ||
export type IProviderBaseConnectionStatus = 'connected' | 'disconnected'; | ||
declare abstract class ProviderBase extends CrossEventEmitter { | ||
@@ -26,0 +26,0 @@ constructor(config: IInpageProviderConfig); |
@@ -1,2 +0,2 @@ | ||
const version = '2.0.0-alpha.10'; | ||
const version = '2.0.0-alpha.11'; | ||
const versionBuild = '2020-0101-1'; | ||
@@ -3,0 +3,0 @@ export default { |
{ | ||
"name": "@onekeyfe/cross-inpage-provider-core", | ||
"version": "2.0.0-alpha.10", | ||
"version": "2.0.0-alpha.11", | ||
"keywords": [ | ||
@@ -32,5 +32,5 @@ "cross-inpage-provider" | ||
"dependencies": { | ||
"@onekeyfe/cross-inpage-provider-errors": "2.0.0-alpha.10", | ||
"@onekeyfe/cross-inpage-provider-events": "2.0.0-alpha.10", | ||
"@onekeyfe/cross-inpage-provider-types": "2.0.0-alpha.10", | ||
"@onekeyfe/cross-inpage-provider-errors": "2.0.0-alpha.11", | ||
"@onekeyfe/cross-inpage-provider-events": "2.0.0-alpha.11", | ||
"@onekeyfe/cross-inpage-provider-types": "2.0.0-alpha.11", | ||
"events": "^3.3.0", | ||
@@ -43,3 +43,3 @@ "lodash-es": "^4.17.21", | ||
}, | ||
"gitHead": "f760989b7ea7bfca832ba396544808fb99081007" | ||
"gitHead": "db33d14c2a164072b2f5dd4cf94e18886539ab5b" | ||
} |
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
188586
73
4830
+ Added@onekeyfe/cross-inpage-provider-errors@2.0.0-alpha.11(transitive)
+ Added@onekeyfe/cross-inpage-provider-events@2.0.0-alpha.11(transitive)
+ Added@onekeyfe/cross-inpage-provider-types@2.0.0-alpha.11(transitive)
- Removed@onekeyfe/cross-inpage-provider-errors@2.0.0-alpha.10(transitive)
- Removed@onekeyfe/cross-inpage-provider-events@2.0.0-alpha.10(transitive)
- Removed@onekeyfe/cross-inpage-provider-types@2.0.0-alpha.10(transitive)
Updated@onekeyfe/cross-inpage-provider-errors@2.0.0-alpha.11
Updated@onekeyfe/cross-inpage-provider-events@2.0.0-alpha.11