@byhealth/native-app-jssdk
Advanced tools
Comparing version 2.4.1 to 2.5.0-beta.1
@@ -38,2 +38,8 @@ import { ShareInfo, UserInfo, NewUserInfo } from './types/MemberAppJs'; | ||
/** | ||
* 打开微信小程序 | ||
* @param appId 小程序AppId | ||
* @param path 小程序内部路径 | ||
*/ | ||
export declare function openMiniProgram(appId: string, path?: string): Promise<void>; | ||
/** | ||
* 设置窗口标题 | ||
@@ -40,0 +46,0 @@ * @param title 标题内容 |
@@ -95,2 +95,17 @@ "use strict"; | ||
/** | ||
* 打开微信小程序 | ||
* @param appId 小程序AppId | ||
* @param path 小程序内部路径 | ||
*/ | ||
function openMiniProgram(appId, path) { | ||
return minVersion({ | ||
Android: '4.3.0', | ||
iOS: '4.3.0', | ||
}) | ||
.then(function () { | ||
nativeBridge_1.default('openMiniProgram', appId, path); | ||
}); | ||
} | ||
exports.openMiniProgram = openMiniProgram; | ||
/** | ||
* 设置窗口标题 | ||
@@ -97,0 +112,0 @@ * @param title 标题内容 |
@@ -76,2 +76,16 @@ /* | ||
/** | ||
* 打开微信小程序 | ||
* @param appId 小程序AppId | ||
* @param path 小程序内部路径 | ||
*/ | ||
export function openMiniProgram(appId, path) { | ||
return minVersion({ | ||
Android: '4.3.0', | ||
iOS: '4.3.0', | ||
}) | ||
.then(function () { | ||
nativeBridge('openMiniProgram', appId, path); | ||
}); | ||
} | ||
/** | ||
* 设置窗口标题 | ||
@@ -78,0 +92,0 @@ * @param title 标题内容 |
{ | ||
"name": "@byhealth/native-app-jssdk", | ||
"version": "2.4.1", | ||
"version": "2.5.0-beta.1", | ||
"description": "By-Health Native App Jssdk.", | ||
@@ -5,0 +5,0 @@ "main": "dist/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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
88618
2028
2