@ray-js/api 1.7.73 → 1.7.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -10,6 +10,7 @@ interface AppInstance {
|
|
|
10
10
|
* 获取应用唯一 App 实例,实例对象为 `src/App.tsx`
|
|
11
11
|
*
|
|
12
12
|
* @public
|
|
13
|
+
* @alias getApp
|
|
13
14
|
* @since @ray-js/ray 0.5.10
|
|
14
15
|
* @returns App 实例对象
|
|
15
16
|
* @example 读写全局数据
|
|
@@ -43,5 +44,5 @@ interface AppInstance {
|
|
|
43
44
|
* }
|
|
44
45
|
* ```
|
|
45
46
|
*/
|
|
46
|
-
export default function
|
|
47
|
+
export default function (): AppInstance;
|
|
47
48
|
export {};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import "core-js/modules/es.global-this.js";
|
|
2
|
-
const _getApp = globalThis.getApp;
|
|
3
1
|
/**
|
|
4
2
|
* 获取应用唯一 App 实例,实例对象为 `src/App.tsx`
|
|
5
3
|
*
|
|
6
4
|
* @public
|
|
5
|
+
* @alias getApp
|
|
7
6
|
* @since @ray-js/ray 0.5.10
|
|
8
7
|
* @returns App 实例对象
|
|
9
8
|
* @example 读写全局数据
|
|
@@ -37,6 +36,7 @@ const _getApp = globalThis.getApp;
|
|
|
37
36
|
* }
|
|
38
37
|
* ```
|
|
39
38
|
*/
|
|
40
|
-
export default function
|
|
41
|
-
|
|
39
|
+
export default function () {
|
|
40
|
+
// @ts-ignore
|
|
41
|
+
return getApp();
|
|
42
42
|
}
|
|
@@ -14,6 +14,7 @@ export interface PageInstance {
|
|
|
14
14
|
* 获取当前页面栈。返回一个数组,数组中的元素为页面栈中的页面对象,数组第一个元素为首页,最后一个元素为当前页面。
|
|
15
15
|
*
|
|
16
16
|
* @public
|
|
17
|
+
* @alias getCurrentPages
|
|
17
18
|
* @since @ray-js/ray 0.2.0
|
|
18
19
|
* @returns 页面栈数组,每个元素为 PageInstance 对象
|
|
19
20
|
* @remarks
|
|
@@ -43,4 +44,4 @@ export interface PageInstance {
|
|
|
43
44
|
* }
|
|
44
45
|
* ```
|
|
45
46
|
*/
|
|
46
|
-
export default function
|
|
47
|
+
export default function (): PageInstance[];
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import "core-js/modules/es.global-this.js";
|
|
2
1
|
/** 页面实例对象 */
|
|
3
2
|
|
|
4
|
-
const _getCurrentPages = globalThis.getCurrentPages;
|
|
5
|
-
|
|
6
3
|
/**
|
|
7
4
|
* 获取当前页面栈。返回一个数组,数组中的元素为页面栈中的页面对象,数组第一个元素为首页,最后一个元素为当前页面。
|
|
8
5
|
*
|
|
9
6
|
* @public
|
|
7
|
+
* @alias getCurrentPages
|
|
10
8
|
* @since @ray-js/ray 0.2.0
|
|
11
9
|
* @returns 页面栈数组,每个元素为 PageInstance 对象
|
|
12
10
|
* @remarks
|
|
@@ -36,7 +34,7 @@ const _getCurrentPages = globalThis.getCurrentPages;
|
|
|
36
34
|
* }
|
|
37
35
|
* ```
|
|
38
36
|
*/
|
|
39
|
-
export default function
|
|
37
|
+
export default function () {
|
|
40
38
|
// @ts-ignore
|
|
41
|
-
return
|
|
39
|
+
return getCurrentPages();
|
|
42
40
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ray-js/api",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.74",
|
|
4
4
|
"description": "Ray universal api",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ray"
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"watch": "ray start --type=component"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@ray-js/framework": "1.7.
|
|
33
|
-
"@ray-js/router": "1.7.
|
|
32
|
+
"@ray-js/framework": "1.7.74",
|
|
33
|
+
"@ray-js/router": "1.7.74",
|
|
34
34
|
"base64-browser": "^1.0.1",
|
|
35
35
|
"query-string": "^7.1.3"
|
|
36
36
|
},
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@ray-js/wechat": "^0.3.13"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@ray-js/cli": "1.7.
|
|
41
|
+
"@ray-js/cli": "1.7.74",
|
|
42
42
|
"art-template": "^4.13.4",
|
|
43
43
|
"fs-extra": "^10.1.0",
|
|
44
44
|
"miniprogram-api-typings": "^3.12.3",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"access": "public",
|
|
49
49
|
"registry": "https://registry.npmjs.org"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "769c55f079c17a09d9095d6b1e063393a0e46e30"
|
|
52
52
|
}
|