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
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@byhealth/native-app-jssdk

By-Health Native App Jssdk.

  • 2.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

By-Health Native App Jssdk

汤臣倍健营养家App

安装

  • Yarn: yarn add @byhealth/native-app-jssdk@next
  • NPM: npm install @byhealth/native-app-jssdk@next --save

使用

import { scanQrCode, closeWindow } from '@byhealth/native-app-jssdk';

scanQrCode()
  .then(result => {
    // result 是识别后的结果
    console.log(result);
  });

closeWindow();

更新

  • 生成 TypeScript 类型定义,使用 VSCode 可获得更佳体验;
  • 无回调或返回的接口,不再返回Promise对象;
  • 重写 iOS 端调用方法,支持连续调用接口(1.x不支持);
  • 部分接口名称或参数变化:
    • 新增 openNativeView(android, ios) 方法
    • 重命名 userInfo() => getUserInfo() 方法
    • 弃用 goToPage() 方法

API 文档

文档地址

FAQ

  • Android的 scanQrCode 方法会去掉防伪码前面的url,而iOS不会;
  • Android和iOS不允许重复调用 playMusic 播放音乐;

Changelog

2.0.1

  • 修复 NodeJs 服务端找不到 window 的问题;

2.0.0

  • 使用 TypeScript 重写SDK;
  • 支持 ES6 语法导出模块;
  • 支持多个接口连续调用;

FAQs

Package last updated on 29 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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