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.3.0 to 2.4.0-beta.1

3

dist/index.d.ts

@@ -24,4 +24,5 @@ import { ShareInfo, UserInfo, NewUserInfo } from './types/MemberAppJs';

* @param ios iOS视图名称
* @param obj 传参对象,JSON序列化后不宜过长
*/
export declare function openNativeView(android: string, ios: string): void;
export declare function openNativeView(android: string, ios: string, obj?: any): void;
/**

@@ -28,0 +29,0 @@ * 设置窗口标题

@@ -57,5 +57,10 @@ "use strict";

* @param ios iOS视图名称
* @param obj 传参对象,JSON序列化后不宜过长
*/
function openNativeView(android, ios) {
nativeBridge_1.default('openAppActivity', nativeBridge_1.isAndroid ? android : ios);
function openNativeView(android, ios, obj) {
var params = '';
if (obj !== undefined) {
params = JSON.stringify(obj);
}
nativeBridge_1.default('openAppActivity', nativeBridge_1.isAndroid ? android : ios, params);
}

@@ -62,0 +67,0 @@ exports.openNativeView = openNativeView;

@@ -40,5 +40,10 @@ /*

* @param ios iOS视图名称
* @param obj 传参对象,JSON序列化后不宜过长
*/
export function openNativeView(android, ios) {
nativeBridge('openAppActivity', isAndroid ? android : ios);
export function openNativeView(android, ios, obj) {
var params = '';
if (obj !== undefined) {
params = JSON.stringify(obj);
}
nativeBridge('openAppActivity', isAndroid ? android : ios, params);
}

@@ -45,0 +50,0 @@ /**

{
"name": "@byhealth/native-app-jssdk",
"version": "2.3.0",
"version": "2.4.0-beta.1",
"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