typescript 5.7.0-dev.20241104 → 5.8.0-dev.20241106
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/lib/_tsc.js +548 -103
- package/lib/_tsserver.js +43 -7
- package/lib/lib.esnext.d.ts +1 -0
- package/lib/lib.esnext.promise.d.ts +34 -0
- package/lib/typescript.d.ts +13 -3
- package/lib/typescript.js +627 -120
- package/package.json +2 -2
- package/lib/cancellationToken.js +0 -90
package/package.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"name": "typescript",
|
3
3
|
"author": "Microsoft Corp.",
|
4
4
|
"homepage": "https://www.typescriptlang.org/",
|
5
|
-
"version": "5.
|
5
|
+
"version": "5.8.0-dev.20241106",
|
6
6
|
"license": "Apache-2.0",
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
8
8
|
"keywords": [
|
@@ -116,5 +116,5 @@
|
|
116
116
|
"node": "20.1.0",
|
117
117
|
"npm": "8.19.4"
|
118
118
|
},
|
119
|
-
"gitHead": "
|
119
|
+
"gitHead": "30979c2651e5b0aa8ab583bbd8161cac3d0ea317"
|
120
120
|
}
|
package/lib/cancellationToken.js
DELETED
@@ -1,90 +0,0 @@
|
|
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
|