@ray-js/api 1.5.26 → 1.5.27
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.
@@ -166,11 +166,15 @@ export async function initPanelEnvironment() {
|
|
166
166
|
initPanel(getLaunchOptionsSync());
|
167
167
|
}, 3000);
|
168
168
|
// 基础库版本需要大于 2.6.0
|
169
|
+
|
170
|
+
// @ts-ignore
|
171
|
+
const __AppOnReady = App.onReady;
|
169
172
|
// @ts-ignore
|
170
173
|
App.onReady = event => {
|
174
|
+
typeof __AppOnReady === 'function' && __AppOnReady(event);
|
171
175
|
init = true;
|
172
176
|
clearTimeout(timeout);
|
173
|
-
initPanel(
|
177
|
+
initPanel(getLaunchOptionsSync());
|
174
178
|
};
|
175
179
|
|
176
180
|
// 使用 Promise 确保业务可以通过 initPanelEnvironment 的正常调用明确设备信息初始化完成
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ray-js/api",
|
3
|
-
"version": "1.5.
|
3
|
+
"version": "1.5.27",
|
4
4
|
"description": "Ray universal api",
|
5
5
|
"keywords": [
|
6
6
|
"ray"
|
@@ -29,14 +29,14 @@
|
|
29
29
|
"watch": "ray start --type=component"
|
30
30
|
},
|
31
31
|
"dependencies": {
|
32
|
-
"@ray-js/framework": "1.5.
|
33
|
-
"@ray-js/router": "1.5.
|
32
|
+
"@ray-js/framework": "1.5.27",
|
33
|
+
"@ray-js/router": "1.5.27",
|
34
34
|
"@ray-js/wechat": "^0.2.9",
|
35
35
|
"base64-browser": "^1.0.1",
|
36
36
|
"query-string": "^7.1.3"
|
37
37
|
},
|
38
38
|
"devDependencies": {
|
39
|
-
"@ray-js/cli": "1.5.
|
39
|
+
"@ray-js/cli": "1.5.27",
|
40
40
|
"art-template": "^4.13.2",
|
41
41
|
"fs-extra": "^10.1.0",
|
42
42
|
"miniprogram-api-typings": "^3.12.2",
|
@@ -46,5 +46,5 @@
|
|
46
46
|
"access": "public",
|
47
47
|
"registry": "https://registry.npmjs.com"
|
48
48
|
},
|
49
|
-
"gitHead": "
|
49
|
+
"gitHead": "777cbad246bec69c4e625926a6360d8621fe9fed"
|
50
50
|
}
|