@tarojs/taro 3.6.0-beta.2 → 3.6.0-beta.4
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.0-beta.
|
|
3
|
+
"version": "3.6.0-beta.4",
|
|
4
4
|
"description": "Taro framework",
|
|
5
5
|
"homepage": "https://github.com/nervjs/taro/tree/master/packages/taro#readme",
|
|
6
6
|
"main": "index.js",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"author": "O2Team",
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@tarojs/api": "3.6.0-beta.
|
|
25
|
-
"@tarojs/runtime": "3.6.0-beta.
|
|
24
|
+
"@tarojs/api": "3.6.0-beta.4",
|
|
25
|
+
"@tarojs/runtime": "3.6.0-beta.4"
|
|
26
26
|
},
|
|
27
27
|
"peerDependenciesMeta": {
|
|
28
28
|
"@types/react": {
|
package/types/api/base/env.d.ts
CHANGED
|
@@ -8,8 +8,12 @@ declare module '../../index' {
|
|
|
8
8
|
*/
|
|
9
9
|
env: {
|
|
10
10
|
[key: string]: string | undefined
|
|
11
|
+
/** 框架 */
|
|
12
|
+
FRAMEWORK: 'react' | 'preact' | 'nerv' | 'vue' | 'vue3'
|
|
13
|
+
/** Taro 环境变量 */
|
|
14
|
+
TARO_ENV: 'weapp' | 'h5' | 'rn' | 'swan' | 'alipay' | 'tt' | 'qq' | 'jd' | 'quickapp'
|
|
11
15
|
/** 文件系统中的用户目录路径 (本地路径) */
|
|
12
|
-
USER_DATA_PATH
|
|
16
|
+
USER_DATA_PATH?: string
|
|
13
17
|
}
|
|
14
18
|
}
|
|
15
19
|
}
|
|
@@ -87,7 +87,7 @@ declare module '../../index' {
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
type DownloadTaskPromise = Promise<downloadFile.FileSuccessCallbackResult> & DownloadTask & {
|
|
90
|
-
headersReceive: DownloadTask['onHeadersReceived']
|
|
90
|
+
headersReceive: DownloadTask['onHeadersReceived']
|
|
91
91
|
progress: DownloadTask['onProgressUpdate']
|
|
92
92
|
}
|
|
93
93
|
}
|
|
@@ -86,7 +86,7 @@ declare module '../../index' {
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
type UploadTaskPromise = Promise<uploadFile.SuccessCallbackResult> & UploadTask & {
|
|
89
|
-
headersReceive: UploadTask['onHeadersReceived']
|
|
89
|
+
headersReceive: UploadTask['onHeadersReceived']
|
|
90
90
|
progress: UploadTask['onProgressUpdate']
|
|
91
91
|
}
|
|
92
92
|
}
|
|
@@ -24,9 +24,9 @@ export interface IProjectBaseConfig {
|
|
|
24
24
|
port?: number
|
|
25
25
|
projectName?: string
|
|
26
26
|
date?: string
|
|
27
|
-
designWidth?: number
|
|
28
|
-
watcher?: any[]
|
|
27
|
+
designWidth?: number | ((size: number) => number)
|
|
29
28
|
deviceRatio?: TaroGeneral.TDeviceRatio
|
|
29
|
+
watcher?: any[]
|
|
30
30
|
sourceRoot?: string
|
|
31
31
|
outputRoot?: string
|
|
32
32
|
env?: IOption
|
package/types/index.d.ts
CHANGED
|
@@ -127,6 +127,12 @@
|
|
|
127
127
|
/// <reference path="taro.hooks.d.ts" />
|
|
128
128
|
/// <reference path="taro.lifecycle.d.ts" />
|
|
129
129
|
|
|
130
|
+
/// <reference types="@tarojs/plugin-platform-alipay/types/shims-alipay" />
|
|
131
|
+
/// <reference types="@tarojs/plugin-platform-jd/types/shims-jd" />
|
|
132
|
+
/// <reference types="@tarojs/plugin-platform-swan/types/shims-swan" />
|
|
133
|
+
/// <reference types="@tarojs/plugin-platform-tt/types/shims-tt" />
|
|
134
|
+
/// <reference types="@tarojs/plugin-platform-weapp/types/shims-weapp" />
|
|
135
|
+
|
|
130
136
|
export = Taro
|
|
131
137
|
export as namespace Taro
|
|
132
138
|
|