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
3
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.5.0 to 2.5.1

7

dist/index.d.ts

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

export declare function getUserInfo(): Promise<UserInfo>;
/**
* 获取用户信息(新)
*/
export declare function getNewUserInfo(): Promise<NewUserInfo>;

@@ -143,6 +146,6 @@ /**

/**
* 保存网络图片到本地相册
* 保存网络图片到本地相册,保存成功回调返回true,失败则回调返回false
* @param url 图片URL地址
*/
export declare function saveWebImage(url: string): Promise<void>;
export declare function saveWebImage(url: string): Promise<boolean>;
export { NativeView };
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.NativeView = exports.saveWebImage = exports.userInfo = exports.vibrate = exports.resumeMusic = exports.pauseMusic = exports.playMusic = exports.mobileVibrate = exports.unlistenClose = exports.listenClose = exports.unlistenBack = exports.listenBack = exports.share = exports.alert = exports.getNewUserInfo = exports.getUserInfo = exports.batchSendSMS = exports.sendSMS = exports.scanBarCode = exports.scanQrCode = exports.hiddenNavRightButton = exports.showNavRightButton = exports.setTitle = exports.openMiniProgram = exports.openNativeView = exports.closeWindow = exports.goBack = exports.minVersion = exports.getVersion = exports.isApp = void 0;
/*

@@ -181,2 +194,5 @@ * BY-Health Front-end Team (https://www.by-health.com/)

exports.getUserInfo = getUserInfo;
/**
* 获取用户信息(新)
*/
function getNewUserInfo() {

@@ -290,9 +306,12 @@ return new Promise(function (resolve) {

/**
* 保存网络图片到本地相册
* 保存网络图片到本地相册,保存成功回调返回true,失败则回调返回false
* @param url 图片URL地址
*/
function saveWebImage(url) {
return new Promise(function (resolve) {
return minVersion({
Android: '5.1.5',
iOS: '5.1.5',
}).then(function () { return new Promise(function (resolve) {
nativeBridge_1.default('saveWebImage', url, createCallback_1.default(resolve));
});
}); });
}

@@ -299,0 +318,0 @@ exports.saveWebImage = saveWebImage;

@@ -8,2 +8,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.isIOS = exports.isAndroid = exports.isAppWebview = void 0;
/**

@@ -10,0 +11,0 @@ * 全局对象

@@ -153,2 +153,5 @@ /*

}
/**
* 获取用户信息(新)
*/
export function getNewUserInfo() {

@@ -249,9 +252,12 @@ return new Promise(function (resolve) {

/**
* 保存网络图片到本地相册
* 保存网络图片到本地相册,保存成功回调返回true,失败则回调返回false
* @param url 图片URL地址
*/
export function saveWebImage(url) {
return new Promise(function (resolve) {
return minVersion({
Android: '5.1.5',
iOS: '5.1.5',
}).then(function () { return new Promise(function (resolve) {
nativeBridge('saveWebImage', url, createCallback(resolve));
});
}); });
}

@@ -258,0 +264,0 @@ /**

@@ -8,2 +8,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.FindPassword = void 0;
/**

@@ -10,0 +11,0 @@ * 找回密码窗口

@@ -9,2 +9,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.NewUserStatus = exports.NewUserRole = exports.NewMemberType = exports.NewUserGender = exports.Gender = exports.RoleType = void 0;
/**

@@ -11,0 +12,0 @@ * 角色名称

{
"name": "@byhealth/native-app-jssdk",
"version": "2.5.0",
"version": "2.5.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