jet-miniapp
Advanced tools
Comparing version 2.0.6 to 2.0.7
export function setNavigationBar(title: any, image: any, backgroundColor: any, borderBottomColor: any, reset: any): Promise<any>; | ||
export function switchTab(url: any): Promise<any>; | ||
export function reLaunch(url: any): Promise<any>; | ||
export function navigateTo(url: any): Promise<any>; | ||
export function redirectTo(url: any): Promise<any>; | ||
@@ -5,0 +6,0 @@ export function navigateBack(delta: any): Promise<any>; |
@@ -59,2 +59,16 @@ "use strict"; | ||
exports.redirectTo = redirectTo; | ||
const navigateTo = function (url) { | ||
return new Promise((resolve, reject) => { | ||
my.redirectTo({ | ||
url, success: (data) => { | ||
resolve(data); | ||
}, fail: (error) => { | ||
reject(error); | ||
}, complete: () => { | ||
resolve(); | ||
} | ||
}); | ||
}); | ||
}; | ||
exports.navigateTo = navigateTo; | ||
const navigateBack = function (delta) { | ||
@@ -61,0 +75,0 @@ return new Promise((resolve, reject) => { |
{ | ||
"name": "jet-miniapp", | ||
"version": "2.0.6", | ||
"version": "2.0.7", | ||
"description": "客户端sdk", | ||
@@ -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
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
99197
3083