typescript 4.6.3 → 4.6.4
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 +7 -9
- package/lib/tsserverlibrary.js +7 -9
- package/lib/typescript.js +7 -9
- package/lib/typescriptServices.js +7 -9
- package/lib/typingsInstaller.js +1 -1
- package/package.json +1 -1
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.6";
|
|
72
|
-
ts.version = "4.6.
|
|
72
|
+
ts.version = "4.6.4";
|
|
73
73
|
var NativeCollections;
|
|
74
74
|
(function (NativeCollections) {
|
|
75
75
|
var globals = typeof globalThis !== "undefined" ? globalThis :
|
package/lib/tsserver.js
CHANGED
|
@@ -100,7 +100,7 @@ var ts;
|
|
|
100
100
|
// The following is baselined as a literal template type without intervention
|
|
101
101
|
/** The version of the TypeScript compiler release */
|
|
102
102
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
103
|
-
ts.version = "4.6.
|
|
103
|
+
ts.version = "4.6.4";
|
|
104
104
|
/* @internal */
|
|
105
105
|
var Comparison;
|
|
106
106
|
(function (Comparison) {
|
|
@@ -124964,12 +124964,8 @@ var ts;
|
|
|
124964
124964
|
}
|
|
124965
124965
|
}
|
|
124966
124966
|
ts.findNextToken = findNextToken;
|
|
124967
|
-
/**
|
|
124968
|
-
* Finds the rightmost token satisfying `token.end <= position`,
|
|
124969
|
-
* excluding `JsxText` tokens containing only whitespace.
|
|
124970
|
-
*/
|
|
124971
124967
|
function findPrecedingToken(position, sourceFile, startNode, excludeJsdoc) {
|
|
124972
|
-
var result = find(startNode || sourceFile);
|
|
124968
|
+
var result = find((startNode || sourceFile));
|
|
124973
124969
|
ts.Debug.assert(!(result && isWhiteSpaceOnlyJsxText(result)));
|
|
124974
124970
|
return result;
|
|
124975
124971
|
function find(n) {
|
|
@@ -144061,6 +144057,7 @@ var ts;
|
|
|
144061
144057
|
return formatting.getFormattingScanner(sourceFile.text, sourceFile.languageVariant, getScanStartPosition(enclosingNode, originalRange, sourceFile), originalRange.end, function (scanner) { return formatSpanWorker(originalRange, enclosingNode, formatting.SmartIndenter.getIndentationForNode(enclosingNode, originalRange, sourceFile, formatContext.options), getOwnOrInheritedDelta(enclosingNode, formatContext.options, sourceFile), scanner, formatContext, requestKind, prepareRangeContainsErrorFunction(sourceFile.parseDiagnostics, originalRange), sourceFile); });
|
|
144062
144058
|
}
|
|
144063
144059
|
function formatSpanWorker(originalRange, enclosingNode, initialIndentation, delta, formattingScanner, _a, requestKind, rangeContainsError, sourceFile) {
|
|
144060
|
+
var _b;
|
|
144064
144061
|
var options = _a.options, getRules = _a.getRules, host = _a.host;
|
|
144065
144062
|
// formatting context is used by rules provider
|
|
144066
144063
|
var formattingContext = new formatting.FormattingContext(sourceFile, requestKind, options);
|
|
@@ -144092,11 +144089,12 @@ var ts;
|
|
|
144092
144089
|
}
|
|
144093
144090
|
}
|
|
144094
144091
|
if (previousRange && formattingScanner.getStartPos() >= originalRange.end) {
|
|
144095
|
-
var
|
|
144092
|
+
var tokenInfo = formattingScanner.isOnEOF() ? formattingScanner.readEOFTokenRange() :
|
|
144096
144093
|
formattingScanner.isOnToken() ? formattingScanner.readTokenInfo(enclosingNode).token :
|
|
144097
144094
|
undefined;
|
|
144098
|
-
if (
|
|
144099
|
-
|
|
144095
|
+
if (tokenInfo) {
|
|
144096
|
+
var parent = ((_b = ts.findPrecedingToken(tokenInfo.end, sourceFile, enclosingNode)) === null || _b === void 0 ? void 0 : _b.parent) || previousParent;
|
|
144097
|
+
processPair(tokenInfo, sourceFile.getLineAndCharacterOfPosition(tokenInfo.pos).line, parent, previousRange, previousRangeStartLine, previousParent, parent,
|
|
144100
144098
|
/*dynamicIndentation*/ undefined);
|
|
144101
144099
|
}
|
|
144102
144100
|
}
|
package/lib/tsserverlibrary.js
CHANGED
|
@@ -294,7 +294,7 @@ var ts;
|
|
|
294
294
|
// The following is baselined as a literal template type without intervention
|
|
295
295
|
/** The version of the TypeScript compiler release */
|
|
296
296
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
297
|
-
ts.version = "4.6.
|
|
297
|
+
ts.version = "4.6.4";
|
|
298
298
|
/* @internal */
|
|
299
299
|
var Comparison;
|
|
300
300
|
(function (Comparison) {
|
|
@@ -125575,12 +125575,8 @@ var ts;
|
|
|
125575
125575
|
}
|
|
125576
125576
|
}
|
|
125577
125577
|
ts.findNextToken = findNextToken;
|
|
125578
|
-
/**
|
|
125579
|
-
* Finds the rightmost token satisfying `token.end <= position`,
|
|
125580
|
-
* excluding `JsxText` tokens containing only whitespace.
|
|
125581
|
-
*/
|
|
125582
125578
|
function findPrecedingToken(position, sourceFile, startNode, excludeJsdoc) {
|
|
125583
|
-
var result = find(startNode || sourceFile);
|
|
125579
|
+
var result = find((startNode || sourceFile));
|
|
125584
125580
|
ts.Debug.assert(!(result && isWhiteSpaceOnlyJsxText(result)));
|
|
125585
125581
|
return result;
|
|
125586
125582
|
function find(n) {
|
|
@@ -144672,6 +144668,7 @@ var ts;
|
|
|
144672
144668
|
return formatting.getFormattingScanner(sourceFile.text, sourceFile.languageVariant, getScanStartPosition(enclosingNode, originalRange, sourceFile), originalRange.end, function (scanner) { return formatSpanWorker(originalRange, enclosingNode, formatting.SmartIndenter.getIndentationForNode(enclosingNode, originalRange, sourceFile, formatContext.options), getOwnOrInheritedDelta(enclosingNode, formatContext.options, sourceFile), scanner, formatContext, requestKind, prepareRangeContainsErrorFunction(sourceFile.parseDiagnostics, originalRange), sourceFile); });
|
|
144673
144669
|
}
|
|
144674
144670
|
function formatSpanWorker(originalRange, enclosingNode, initialIndentation, delta, formattingScanner, _a, requestKind, rangeContainsError, sourceFile) {
|
|
144671
|
+
var _b;
|
|
144675
144672
|
var options = _a.options, getRules = _a.getRules, host = _a.host;
|
|
144676
144673
|
// formatting context is used by rules provider
|
|
144677
144674
|
var formattingContext = new formatting.FormattingContext(sourceFile, requestKind, options);
|
|
@@ -144703,11 +144700,12 @@ var ts;
|
|
|
144703
144700
|
}
|
|
144704
144701
|
}
|
|
144705
144702
|
if (previousRange && formattingScanner.getStartPos() >= originalRange.end) {
|
|
144706
|
-
var
|
|
144703
|
+
var tokenInfo = formattingScanner.isOnEOF() ? formattingScanner.readEOFTokenRange() :
|
|
144707
144704
|
formattingScanner.isOnToken() ? formattingScanner.readTokenInfo(enclosingNode).token :
|
|
144708
144705
|
undefined;
|
|
144709
|
-
if (
|
|
144710
|
-
|
|
144706
|
+
if (tokenInfo) {
|
|
144707
|
+
var parent = ((_b = ts.findPrecedingToken(tokenInfo.end, sourceFile, enclosingNode)) === null || _b === void 0 ? void 0 : _b.parent) || previousParent;
|
|
144708
|
+
processPair(tokenInfo, sourceFile.getLineAndCharacterOfPosition(tokenInfo.pos).line, parent, previousRange, previousRangeStartLine, previousParent, parent,
|
|
144711
144709
|
/*dynamicIndentation*/ undefined);
|
|
144712
144710
|
}
|
|
144713
144711
|
}
|
package/lib/typescript.js
CHANGED
|
@@ -294,7 +294,7 @@ var ts;
|
|
|
294
294
|
// The following is baselined as a literal template type without intervention
|
|
295
295
|
/** The version of the TypeScript compiler release */
|
|
296
296
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
297
|
-
ts.version = "4.6.
|
|
297
|
+
ts.version = "4.6.4";
|
|
298
298
|
/* @internal */
|
|
299
299
|
var Comparison;
|
|
300
300
|
(function (Comparison) {
|
|
@@ -125575,12 +125575,8 @@ var ts;
|
|
|
125575
125575
|
}
|
|
125576
125576
|
}
|
|
125577
125577
|
ts.findNextToken = findNextToken;
|
|
125578
|
-
/**
|
|
125579
|
-
* Finds the rightmost token satisfying `token.end <= position`,
|
|
125580
|
-
* excluding `JsxText` tokens containing only whitespace.
|
|
125581
|
-
*/
|
|
125582
125578
|
function findPrecedingToken(position, sourceFile, startNode, excludeJsdoc) {
|
|
125583
|
-
var result = find(startNode || sourceFile);
|
|
125579
|
+
var result = find((startNode || sourceFile));
|
|
125584
125580
|
ts.Debug.assert(!(result && isWhiteSpaceOnlyJsxText(result)));
|
|
125585
125581
|
return result;
|
|
125586
125582
|
function find(n) {
|
|
@@ -144672,6 +144668,7 @@ var ts;
|
|
|
144672
144668
|
return formatting.getFormattingScanner(sourceFile.text, sourceFile.languageVariant, getScanStartPosition(enclosingNode, originalRange, sourceFile), originalRange.end, function (scanner) { return formatSpanWorker(originalRange, enclosingNode, formatting.SmartIndenter.getIndentationForNode(enclosingNode, originalRange, sourceFile, formatContext.options), getOwnOrInheritedDelta(enclosingNode, formatContext.options, sourceFile), scanner, formatContext, requestKind, prepareRangeContainsErrorFunction(sourceFile.parseDiagnostics, originalRange), sourceFile); });
|
|
144673
144669
|
}
|
|
144674
144670
|
function formatSpanWorker(originalRange, enclosingNode, initialIndentation, delta, formattingScanner, _a, requestKind, rangeContainsError, sourceFile) {
|
|
144671
|
+
var _b;
|
|
144675
144672
|
var options = _a.options, getRules = _a.getRules, host = _a.host;
|
|
144676
144673
|
// formatting context is used by rules provider
|
|
144677
144674
|
var formattingContext = new formatting.FormattingContext(sourceFile, requestKind, options);
|
|
@@ -144703,11 +144700,12 @@ var ts;
|
|
|
144703
144700
|
}
|
|
144704
144701
|
}
|
|
144705
144702
|
if (previousRange && formattingScanner.getStartPos() >= originalRange.end) {
|
|
144706
|
-
var
|
|
144703
|
+
var tokenInfo = formattingScanner.isOnEOF() ? formattingScanner.readEOFTokenRange() :
|
|
144707
144704
|
formattingScanner.isOnToken() ? formattingScanner.readTokenInfo(enclosingNode).token :
|
|
144708
144705
|
undefined;
|
|
144709
|
-
if (
|
|
144710
|
-
|
|
144706
|
+
if (tokenInfo) {
|
|
144707
|
+
var parent = ((_b = ts.findPrecedingToken(tokenInfo.end, sourceFile, enclosingNode)) === null || _b === void 0 ? void 0 : _b.parent) || previousParent;
|
|
144708
|
+
processPair(tokenInfo, sourceFile.getLineAndCharacterOfPosition(tokenInfo.pos).line, parent, previousRange, previousRangeStartLine, previousParent, parent,
|
|
144711
144709
|
/*dynamicIndentation*/ undefined);
|
|
144712
144710
|
}
|
|
144713
144711
|
}
|
|
@@ -294,7 +294,7 @@ var ts;
|
|
|
294
294
|
// The following is baselined as a literal template type without intervention
|
|
295
295
|
/** The version of the TypeScript compiler release */
|
|
296
296
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
297
|
-
ts.version = "4.6.
|
|
297
|
+
ts.version = "4.6.4";
|
|
298
298
|
/* @internal */
|
|
299
299
|
var Comparison;
|
|
300
300
|
(function (Comparison) {
|
|
@@ -125575,12 +125575,8 @@ var ts;
|
|
|
125575
125575
|
}
|
|
125576
125576
|
}
|
|
125577
125577
|
ts.findNextToken = findNextToken;
|
|
125578
|
-
/**
|
|
125579
|
-
* Finds the rightmost token satisfying `token.end <= position`,
|
|
125580
|
-
* excluding `JsxText` tokens containing only whitespace.
|
|
125581
|
-
*/
|
|
125582
125578
|
function findPrecedingToken(position, sourceFile, startNode, excludeJsdoc) {
|
|
125583
|
-
var result = find(startNode || sourceFile);
|
|
125579
|
+
var result = find((startNode || sourceFile));
|
|
125584
125580
|
ts.Debug.assert(!(result && isWhiteSpaceOnlyJsxText(result)));
|
|
125585
125581
|
return result;
|
|
125586
125582
|
function find(n) {
|
|
@@ -144672,6 +144668,7 @@ var ts;
|
|
|
144672
144668
|
return formatting.getFormattingScanner(sourceFile.text, sourceFile.languageVariant, getScanStartPosition(enclosingNode, originalRange, sourceFile), originalRange.end, function (scanner) { return formatSpanWorker(originalRange, enclosingNode, formatting.SmartIndenter.getIndentationForNode(enclosingNode, originalRange, sourceFile, formatContext.options), getOwnOrInheritedDelta(enclosingNode, formatContext.options, sourceFile), scanner, formatContext, requestKind, prepareRangeContainsErrorFunction(sourceFile.parseDiagnostics, originalRange), sourceFile); });
|
|
144673
144669
|
}
|
|
144674
144670
|
function formatSpanWorker(originalRange, enclosingNode, initialIndentation, delta, formattingScanner, _a, requestKind, rangeContainsError, sourceFile) {
|
|
144671
|
+
var _b;
|
|
144675
144672
|
var options = _a.options, getRules = _a.getRules, host = _a.host;
|
|
144676
144673
|
// formatting context is used by rules provider
|
|
144677
144674
|
var formattingContext = new formatting.FormattingContext(sourceFile, requestKind, options);
|
|
@@ -144703,11 +144700,12 @@ var ts;
|
|
|
144703
144700
|
}
|
|
144704
144701
|
}
|
|
144705
144702
|
if (previousRange && formattingScanner.getStartPos() >= originalRange.end) {
|
|
144706
|
-
var
|
|
144703
|
+
var tokenInfo = formattingScanner.isOnEOF() ? formattingScanner.readEOFTokenRange() :
|
|
144707
144704
|
formattingScanner.isOnToken() ? formattingScanner.readTokenInfo(enclosingNode).token :
|
|
144708
144705
|
undefined;
|
|
144709
|
-
if (
|
|
144710
|
-
|
|
144706
|
+
if (tokenInfo) {
|
|
144707
|
+
var parent = ((_b = ts.findPrecedingToken(tokenInfo.end, sourceFile, enclosingNode)) === null || _b === void 0 ? void 0 : _b.parent) || previousParent;
|
|
144708
|
+
processPair(tokenInfo, sourceFile.getLineAndCharacterOfPosition(tokenInfo.pos).line, parent, previousRange, previousRangeStartLine, previousParent, parent,
|
|
144711
144709
|
/*dynamicIndentation*/ undefined);
|
|
144712
144710
|
}
|
|
144713
144711
|
}
|
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 = "4.6.
|
|
92
|
+
ts.version = "4.6.4";
|
|
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.6.
|
|
5
|
+
"version": "4.6.4",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|