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.0.29 to 1.0.30

4

lib/lib/bridge/mobile.js

@@ -49,4 +49,4 @@ "use strict";

bridge.callHandler(method, param, function (e) {
var code = e.code, message = e.message, data = e.data;
if (code === '0') {
var _a = e.code, code = _a === void 0 ? '' : _a, message = e.message, data = e.data;
if (String(code) === '0') {
if ("function" === typeof p.onSuccess) {

@@ -53,0 +53,0 @@ p.onSuccess(data);

@@ -14,3 +14,4 @@ "use strict";

// 判断是否success
data.code === '0' ? _this.PromiseObj.resolve(data) : _this.PromiseObj.reject(data);
var _a = (data || {}).code, code = _a === void 0 ? '' : _a;
String(code) === '0' ? _this.PromiseObj.resolve(data) : _this.PromiseObj.reject(data);
};

@@ -17,0 +18,0 @@ this.getPayload = function () {

{
"name": "yach-jsapi",
"version": "1.0.29",
"version": "1.0.30",
"description": "",

@@ -5,0 +5,0 @@ "main": "./lib/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