@onekeyfe/cross-inpage-provider-core
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -226,3 +226,3 @@ "use strict"; | ||
receive(payloadReceived = '', sender) { | ||
var _a; | ||
var _a, _b; | ||
let payload = { | ||
@@ -252,2 +252,3 @@ data: null, | ||
if (!payload.origin && !this.isInjected) { | ||
console.error((_a = this === null || this === void 0 ? void 0 : this.constructor) === null || _a === void 0 ? void 0 : _a.name, '[payload.origin] is missing.', this); | ||
throw new Error('JsBridge ERROR: receive message [payload.origin] is required.'); | ||
@@ -258,3 +259,3 @@ } | ||
} | ||
this.debugLogger.jsBridge('receive', payload, { sender }, '\r\n -----> ', (_a = payload.data) === null || _a === void 0 ? void 0 : _a.result, '\r\n -----> ', payload.data); | ||
this.debugLogger.jsBridge('receive', payload, { sender }, '\r\n -----> ', (_b = payload.data) === null || _b === void 0 ? void 0 : _b.result, '\r\n -----> ', payload.data); | ||
const { type, id, data, error, origin, remoteId } = payload; | ||
@@ -261,0 +262,0 @@ this.remoteInfo = { |
@@ -219,3 +219,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
receive(payloadReceived = '', sender) { | ||
var _a; | ||
var _a, _b; | ||
let payload = { | ||
@@ -245,2 +245,3 @@ data: null, | ||
if (!payload.origin && !this.isInjected) { | ||
console.error((_a = this === null || this === void 0 ? void 0 : this.constructor) === null || _a === void 0 ? void 0 : _a.name, '[payload.origin] is missing.', this); | ||
throw new Error('JsBridge ERROR: receive message [payload.origin] is required.'); | ||
@@ -251,3 +252,3 @@ } | ||
} | ||
this.debugLogger.jsBridge('receive', payload, { sender }, '\r\n -----> ', (_a = payload.data) === null || _a === void 0 ? void 0 : _a.result, '\r\n -----> ', payload.data); | ||
this.debugLogger.jsBridge('receive', payload, { sender }, '\r\n -----> ', (_b = payload.data) === null || _b === void 0 ? void 0 : _b.result, '\r\n -----> ', payload.data); | ||
const { type, id, data, error, origin, remoteId } = payload; | ||
@@ -254,0 +255,0 @@ this.remoteInfo = { |
{ | ||
"name": "@onekeyfe/cross-inpage-provider-core", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"keywords": [ | ||
@@ -31,4 +31,4 @@ "cross-inpage-provider" | ||
"dependencies": { | ||
"@onekeyfe/cross-inpage-provider-errors": "^0.0.3", | ||
"@onekeyfe/cross-inpage-provider-types": "^0.0.3", | ||
"@onekeyfe/cross-inpage-provider-errors": "^0.0.4", | ||
"@onekeyfe/cross-inpage-provider-types": "^0.0.4", | ||
"eventemitter3": "^4.0.7", | ||
@@ -38,3 +38,3 @@ "lodash": "^4.17.21", | ||
}, | ||
"gitHead": "6336f5e27be0b853af3d2f09e537444f623ba331" | ||
"gitHead": "d47447804157874b2607aea82f92ff3a132c5e67" | ||
} |
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
121704
2958
+ Added@onekeyfe/cross-inpage-provider-errors@0.0.4(transitive)
+ Added@onekeyfe/cross-inpage-provider-types@0.0.4(transitive)
- Removed@onekeyfe/cross-inpage-provider-errors@0.0.3(transitive)
- Removed@onekeyfe/cross-inpage-provider-types@0.0.3(transitive)