Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@onekeyfe/cross-inpage-provider-core

Package Overview
Dependencies
Maintainers
2
Versions
132
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 0.0.3 to 0.0.4

5

dist/cjs/JsBridgeBase.js

@@ -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 = {

8

package.json
{
"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"
}
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