@tarojs/taro 4.1.4 → 4.1.5
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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/taro",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.5",
|
|
4
4
|
"description": "Taro framework",
|
|
5
5
|
"author": "O2Team",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@types/postcss-url": "^10.0.4",
|
|
27
|
-
"@tarojs/api": "4.1.
|
|
28
|
-
"@tarojs/runtime": "4.1.
|
|
27
|
+
"@tarojs/api": "4.1.5",
|
|
28
|
+
"@tarojs/runtime": "4.1.5"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"html-webpack-plugin": "^5.6.0",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"webpack-chain": "^6.5.1",
|
|
35
35
|
"webpack-dev-server": "^4.15.2",
|
|
36
36
|
"rollup": "^3.29.4",
|
|
37
|
-
"@tarojs/components": "4.1.
|
|
38
|
-
"@tarojs/
|
|
39
|
-
"@tarojs/
|
|
37
|
+
"@tarojs/components": "4.1.5",
|
|
38
|
+
"@tarojs/shared": "4.1.5",
|
|
39
|
+
"@tarojs/helper": "4.1.5"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@types/react": "^18",
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
"webpack": "^5",
|
|
48
48
|
"webpack-chain": "^6",
|
|
49
49
|
"webpack-dev-server": "^4",
|
|
50
|
-
"@tarojs/
|
|
51
|
-
"@tarojs/helper": "4.1.
|
|
52
|
-
"@tarojs/
|
|
50
|
+
"@tarojs/components": "4.1.5",
|
|
51
|
+
"@tarojs/helper": "4.1.5",
|
|
52
|
+
"@tarojs/shared": "4.1.5"
|
|
53
53
|
},
|
|
54
54
|
"peerDependenciesMeta": {
|
|
55
55
|
"@types/react": {
|
|
@@ -22,7 +22,7 @@ declare module '../index' {
|
|
|
22
22
|
onShow: string
|
|
23
23
|
preloadData?: Record<any, any>
|
|
24
24
|
/**
|
|
25
|
-
* RN 私有对象navigationRef,用于使用底层接口控制路由
|
|
25
|
+
* RN 私有对象 navigationRef,用于使用底层接口控制路由
|
|
26
26
|
*/
|
|
27
27
|
rnNavigationRef?: React.RefObject<any>
|
|
28
28
|
}
|
|
@@ -52,10 +52,10 @@ declare module '../index' {
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
namespace interceptorify {
|
|
55
|
-
type
|
|
55
|
+
type promisifyApi<T, R> = (requestParams: T) => Promise<R>
|
|
56
56
|
interface InterceptorifyChain<T, R> {
|
|
57
57
|
requestParams: T
|
|
58
|
-
proceed:
|
|
58
|
+
proceed: promisifyApi<T, R>
|
|
59
59
|
}
|
|
60
60
|
type InterceptorifyInterceptor<T, R> = (chain: InterceptorifyChain<T, R>) => Promise<R>
|
|
61
61
|
interface Interceptorify<T, R> {
|
|
@@ -112,7 +112,7 @@ declare module '../index' {
|
|
|
112
112
|
mpVersion: string
|
|
113
113
|
/** 小程序环境 */
|
|
114
114
|
envType: string
|
|
115
|
-
/** 小程序appId */
|
|
115
|
+
/** 小程序 appId */
|
|
116
116
|
appId: string
|
|
117
117
|
}
|
|
118
118
|
/** 插件信息 */
|
|
@@ -121,7 +121,7 @@ declare module '../index' {
|
|
|
121
121
|
common: {
|
|
122
122
|
/** 用户数据存储的路径 */
|
|
123
123
|
USER_DATA_PATH: string
|
|
124
|
-
/** 校验白名单属性中的appInfoLaunchFrom后返回额外信息 */
|
|
124
|
+
/** 校验白名单属性中的 appInfoLaunchFrom 后返回额外信息 */
|
|
125
125
|
location: string | undefined
|
|
126
126
|
launchFrom: string | undefined
|
|
127
127
|
schema: string | undefined
|
|
@@ -174,9 +174,9 @@ declare module '../index' {
|
|
|
174
174
|
getRenderer(): 'webview' | 'skyline'
|
|
175
175
|
|
|
176
176
|
/**
|
|
177
|
-
* 包裹
|
|
177
|
+
* 包裹 promisify api 的洋葱圈模型
|
|
178
178
|
* @supported global
|
|
179
|
-
* @param
|
|
179
|
+
* @param promisifyApi
|
|
180
180
|
* @example
|
|
181
181
|
* ```tsx
|
|
182
182
|
* // 创建实例
|
|
@@ -228,6 +228,6 @@ declare module '../index' {
|
|
|
228
228
|
* })
|
|
229
229
|
* ```
|
|
230
230
|
*/
|
|
231
|
-
interceptorify<T, R>(
|
|
231
|
+
interceptorify<T, R>(api: interceptorify.promisifyApi<T, R>): interceptorify.Interceptorify<T, R>
|
|
232
232
|
}
|
|
233
233
|
}
|