@dcloudio/uni-app-x 0.7.81 → 0.7.83
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 → dom2-internal}/UniCSSTransition.d.ts +1 -0
- package/types/dom2-internal/UniElement.d.ts +42 -6
- package/types/{dom2 → dom2-internal}/UniImageElement.d.ts +2 -0
- package/types/{dom2 → dom2-internal}/UniNativeBaseView.d.ts +1 -0
- package/types/dom2-internal/UniNativeScrollView.d.ts +49 -0
- package/types/dom2-internal/UniNestedScrollBodyElement.d.ts +14 -0
- package/types/dom2-internal/UniNestedScrollHeaderElement.d.ts +14 -0
- package/types/{dom2 → dom2-internal}/UniPage.d.ts +30 -81
- package/types/dom2-internal/global.d.ts +280 -1
- package/types/dom2-internal/index.d.ts +44 -1
- package/types/{dom2 → dom2-internal}/sharedData.d.ts +2 -0
- package/types/index.d.ts +0 -1
- package/types/native/UniElement.d.ts +3 -0
- package/types/native/UniPage.d.ts +150 -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-component/global.d.ts +1 -0
- package/types/uni/uts-plugin-component/index.d.ts +1 -0
- package/types/uni/uts-plugin-component/lib/uni-textarea/utssdk/global.d.ts +9 -0
- package/types/uni/uts-plugin-component/lib/uni-textarea/utssdk/index.d.ts +5 -0
- package/types/uni/uts-plugin-component/lib/uni-textarea/utssdk/interface.d.ts +0 -0
- package/types/dom2/UniElement.d.ts +0 -340
- package/types/dom2/UniNativeViewElement.d.ts +0 -72
- package/types/dom2/global.d.ts +0 -301
- package/types/dom2/index.d.ts +0 -41
- /package/types/{dom2 → dom2-internal}/UniCSSProperty.d.ts +0 -0
- /package/types/{dom2 → dom2-internal}/UniCSSTransform.d.ts +0 -0
- /package/types/{dom2 → dom2-internal}/UniCSSType.d.ts +0 -0
- /package/types/{dom2 → dom2-internal}/UniCommon.d.ts +0 -0
- /package/types/{dom2 → dom2-internal}/UniElementType.d.ts +0 -0
- /package/types/{dom2 → dom2-internal}/UniNativeCustomView.d.ts +0 -0
- /package/types/{dom2 → dom2-internal}/UniNativeDefines.d.ts +0 -0
- /package/types/{dom2 → dom2-internal}/UniNativeImageView.d.ts +0 -0
- /package/types/{dom2/UniNativeScrollView.d.ts → dom2-internal/UniNativeNestedScrollView.d.ts} +0 -0
- /package/types/{dom2 → dom2-internal}/UniNativeTextView.d.ts +0 -0
- /package/types/{dom2 → dom2-internal}/UniNativeView.d.ts +0 -0
- /package/types/{dom2 → dom2-internal}/UniNativeViewType.d.ts +0 -0
- /package/types/{dom2 → dom2-internal}/UniScrollViewElement.d.ts +0 -0
- /package/types/{dom2 → dom2-internal}/UniTextElement.d.ts +0 -0
- /package/types/{dom2 → dom2-internal}/UniTextLayout.d.ts +0 -0
- /package/types/{dom2 → dom2-internal}/UniViewElement.d.ts +0 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
5
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
|
|
7
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
8
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
9
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
10
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
11
|
+
|
|
12
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
13
|
+
and limitations under the License.
|
|
14
|
+
***************************************************************************** */
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
"use strict";
|
|
18
|
+
var __create = Object.create;
|
|
19
|
+
var __defProp = Object.defineProperty;
|
|
20
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
21
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
22
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
23
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
24
|
+
var __copyProps = (to, from, except, desc) => {
|
|
25
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
26
|
+
for (let key of __getOwnPropNames(from))
|
|
27
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
28
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
29
|
+
}
|
|
30
|
+
return to;
|
|
31
|
+
};
|
|
32
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
33
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
34
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
35
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
36
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
37
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
38
|
+
mod
|
|
39
|
+
));
|
|
40
|
+
|
|
41
|
+
// src/cancellationToken/cancellationToken.ts
|
|
42
|
+
var fs = __toESM(require("fs"));
|
|
43
|
+
function pipeExists(name) {
|
|
44
|
+
return fs.existsSync(name);
|
|
45
|
+
}
|
|
46
|
+
function createCancellationToken(args) {
|
|
47
|
+
let cancellationPipeName;
|
|
48
|
+
for (let i = 0; i < args.length - 1; i++) {
|
|
49
|
+
if (args[i] === "--cancellationPipeName") {
|
|
50
|
+
cancellationPipeName = args[i + 1];
|
|
51
|
+
break;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
if (!cancellationPipeName) {
|
|
55
|
+
return {
|
|
56
|
+
isCancellationRequested: () => false,
|
|
57
|
+
setRequest: (_requestId) => void 0,
|
|
58
|
+
resetRequest: (_requestId) => void 0
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
if (cancellationPipeName.charAt(cancellationPipeName.length - 1) === "*") {
|
|
62
|
+
const namePrefix = cancellationPipeName.slice(0, -1);
|
|
63
|
+
if (namePrefix.length === 0 || namePrefix.includes("*")) {
|
|
64
|
+
throw new Error("Invalid name for template cancellation pipe: it should have length greater than 2 characters and contain only one '*'.");
|
|
65
|
+
}
|
|
66
|
+
let perRequestPipeName;
|
|
67
|
+
let currentRequestId;
|
|
68
|
+
return {
|
|
69
|
+
isCancellationRequested: () => perRequestPipeName !== void 0 && pipeExists(perRequestPipeName),
|
|
70
|
+
setRequest(requestId) {
|
|
71
|
+
currentRequestId = requestId;
|
|
72
|
+
perRequestPipeName = namePrefix + requestId;
|
|
73
|
+
},
|
|
74
|
+
resetRequest(requestId) {
|
|
75
|
+
if (currentRequestId !== requestId) {
|
|
76
|
+
throw new Error(`Mismatched request id, expected ${currentRequestId}, actual ${requestId}`);
|
|
77
|
+
}
|
|
78
|
+
perRequestPipeName = void 0;
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
} else {
|
|
82
|
+
return {
|
|
83
|
+
isCancellationRequested: () => pipeExists(cancellationPipeName),
|
|
84
|
+
setRequest: (_requestId) => void 0,
|
|
85
|
+
resetRequest: (_requestId) => void 0
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
module.exports = createCancellationToken;
|
|
90
|
+
//# sourceMappingURL=cancellationToken.js.map
|