@tarojs/taro 3.6.27 → 3.6.29
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.
|
|
3
|
+
"version": "3.6.29",
|
|
4
4
|
"description": "Taro framework",
|
|
5
5
|
"homepage": "https://github.com/nervjs/taro/tree/master/packages/taro#readme",
|
|
6
6
|
"main": "index.js",
|
|
@@ -21,15 +21,15 @@
|
|
|
21
21
|
"author": "O2Team",
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@tarojs/api": "3.6.
|
|
24
|
+
"@tarojs/api": "3.6.29"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@tarojs/helper": "3.6.
|
|
28
|
-
"@tarojs/runtime": "3.6.
|
|
27
|
+
"@tarojs/helper": "3.6.29",
|
|
28
|
+
"@tarojs/runtime": "3.6.29"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@tarojs/helper": "~3.6.
|
|
32
|
-
"@tarojs/runtime": "~3.6.
|
|
31
|
+
"@tarojs/helper": "~3.6.29",
|
|
32
|
+
"@tarojs/runtime": "~3.6.29"
|
|
33
33
|
},
|
|
34
34
|
"peerDependenciesMeta": {
|
|
35
35
|
"@types/react": {
|
|
@@ -78,7 +78,7 @@ declare module '../../index' {
|
|
|
78
78
|
/** 接口调用失败的回调函数 */
|
|
79
79
|
fail?: (res: TaroGeneral.CallbackResult) => void
|
|
80
80
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
81
|
-
complete?: (res: TaroGeneral.CallbackResult) => void
|
|
81
|
+
complete?: (res: Partial<SuccessCallbackResult> & TaroGeneral.CallbackResult) => void
|
|
82
82
|
/** 设置是否使用 jsonp 方式获取数据
|
|
83
83
|
* @default false
|
|
84
84
|
* @supported h5
|
|
@@ -7,6 +7,7 @@ import type { ICopyOptions, IOption, ISassOptions, TogglableOptions } from './ut
|
|
|
7
7
|
import type { IH5Config } from './h5'
|
|
8
8
|
import type { IMiniAppConfig } from './mini'
|
|
9
9
|
import { IRNConfig } from './rn'
|
|
10
|
+
import { AppConfig } from '../..'
|
|
10
11
|
|
|
11
12
|
export type PluginItem<T = object> = string | [string, T] | [string, () => T | Promise<T>]
|
|
12
13
|
|
|
@@ -176,6 +177,8 @@ export interface IProjectBaseConfig {
|
|
|
176
177
|
|
|
177
178
|
onWebpackChainReady?: (webpackChain: Chain) => Promise<any>
|
|
178
179
|
|
|
180
|
+
modifyAppConfig?: (appConfig: AppConfig) => Promise<any>
|
|
181
|
+
|
|
179
182
|
/**
|
|
180
183
|
* 编译中修改 webpack 配置,在这个钩子中,你可以对 webpackChain 作出想要的调整,等同于配置 [`webpackChain`](./config-detail#miniwebpackchain)
|
|
181
184
|
*/
|
package/types/taro.config.d.ts
CHANGED
|
@@ -424,7 +424,7 @@ declare module './index' {
|
|
|
424
424
|
decodeQuery?: 'disable'
|
|
425
425
|
}
|
|
426
426
|
|
|
427
|
-
interface AppConfig {
|
|
427
|
+
export interface AppConfig {
|
|
428
428
|
/** 小程序默认启动首页,未指定 entryPagePath 时,数组的第一项代表小程序的初始页面(首页)。 */
|
|
429
429
|
entryPagePath?: string
|
|
430
430
|
/** 接受一个数组,每一项都是字符串,来指定小程序由哪些页面组成,数组的第一项代表小程序的初始页面 */
|
|
@@ -561,7 +561,7 @@ declare module './index' {
|
|
|
561
561
|
*/
|
|
562
562
|
themeLocation?: string
|
|
563
563
|
/** 配置自定义组件代码按需注入 */
|
|
564
|
-
lazyCodeLoading?: string
|
|
564
|
+
lazyCodeLoading?: 'requiredComponents' | string
|
|
565
565
|
/** 单页模式相关配置 */
|
|
566
566
|
singlePage?: SinglePage
|
|
567
567
|
/** 聊天素材小程序打开相关配置
|