yach-jsapi
Advanced tools
Comparing version 1.0.29 to 1.0.30
@@ -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", |
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
65280
1937