typescript 4.9.0-dev.20220822 → 4.9.0-dev.20220823
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 +41 -41
- package/lib/tsserver.js +59 -59
- package/lib/tsserverlibrary.d.ts +2 -0
- package/lib/tsserverlibrary.js +59 -59
- package/lib/typescript.d.ts +2 -0
- package/lib/typescript.js +58 -58
- package/lib/typescriptServices.d.ts +2 -0
- package/lib/typescriptServices.js +58 -58
- package/lib/typingsInstaller.js +49 -49
- package/package.json +2 -2
- package/.eslintcache +0 -1
package/lib/typingsInstaller.js
CHANGED
|
@@ -89,7 +89,7 @@ var ts;
|
|
|
89
89
|
// The following is baselined as a literal template type without intervention
|
|
90
90
|
/** The version of the TypeScript compiler release */
|
|
91
91
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
92
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
92
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220823";
|
|
93
93
|
/* @internal */
|
|
94
94
|
var Comparison;
|
|
95
95
|
(function (Comparison) {
|
|
@@ -110,7 +110,7 @@ var ts;
|
|
|
110
110
|
function tryGetNativeMap() {
|
|
111
111
|
// Internet Explorer's Map doesn't support iteration, so don't use it.
|
|
112
112
|
var gMap = globals === null || globals === void 0 ? void 0 : globals.Map;
|
|
113
|
-
// eslint-disable-next-line no-in-operator
|
|
113
|
+
// eslint-disable-next-line local/no-in-operator
|
|
114
114
|
var constructor = typeof gMap !== "undefined" && "entries" in gMap.prototype && new gMap([[0, 0]]).size === 1 ? gMap : undefined;
|
|
115
115
|
if (!constructor) {
|
|
116
116
|
throw new Error("No compatible Map implementation found.");
|
|
@@ -124,7 +124,7 @@ var ts;
|
|
|
124
124
|
function tryGetNativeSet() {
|
|
125
125
|
// Internet Explorer's Set doesn't support iteration, so don't use it.
|
|
126
126
|
var gSet = globals === null || globals === void 0 ? void 0 : globals.Set;
|
|
127
|
-
// eslint-disable-next-line no-in-operator
|
|
127
|
+
// eslint-disable-next-line local/no-in-operator
|
|
128
128
|
var constructor = typeof gSet !== "undefined" && "entries" in gSet.prototype && new gSet([0]).size === 1 ? gSet : undefined;
|
|
129
129
|
if (!constructor) {
|
|
130
130
|
throw new Error("No compatible Set implementation found.");
|
|
@@ -2823,7 +2823,7 @@ var ts;
|
|
|
2823
2823
|
Debug.formatControlFlowGraph = formatControlFlowGraph;
|
|
2824
2824
|
var flowNodeProto;
|
|
2825
2825
|
function attachFlowNodeDebugInfoWorker(flowNode) {
|
|
2826
|
-
if (!("__debugFlowFlags" in flowNode)) { // eslint-disable-line no-in-operator
|
|
2826
|
+
if (!("__debugFlowFlags" in flowNode)) { // eslint-disable-line local/no-in-operator
|
|
2827
2827
|
Object.defineProperties(flowNode, {
|
|
2828
2828
|
// for use with vscode-js-debug's new customDescriptionGenerator in launch.json
|
|
2829
2829
|
__tsDebuggerDisplay: {
|
|
@@ -2869,7 +2869,7 @@ var ts;
|
|
|
2869
2869
|
Debug.attachFlowNodeDebugInfo = attachFlowNodeDebugInfo;
|
|
2870
2870
|
var nodeArrayProto;
|
|
2871
2871
|
function attachNodeArrayDebugInfoWorker(array) {
|
|
2872
|
-
if (!("__tsDebuggerDisplay" in array)) { // eslint-disable-line no-in-operator
|
|
2872
|
+
if (!("__tsDebuggerDisplay" in array)) { // eslint-disable-line local/no-in-operator
|
|
2873
2873
|
Object.defineProperties(array, {
|
|
2874
2874
|
__tsDebuggerDisplay: {
|
|
2875
2875
|
value: function (defaultValue) {
|
|
@@ -30524,17 +30524,6 @@ var ts;
|
|
|
30524
30524
|
|| kind === 173 /* SetAccessor */;
|
|
30525
30525
|
}
|
|
30526
30526
|
ts.canHaveIllegalTypeParameters = canHaveIllegalTypeParameters;
|
|
30527
|
-
function canHaveDecorators(node) {
|
|
30528
|
-
var kind = node.kind;
|
|
30529
|
-
return kind === 164 /* Parameter */
|
|
30530
|
-
|| kind === 167 /* PropertyDeclaration */
|
|
30531
|
-
|| kind === 169 /* MethodDeclaration */
|
|
30532
|
-
|| kind === 172 /* GetAccessor */
|
|
30533
|
-
|| kind === 173 /* SetAccessor */
|
|
30534
|
-
|| kind === 226 /* ClassExpression */
|
|
30535
|
-
|| kind === 257 /* ClassDeclaration */;
|
|
30536
|
-
}
|
|
30537
|
-
ts.canHaveDecorators = canHaveDecorators;
|
|
30538
30527
|
function canHaveIllegalDecorators(node) {
|
|
30539
30528
|
var kind = node.kind;
|
|
30540
30529
|
return kind === 296 /* PropertyAssignment */
|
|
@@ -30556,35 +30545,6 @@ var ts;
|
|
|
30556
30545
|
|| kind === 271 /* ExportAssignment */;
|
|
30557
30546
|
}
|
|
30558
30547
|
ts.canHaveIllegalDecorators = canHaveIllegalDecorators;
|
|
30559
|
-
function canHaveModifiers(node) {
|
|
30560
|
-
var kind = node.kind;
|
|
30561
|
-
return kind === 163 /* TypeParameter */
|
|
30562
|
-
|| kind === 164 /* Parameter */
|
|
30563
|
-
|| kind === 166 /* PropertySignature */
|
|
30564
|
-
|| kind === 167 /* PropertyDeclaration */
|
|
30565
|
-
|| kind === 168 /* MethodSignature */
|
|
30566
|
-
|| kind === 169 /* MethodDeclaration */
|
|
30567
|
-
|| kind === 171 /* Constructor */
|
|
30568
|
-
|| kind === 172 /* GetAccessor */
|
|
30569
|
-
|| kind === 173 /* SetAccessor */
|
|
30570
|
-
|| kind === 176 /* IndexSignature */
|
|
30571
|
-
|| kind === 180 /* ConstructorType */
|
|
30572
|
-
|| kind === 213 /* FunctionExpression */
|
|
30573
|
-
|| kind === 214 /* ArrowFunction */
|
|
30574
|
-
|| kind === 226 /* ClassExpression */
|
|
30575
|
-
|| kind === 237 /* VariableStatement */
|
|
30576
|
-
|| kind === 256 /* FunctionDeclaration */
|
|
30577
|
-
|| kind === 257 /* ClassDeclaration */
|
|
30578
|
-
|| kind === 258 /* InterfaceDeclaration */
|
|
30579
|
-
|| kind === 259 /* TypeAliasDeclaration */
|
|
30580
|
-
|| kind === 260 /* EnumDeclaration */
|
|
30581
|
-
|| kind === 261 /* ModuleDeclaration */
|
|
30582
|
-
|| kind === 265 /* ImportEqualsDeclaration */
|
|
30583
|
-
|| kind === 266 /* ImportDeclaration */
|
|
30584
|
-
|| kind === 271 /* ExportAssignment */
|
|
30585
|
-
|| kind === 272 /* ExportDeclaration */;
|
|
30586
|
-
}
|
|
30587
|
-
ts.canHaveModifiers = canHaveModifiers;
|
|
30588
30548
|
function canHaveIllegalModifiers(node) {
|
|
30589
30549
|
var kind = node.kind;
|
|
30590
30550
|
return kind === 170 /* ClassStaticBlockDeclaration */
|
|
@@ -30873,6 +30833,46 @@ var ts;
|
|
|
30873
30833
|
return location ? ts.setTextRangePosEnd(range, location.pos, location.end) : range;
|
|
30874
30834
|
}
|
|
30875
30835
|
ts.setTextRange = setTextRange;
|
|
30836
|
+
function canHaveModifiers(node) {
|
|
30837
|
+
var kind = node.kind;
|
|
30838
|
+
return kind === 163 /* TypeParameter */
|
|
30839
|
+
|| kind === 164 /* Parameter */
|
|
30840
|
+
|| kind === 166 /* PropertySignature */
|
|
30841
|
+
|| kind === 167 /* PropertyDeclaration */
|
|
30842
|
+
|| kind === 168 /* MethodSignature */
|
|
30843
|
+
|| kind === 169 /* MethodDeclaration */
|
|
30844
|
+
|| kind === 171 /* Constructor */
|
|
30845
|
+
|| kind === 172 /* GetAccessor */
|
|
30846
|
+
|| kind === 173 /* SetAccessor */
|
|
30847
|
+
|| kind === 176 /* IndexSignature */
|
|
30848
|
+
|| kind === 180 /* ConstructorType */
|
|
30849
|
+
|| kind === 213 /* FunctionExpression */
|
|
30850
|
+
|| kind === 214 /* ArrowFunction */
|
|
30851
|
+
|| kind === 226 /* ClassExpression */
|
|
30852
|
+
|| kind === 237 /* VariableStatement */
|
|
30853
|
+
|| kind === 256 /* FunctionDeclaration */
|
|
30854
|
+
|| kind === 257 /* ClassDeclaration */
|
|
30855
|
+
|| kind === 258 /* InterfaceDeclaration */
|
|
30856
|
+
|| kind === 259 /* TypeAliasDeclaration */
|
|
30857
|
+
|| kind === 260 /* EnumDeclaration */
|
|
30858
|
+
|| kind === 261 /* ModuleDeclaration */
|
|
30859
|
+
|| kind === 265 /* ImportEqualsDeclaration */
|
|
30860
|
+
|| kind === 266 /* ImportDeclaration */
|
|
30861
|
+
|| kind === 271 /* ExportAssignment */
|
|
30862
|
+
|| kind === 272 /* ExportDeclaration */;
|
|
30863
|
+
}
|
|
30864
|
+
ts.canHaveModifiers = canHaveModifiers;
|
|
30865
|
+
function canHaveDecorators(node) {
|
|
30866
|
+
var kind = node.kind;
|
|
30867
|
+
return kind === 164 /* Parameter */
|
|
30868
|
+
|| kind === 167 /* PropertyDeclaration */
|
|
30869
|
+
|| kind === 169 /* MethodDeclaration */
|
|
30870
|
+
|| kind === 172 /* GetAccessor */
|
|
30871
|
+
|| kind === 173 /* SetAccessor */
|
|
30872
|
+
|| kind === 226 /* ClassExpression */
|
|
30873
|
+
|| kind === 257 /* ClassDeclaration */;
|
|
30874
|
+
}
|
|
30875
|
+
ts.canHaveDecorators = canHaveDecorators;
|
|
30876
30876
|
})(ts || (ts = {}));
|
|
30877
30877
|
var ts;
|
|
30878
30878
|
(function (ts) {
|
|
@@ -49709,10 +49709,10 @@ var ts;
|
|
|
49709
49709
|
}
|
|
49710
49710
|
// Issue errors globally
|
|
49711
49711
|
var file = ts.getSourceFileOfNode(location);
|
|
49712
|
-
addErrorOrSuggestion(isError, "message" in message ? ts.createFileDiagnostic(file, 0, 0, message, arg0, arg1, arg2, arg3) : ts.createDiagnosticForFileFromMessageChain(file, message)); // eslint-disable-line no-in-operator
|
|
49712
|
+
addErrorOrSuggestion(isError, "message" in message ? ts.createFileDiagnostic(file, 0, 0, message, arg0, arg1, arg2, arg3) : ts.createDiagnosticForFileFromMessageChain(file, message)); // eslint-disable-line local/no-in-operator
|
|
49713
49713
|
return;
|
|
49714
49714
|
}
|
|
49715
|
-
addErrorOrSuggestion(isError, "message" in message ? ts.createDiagnosticForNode(location, message, arg0, arg1, arg2, arg3) : ts.createDiagnosticForNodeFromMessageChain(location, message)); // eslint-disable-line no-in-operator
|
|
49715
|
+
addErrorOrSuggestion(isError, "message" in message ? ts.createDiagnosticForNode(location, message, arg0, arg1, arg2, arg3) : ts.createDiagnosticForNodeFromMessageChain(location, message)); // eslint-disable-line local/no-in-operator
|
|
49716
49716
|
}
|
|
49717
49717
|
function errorAndMaybeSuggestAwait(location, maybeMissingAwait, message, arg0, arg1, arg2, arg3) {
|
|
49718
49718
|
var diagnostic = error(location, message, arg0, arg1, arg2, arg3);
|
|
@@ -91339,7 +91339,7 @@ var ts;
|
|
|
91339
91339
|
exit();
|
|
91340
91340
|
return sourceIndex;
|
|
91341
91341
|
}
|
|
91342
|
-
/* eslint-disable boolean-trivia, no-null/no-null */
|
|
91342
|
+
/* eslint-disable local/boolean-trivia, no-null/no-null */
|
|
91343
91343
|
function setSourceContent(sourceIndex, content) {
|
|
91344
91344
|
enter();
|
|
91345
91345
|
if (content !== null) {
|
|
@@ -91352,7 +91352,7 @@ var ts;
|
|
|
91352
91352
|
}
|
|
91353
91353
|
exit();
|
|
91354
91354
|
}
|
|
91355
|
-
/* eslint-enable boolean-trivia, no-null/no-null */
|
|
91355
|
+
/* eslint-enable local/boolean-trivia, no-null/no-null */
|
|
91356
91356
|
function addName(name) {
|
|
91357
91357
|
enter();
|
|
91358
91358
|
if (!nameToNameIndexMap)
|
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": "4.9.0-dev.
|
|
5
|
+
"version": "4.9.0-dev.20220823",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -62,6 +62,7 @@
|
|
|
62
62
|
"eslint-formatter-autolinkable-stylish": "^1.2.0",
|
|
63
63
|
"eslint-plugin-import": "^2.26.0",
|
|
64
64
|
"eslint-plugin-jsdoc": "^39.3.6",
|
|
65
|
+
"eslint-plugin-local": "^1.0.0",
|
|
65
66
|
"eslint-plugin-no-null": "^1.0.2",
|
|
66
67
|
"fancy-log": "latest",
|
|
67
68
|
"fs-extra": "^9.1.0",
|
|
@@ -90,7 +91,6 @@
|
|
|
90
91
|
"es5-ext": "0.10.53"
|
|
91
92
|
},
|
|
92
93
|
"scripts": {
|
|
93
|
-
"prepare": "gulp build-eslint-rules",
|
|
94
94
|
"pretest": "gulp tests",
|
|
95
95
|
"test": "gulp runtests-parallel --light=false",
|
|
96
96
|
"test:eslint-rules": "gulp run-eslint-rules-tests",
|