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

yach-jsapi

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yach-jsapi - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

6

libs/lib/bridge/mobile.js

@@ -38,4 +38,6 @@ "use strict";

setupWebViewJavascriptBridge(function (bridge) {
bridge.registerHandler('resume', function (data) {
index_1.default.receiveEvent('resume', data);
utils_1.default.log("\u6CE8\u518Cresume\u4E8B\u4EF6 ");
bridge.registerHandler('resume', function (resData) {
utils_1.default.log("resume\u76D1\u542C\u5230\u56DE\u8C03\uFF0C\u76F8\u5173\u53C2\u6570 ", { resData: resData });
index_1.default.receiveEvent('resume', resData);
});

@@ -42,0 +44,0 @@ resolve();

@@ -17,5 +17,5 @@ "use strict";

if ('function' === typeof callbackFun) {
callbackFun(data);
callbackFun(data || message);
}
resolve({ code: code, message: message });
resolve({ code: code, message: message, data: data });
});

@@ -22,0 +22,0 @@ });

@@ -51,3 +51,3 @@ "use strict";

var genPostMsg = new GenPostMsg(method, param);
window.sendToHost(JSON.stringify(genPostMsg.getPayload()));
window.sendToHost(JSON.stringify(genPostMsg.getPayload()), true);
_this.addPending(genPostMsg);

@@ -79,3 +79,7 @@ return genPostMsg;

var pending = _this.getPending(msgId);
pending && pending.receiveResponse({ data: data, code: code, message: message });
pending && pending.receiveResponse({
data: data,
code: code,
message: message
});
_this.deletePending(msgId);

@@ -82,0 +86,0 @@ }

@@ -41,5 +41,4 @@ "use strict";

var sdkLib_1 = require("../lib/sdk/sdkLib");
var event_1 = require("../lib/packages/event");
var pc_1 = require("../lib/bridge/pc");
var event_1 = require("../lib/packages/event");
var pc_2 = require("../lib/bridge/pc");
yachSdk_1.yachSdk.setPlatform({

@@ -50,3 +49,3 @@ platform: sdkLib_1.ENV_ENUM.pc,

return __generator(this, function (_a) {
pc_2.PcBridgeInit();
pc_1.PcBridgeInit();
return [2 /*return*/, Promise.resolve(pc_1.pcBridge)];

@@ -53,0 +52,0 @@ });

{
"name": "yach-jsapi",
"version": "1.2.1",
"version": "1.2.2",
"description": "",

@@ -5,0 +5,0 @@ "main": "./libs/index.js",

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