@tarojs/taro 3.6.11 → 3.6.12

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": "3.6.11",
3
+ "version": "3.6.12",
4
4
  "description": "Taro framework",
5
5
  "homepage": "https://github.com/nervjs/taro/tree/master/packages/taro#readme",
6
6
  "main": "index.js",
@@ -21,11 +21,11 @@
21
21
  "author": "O2Team",
22
22
  "license": "MIT",
23
23
  "dependencies": {
24
- "@tarojs/api": "3.6.11",
25
- "@tarojs/runtime": "3.6.11"
24
+ "@tarojs/api": "3.6.12",
25
+ "@tarojs/runtime": "3.6.12"
26
26
  },
27
27
  "devDependencies": {
28
- "@tarojs/helper": "3.6.11"
28
+ "@tarojs/helper": "3.6.12"
29
29
  },
30
30
  "peerDependenciesMeta": {
31
31
  "@types/react": {
@@ -106,10 +106,12 @@ declare module '../../index' {
106
106
  /** 设置请求重试次数
107
107
  * @default 2
108
108
  * @supported h5
109
+ * @h5 仅在 jsonp 模式下生效
109
110
  */
110
111
  retryTimes?: number
111
112
  /** 设置请求的兜底接口
112
113
  * @supported h5
114
+ * @h5 仅在 jsonp 模式下生效
113
115
  */
114
116
  backup?: string | string[]
115
117
  /** 设置请求中止信号
@@ -118,19 +120,23 @@ declare module '../../index' {
118
120
  signal?: AbortSignal
119
121
  /** 设置请求响应的数据校验函数,若返回 false,则请求兜底接口,若无兜底接口,则报请求失败
120
122
  * @supported h5
123
+ * @h5 仅在 jsonp 模式下生效
121
124
  */
122
125
  dataCheck?(): boolean
123
126
  /** 设置请求是否使用缓存
124
127
  * @default false
125
128
  * @supported h5
129
+ * @h5 仅在 jsonp 模式下生效
126
130
  */
127
131
  useStore?: boolean
128
132
  /** 设置请求缓存校验的 key
129
133
  * @supported h5
134
+ * @h5 仅在 jsonp 模式下生效
130
135
  */
131
136
  storeCheckKey?: string
132
137
  /** 设置请求缓存签名
133
138
  * @supported h5
139
+ * @h5 仅在 jsonp 模式下生效
134
140
  */
135
141
  storeSign?: string
136
142
  /** 设置请求校验函数,一般不需要设置
@@ -200,7 +200,7 @@ declare module '../../index' {
200
200
  * Taro.downloadFile({
201
201
  * url: 'https://res.wx.qq.com/wxdoc/dist/assets/img/demo.ef5c5bef.jpg',
202
202
  * success: (res) => {
203
- * wx.showShareImageMenu({
203
+ * Taro.showShareImageMenu({
204
204
  * path: res.tempFilePath
205
205
  * })
206
206
  * }
@@ -85,7 +85,7 @@ declare module '../../index' {
85
85
  showNavigationBarLoading(option?: showNavigationBarLoading.Option): void
86
86
 
87
87
  /** 动态设置当前页面的标题
88
- * @supported weapp, h5, rn, tt
88
+ * @supported weapp, alipay, h5, rn, tt
89
89
  * @example
90
90
  * ```tsx
91
91
  * Taro.setNavigationBarTitle({
@@ -6,7 +6,7 @@ import type { IOption, IPostcssOption } from './util'
6
6
 
7
7
  export interface IRNConfig {
8
8
  /** 设置 RN bundle 中注册应用的名称 */
9
- appName: string
9
+ appName?: string
10
10
 
11
11
  /** entry 利用模块查找规则{name}.{platform}.{ext}自动区分平台 */
12
12
  entry?: string
@@ -53,4 +53,12 @@ export interface IRNConfig {
53
53
 
54
54
  /** 将 svg 文件转换为组件引入。默认值 false,不开启 */
55
55
  enableSvgTransform?: boolean
56
+
57
+ alias?: IOption
58
+
59
+ /** 设计稿尺寸 */
60
+ designWidth?: number | ((size?: string | number | Input) => number)
61
+
62
+ /** 设计稿尺寸换算规则 */
63
+ deviceRatio?: TaroGeneral.TDeviceRatio
56
64
  }