@onekeyfe/cross-inpage-provider-core
Advanced tools
Comparing version 0.0.7-alpha.3 to 0.0.7
@@ -79,2 +79,5 @@ "use strict"; | ||
}; | ||
// TODO increase timeout as hardware sign transaction may take a long time | ||
// can set timeout for each callback | ||
this.callbacksExpireTimeout = 10 * 60 * 1000; | ||
this.debugLogger = loggers_1.appDebugLogger; | ||
@@ -84,3 +87,3 @@ this.callbacks = []; | ||
this.config = config; | ||
this.callbacksExpireTimeout = (_a = config.timeout) !== null && _a !== void 0 ? _a : 60 * 1000; | ||
this.callbacksExpireTimeout = (_a = config.timeout) !== null && _a !== void 0 ? _a : this.callbacksExpireTimeout; | ||
this.debugLogger = config.debugLogger || loggers_1.appDebugLogger; | ||
@@ -125,2 +128,3 @@ this.sendAsString = (_b = config.sendAsString) !== null && _b !== void 0 ? _b : this.sendAsString; | ||
payload.error = { | ||
key: errorInfo.key, | ||
code: errorInfo.code, | ||
@@ -127,0 +131,0 @@ message: errorInfo.message, |
@@ -11,2 +11,3 @@ "use strict"; | ||
this.remote = null; | ||
this.callbacksExpireTimeout = 0; | ||
} | ||
@@ -13,0 +14,0 @@ sendPayload(payload) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const version = '0.0.7-alpha.3'; | ||
const version = '0.0.7'; | ||
const versionBuild = '2020-0101-1'; | ||
@@ -5,0 +5,0 @@ exports.default = { |
@@ -21,3 +21,3 @@ import EventEmitter from 'eventemitter3'; | ||
private config; | ||
private readonly callbacksExpireTimeout; | ||
protected callbacksExpireTimeout: number; | ||
debugLogger: IDebugLogger; | ||
@@ -24,0 +24,0 @@ private callbacks; |
@@ -72,2 +72,5 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
}; | ||
// TODO increase timeout as hardware sign transaction may take a long time | ||
// can set timeout for each callback | ||
this.callbacksExpireTimeout = 10 * 60 * 1000; | ||
this.debugLogger = appDebugLogger; | ||
@@ -77,3 +80,3 @@ this.callbacks = []; | ||
this.config = config; | ||
this.callbacksExpireTimeout = (_a = config.timeout) !== null && _a !== void 0 ? _a : 60 * 1000; | ||
this.callbacksExpireTimeout = (_a = config.timeout) !== null && _a !== void 0 ? _a : this.callbacksExpireTimeout; | ||
this.debugLogger = config.debugLogger || appDebugLogger; | ||
@@ -118,2 +121,3 @@ this.sendAsString = (_b = config.sendAsString) !== null && _b !== void 0 ? _b : this.sendAsString; | ||
payload.error = { | ||
key: errorInfo.key, | ||
code: errorInfo.code, | ||
@@ -120,0 +124,0 @@ message: errorInfo.message, |
@@ -7,2 +7,3 @@ import { IJsBridgeMessagePayload } from '@onekeyfe/cross-inpage-provider-types'; | ||
private remote; | ||
callbacksExpireTimeout: number; | ||
sendPayload(payload: IJsBridgeMessagePayload | string): void; | ||
@@ -9,0 +10,0 @@ setRemote(remote: JsBridgeBase): void; |
@@ -8,2 +8,3 @@ import { JsBridgeBase } from './JsBridgeBase'; | ||
this.remote = null; | ||
this.callbacksExpireTimeout = 0; | ||
} | ||
@@ -10,0 +11,0 @@ sendPayload(payload) { |
@@ -1,2 +0,2 @@ | ||
const version = '0.0.7-alpha.3'; | ||
const version = '0.0.7'; | ||
const versionBuild = '2020-0101-1'; | ||
@@ -3,0 +3,0 @@ export default { |
{ | ||
"name": "@onekeyfe/cross-inpage-provider-core", | ||
"version": "0.0.7-alpha.3", | ||
"version": "0.0.7", | ||
"keywords": [ | ||
@@ -32,4 +32,4 @@ "cross-inpage-provider" | ||
"dependencies": { | ||
"@onekeyfe/cross-inpage-provider-errors": "^0.0.7-alpha.3", | ||
"@onekeyfe/cross-inpage-provider-types": "^0.0.7-alpha.3", | ||
"@onekeyfe/cross-inpage-provider-errors": "^0.0.7", | ||
"@onekeyfe/cross-inpage-provider-types": "^0.0.7", | ||
"eventemitter3": "^4.0.7", | ||
@@ -39,3 +39,3 @@ "lodash": "^4.17.21", | ||
}, | ||
"gitHead": "ff317617a1d5d8d1bc7f6957dcd6e27117192c64" | ||
"gitHead": "74dd1645307232196a30750239156432737092a2" | ||
} |
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
128223
3119