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

@byhealth/native-app-jssdk

Package Overview
Dependencies
Maintainers
2
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@byhealth/native-app-jssdk - npm Package Compare versions

Comparing version 2.2.0-beta.3 to 2.2.0

18

dist/index.js

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

function getVersion() {
return new Promise(function (resolve, reject) {
return new Promise(function (resolve) {
nativeBridge_1.default('getAPPVersion', createCallback_1.default(resolve));
setTimeout(function () { return reject(unsupported('getAPPVersion', false)); }, 500);
});

@@ -253,16 +252,1 @@ }

}
/**
* 提示不支持接口
* @param api 接口名称
* @ignore
*/
function unsupported(api, isThrow) {
if (isThrow === void 0) { isThrow = true; }
var error = new TypeError("Native webview does not support '" + api + "' API");
if (isThrow) {
throw error;
}
else {
return error;
}
}

@@ -20,5 +20,4 @@ /*

export function getVersion() {
return new Promise(function (resolve, reject) {
return new Promise(function (resolve) {
nativeBridge('getAPPVersion', createCallback(resolve));
setTimeout(function () { return reject(unsupported('getAPPVersion', false)); }, 500);
});

@@ -214,17 +213,2 @@ }

}
/**
* 提示不支持接口
* @param api 接口名称
* @ignore
*/
function unsupported(api, isThrow) {
if (isThrow === void 0) { isThrow = true; }
var error = new TypeError("Native webview does not support '" + api + "' API");
if (isThrow) {
throw error;
}
else {
return error;
}
}
export { NativeView };

2

package.json
{
"name": "@byhealth/native-app-jssdk",
"version": "2.2.0-beta.3",
"version": "2.2.0",
"description": "By-Health Native App Jssdk.",

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