typescript 4.9.0-dev.20220908 → 4.9.0-dev.20220909
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 +1 -1
- package/lib/tsserver.js +5 -2
- package/lib/tsserverlibrary.js +5 -2
- package/lib/typescript.js +5 -2
- package/lib/typescriptServices.js +5 -2
- package/lib/typingsInstaller.js +1 -1
- package/package.json +2 -2
package/lib/tsc.js
CHANGED
|
@@ -69,7 +69,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
69
69
|
var ts;
|
|
70
70
|
(function (ts) {
|
|
71
71
|
ts.versionMajorMinor = "4.9";
|
|
72
|
-
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.
|
|
72
|
+
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220909");
|
|
73
73
|
var NativeCollections;
|
|
74
74
|
(function (NativeCollections) {
|
|
75
75
|
var globals = typeof globalThis !== "undefined" ? globalThis :
|
package/lib/tsserver.js
CHANGED
|
@@ -109,7 +109,7 @@ var ts;
|
|
|
109
109
|
// The following is baselined as a literal template type without intervention
|
|
110
110
|
/** The version of the TypeScript compiler release */
|
|
111
111
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
112
|
-
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.
|
|
112
|
+
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220909");
|
|
113
113
|
/* @internal */
|
|
114
114
|
var Comparison;
|
|
115
115
|
(function (Comparison) {
|
|
@@ -148419,7 +148419,7 @@ var ts;
|
|
|
148419
148419
|
rule("SpaceAfterQuestionMarkInConditionalOperator", 57 /* SyntaxKind.QuestionToken */, anyToken, [isNonJsxSameLineTokenContext, isConditionalOperatorContext], 4 /* RuleAction.InsertSpace */),
|
|
148420
148420
|
// in other cases there should be no space between '?' and next token
|
|
148421
148421
|
rule("NoSpaceAfterQuestionMark", 57 /* SyntaxKind.QuestionToken */, anyToken, [isNonJsxSameLineTokenContext], 16 /* RuleAction.DeleteSpace */),
|
|
148422
|
-
rule("NoSpaceBeforeDot", anyToken, [24 /* SyntaxKind.DotToken */, 28 /* SyntaxKind.QuestionDotToken */], [isNonJsxSameLineTokenContext], 16 /* RuleAction.DeleteSpace */),
|
|
148422
|
+
rule("NoSpaceBeforeDot", anyToken, [24 /* SyntaxKind.DotToken */, 28 /* SyntaxKind.QuestionDotToken */], [isNonJsxSameLineTokenContext, isNotPropertyAccessOnNumericLiteral], 16 /* RuleAction.DeleteSpace */),
|
|
148423
148423
|
rule("NoSpaceAfterDot", [24 /* SyntaxKind.DotToken */, 28 /* SyntaxKind.QuestionDotToken */], anyToken, [isNonJsxSameLineTokenContext], 16 /* RuleAction.DeleteSpace */),
|
|
148424
148424
|
rule("NoSpaceBetweenImportParenInImportType", 100 /* SyntaxKind.ImportKeyword */, 20 /* SyntaxKind.OpenParenToken */, [isNonJsxSameLineTokenContext, isImportTypeContext], 16 /* RuleAction.DeleteSpace */),
|
|
148425
148425
|
// Special handling of unary operators.
|
|
@@ -149089,6 +149089,9 @@ var ts;
|
|
|
149089
149089
|
function isSemicolonInsertionContext(context) {
|
|
149090
149090
|
return ts.positionIsASICandidate(context.currentTokenSpan.end, context.currentTokenParent, context.sourceFile);
|
|
149091
149091
|
}
|
|
149092
|
+
function isNotPropertyAccessOnNumericLiteral(context) {
|
|
149093
|
+
return !ts.isPropertyAccessExpression(context.contextNode) || !ts.isNumericLiteral(context.contextNode.expression);
|
|
149094
|
+
}
|
|
149092
149095
|
})(formatting = ts.formatting || (ts.formatting = {}));
|
|
149093
149096
|
})(ts || (ts = {}));
|
|
149094
149097
|
/* @internal */
|
package/lib/tsserverlibrary.js
CHANGED
|
@@ -108,7 +108,7 @@ var ts;
|
|
|
108
108
|
// The following is baselined as a literal template type without intervention
|
|
109
109
|
/** The version of the TypeScript compiler release */
|
|
110
110
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
111
|
-
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.
|
|
111
|
+
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220909");
|
|
112
112
|
/* @internal */
|
|
113
113
|
var Comparison;
|
|
114
114
|
(function (Comparison) {
|
|
@@ -148837,7 +148837,7 @@ var ts;
|
|
|
148837
148837
|
rule("SpaceAfterQuestionMarkInConditionalOperator", 57 /* SyntaxKind.QuestionToken */, anyToken, [isNonJsxSameLineTokenContext, isConditionalOperatorContext], 4 /* RuleAction.InsertSpace */),
|
|
148838
148838
|
// in other cases there should be no space between '?' and next token
|
|
148839
148839
|
rule("NoSpaceAfterQuestionMark", 57 /* SyntaxKind.QuestionToken */, anyToken, [isNonJsxSameLineTokenContext], 16 /* RuleAction.DeleteSpace */),
|
|
148840
|
-
rule("NoSpaceBeforeDot", anyToken, [24 /* SyntaxKind.DotToken */, 28 /* SyntaxKind.QuestionDotToken */], [isNonJsxSameLineTokenContext], 16 /* RuleAction.DeleteSpace */),
|
|
148840
|
+
rule("NoSpaceBeforeDot", anyToken, [24 /* SyntaxKind.DotToken */, 28 /* SyntaxKind.QuestionDotToken */], [isNonJsxSameLineTokenContext, isNotPropertyAccessOnNumericLiteral], 16 /* RuleAction.DeleteSpace */),
|
|
148841
148841
|
rule("NoSpaceAfterDot", [24 /* SyntaxKind.DotToken */, 28 /* SyntaxKind.QuestionDotToken */], anyToken, [isNonJsxSameLineTokenContext], 16 /* RuleAction.DeleteSpace */),
|
|
148842
148842
|
rule("NoSpaceBetweenImportParenInImportType", 100 /* SyntaxKind.ImportKeyword */, 20 /* SyntaxKind.OpenParenToken */, [isNonJsxSameLineTokenContext, isImportTypeContext], 16 /* RuleAction.DeleteSpace */),
|
|
148843
148843
|
// Special handling of unary operators.
|
|
@@ -149507,6 +149507,9 @@ var ts;
|
|
|
149507
149507
|
function isSemicolonInsertionContext(context) {
|
|
149508
149508
|
return ts.positionIsASICandidate(context.currentTokenSpan.end, context.currentTokenParent, context.sourceFile);
|
|
149509
149509
|
}
|
|
149510
|
+
function isNotPropertyAccessOnNumericLiteral(context) {
|
|
149511
|
+
return !ts.isPropertyAccessExpression(context.contextNode) || !ts.isNumericLiteral(context.contextNode.expression);
|
|
149512
|
+
}
|
|
149510
149513
|
})(formatting = ts.formatting || (ts.formatting = {}));
|
|
149511
149514
|
})(ts || (ts = {}));
|
|
149512
149515
|
/* @internal */
|
package/lib/typescript.js
CHANGED
|
@@ -99,7 +99,7 @@ var ts;
|
|
|
99
99
|
// The following is baselined as a literal template type without intervention
|
|
100
100
|
/** The version of the TypeScript compiler release */
|
|
101
101
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
102
|
-
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.
|
|
102
|
+
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220909");
|
|
103
103
|
/* @internal */
|
|
104
104
|
var Comparison;
|
|
105
105
|
(function (Comparison) {
|
|
@@ -148828,7 +148828,7 @@ var ts;
|
|
|
148828
148828
|
rule("SpaceAfterQuestionMarkInConditionalOperator", 57 /* SyntaxKind.QuestionToken */, anyToken, [isNonJsxSameLineTokenContext, isConditionalOperatorContext], 4 /* RuleAction.InsertSpace */),
|
|
148829
148829
|
// in other cases there should be no space between '?' and next token
|
|
148830
148830
|
rule("NoSpaceAfterQuestionMark", 57 /* SyntaxKind.QuestionToken */, anyToken, [isNonJsxSameLineTokenContext], 16 /* RuleAction.DeleteSpace */),
|
|
148831
|
-
rule("NoSpaceBeforeDot", anyToken, [24 /* SyntaxKind.DotToken */, 28 /* SyntaxKind.QuestionDotToken */], [isNonJsxSameLineTokenContext], 16 /* RuleAction.DeleteSpace */),
|
|
148831
|
+
rule("NoSpaceBeforeDot", anyToken, [24 /* SyntaxKind.DotToken */, 28 /* SyntaxKind.QuestionDotToken */], [isNonJsxSameLineTokenContext, isNotPropertyAccessOnNumericLiteral], 16 /* RuleAction.DeleteSpace */),
|
|
148832
148832
|
rule("NoSpaceAfterDot", [24 /* SyntaxKind.DotToken */, 28 /* SyntaxKind.QuestionDotToken */], anyToken, [isNonJsxSameLineTokenContext], 16 /* RuleAction.DeleteSpace */),
|
|
148833
148833
|
rule("NoSpaceBetweenImportParenInImportType", 100 /* SyntaxKind.ImportKeyword */, 20 /* SyntaxKind.OpenParenToken */, [isNonJsxSameLineTokenContext, isImportTypeContext], 16 /* RuleAction.DeleteSpace */),
|
|
148834
148834
|
// Special handling of unary operators.
|
|
@@ -149498,6 +149498,9 @@ var ts;
|
|
|
149498
149498
|
function isSemicolonInsertionContext(context) {
|
|
149499
149499
|
return ts.positionIsASICandidate(context.currentTokenSpan.end, context.currentTokenParent, context.sourceFile);
|
|
149500
149500
|
}
|
|
149501
|
+
function isNotPropertyAccessOnNumericLiteral(context) {
|
|
149502
|
+
return !ts.isPropertyAccessExpression(context.contextNode) || !ts.isNumericLiteral(context.contextNode.expression);
|
|
149503
|
+
}
|
|
149501
149504
|
})(formatting = ts.formatting || (ts.formatting = {}));
|
|
149502
149505
|
})(ts || (ts = {}));
|
|
149503
149506
|
/* @internal */
|
|
@@ -99,7 +99,7 @@ var ts;
|
|
|
99
99
|
// The following is baselined as a literal template type without intervention
|
|
100
100
|
/** The version of the TypeScript compiler release */
|
|
101
101
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
102
|
-
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.
|
|
102
|
+
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220909");
|
|
103
103
|
/* @internal */
|
|
104
104
|
var Comparison;
|
|
105
105
|
(function (Comparison) {
|
|
@@ -148828,7 +148828,7 @@ var ts;
|
|
|
148828
148828
|
rule("SpaceAfterQuestionMarkInConditionalOperator", 57 /* SyntaxKind.QuestionToken */, anyToken, [isNonJsxSameLineTokenContext, isConditionalOperatorContext], 4 /* RuleAction.InsertSpace */),
|
|
148829
148829
|
// in other cases there should be no space between '?' and next token
|
|
148830
148830
|
rule("NoSpaceAfterQuestionMark", 57 /* SyntaxKind.QuestionToken */, anyToken, [isNonJsxSameLineTokenContext], 16 /* RuleAction.DeleteSpace */),
|
|
148831
|
-
rule("NoSpaceBeforeDot", anyToken, [24 /* SyntaxKind.DotToken */, 28 /* SyntaxKind.QuestionDotToken */], [isNonJsxSameLineTokenContext], 16 /* RuleAction.DeleteSpace */),
|
|
148831
|
+
rule("NoSpaceBeforeDot", anyToken, [24 /* SyntaxKind.DotToken */, 28 /* SyntaxKind.QuestionDotToken */], [isNonJsxSameLineTokenContext, isNotPropertyAccessOnNumericLiteral], 16 /* RuleAction.DeleteSpace */),
|
|
148832
148832
|
rule("NoSpaceAfterDot", [24 /* SyntaxKind.DotToken */, 28 /* SyntaxKind.QuestionDotToken */], anyToken, [isNonJsxSameLineTokenContext], 16 /* RuleAction.DeleteSpace */),
|
|
148833
148833
|
rule("NoSpaceBetweenImportParenInImportType", 100 /* SyntaxKind.ImportKeyword */, 20 /* SyntaxKind.OpenParenToken */, [isNonJsxSameLineTokenContext, isImportTypeContext], 16 /* RuleAction.DeleteSpace */),
|
|
148834
148834
|
// Special handling of unary operators.
|
|
@@ -149498,6 +149498,9 @@ var ts;
|
|
|
149498
149498
|
function isSemicolonInsertionContext(context) {
|
|
149499
149499
|
return ts.positionIsASICandidate(context.currentTokenSpan.end, context.currentTokenParent, context.sourceFile);
|
|
149500
149500
|
}
|
|
149501
|
+
function isNotPropertyAccessOnNumericLiteral(context) {
|
|
149502
|
+
return !ts.isPropertyAccessExpression(context.contextNode) || !ts.isNumericLiteral(context.contextNode.expression);
|
|
149503
|
+
}
|
|
149501
149504
|
})(formatting = ts.formatting || (ts.formatting = {}));
|
|
149502
149505
|
})(ts || (ts = {}));
|
|
149503
149506
|
/* @internal */
|
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 = "".concat(ts.versionMajorMinor, ".0-dev.
|
|
92
|
+
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220909");
|
|
93
93
|
/* @internal */
|
|
94
94
|
var Comparison;
|
|
95
95
|
(function (Comparison) {
|
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.20220909",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"ms": "^2.1.3",
|
|
92
92
|
"node-fetch": "^2.6.7",
|
|
93
93
|
"source-map-support": "latest",
|
|
94
|
-
"typescript": "^4.8.
|
|
94
|
+
"typescript": "^4.8.3",
|
|
95
95
|
"vinyl": "latest",
|
|
96
96
|
"which": "^2.0.2",
|
|
97
97
|
"xml2js": "^0.4.23"
|