@dcloudio/uni-app-x 0.7.89 → 0.7.91
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 +1 -1
- package/types/dom2-internal/UniElement.d.ts +10 -2
- package/types/dom2-internal/UniNativeBaseView.d.ts +6 -8
- package/types/dom2-internal/UniNativeDefines.d.ts +2 -1
- package/types/dom2-internal/UniNativeRichTextNativelView.d.ts +15 -0
- package/types/dom2-internal/UniPage.d.ts +11 -0
- package/types/dom2-internal/UniRichTextNativeEement.d.ts +15 -0
- package/types/dom2-internal/global.d.ts +2 -0
- package/types/dom2-internal/index.d.ts +3 -0
- package/types/dom2-internal/sharedData.d.ts +5 -1
- package/types/native/CSSStyleDeclaration.d.ts +20 -18
- package/types/native/CanvasRenderingContext2D.d.ts +1872 -905
- package/types/native/DrawableContext.d.ts +214 -55
- package/types/native/IUniElement.d.ts +400 -419
- package/types/native/UniPage.d.ts +74 -0
- package/types/native/UniResizeObserver.d.ts +332 -2
- package/types/native/global.d.ts +4 -0
- package/types/node_modules/.package-lock.json +20 -0
- package/types/node_modules/typescript/LICENSE.txt +55 -0
- package/types/node_modules/typescript/ThirdPartyNoticeText.txt +193 -0
- package/types/node_modules/typescript/bin/tsc +2 -0
- package/types/node_modules/typescript/bin/tsserver +2 -0
- package/types/node_modules/typescript/lib/cancellationToken.js +90 -0
- package/types/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +1880 -0
- package/types/node_modules/typescript/lib/de/diagnosticMessages.generated.json +1880 -0
- package/types/node_modules/typescript/lib/es/diagnosticMessages.generated.json +1880 -0
- package/types/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +1880 -0
- package/types/node_modules/typescript/lib/it/diagnosticMessages.generated.json +1880 -0
- package/types/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +1880 -0
- package/types/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +1880 -0
- package/types/node_modules/typescript/lib/lib.d.ts +22 -0
- package/types/node_modules/typescript/lib/lib.decorators.d.ts +386 -0
- package/types/node_modules/typescript/lib/lib.decorators.legacy.d.ts +22 -0
- package/types/node_modules/typescript/lib/lib.dom.asynciterable.d.ts +33 -0
- package/types/node_modules/typescript/lib/lib.dom.d.ts +28596 -0
- package/types/node_modules/typescript/lib/lib.dom.iterable.d.ts +475 -0
- package/types/node_modules/typescript/lib/lib.es2015.collection.d.ts +147 -0
- package/types/node_modules/typescript/lib/lib.es2015.core.d.ts +597 -0
- package/types/node_modules/typescript/lib/lib.es2015.d.ts +28 -0
- package/types/node_modules/typescript/lib/lib.es2015.generator.d.ts +77 -0
- package/types/node_modules/typescript/lib/lib.es2015.iterable.d.ts +495 -0
- package/types/node_modules/typescript/lib/lib.es2015.promise.d.ts +81 -0
- package/types/node_modules/typescript/lib/lib.es2015.proxy.d.ts +128 -0
- package/types/node_modules/typescript/lib/lib.es2015.reflect.d.ts +144 -0
- package/types/node_modules/typescript/lib/lib.es2015.symbol.d.ts +46 -0
- package/types/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts +326 -0
- package/types/node_modules/typescript/lib/lib.es2016.array.include.d.ts +116 -0
- package/types/node_modules/typescript/lib/lib.es2016.d.ts +21 -0
- package/types/node_modules/typescript/lib/lib.es2016.full.d.ts +23 -0
- package/types/node_modules/typescript/lib/lib.es2016.intl.d.ts +31 -0
- package/types/node_modules/typescript/lib/lib.es2017.d.ts +25 -0
- package/types/node_modules/typescript/lib/lib.es2017.date.d.ts +31 -0
- package/types/node_modules/typescript/lib/lib.es2017.full.d.ts +23 -0
- package/types/node_modules/typescript/lib/lib.es2017.intl.d.ts +44 -0
- package/types/node_modules/typescript/lib/lib.es2017.object.d.ts +49 -0
- package/types/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts +135 -0
- package/types/node_modules/typescript/lib/lib.es2017.string.d.ts +45 -0
- package/types/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts +53 -0
- package/types/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts +77 -0
- package/types/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts +43 -0
- package/types/node_modules/typescript/lib/lib.es2018.d.ts +24 -0
- package/types/node_modules/typescript/lib/lib.es2018.full.d.ts +24 -0
- package/types/node_modules/typescript/lib/lib.es2018.intl.d.ts +83 -0
- package/types/node_modules/typescript/lib/lib.es2018.promise.d.ts +30 -0
- package/types/node_modules/typescript/lib/lib.es2018.regexp.d.ts +37 -0
- package/types/node_modules/typescript/lib/lib.es2019.array.d.ts +79 -0
- package/types/node_modules/typescript/lib/lib.es2019.d.ts +24 -0
- package/types/node_modules/typescript/lib/lib.es2019.full.d.ts +24 -0
- package/types/node_modules/typescript/lib/lib.es2019.intl.d.ts +23 -0
- package/types/node_modules/typescript/lib/lib.es2019.object.d.ts +33 -0
- package/types/node_modules/typescript/lib/lib.es2019.string.d.ts +37 -0
- package/types/node_modules/typescript/lib/lib.es2019.symbol.d.ts +24 -0
- package/types/node_modules/typescript/lib/lib.es2020.bigint.d.ts +727 -0
- package/types/node_modules/typescript/lib/lib.es2020.d.ts +27 -0
- package/types/node_modules/typescript/lib/lib.es2020.date.d.ts +42 -0
- package/types/node_modules/typescript/lib/lib.es2020.full.d.ts +24 -0
- package/types/node_modules/typescript/lib/lib.es2020.intl.d.ts +474 -0
- package/types/node_modules/typescript/lib/lib.es2020.number.d.ts +28 -0
- package/types/node_modules/typescript/lib/lib.es2020.promise.d.ts +47 -0
- package/types/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts +97 -0
- package/types/node_modules/typescript/lib/lib.es2020.string.d.ts +42 -0
- package/types/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts +37 -0
- package/types/node_modules/typescript/lib/lib.es2021.d.ts +23 -0
- package/types/node_modules/typescript/lib/lib.es2021.full.d.ts +24 -0
- package/types/node_modules/typescript/lib/lib.es2021.intl.d.ts +166 -0
- package/types/node_modules/typescript/lib/lib.es2021.promise.d.ts +48 -0
- package/types/node_modules/typescript/lib/lib.es2021.string.d.ts +33 -0
- package/types/node_modules/typescript/lib/lib.es2021.weakref.d.ts +76 -0
- package/types/node_modules/typescript/lib/lib.es2022.array.d.ts +121 -0
- package/types/node_modules/typescript/lib/lib.es2022.d.ts +26 -0
- package/types/node_modules/typescript/lib/lib.es2022.error.d.ts +73 -0
- package/types/node_modules/typescript/lib/lib.es2022.full.d.ts +24 -0
- package/types/node_modules/typescript/lib/lib.es2022.intl.d.ts +117 -0
- package/types/node_modules/typescript/lib/lib.es2022.object.d.ts +26 -0
- package/types/node_modules/typescript/lib/lib.es2022.regexp.d.ts +39 -0
- package/types/node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts +39 -0
- package/types/node_modules/typescript/lib/lib.es2022.string.d.ts +25 -0
- package/types/node_modules/typescript/lib/lib.es2023.array.d.ts +924 -0
- package/types/node_modules/typescript/lib/lib.es2023.collection.d.ts +21 -0
- package/types/node_modules/typescript/lib/lib.es2023.d.ts +22 -0
- package/types/node_modules/typescript/lib/lib.es2023.full.d.ts +24 -0
- package/types/node_modules/typescript/lib/lib.es2023.intl.d.ts +56 -0
- package/types/node_modules/typescript/lib/lib.es5.d.ts +4585 -0
- package/types/node_modules/typescript/lib/lib.es6.d.ts +23 -0
- package/types/node_modules/typescript/lib/lib.esnext.array.d.ts +35 -0
- package/types/node_modules/typescript/lib/lib.esnext.collection.d.ts +106 -0
- package/types/node_modules/typescript/lib/lib.esnext.d.ts +28 -0
- package/types/node_modules/typescript/lib/lib.esnext.decorators.d.ts +28 -0
- package/types/node_modules/typescript/lib/lib.esnext.disposable.d.ts +185 -0
- package/types/node_modules/typescript/lib/lib.esnext.full.d.ts +24 -0
- package/types/node_modules/typescript/lib/lib.esnext.intl.d.ts +21 -0
- package/types/node_modules/typescript/lib/lib.esnext.object.d.ts +29 -0
- package/types/node_modules/typescript/lib/lib.esnext.promise.d.ts +35 -0
- package/types/node_modules/typescript/lib/lib.esnext.regexp.d.ts +25 -0
- package/types/node_modules/typescript/lib/lib.esnext.string.d.ts +29 -0
- package/types/node_modules/typescript/lib/lib.scripthost.d.ts +322 -0
- package/types/node_modules/typescript/lib/lib.webworker.asynciterable.d.ts +33 -0
- package/types/node_modules/typescript/lib/lib.webworker.d.ts +9431 -0
- package/types/node_modules/typescript/lib/lib.webworker.importscripts.d.ts +23 -0
- package/types/node_modules/typescript/lib/lib.webworker.iterable.d.ts +276 -0
- package/types/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +1880 -0
- package/types/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +1880 -0
- package/types/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +1880 -0
- package/types/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +1880 -0
- package/types/node_modules/typescript/lib/tsc.js +129741 -0
- package/types/node_modules/typescript/lib/tsserver.js +621 -0
- package/types/node_modules/typescript/lib/tsserverlibrary.d.ts +17 -0
- package/types/node_modules/typescript/lib/tsserverlibrary.js +21 -0
- package/types/node_modules/typescript/lib/typesMap.json +497 -0
- package/types/node_modules/typescript/lib/typescript.d.ts +11240 -0
- package/types/node_modules/typescript/lib/typescript.js +194910 -0
- package/types/node_modules/typescript/lib/typingsInstaller.js +236 -0
- package/types/node_modules/typescript/lib/watchGuard.js +53 -0
- package/types/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +1880 -0
- package/types/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +1880 -0
- package/types/node_modules/typescript/package.json +116 -0
- package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/global.d.ts +10 -0
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/index.d.ts +5 -0
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +141 -71
- package/types/uni/uts-plugin-component/lib/uni-canvas/utssdk/interface.d.ts +16 -8
- package/types/uni/uts-plugin-component/lib/uni-canvas-dom2/utssdk/interface.d.ts +16 -8
- package/types/uni/uts-plugin-component/lib/uni-progress-global/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +18 -9
- package/types/uni/uts-plugin-component/lib/uni-web-view/utssdk/interface.d.ts +131 -110
- package/types/uni-cloud/index.d.ts +3 -1
- package/types/uni-cloud/interface.d.ts +305 -62
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "typescript",
|
|
3
|
+
"author": "Microsoft Corp.",
|
|
4
|
+
"homepage": "https://www.typescriptlang.org/",
|
|
5
|
+
"version": "5.5.2",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"TypeScript",
|
|
10
|
+
"Microsoft",
|
|
11
|
+
"compiler",
|
|
12
|
+
"language",
|
|
13
|
+
"javascript"
|
|
14
|
+
],
|
|
15
|
+
"bugs": {
|
|
16
|
+
"url": "https://github.com/Microsoft/TypeScript/issues"
|
|
17
|
+
},
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "https://github.com/Microsoft/TypeScript.git"
|
|
21
|
+
},
|
|
22
|
+
"main": "./lib/typescript.js",
|
|
23
|
+
"typings": "./lib/typescript.d.ts",
|
|
24
|
+
"bin": {
|
|
25
|
+
"tsc": "./bin/tsc",
|
|
26
|
+
"tsserver": "./bin/tsserver"
|
|
27
|
+
},
|
|
28
|
+
"engines": {
|
|
29
|
+
"node": ">=14.17"
|
|
30
|
+
},
|
|
31
|
+
"files": [
|
|
32
|
+
"bin",
|
|
33
|
+
"lib",
|
|
34
|
+
"!lib/enu",
|
|
35
|
+
"LICENSE.txt",
|
|
36
|
+
"README.md",
|
|
37
|
+
"SECURITY.md",
|
|
38
|
+
"ThirdPartyNoticeText.txt",
|
|
39
|
+
"!**/.gitattributes"
|
|
40
|
+
],
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@dprint/formatter": "^0.3.0",
|
|
43
|
+
"@dprint/typescript": "0.91.0",
|
|
44
|
+
"@esfx/canceltoken": "^1.0.0",
|
|
45
|
+
"@octokit/rest": "^20.1.1",
|
|
46
|
+
"@types/chai": "^4.3.16",
|
|
47
|
+
"@types/microsoft__typescript-etw": "^0.1.3",
|
|
48
|
+
"@types/minimist": "^1.2.5",
|
|
49
|
+
"@types/mocha": "^10.0.6",
|
|
50
|
+
"@types/ms": "^0.7.34",
|
|
51
|
+
"@types/node": "latest",
|
|
52
|
+
"@types/source-map-support": "^0.5.10",
|
|
53
|
+
"@types/which": "^3.0.3",
|
|
54
|
+
"@typescript-eslint/eslint-plugin": "^7.11.0",
|
|
55
|
+
"@typescript-eslint/parser": "^7.11.0",
|
|
56
|
+
"@typescript-eslint/utils": "^7.11.0",
|
|
57
|
+
"azure-devops-node-api": "^13.0.0",
|
|
58
|
+
"c8": "^9.1.0",
|
|
59
|
+
"chai": "^4.4.1",
|
|
60
|
+
"chalk": "^4.1.2",
|
|
61
|
+
"chokidar": "^3.6.0",
|
|
62
|
+
"diff": "^5.2.0",
|
|
63
|
+
"dprint": "^0.46.1",
|
|
64
|
+
"esbuild": "^0.21.4",
|
|
65
|
+
"eslint": "^8.57.0",
|
|
66
|
+
"eslint-formatter-autolinkable-stylish": "^1.3.0",
|
|
67
|
+
"eslint-plugin-local": "^4.2.2",
|
|
68
|
+
"fast-xml-parser": "^4.4.0",
|
|
69
|
+
"glob": "^10.4.1",
|
|
70
|
+
"hereby": "^1.8.9",
|
|
71
|
+
"jsonc-parser": "^3.2.1",
|
|
72
|
+
"minimist": "^1.2.8",
|
|
73
|
+
"mocha": "^10.4.0",
|
|
74
|
+
"mocha-fivemat-progress-reporter": "^0.1.0",
|
|
75
|
+
"ms": "^2.1.3",
|
|
76
|
+
"node-fetch": "^3.3.2",
|
|
77
|
+
"playwright": "^1.44.1",
|
|
78
|
+
"source-map-support": "^0.5.21",
|
|
79
|
+
"tslib": "^2.6.2",
|
|
80
|
+
"typescript": "^5.4.5",
|
|
81
|
+
"which": "^3.0.1"
|
|
82
|
+
},
|
|
83
|
+
"overrides": {
|
|
84
|
+
"typescript@*": "$typescript"
|
|
85
|
+
},
|
|
86
|
+
"scripts": {
|
|
87
|
+
"test": "hereby runtests-parallel --light=false",
|
|
88
|
+
"test:eslint-rules": "hereby run-eslint-rules-tests",
|
|
89
|
+
"build": "npm run build:compiler && npm run build:tests",
|
|
90
|
+
"build:compiler": "hereby local",
|
|
91
|
+
"build:tests": "hereby tests",
|
|
92
|
+
"build:tests:notypecheck": "hereby tests --no-typecheck",
|
|
93
|
+
"clean": "hereby clean",
|
|
94
|
+
"gulp": "hereby",
|
|
95
|
+
"lint": "hereby lint",
|
|
96
|
+
"format": "dprint fmt",
|
|
97
|
+
"setup-hooks": "node scripts/link-hooks.mjs"
|
|
98
|
+
},
|
|
99
|
+
"browser": {
|
|
100
|
+
"fs": false,
|
|
101
|
+
"os": false,
|
|
102
|
+
"path": false,
|
|
103
|
+
"crypto": false,
|
|
104
|
+
"buffer": false,
|
|
105
|
+
"@microsoft/typescript-etw": false,
|
|
106
|
+
"source-map-support": false,
|
|
107
|
+
"inspector": false,
|
|
108
|
+
"perf_hooks": false
|
|
109
|
+
},
|
|
110
|
+
"packageManager": "npm@8.19.4",
|
|
111
|
+
"volta": {
|
|
112
|
+
"node": "20.1.0",
|
|
113
|
+
"npm": "8.19.4"
|
|
114
|
+
},
|
|
115
|
+
"gitHead": "ce2e60e4ea15a65992e54a9e8877d16be9d42abb"
|
|
116
|
+
}
|
|
@@ -968,7 +968,7 @@ export interface Uni {
|
|
|
968
968
|
* "osVer": "3.0",
|
|
969
969
|
* "uniVer": "4.31",
|
|
970
970
|
* "unixVer": "4.61",
|
|
971
|
-
* "unixvVer": "
|
|
971
|
+
* "unixvVer": "x"
|
|
972
972
|
* }
|
|
973
973
|
* },
|
|
974
974
|
* "mp": {
|
|
@@ -1044,7 +1044,7 @@ export interface Uni {
|
|
|
1044
1044
|
* "osVer": "3.0",
|
|
1045
1045
|
* "uniVer": "4.31",
|
|
1046
1046
|
* "unixVer": "4.61",
|
|
1047
|
-
* "unixvVer": "
|
|
1047
|
+
* "unixvVer": "x"
|
|
1048
1048
|
* }
|
|
1049
1049
|
* },
|
|
1050
1050
|
* "mp": {
|
|
@@ -45,6 +45,11 @@
|
|
|
45
45
|
ConfigMTLSComplete as ConfigMTLSCompleteOrigin,
|
|
46
46
|
ConfigMTLSCompleteCallback as ConfigMTLSCompleteCallbackOrigin,
|
|
47
47
|
ConfigMTLSOptions as ConfigMTLSOptionsOrigin,
|
|
48
|
+
PrefetchDNSNetAddress as PrefetchDNSNetAddressOrigin,
|
|
49
|
+
PrefetchDNSSuccess as PrefetchDNSSuccessOrigin,
|
|
50
|
+
PrefetchDNSFail as PrefetchDNSFailOrigin,
|
|
51
|
+
PrefetchDNSOptions as PrefetchDNSOptionsOrigin,
|
|
52
|
+
PrefetchDNS as PrefetchDNSOrigin,
|
|
48
53
|
Uni as UniOrigin
|
|
49
54
|
} from './interface'
|
|
50
55
|
|
|
@@ -94,6 +99,11 @@
|
|
|
94
99
|
type ConfigMTLSComplete = ConfigMTLSCompleteOrigin
|
|
95
100
|
type ConfigMTLSCompleteCallback = ConfigMTLSCompleteCallbackOrigin
|
|
96
101
|
type ConfigMTLSOptions = ConfigMTLSOptionsOrigin
|
|
102
|
+
type PrefetchDNSNetAddress = PrefetchDNSNetAddressOrigin
|
|
103
|
+
type PrefetchDNSSuccess = PrefetchDNSSuccessOrigin
|
|
104
|
+
type PrefetchDNSFail = PrefetchDNSFailOrigin
|
|
105
|
+
type PrefetchDNSOptions = PrefetchDNSOptionsOrigin
|
|
106
|
+
type PrefetchDNS = PrefetchDNSOrigin
|
|
97
107
|
interface Uni extends UniOrigin { }
|
|
98
108
|
}
|
|
99
109
|
|
|
@@ -370,71 +370,77 @@ export type RequestOptions<T> = {
|
|
|
370
370
|
}
|
|
371
371
|
*/
|
|
372
372
|
timeout?: number | null,
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
373
|
+
/**
|
|
374
|
+
* 是否开启 Quic/h3 协议
|
|
375
|
+
* @defaultValue false
|
|
376
|
+
* @uniPlatform
|
|
377
|
+
{
|
|
378
|
+
"app": {
|
|
379
|
+
"android": {
|
|
380
|
+
"osVer": "6.0",
|
|
381
|
+
"uniVer": "x",
|
|
382
|
+
"uniUtsPlugin": "5.0",
|
|
383
|
+
"unixVer": "5.0"
|
|
384
|
+
},
|
|
385
|
+
"ios": {
|
|
386
|
+
"osVer": "x",
|
|
387
|
+
"uniVer": "x",
|
|
388
|
+
"uniUtsPlugin": "x",
|
|
389
|
+
"unixVer": "5.0",
|
|
390
|
+
"unixUtsPlugin": "5.0"
|
|
391
|
+
},
|
|
392
|
+
"harmony": {
|
|
393
|
+
"osVer": "3.0",
|
|
394
|
+
"uniVer": "x",
|
|
395
|
+
"uniUtsPlugin": "5.0",
|
|
396
|
+
"unixVer": "5.0"
|
|
397
|
+
}
|
|
398
|
+
},
|
|
399
|
+
* "mp": {
|
|
400
|
+
* "weixin": {
|
|
401
|
+
* "hostVer": "√",
|
|
402
|
+
* "uniVer": "√",
|
|
403
|
+
* "unixVer": "x"
|
|
404
|
+
* },
|
|
405
|
+
* "alipay": {
|
|
406
|
+
* "hostVer": "x",
|
|
407
|
+
* "uniVer": "x",
|
|
408
|
+
* "unixVer": "x"
|
|
409
|
+
* },
|
|
410
|
+
* "baidu": {
|
|
411
|
+
* "hostVer": "x",
|
|
412
|
+
* "uniVer": "x",
|
|
413
|
+
* "unixVer": "x"
|
|
414
|
+
* },
|
|
415
|
+
* "toutiao": {
|
|
416
|
+
* "hostVer": "x",
|
|
417
|
+
* "uniVer": "x",
|
|
418
|
+
* "unixVer": "x"
|
|
419
|
+
* },
|
|
420
|
+
* "lark": {
|
|
421
|
+
* "hostVer": "x",
|
|
422
|
+
* "uniVer": "x",
|
|
423
|
+
* "unixVer": "x"
|
|
424
|
+
* },
|
|
425
|
+
* "qq": {
|
|
426
|
+
* "hostVer": "x",
|
|
427
|
+
* "uniVer": "x",
|
|
428
|
+
* "unixVer": "x"
|
|
429
|
+
* },
|
|
430
|
+
* "kuaishou": {
|
|
431
|
+
* "hostVer": "x",
|
|
432
|
+
* "uniVer": "x",
|
|
433
|
+
* "unixVer": "x"
|
|
434
|
+
* },
|
|
435
|
+
* "jd": {
|
|
436
|
+
* "hostVer": "x",
|
|
437
|
+
* "uniVer": "x",
|
|
438
|
+
* "unixVer": "x"
|
|
439
|
+
* }
|
|
440
|
+
* }
|
|
441
|
+
}
|
|
442
|
+
*/
|
|
443
|
+
enableQuic?: boolean | null,
|
|
438
444
|
/**
|
|
439
445
|
* 如果设为 json,会对返回的数据进行一次 JSON.parse,非 json 不会进行 JSON.parse
|
|
440
446
|
* @defaultValue "json"
|
|
@@ -1008,10 +1014,10 @@ export type RequestErrorCode =
|
|
|
1008
1014
|
* 错误信息json解析失败
|
|
1009
1015
|
*/
|
|
1010
1016
|
100002 |
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1017
|
+
/**
|
|
1018
|
+
* json解析类型转换失败
|
|
1019
|
+
*/
|
|
1020
|
+
100003 |
|
|
1015
1021
|
/**
|
|
1016
1022
|
* 网络中断
|
|
1017
1023
|
*/
|
|
@@ -1593,7 +1599,7 @@ export interface RequestTask {
|
|
|
1593
1599
|
* }
|
|
1594
1600
|
* }
|
|
1595
1601
|
*/
|
|
1596
|
-
|
|
1602
|
+
offChunkReceived(listener?: number | RequestTaskOnChunkReceivedCallback | null): void
|
|
1597
1603
|
/**
|
|
1598
1604
|
* 监听 HTTP Response Header 事件。
|
|
1599
1605
|
* @tutorial_uni_app https://uniapp.dcloud.net.cn/api/request/request.html
|
|
@@ -1750,7 +1756,7 @@ export interface RequestTask {
|
|
|
1750
1756
|
* }
|
|
1751
1757
|
* }
|
|
1752
1758
|
*/
|
|
1753
|
-
|
|
1759
|
+
offHeadersReceived(listener?: number | RequestTaskOnHeadersReceivedCallback | null): void
|
|
1754
1760
|
}
|
|
1755
1761
|
|
|
1756
1762
|
//===============================上传==================================
|
|
@@ -4917,6 +4923,37 @@ export type ConfigMTLSOptions = {
|
|
|
4917
4923
|
*/
|
|
4918
4924
|
complete?: ConfigMTLSCompleteCallback | null
|
|
4919
4925
|
}
|
|
4926
|
+
// export type PrefetchDNSNetAddress = {
|
|
4927
|
+
// /** 地址 */
|
|
4928
|
+
// address: string
|
|
4929
|
+
// /** IP类型 */
|
|
4930
|
+
// family: 'IPv4' | 'IPv6'
|
|
4931
|
+
// /** 端口 */
|
|
4932
|
+
// port: number
|
|
4933
|
+
// }
|
|
4934
|
+
// export type PrefetchDNSSuccess = PrefetchDNSNetAddress[]
|
|
4935
|
+
|
|
4936
|
+
// export type PrefetchDNSFail = {
|
|
4937
|
+
// /** 错误码 */
|
|
4938
|
+
// code: number,
|
|
4939
|
+
// }
|
|
4940
|
+
// export type PrefetchDNSOptions = {
|
|
4941
|
+
// /** 域名 */
|
|
4942
|
+
// domain: string
|
|
4943
|
+
// /**
|
|
4944
|
+
// * 成功的回调函数
|
|
4945
|
+
// */
|
|
4946
|
+
// success?: (result: PrefetchDNSSuccess) => void
|
|
4947
|
+
// /**
|
|
4948
|
+
// * 失败的回调函数
|
|
4949
|
+
// */
|
|
4950
|
+
// fail?: (result: PrefetchDNSFail) => void
|
|
4951
|
+
// /**
|
|
4952
|
+
// * 结束的回调函数(调用成功、失败都会执行)
|
|
4953
|
+
// */
|
|
4954
|
+
// complete?: (result: any) => void
|
|
4955
|
+
// }
|
|
4956
|
+
// export type PrefetchDNS = (options: PrefetchDNSOptions) => void;
|
|
4920
4957
|
|
|
4921
4958
|
export interface Uni {
|
|
4922
4959
|
/**
|
|
@@ -5239,6 +5276,39 @@ export interface Uni {
|
|
|
5239
5276
|
}
|
|
5240
5277
|
*/
|
|
5241
5278
|
configMTLS(options: ConfigMTLSOptions): void;
|
|
5279
|
+
|
|
5280
|
+
/**
|
|
5281
|
+
* DNS 预解析域名
|
|
5282
|
+
* @param options
|
|
5283
|
+
* @uniPlatform
|
|
5284
|
+
* {
|
|
5285
|
+
* "app": {
|
|
5286
|
+
* "android": {
|
|
5287
|
+
* "osVer": "4.4",
|
|
5288
|
+
* "uniVer": "3.2.7",
|
|
5289
|
+
* "uniUtsPlugin": "x",
|
|
5290
|
+
* "unixVer": "x"
|
|
5291
|
+
* },
|
|
5292
|
+
* "ios": {
|
|
5293
|
+
* "osVer": "10.0",
|
|
5294
|
+
* "uniVer": "3.2.7",
|
|
5295
|
+
* "uniUtsPlugin": "x",
|
|
5296
|
+
* "unixVer": "x",
|
|
5297
|
+
* "unixUtsPlugin": "x"
|
|
5298
|
+
* },
|
|
5299
|
+
* "harmony": {
|
|
5300
|
+
* "osVer": "3.0",
|
|
5301
|
+
* "uniVer": "5.0",
|
|
5302
|
+
* "unixVer": "5.0"
|
|
5303
|
+
* }
|
|
5304
|
+
* },
|
|
5305
|
+
* "web": {
|
|
5306
|
+
* "uniVer": "x",
|
|
5307
|
+
* "unixVer": "x"
|
|
5308
|
+
* }
|
|
5309
|
+
* }
|
|
5310
|
+
*/
|
|
5311
|
+
// prefetchDNS(options: PrefetchDNSOptions): void;
|
|
5242
5312
|
}
|
|
5243
5313
|
|
|
5244
5314
|
/**
|
|
@@ -90,7 +90,8 @@ export interface CanvasContext {
|
|
|
90
90
|
* "harmony": {
|
|
91
91
|
* "osVer": "5.0.0",
|
|
92
92
|
* "uniVer": "x",
|
|
93
|
-
* "unixVer": "4.61"
|
|
93
|
+
* "unixVer": "4.61",
|
|
94
|
+
* "unixvVer": "5.0"
|
|
94
95
|
* }
|
|
95
96
|
* },
|
|
96
97
|
* "web": {
|
|
@@ -159,7 +160,8 @@ export interface CanvasContext {
|
|
|
159
160
|
* "harmony": {
|
|
160
161
|
* "osVer": "5.0.0",
|
|
161
162
|
* "uniVer": "x",
|
|
162
|
-
* "unixVer": "4.61"
|
|
163
|
+
* "unixVer": "4.61",
|
|
164
|
+
* "unixvVer": "5.0"
|
|
163
165
|
* }
|
|
164
166
|
* },
|
|
165
167
|
* "web": {
|
|
@@ -228,7 +230,8 @@ export interface CanvasContext {
|
|
|
228
230
|
* "harmony": {
|
|
229
231
|
* "osVer": "5.0.0",
|
|
230
232
|
* "uniVer": "x",
|
|
231
|
-
* "unixVer": "4.61"
|
|
233
|
+
* "unixVer": "4.61",
|
|
234
|
+
* "unixvVer": "5.0"
|
|
232
235
|
* }
|
|
233
236
|
* },
|
|
234
237
|
* "web": {
|
|
@@ -297,7 +300,8 @@ export interface CanvasContext {
|
|
|
297
300
|
* "harmony": {
|
|
298
301
|
* "osVer": "5.0.0",
|
|
299
302
|
* "uniVer": "x",
|
|
300
|
-
* "unixVer": "4.61"
|
|
303
|
+
* "unixVer": "4.61",
|
|
304
|
+
* "unixvVer": "5.0"
|
|
301
305
|
* }
|
|
302
306
|
* },
|
|
303
307
|
* "web": {
|
|
@@ -366,7 +370,8 @@ export interface CanvasContext {
|
|
|
366
370
|
* "harmony": {
|
|
367
371
|
* "osVer": "5.0.0",
|
|
368
372
|
* "uniVer": "x",
|
|
369
|
-
* "unixVer": "4.61"
|
|
373
|
+
* "unixVer": "4.61",
|
|
374
|
+
* "unixvVer": "5.0"
|
|
370
375
|
* }
|
|
371
376
|
* },
|
|
372
377
|
* "web": {
|
|
@@ -435,7 +440,8 @@ export interface CanvasContext {
|
|
|
435
440
|
* "harmony": {
|
|
436
441
|
* "osVer": "5.0.0",
|
|
437
442
|
* "uniVer": "x",
|
|
438
|
-
* "unixVer": "4.61"
|
|
443
|
+
* "unixVer": "4.61",
|
|
444
|
+
* "unixvVer": "5.0"
|
|
439
445
|
* }
|
|
440
446
|
* },
|
|
441
447
|
* "web": {
|
|
@@ -504,7 +510,8 @@ export interface CanvasContext {
|
|
|
504
510
|
* "harmony": {
|
|
505
511
|
* "osVer": "5.0.0",
|
|
506
512
|
* "uniVer": "x",
|
|
507
|
-
* "unixVer": "4.61"
|
|
513
|
+
* "unixVer": "4.61",
|
|
514
|
+
* "unixvVer": "5.0"
|
|
508
515
|
* }
|
|
509
516
|
* },
|
|
510
517
|
* "web": {
|
|
@@ -913,7 +920,8 @@ export interface Uni {
|
|
|
913
920
|
* "harmony": {
|
|
914
921
|
* "osVer": "5.0.0",
|
|
915
922
|
* "uniVer": "x",
|
|
916
|
-
* "unixVer": "4.61"
|
|
923
|
+
* "unixVer": "4.61",
|
|
924
|
+
* "unixvVer": "5.0"
|
|
917
925
|
* }
|
|
918
926
|
* },
|
|
919
927
|
* "web": {
|
|
@@ -90,7 +90,8 @@ export interface CanvasContext {
|
|
|
90
90
|
* "harmony": {
|
|
91
91
|
* "osVer": "5.0.0",
|
|
92
92
|
* "uniVer": "x",
|
|
93
|
-
* "unixVer": "4.61"
|
|
93
|
+
* "unixVer": "4.61",
|
|
94
|
+
* "unixvVer": "5.0"
|
|
94
95
|
* }
|
|
95
96
|
* },
|
|
96
97
|
* "web": {
|
|
@@ -159,7 +160,8 @@ export interface CanvasContext {
|
|
|
159
160
|
* "harmony": {
|
|
160
161
|
* "osVer": "5.0.0",
|
|
161
162
|
* "uniVer": "x",
|
|
162
|
-
* "unixVer": "4.61"
|
|
163
|
+
* "unixVer": "4.61",
|
|
164
|
+
* "unixvVer": "5.0"
|
|
163
165
|
* }
|
|
164
166
|
* },
|
|
165
167
|
* "web": {
|
|
@@ -228,7 +230,8 @@ export interface CanvasContext {
|
|
|
228
230
|
* "harmony": {
|
|
229
231
|
* "osVer": "5.0.0",
|
|
230
232
|
* "uniVer": "x",
|
|
231
|
-
* "unixVer": "4.61"
|
|
233
|
+
* "unixVer": "4.61",
|
|
234
|
+
* "unixvVer": "5.0"
|
|
232
235
|
* }
|
|
233
236
|
* },
|
|
234
237
|
* "web": {
|
|
@@ -297,7 +300,8 @@ export interface CanvasContext {
|
|
|
297
300
|
* "harmony": {
|
|
298
301
|
* "osVer": "5.0.0",
|
|
299
302
|
* "uniVer": "x",
|
|
300
|
-
* "unixVer": "4.61"
|
|
303
|
+
* "unixVer": "4.61",
|
|
304
|
+
* "unixvVer": "5.0"
|
|
301
305
|
* }
|
|
302
306
|
* },
|
|
303
307
|
* "web": {
|
|
@@ -366,7 +370,8 @@ export interface CanvasContext {
|
|
|
366
370
|
* "harmony": {
|
|
367
371
|
* "osVer": "5.0.0",
|
|
368
372
|
* "uniVer": "x",
|
|
369
|
-
* "unixVer": "4.61"
|
|
373
|
+
* "unixVer": "4.61",
|
|
374
|
+
* "unixvVer": "5.0"
|
|
370
375
|
* }
|
|
371
376
|
* },
|
|
372
377
|
* "web": {
|
|
@@ -435,7 +440,8 @@ export interface CanvasContext {
|
|
|
435
440
|
* "harmony": {
|
|
436
441
|
* "osVer": "5.0.0",
|
|
437
442
|
* "uniVer": "x",
|
|
438
|
-
* "unixVer": "4.61"
|
|
443
|
+
* "unixVer": "4.61",
|
|
444
|
+
* "unixvVer": "5.0"
|
|
439
445
|
* }
|
|
440
446
|
* },
|
|
441
447
|
* "web": {
|
|
@@ -504,7 +510,8 @@ export interface CanvasContext {
|
|
|
504
510
|
* "harmony": {
|
|
505
511
|
* "osVer": "5.0.0",
|
|
506
512
|
* "uniVer": "x",
|
|
507
|
-
* "unixVer": "4.61"
|
|
513
|
+
* "unixVer": "4.61",
|
|
514
|
+
* "unixvVer": "5.0"
|
|
508
515
|
* }
|
|
509
516
|
* },
|
|
510
517
|
* "web": {
|
|
@@ -913,7 +920,8 @@ export interface Uni {
|
|
|
913
920
|
* "harmony": {
|
|
914
921
|
* "osVer": "5.0.0",
|
|
915
922
|
* "uniVer": "x",
|
|
916
|
-
* "unixVer": "4.61"
|
|
923
|
+
* "unixVer": "4.61",
|
|
924
|
+
* "unixvVer": "5.0"
|
|
917
925
|
* }
|
|
918
926
|
* },
|
|
919
927
|
* "web": {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export class UniProgressElement extends
|
|
1
|
+
export class UniProgressElement extends UniVueElement {
|
|
2
2
|
}
|
|
@@ -112,7 +112,8 @@ export interface VideoContext {
|
|
|
112
112
|
* "harmony": {
|
|
113
113
|
* "osVer": "3.0",
|
|
114
114
|
* "uniVer": "4.23",
|
|
115
|
-
* "unixVer": "4.61"
|
|
115
|
+
* "unixVer": "4.61",
|
|
116
|
+
* "unixvVer": "5.0"
|
|
116
117
|
* }
|
|
117
118
|
* },
|
|
118
119
|
* "mp": {
|
|
@@ -182,7 +183,8 @@ export interface VideoContext {
|
|
|
182
183
|
* "harmony": {
|
|
183
184
|
* "osVer": "3.0",
|
|
184
185
|
* "uniVer": "4.23",
|
|
185
|
-
* "unixVer": "4.61"
|
|
186
|
+
* "unixVer": "4.61",
|
|
187
|
+
* "unixvVer": "5.0"
|
|
186
188
|
* }
|
|
187
189
|
* },
|
|
188
190
|
* "mp": {
|
|
@@ -253,7 +255,8 @@ export interface VideoContext {
|
|
|
253
255
|
* "harmony": {
|
|
254
256
|
* "osVer": "3.0",
|
|
255
257
|
* "uniVer": "4.23",
|
|
256
|
-
* "unixVer": "4.61"
|
|
258
|
+
* "unixVer": "4.61",
|
|
259
|
+
* "unixvVer": "5.0"
|
|
257
260
|
* }
|
|
258
261
|
* },
|
|
259
262
|
* "mp": {
|
|
@@ -323,7 +326,8 @@ export interface VideoContext {
|
|
|
323
326
|
* "harmony": {
|
|
324
327
|
* "osVer": "3.0",
|
|
325
328
|
* "uniVer": "4.23",
|
|
326
|
-
* "unixVer": "4.61"
|
|
329
|
+
* "unixVer": "4.61",
|
|
330
|
+
* "unixvVer": "5.0"
|
|
327
331
|
* }
|
|
328
332
|
* },
|
|
329
333
|
* "mp": {
|
|
@@ -394,7 +398,8 @@ export interface VideoContext {
|
|
|
394
398
|
* "harmony": {
|
|
395
399
|
* "osVer": "3.0",
|
|
396
400
|
* "uniVer": "4.23",
|
|
397
|
-
* "unixVer": "4.61"
|
|
401
|
+
* "unixVer": "4.61",
|
|
402
|
+
* "unixvVer": "5.0"
|
|
398
403
|
* }
|
|
399
404
|
* },
|
|
400
405
|
* "mp": {
|
|
@@ -465,7 +470,8 @@ export interface VideoContext {
|
|
|
465
470
|
* "harmony": {
|
|
466
471
|
* "osVer": "3.0",
|
|
467
472
|
* "uniVer": "4.23",
|
|
468
|
-
* "unixVer": "4.61"
|
|
473
|
+
* "unixVer": "4.61",
|
|
474
|
+
* "unixvVer": "5.0"
|
|
469
475
|
* }
|
|
470
476
|
* },
|
|
471
477
|
* "mp": {
|
|
@@ -536,7 +542,8 @@ export interface VideoContext {
|
|
|
536
542
|
* "harmony": {
|
|
537
543
|
* "osVer": "3.0",
|
|
538
544
|
* "uniVer": "4.23",
|
|
539
|
-
* "unixVer": "4.61"
|
|
545
|
+
* "unixVer": "4.61",
|
|
546
|
+
* "unixvVer": "5.0"
|
|
540
547
|
* }
|
|
541
548
|
* },
|
|
542
549
|
* "mp": {
|
|
@@ -607,7 +614,8 @@ export interface VideoContext {
|
|
|
607
614
|
* "harmony": {
|
|
608
615
|
* "osVer": "3.0",
|
|
609
616
|
* "uniVer": "4.23",
|
|
610
|
-
* "unixVer": "4.61"
|
|
617
|
+
* "unixVer": "4.61",
|
|
618
|
+
* "unixvVer": "5.0"
|
|
611
619
|
* }
|
|
612
620
|
* },
|
|
613
621
|
* "mp": {
|
|
@@ -680,7 +688,8 @@ export interface Uni {
|
|
|
680
688
|
* "harmony": {
|
|
681
689
|
* "osVer": "5.0.0",
|
|
682
690
|
* "uniVer": "4.23",
|
|
683
|
-
* "unixVer": "4.61"
|
|
691
|
+
* "unixVer": "4.61",
|
|
692
|
+
* "unixvVer": "5.0"
|
|
684
693
|
* }
|
|
685
694
|
* },
|
|
686
695
|
* "web": {
|