@typescript-deploys/pr-build 5.2.0-pr-55214-6 → 5.2.0-pr-55222-9
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 +4 -4
- package/lib/tsserver.js +4 -4
- package/lib/tsserverlibrary.js +4 -4
- package/lib/typescript.js +4 -4
- package/package.json +2 -2
package/lib/tsc.js
CHANGED
|
@@ -53610,7 +53610,7 @@ function createTypeChecker(host) {
|
|
|
53610
53610
|
if (baseConstructorIndexInfo) {
|
|
53611
53611
|
indexInfos = append(indexInfos, baseConstructorIndexInfo);
|
|
53612
53612
|
}
|
|
53613
|
-
if (symbol.flags &
|
|
53613
|
+
if (symbol.flags & 384 /* Enum */ && (getDeclaredTypeOfSymbol(symbol).flags & 32 /* Enum */ || some(type.properties, (prop) => !!(getTypeOfSymbol(prop).flags & 296 /* NumberLike */)))) {
|
|
53614
53614
|
indexInfos = append(indexInfos, enumNumberIndexInfo);
|
|
53615
53615
|
}
|
|
53616
53616
|
}
|
|
@@ -61345,7 +61345,7 @@ function createTypeChecker(host) {
|
|
|
61345
61345
|
const allowStructuralFallback = targetTypeArguments && hasCovariantVoidArgument(targetTypeArguments, variances);
|
|
61346
61346
|
varianceCheckFailed = !allowStructuralFallback;
|
|
61347
61347
|
if (variances !== emptyArray && !allowStructuralFallback) {
|
|
61348
|
-
if (varianceCheckFailed && !
|
|
61348
|
+
if (varianceCheckFailed && !some(variances, (v) => (v & 7 /* VarianceMask */) === 0 /* Invariant */)) {
|
|
61349
61349
|
return 0 /* False */;
|
|
61350
61350
|
}
|
|
61351
61351
|
originalErrorInfo = errorInfo;
|
|
@@ -88647,7 +88647,7 @@ function transformTypeScript(context) {
|
|
|
88647
88647
|
const constantValue = tryGetConstEnumValue(node);
|
|
88648
88648
|
if (constantValue !== void 0) {
|
|
88649
88649
|
setConstantValue(node, constantValue);
|
|
88650
|
-
const substitute = typeof constantValue === "string" ? factory2.createStringLiteral(constantValue) : factory2.createNumericLiteral(constantValue);
|
|
88650
|
+
const substitute = typeof constantValue === "string" ? factory2.createStringLiteral(constantValue) : constantValue < 0 ? factory2.createPrefixUnaryExpression(41 /* MinusToken */, factory2.createNumericLiteral(Math.abs(constantValue))) : factory2.createNumericLiteral(constantValue);
|
|
88651
88651
|
if (!compilerOptions.removeComments) {
|
|
88652
88652
|
const originalNode = getOriginalNode(node, isAccessExpression);
|
|
88653
88653
|
addSyntheticTrailingComment(substitute, 3 /* MultiLineCommentTrivia */, ` ${safeMultiLineComment(getTextOfNode(originalNode))} `);
|
|
@@ -110922,7 +110922,7 @@ function createPrinter(printerOptions = {}, handlers = {}) {
|
|
|
110922
110922
|
return !(expression.numericLiteralFlags & 448 /* WithSpecifier */) && !stringContains(text, tokenToString(25 /* DotToken */)) && !stringContains(text, String.fromCharCode(69 /* E */)) && !stringContains(text, String.fromCharCode(101 /* e */));
|
|
110923
110923
|
} else if (isAccessExpression(expression)) {
|
|
110924
110924
|
const constantValue = getConstantValue(expression);
|
|
110925
|
-
return typeof constantValue === "number" && isFinite(constantValue) && Math.floor(constantValue) === constantValue;
|
|
110925
|
+
return typeof constantValue === "number" && isFinite(constantValue) && constantValue >= 0 && Math.floor(constantValue) === constantValue;
|
|
110926
110926
|
}
|
|
110927
110927
|
}
|
|
110928
110928
|
function emitElementAccessExpression(node) {
|
package/lib/tsserver.js
CHANGED
|
@@ -58321,7 +58321,7 @@ function createTypeChecker(host) {
|
|
|
58321
58321
|
if (baseConstructorIndexInfo) {
|
|
58322
58322
|
indexInfos = append(indexInfos, baseConstructorIndexInfo);
|
|
58323
58323
|
}
|
|
58324
|
-
if (symbol.flags &
|
|
58324
|
+
if (symbol.flags & 384 /* Enum */ && (getDeclaredTypeOfSymbol(symbol).flags & 32 /* Enum */ || some(type.properties, (prop) => !!(getTypeOfSymbol(prop).flags & 296 /* NumberLike */)))) {
|
|
58325
58325
|
indexInfos = append(indexInfos, enumNumberIndexInfo);
|
|
58326
58326
|
}
|
|
58327
58327
|
}
|
|
@@ -66056,7 +66056,7 @@ function createTypeChecker(host) {
|
|
|
66056
66056
|
const allowStructuralFallback = targetTypeArguments && hasCovariantVoidArgument(targetTypeArguments, variances);
|
|
66057
66057
|
varianceCheckFailed = !allowStructuralFallback;
|
|
66058
66058
|
if (variances !== emptyArray && !allowStructuralFallback) {
|
|
66059
|
-
if (varianceCheckFailed && !
|
|
66059
|
+
if (varianceCheckFailed && !some(variances, (v) => (v & 7 /* VarianceMask */) === 0 /* Invariant */)) {
|
|
66060
66060
|
return 0 /* False */;
|
|
66061
66061
|
}
|
|
66062
66062
|
originalErrorInfo = errorInfo;
|
|
@@ -93529,7 +93529,7 @@ function transformTypeScript(context) {
|
|
|
93529
93529
|
const constantValue = tryGetConstEnumValue(node);
|
|
93530
93530
|
if (constantValue !== void 0) {
|
|
93531
93531
|
setConstantValue(node, constantValue);
|
|
93532
|
-
const substitute = typeof constantValue === "string" ? factory2.createStringLiteral(constantValue) : factory2.createNumericLiteral(constantValue);
|
|
93532
|
+
const substitute = typeof constantValue === "string" ? factory2.createStringLiteral(constantValue) : constantValue < 0 ? factory2.createPrefixUnaryExpression(41 /* MinusToken */, factory2.createNumericLiteral(Math.abs(constantValue))) : factory2.createNumericLiteral(constantValue);
|
|
93533
93533
|
if (!compilerOptions.removeComments) {
|
|
93534
93534
|
const originalNode = getOriginalNode(node, isAccessExpression);
|
|
93535
93535
|
addSyntheticTrailingComment(substitute, 3 /* MultiLineCommentTrivia */, ` ${safeMultiLineComment(getTextOfNode(originalNode))} `);
|
|
@@ -115815,7 +115815,7 @@ function createPrinter(printerOptions = {}, handlers = {}) {
|
|
|
115815
115815
|
return !(expression.numericLiteralFlags & 448 /* WithSpecifier */) && !stringContains(text, tokenToString(25 /* DotToken */)) && !stringContains(text, String.fromCharCode(69 /* E */)) && !stringContains(text, String.fromCharCode(101 /* e */));
|
|
115816
115816
|
} else if (isAccessExpression(expression)) {
|
|
115817
115817
|
const constantValue = getConstantValue(expression);
|
|
115818
|
-
return typeof constantValue === "number" && isFinite(constantValue) && Math.floor(constantValue) === constantValue;
|
|
115818
|
+
return typeof constantValue === "number" && isFinite(constantValue) && constantValue >= 0 && Math.floor(constantValue) === constantValue;
|
|
115819
115819
|
}
|
|
115820
115820
|
}
|
|
115821
115821
|
function emitElementAccessExpression(node) {
|
package/lib/tsserverlibrary.js
CHANGED
|
@@ -56084,7 +56084,7 @@ ${lanes.join("\n")}
|
|
|
56084
56084
|
if (baseConstructorIndexInfo) {
|
|
56085
56085
|
indexInfos = append(indexInfos, baseConstructorIndexInfo);
|
|
56086
56086
|
}
|
|
56087
|
-
if (symbol.flags &
|
|
56087
|
+
if (symbol.flags & 384 /* Enum */ && (getDeclaredTypeOfSymbol(symbol).flags & 32 /* Enum */ || some(type.properties, (prop) => !!(getTypeOfSymbol(prop).flags & 296 /* NumberLike */)))) {
|
|
56088
56088
|
indexInfos = append(indexInfos, enumNumberIndexInfo);
|
|
56089
56089
|
}
|
|
56090
56090
|
}
|
|
@@ -63819,7 +63819,7 @@ ${lanes.join("\n")}
|
|
|
63819
63819
|
const allowStructuralFallback = targetTypeArguments && hasCovariantVoidArgument(targetTypeArguments, variances);
|
|
63820
63820
|
varianceCheckFailed = !allowStructuralFallback;
|
|
63821
63821
|
if (variances !== emptyArray && !allowStructuralFallback) {
|
|
63822
|
-
if (varianceCheckFailed && !
|
|
63822
|
+
if (varianceCheckFailed && !some(variances, (v) => (v & 7 /* VarianceMask */) === 0 /* Invariant */)) {
|
|
63823
63823
|
return 0 /* False */;
|
|
63824
63824
|
}
|
|
63825
63825
|
originalErrorInfo = errorInfo;
|
|
@@ -91473,7 +91473,7 @@ ${lanes.join("\n")}
|
|
|
91473
91473
|
const constantValue = tryGetConstEnumValue(node);
|
|
91474
91474
|
if (constantValue !== void 0) {
|
|
91475
91475
|
setConstantValue(node, constantValue);
|
|
91476
|
-
const substitute = typeof constantValue === "string" ? factory2.createStringLiteral(constantValue) : factory2.createNumericLiteral(constantValue);
|
|
91476
|
+
const substitute = typeof constantValue === "string" ? factory2.createStringLiteral(constantValue) : constantValue < 0 ? factory2.createPrefixUnaryExpression(41 /* MinusToken */, factory2.createNumericLiteral(Math.abs(constantValue))) : factory2.createNumericLiteral(constantValue);
|
|
91477
91477
|
if (!compilerOptions.removeComments) {
|
|
91478
91478
|
const originalNode = getOriginalNode(node, isAccessExpression);
|
|
91479
91479
|
addSyntheticTrailingComment(substitute, 3 /* MultiLineCommentTrivia */, ` ${safeMultiLineComment(getTextOfNode(originalNode))} `);
|
|
@@ -113856,7 +113856,7 @@ ${lanes.join("\n")}
|
|
|
113856
113856
|
return !(expression.numericLiteralFlags & 448 /* WithSpecifier */) && !stringContains(text, tokenToString(25 /* DotToken */)) && !stringContains(text, String.fromCharCode(69 /* E */)) && !stringContains(text, String.fromCharCode(101 /* e */));
|
|
113857
113857
|
} else if (isAccessExpression(expression)) {
|
|
113858
113858
|
const constantValue = getConstantValue(expression);
|
|
113859
|
-
return typeof constantValue === "number" && isFinite(constantValue) && Math.floor(constantValue) === constantValue;
|
|
113859
|
+
return typeof constantValue === "number" && isFinite(constantValue) && constantValue >= 0 && Math.floor(constantValue) === constantValue;
|
|
113860
113860
|
}
|
|
113861
113861
|
}
|
|
113862
113862
|
function emitElementAccessExpression(node) {
|
package/lib/typescript.js
CHANGED
|
@@ -56084,7 +56084,7 @@ ${lanes.join("\n")}
|
|
|
56084
56084
|
if (baseConstructorIndexInfo) {
|
|
56085
56085
|
indexInfos = append(indexInfos, baseConstructorIndexInfo);
|
|
56086
56086
|
}
|
|
56087
|
-
if (symbol.flags &
|
|
56087
|
+
if (symbol.flags & 384 /* Enum */ && (getDeclaredTypeOfSymbol(symbol).flags & 32 /* Enum */ || some(type.properties, (prop) => !!(getTypeOfSymbol(prop).flags & 296 /* NumberLike */)))) {
|
|
56088
56088
|
indexInfos = append(indexInfos, enumNumberIndexInfo);
|
|
56089
56089
|
}
|
|
56090
56090
|
}
|
|
@@ -63819,7 +63819,7 @@ ${lanes.join("\n")}
|
|
|
63819
63819
|
const allowStructuralFallback = targetTypeArguments && hasCovariantVoidArgument(targetTypeArguments, variances);
|
|
63820
63820
|
varianceCheckFailed = !allowStructuralFallback;
|
|
63821
63821
|
if (variances !== emptyArray && !allowStructuralFallback) {
|
|
63822
|
-
if (varianceCheckFailed && !
|
|
63822
|
+
if (varianceCheckFailed && !some(variances, (v) => (v & 7 /* VarianceMask */) === 0 /* Invariant */)) {
|
|
63823
63823
|
return 0 /* False */;
|
|
63824
63824
|
}
|
|
63825
63825
|
originalErrorInfo = errorInfo;
|
|
@@ -91473,7 +91473,7 @@ ${lanes.join("\n")}
|
|
|
91473
91473
|
const constantValue = tryGetConstEnumValue(node);
|
|
91474
91474
|
if (constantValue !== void 0) {
|
|
91475
91475
|
setConstantValue(node, constantValue);
|
|
91476
|
-
const substitute = typeof constantValue === "string" ? factory2.createStringLiteral(constantValue) : factory2.createNumericLiteral(constantValue);
|
|
91476
|
+
const substitute = typeof constantValue === "string" ? factory2.createStringLiteral(constantValue) : constantValue < 0 ? factory2.createPrefixUnaryExpression(41 /* MinusToken */, factory2.createNumericLiteral(Math.abs(constantValue))) : factory2.createNumericLiteral(constantValue);
|
|
91477
91477
|
if (!compilerOptions.removeComments) {
|
|
91478
91478
|
const originalNode = getOriginalNode(node, isAccessExpression);
|
|
91479
91479
|
addSyntheticTrailingComment(substitute, 3 /* MultiLineCommentTrivia */, ` ${safeMultiLineComment(getTextOfNode(originalNode))} `);
|
|
@@ -113856,7 +113856,7 @@ ${lanes.join("\n")}
|
|
|
113856
113856
|
return !(expression.numericLiteralFlags & 448 /* WithSpecifier */) && !stringContains(text, tokenToString(25 /* DotToken */)) && !stringContains(text, String.fromCharCode(69 /* E */)) && !stringContains(text, String.fromCharCode(101 /* e */));
|
|
113857
113857
|
} else if (isAccessExpression(expression)) {
|
|
113858
113858
|
const constantValue = getConstantValue(expression);
|
|
113859
|
-
return typeof constantValue === "number" && isFinite(constantValue) && Math.floor(constantValue) === constantValue;
|
|
113859
|
+
return typeof constantValue === "number" && isFinite(constantValue) && constantValue >= 0 && Math.floor(constantValue) === constantValue;
|
|
113860
113860
|
}
|
|
113861
113861
|
}
|
|
113862
113862
|
function emitElementAccessExpression(node) {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@typescript-deploys/pr-build",
|
|
3
3
|
"author": "Microsoft Corp.",
|
|
4
4
|
"homepage": "https://www.typescriptlang.org/",
|
|
5
|
-
"version": "5.2.0-pr-
|
|
5
|
+
"version": "5.2.0-pr-55222-9",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -114,5 +114,5 @@
|
|
|
114
114
|
"node": "20.1.0",
|
|
115
115
|
"npm": "8.19.4"
|
|
116
116
|
},
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "761470df319b5ea84ed66d44fee1cd09b6c531be"
|
|
118
118
|
}
|