@typescript-deploys/pr-build 5.3.0-pr-53714-29 → 5.3.0-pr-55779-6
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 +3 -13
- package/lib/tsserver.js +3 -13
- package/lib/typescript.js +3 -13
- package/lib/typingsInstaller.js +1 -1
- package/package.json +2 -2
package/lib/tsc.js
CHANGED
|
@@ -18,7 +18,7 @@ and limitations under the License.
|
|
|
18
18
|
|
|
19
19
|
// src/compiler/corePublic.ts
|
|
20
20
|
var versionMajorMinor = "5.3";
|
|
21
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
21
|
+
var version = `${versionMajorMinor}.0-insiders.20230919`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -39922,7 +39922,7 @@ function createBinder() {
|
|
|
39922
39922
|
case 36 /* ExclamationEqualsToken */:
|
|
39923
39923
|
case 37 /* EqualsEqualsEqualsToken */:
|
|
39924
39924
|
case 38 /* ExclamationEqualsEqualsToken */:
|
|
39925
|
-
return isNarrowableOperand(expr.left) || isNarrowableOperand(expr.right) || isNarrowingTypeofOperands(expr.right, expr.left) || isNarrowingTypeofOperands(expr.left, expr.right)
|
|
39925
|
+
return isNarrowableOperand(expr.left) || isNarrowableOperand(expr.right) || isNarrowingTypeofOperands(expr.right, expr.left) || isNarrowingTypeofOperands(expr.left, expr.right);
|
|
39926
39926
|
case 104 /* InstanceOfKeyword */:
|
|
39927
39927
|
return isNarrowableOperand(expr.left);
|
|
39928
39928
|
case 103 /* InKeyword */:
|
|
@@ -54201,7 +54201,7 @@ function createTypeChecker(host) {
|
|
|
54201
54201
|
}
|
|
54202
54202
|
function isConstTypeVariable(type, depth = 0) {
|
|
54203
54203
|
var _a;
|
|
54204
|
-
return depth < 5 && !!(type && (type.flags & 262144 /* TypeParameter */ && some((_a = type.symbol) == null ? void 0 : _a.declarations, (d) => hasSyntacticModifier(d, 2048 /* Const */)) || type.flags &
|
|
54204
|
+
return depth < 5 && !!(type && (type.flags & 262144 /* TypeParameter */ && some((_a = type.symbol) == null ? void 0 : _a.declarations, (d) => hasSyntacticModifier(d, 2048 /* Const */)) || type.flags & 3145728 /* UnionOrIntersection */ && some(type.types, (t) => isConstTypeVariable(t, depth)) || type.flags & 8388608 /* IndexedAccess */ && isConstTypeVariable(type.objectType, depth + 1) || type.flags & 16777216 /* Conditional */ && isConstTypeVariable(getConstraintOfConditionalType(type), depth + 1) || type.flags & 33554432 /* Substitution */ && isConstTypeVariable(type.baseType, depth) || isGenericTupleType(type) && findIndex(getElementTypes(type), (t, i) => !!(type.target.elementFlags[i] & 8 /* Variadic */) && isConstTypeVariable(t, depth)) >= 0));
|
|
54205
54205
|
}
|
|
54206
54206
|
function getConstraintOfIndexedAccess(type) {
|
|
54207
54207
|
return hasNonCircularBaseConstraint(type) ? getConstraintFromIndexedAccess(type) : void 0;
|
|
@@ -65807,10 +65807,6 @@ function createTypeChecker(host) {
|
|
|
65807
65807
|
}
|
|
65808
65808
|
return type;
|
|
65809
65809
|
}
|
|
65810
|
-
function narrowTypeByBooleanComparison(type, expr, bool, operator, assumeTrue) {
|
|
65811
|
-
assumeTrue = assumeTrue !== (bool.kind === 112 /* TrueKeyword */) !== (operator !== 38 /* ExclamationEqualsEqualsToken */ && operator !== 36 /* ExclamationEqualsToken */);
|
|
65812
|
-
return narrowType(type, expr, assumeTrue);
|
|
65813
|
-
}
|
|
65814
65810
|
function narrowTypeByBinaryExpression(type, expr, assumeTrue) {
|
|
65815
65811
|
switch (expr.operatorToken.kind) {
|
|
65816
65812
|
case 64 /* EqualsToken */:
|
|
@@ -65858,12 +65854,6 @@ function createTypeChecker(host) {
|
|
|
65858
65854
|
if (isMatchingConstructorReference(right)) {
|
|
65859
65855
|
return narrowTypeByConstructor(type, operator, left, assumeTrue);
|
|
65860
65856
|
}
|
|
65861
|
-
if (isBooleanLiteral(right)) {
|
|
65862
|
-
return narrowTypeByBooleanComparison(type, left, right, operator, assumeTrue);
|
|
65863
|
-
}
|
|
65864
|
-
if (isBooleanLiteral(left)) {
|
|
65865
|
-
return narrowTypeByBooleanComparison(type, right, left, operator, assumeTrue);
|
|
65866
|
-
}
|
|
65867
65857
|
break;
|
|
65868
65858
|
case 104 /* InstanceOfKeyword */:
|
|
65869
65859
|
return narrowTypeByInstanceof(type, expr, assumeTrue);
|
package/lib/tsserver.js
CHANGED
|
@@ -2328,7 +2328,7 @@ module.exports = __toCommonJS(server_exports);
|
|
|
2328
2328
|
|
|
2329
2329
|
// src/compiler/corePublic.ts
|
|
2330
2330
|
var versionMajorMinor = "5.3";
|
|
2331
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
2331
|
+
var version = `${versionMajorMinor}.0-insiders.20230919`;
|
|
2332
2332
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2333
2333
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2334
2334
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -44577,7 +44577,7 @@ function createBinder() {
|
|
|
44577
44577
|
case 36 /* ExclamationEqualsToken */:
|
|
44578
44578
|
case 37 /* EqualsEqualsEqualsToken */:
|
|
44579
44579
|
case 38 /* ExclamationEqualsEqualsToken */:
|
|
44580
|
-
return isNarrowableOperand(expr.left) || isNarrowableOperand(expr.right) || isNarrowingTypeofOperands(expr.right, expr.left) || isNarrowingTypeofOperands(expr.left, expr.right)
|
|
44580
|
+
return isNarrowableOperand(expr.left) || isNarrowableOperand(expr.right) || isNarrowingTypeofOperands(expr.right, expr.left) || isNarrowingTypeofOperands(expr.left, expr.right);
|
|
44581
44581
|
case 104 /* InstanceOfKeyword */:
|
|
44582
44582
|
return isNarrowableOperand(expr.left);
|
|
44583
44583
|
case 103 /* InKeyword */:
|
|
@@ -58901,7 +58901,7 @@ function createTypeChecker(host) {
|
|
|
58901
58901
|
}
|
|
58902
58902
|
function isConstTypeVariable(type, depth = 0) {
|
|
58903
58903
|
var _a;
|
|
58904
|
-
return depth < 5 && !!(type && (type.flags & 262144 /* TypeParameter */ && some((_a = type.symbol) == null ? void 0 : _a.declarations, (d) => hasSyntacticModifier(d, 2048 /* Const */)) || type.flags &
|
|
58904
|
+
return depth < 5 && !!(type && (type.flags & 262144 /* TypeParameter */ && some((_a = type.symbol) == null ? void 0 : _a.declarations, (d) => hasSyntacticModifier(d, 2048 /* Const */)) || type.flags & 3145728 /* UnionOrIntersection */ && some(type.types, (t) => isConstTypeVariable(t, depth)) || type.flags & 8388608 /* IndexedAccess */ && isConstTypeVariable(type.objectType, depth + 1) || type.flags & 16777216 /* Conditional */ && isConstTypeVariable(getConstraintOfConditionalType(type), depth + 1) || type.flags & 33554432 /* Substitution */ && isConstTypeVariable(type.baseType, depth) || isGenericTupleType(type) && findIndex(getElementTypes(type), (t, i) => !!(type.target.elementFlags[i] & 8 /* Variadic */) && isConstTypeVariable(t, depth)) >= 0));
|
|
58905
58905
|
}
|
|
58906
58906
|
function getConstraintOfIndexedAccess(type) {
|
|
58907
58907
|
return hasNonCircularBaseConstraint(type) ? getConstraintFromIndexedAccess(type) : void 0;
|
|
@@ -70507,10 +70507,6 @@ function createTypeChecker(host) {
|
|
|
70507
70507
|
}
|
|
70508
70508
|
return type;
|
|
70509
70509
|
}
|
|
70510
|
-
function narrowTypeByBooleanComparison(type, expr, bool, operator, assumeTrue) {
|
|
70511
|
-
assumeTrue = assumeTrue !== (bool.kind === 112 /* TrueKeyword */) !== (operator !== 38 /* ExclamationEqualsEqualsToken */ && operator !== 36 /* ExclamationEqualsToken */);
|
|
70512
|
-
return narrowType(type, expr, assumeTrue);
|
|
70513
|
-
}
|
|
70514
70510
|
function narrowTypeByBinaryExpression(type, expr, assumeTrue) {
|
|
70515
70511
|
switch (expr.operatorToken.kind) {
|
|
70516
70512
|
case 64 /* EqualsToken */:
|
|
@@ -70558,12 +70554,6 @@ function createTypeChecker(host) {
|
|
|
70558
70554
|
if (isMatchingConstructorReference(right)) {
|
|
70559
70555
|
return narrowTypeByConstructor(type, operator, left, assumeTrue);
|
|
70560
70556
|
}
|
|
70561
|
-
if (isBooleanLiteral(right)) {
|
|
70562
|
-
return narrowTypeByBooleanComparison(type, left, right, operator, assumeTrue);
|
|
70563
|
-
}
|
|
70564
|
-
if (isBooleanLiteral(left)) {
|
|
70565
|
-
return narrowTypeByBooleanComparison(type, right, left, operator, assumeTrue);
|
|
70566
|
-
}
|
|
70567
70557
|
break;
|
|
70568
70558
|
case 104 /* InstanceOfKeyword */:
|
|
70569
70559
|
return narrowTypeByInstanceof(type, expr, assumeTrue);
|
package/lib/typescript.js
CHANGED
|
@@ -35,7 +35,7 @@ var ts = (() => {
|
|
|
35
35
|
"src/compiler/corePublic.ts"() {
|
|
36
36
|
"use strict";
|
|
37
37
|
versionMajorMinor = "5.3";
|
|
38
|
-
version = `${versionMajorMinor}.0-insiders.
|
|
38
|
+
version = `${versionMajorMinor}.0-insiders.20230919`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -42424,7 +42424,7 @@ ${lanes.join("\n")}
|
|
|
42424
42424
|
case 36 /* ExclamationEqualsToken */:
|
|
42425
42425
|
case 37 /* EqualsEqualsEqualsToken */:
|
|
42426
42426
|
case 38 /* ExclamationEqualsEqualsToken */:
|
|
42427
|
-
return isNarrowableOperand(expr.left) || isNarrowableOperand(expr.right) || isNarrowingTypeofOperands(expr.right, expr.left) || isNarrowingTypeofOperands(expr.left, expr.right)
|
|
42427
|
+
return isNarrowableOperand(expr.left) || isNarrowableOperand(expr.right) || isNarrowingTypeofOperands(expr.right, expr.left) || isNarrowingTypeofOperands(expr.left, expr.right);
|
|
42428
42428
|
case 104 /* InstanceOfKeyword */:
|
|
42429
42429
|
return isNarrowableOperand(expr.left);
|
|
42430
42430
|
case 103 /* InKeyword */:
|
|
@@ -56667,7 +56667,7 @@ ${lanes.join("\n")}
|
|
|
56667
56667
|
}
|
|
56668
56668
|
function isConstTypeVariable(type, depth = 0) {
|
|
56669
56669
|
var _a;
|
|
56670
|
-
return depth < 5 && !!(type && (type.flags & 262144 /* TypeParameter */ && some((_a = type.symbol) == null ? void 0 : _a.declarations, (d) => hasSyntacticModifier(d, 2048 /* Const */)) || type.flags &
|
|
56670
|
+
return depth < 5 && !!(type && (type.flags & 262144 /* TypeParameter */ && some((_a = type.symbol) == null ? void 0 : _a.declarations, (d) => hasSyntacticModifier(d, 2048 /* Const */)) || type.flags & 3145728 /* UnionOrIntersection */ && some(type.types, (t) => isConstTypeVariable(t, depth)) || type.flags & 8388608 /* IndexedAccess */ && isConstTypeVariable(type.objectType, depth + 1) || type.flags & 16777216 /* Conditional */ && isConstTypeVariable(getConstraintOfConditionalType(type), depth + 1) || type.flags & 33554432 /* Substitution */ && isConstTypeVariable(type.baseType, depth) || isGenericTupleType(type) && findIndex(getElementTypes(type), (t, i) => !!(type.target.elementFlags[i] & 8 /* Variadic */) && isConstTypeVariable(t, depth)) >= 0));
|
|
56671
56671
|
}
|
|
56672
56672
|
function getConstraintOfIndexedAccess(type) {
|
|
56673
56673
|
return hasNonCircularBaseConstraint(type) ? getConstraintFromIndexedAccess(type) : void 0;
|
|
@@ -68273,10 +68273,6 @@ ${lanes.join("\n")}
|
|
|
68273
68273
|
}
|
|
68274
68274
|
return type;
|
|
68275
68275
|
}
|
|
68276
|
-
function narrowTypeByBooleanComparison(type, expr, bool, operator, assumeTrue) {
|
|
68277
|
-
assumeTrue = assumeTrue !== (bool.kind === 112 /* TrueKeyword */) !== (operator !== 38 /* ExclamationEqualsEqualsToken */ && operator !== 36 /* ExclamationEqualsToken */);
|
|
68278
|
-
return narrowType(type, expr, assumeTrue);
|
|
68279
|
-
}
|
|
68280
68276
|
function narrowTypeByBinaryExpression(type, expr, assumeTrue) {
|
|
68281
68277
|
switch (expr.operatorToken.kind) {
|
|
68282
68278
|
case 64 /* EqualsToken */:
|
|
@@ -68324,12 +68320,6 @@ ${lanes.join("\n")}
|
|
|
68324
68320
|
if (isMatchingConstructorReference(right)) {
|
|
68325
68321
|
return narrowTypeByConstructor(type, operator, left, assumeTrue);
|
|
68326
68322
|
}
|
|
68327
|
-
if (isBooleanLiteral(right)) {
|
|
68328
|
-
return narrowTypeByBooleanComparison(type, left, right, operator, assumeTrue);
|
|
68329
|
-
}
|
|
68330
|
-
if (isBooleanLiteral(left)) {
|
|
68331
|
-
return narrowTypeByBooleanComparison(type, right, left, operator, assumeTrue);
|
|
68332
|
-
}
|
|
68333
68323
|
break;
|
|
68334
68324
|
case 104 /* InstanceOfKeyword */:
|
|
68335
68325
|
return narrowTypeByInstanceof(type, expr, assumeTrue);
|
package/lib/typingsInstaller.js
CHANGED
|
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
|
|
|
54
54
|
|
|
55
55
|
// src/compiler/corePublic.ts
|
|
56
56
|
var versionMajorMinor = "5.3";
|
|
57
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
57
|
+
var version = `${versionMajorMinor}.0-insiders.20230919`;
|
|
58
58
|
|
|
59
59
|
// src/compiler/core.ts
|
|
60
60
|
var emptyArray = [];
|
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.3.0-pr-
|
|
5
|
+
"version": "5.3.0-pr-55779-6",
|
|
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": "1bd6193dd17b73a073ca88599548ec08e4db3f2f"
|
|
118
118
|
}
|