@typescript-deploys/pr-build 5.4.0-pr-55774-44 → 5.4.0-pr-57008-7
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 +15 -10
- package/lib/tsserver.js +15 -10
- package/lib/typescript.js +15 -10
- package/lib/typingsInstaller.js +14 -1
- package/package.json +2 -2
package/lib/tsc.js
CHANGED
|
@@ -9107,7 +9107,20 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
|
|
|
9107
9107
|
}
|
|
9108
9108
|
const ch = codePointAt(text, pos);
|
|
9109
9109
|
if (pos === 0) {
|
|
9110
|
-
|
|
9110
|
+
let isBinary = ch === 65533 /* replacementCharacter */;
|
|
9111
|
+
if (ch === 71 /* G */) {
|
|
9112
|
+
const end2 = Math.min(text.length, pos + 188);
|
|
9113
|
+
let i = pos + charSize(ch);
|
|
9114
|
+
while (i < end2) {
|
|
9115
|
+
const ch2 = codePointAt(text, i);
|
|
9116
|
+
if (codePointAt(text, i) === 65533 /* replacementCharacter */) {
|
|
9117
|
+
isBinary = true;
|
|
9118
|
+
break;
|
|
9119
|
+
}
|
|
9120
|
+
i += charSize(ch2);
|
|
9121
|
+
}
|
|
9122
|
+
}
|
|
9123
|
+
if (isBinary) {
|
|
9111
9124
|
error(Diagnostics.File_appears_to_be_binary);
|
|
9112
9125
|
pos = end;
|
|
9113
9126
|
return token = 8 /* NonTextFileMarkerTrivia */;
|
|
@@ -54630,14 +54643,6 @@ function createTypeChecker(host) {
|
|
|
54630
54643
|
return getCheckFlags(s) & 4096 /* Late */;
|
|
54631
54644
|
}
|
|
54632
54645
|
function forEachMappedTypePropertyKeyTypeAndIndexSignatureKeyType(type, include, stringsOnly, cb) {
|
|
54633
|
-
if (isTupleType(type)) {
|
|
54634
|
-
forEachType(getUnionType(getElementTypes(type).map((_, i) => getStringLiteralType("" + i))), cb);
|
|
54635
|
-
return;
|
|
54636
|
-
}
|
|
54637
|
-
if (isArrayType(type)) {
|
|
54638
|
-
cb(numberType);
|
|
54639
|
-
return;
|
|
54640
|
-
}
|
|
54641
54646
|
for (const prop of getPropertiesOfType(type)) {
|
|
54642
54647
|
cb(getLiteralTypeFromProperty(prop, include));
|
|
54643
54648
|
}
|
|
@@ -56522,7 +56527,7 @@ function createTypeChecker(host) {
|
|
|
56522
56527
|
if (constraint) {
|
|
56523
56528
|
constraints = append(constraints, constraint);
|
|
56524
56529
|
}
|
|
56525
|
-
} else if (type.flags & 262144 /* TypeParameter */ && parent.kind === 200 /* MappedType */ &&
|
|
56530
|
+
} else if (type.flags & 262144 /* TypeParameter */ && parent.kind === 200 /* MappedType */ && node === parent.type) {
|
|
56526
56531
|
const mappedType = getTypeFromTypeNode(parent);
|
|
56527
56532
|
if (getTypeParameterFromMappedType(mappedType) === getActualTypeVariable(type)) {
|
|
56528
56533
|
const typeParameter = getHomomorphicTypeVariable(mappedType);
|
package/lib/tsserver.js
CHANGED
|
@@ -12695,7 +12695,20 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
|
|
|
12695
12695
|
}
|
|
12696
12696
|
const ch = codePointAt(text, pos);
|
|
12697
12697
|
if (pos === 0) {
|
|
12698
|
-
|
|
12698
|
+
let isBinary = ch === 65533 /* replacementCharacter */;
|
|
12699
|
+
if (ch === 71 /* G */) {
|
|
12700
|
+
const end2 = Math.min(text.length, pos + 188);
|
|
12701
|
+
let i = pos + charSize(ch);
|
|
12702
|
+
while (i < end2) {
|
|
12703
|
+
const ch2 = codePointAt(text, i);
|
|
12704
|
+
if (codePointAt(text, i) === 65533 /* replacementCharacter */) {
|
|
12705
|
+
isBinary = true;
|
|
12706
|
+
break;
|
|
12707
|
+
}
|
|
12708
|
+
i += charSize(ch2);
|
|
12709
|
+
}
|
|
12710
|
+
}
|
|
12711
|
+
if (isBinary) {
|
|
12699
12712
|
error2(Diagnostics.File_appears_to_be_binary);
|
|
12700
12713
|
pos = end;
|
|
12701
12714
|
return token = 8 /* NonTextFileMarkerTrivia */;
|
|
@@ -59368,14 +59381,6 @@ function createTypeChecker(host) {
|
|
|
59368
59381
|
return getCheckFlags(s) & 4096 /* Late */;
|
|
59369
59382
|
}
|
|
59370
59383
|
function forEachMappedTypePropertyKeyTypeAndIndexSignatureKeyType(type, include, stringsOnly, cb) {
|
|
59371
|
-
if (isTupleType(type)) {
|
|
59372
|
-
forEachType(getUnionType(getElementTypes(type).map((_, i) => getStringLiteralType("" + i))), cb);
|
|
59373
|
-
return;
|
|
59374
|
-
}
|
|
59375
|
-
if (isArrayType(type)) {
|
|
59376
|
-
cb(numberType);
|
|
59377
|
-
return;
|
|
59378
|
-
}
|
|
59379
59384
|
for (const prop of getPropertiesOfType(type)) {
|
|
59380
59385
|
cb(getLiteralTypeFromProperty(prop, include));
|
|
59381
59386
|
}
|
|
@@ -61260,7 +61265,7 @@ function createTypeChecker(host) {
|
|
|
61260
61265
|
if (constraint) {
|
|
61261
61266
|
constraints = append(constraints, constraint);
|
|
61262
61267
|
}
|
|
61263
|
-
} else if (type.flags & 262144 /* TypeParameter */ && parent2.kind === 200 /* MappedType */ &&
|
|
61268
|
+
} else if (type.flags & 262144 /* TypeParameter */ && parent2.kind === 200 /* MappedType */ && node === parent2.type) {
|
|
61264
61269
|
const mappedType = getTypeFromTypeNode(parent2);
|
|
61265
61270
|
if (getTypeParameterFromMappedType(mappedType) === getActualTypeVariable(type)) {
|
|
61266
61271
|
const typeParameter = getHomomorphicTypeVariable(mappedType);
|
package/lib/typescript.js
CHANGED
|
@@ -10305,7 +10305,20 @@ ${lanes.join("\n")}
|
|
|
10305
10305
|
}
|
|
10306
10306
|
const ch = codePointAt(text, pos);
|
|
10307
10307
|
if (pos === 0) {
|
|
10308
|
-
|
|
10308
|
+
let isBinary = ch === 65533 /* replacementCharacter */;
|
|
10309
|
+
if (ch === 71 /* G */) {
|
|
10310
|
+
const end2 = Math.min(text.length, pos + 188);
|
|
10311
|
+
let i = pos + charSize(ch);
|
|
10312
|
+
while (i < end2) {
|
|
10313
|
+
const ch2 = codePointAt(text, i);
|
|
10314
|
+
if (codePointAt(text, i) === 65533 /* replacementCharacter */) {
|
|
10315
|
+
isBinary = true;
|
|
10316
|
+
break;
|
|
10317
|
+
}
|
|
10318
|
+
i += charSize(ch2);
|
|
10319
|
+
}
|
|
10320
|
+
}
|
|
10321
|
+
if (isBinary) {
|
|
10309
10322
|
error2(Diagnostics.File_appears_to_be_binary);
|
|
10310
10323
|
pos = end;
|
|
10311
10324
|
return token = 8 /* NonTextFileMarkerTrivia */;
|
|
@@ -57123,14 +57136,6 @@ ${lanes.join("\n")}
|
|
|
57123
57136
|
return getCheckFlags(s) & 4096 /* Late */;
|
|
57124
57137
|
}
|
|
57125
57138
|
function forEachMappedTypePropertyKeyTypeAndIndexSignatureKeyType(type, include, stringsOnly, cb) {
|
|
57126
|
-
if (isTupleType(type)) {
|
|
57127
|
-
forEachType(getUnionType(getElementTypes(type).map((_, i) => getStringLiteralType("" + i))), cb);
|
|
57128
|
-
return;
|
|
57129
|
-
}
|
|
57130
|
-
if (isArrayType(type)) {
|
|
57131
|
-
cb(numberType);
|
|
57132
|
-
return;
|
|
57133
|
-
}
|
|
57134
57139
|
for (const prop of getPropertiesOfType(type)) {
|
|
57135
57140
|
cb(getLiteralTypeFromProperty(prop, include));
|
|
57136
57141
|
}
|
|
@@ -59015,7 +59020,7 @@ ${lanes.join("\n")}
|
|
|
59015
59020
|
if (constraint) {
|
|
59016
59021
|
constraints = append(constraints, constraint);
|
|
59017
59022
|
}
|
|
59018
|
-
} else if (type.flags & 262144 /* TypeParameter */ && parent2.kind === 200 /* MappedType */ &&
|
|
59023
|
+
} else if (type.flags & 262144 /* TypeParameter */ && parent2.kind === 200 /* MappedType */ && node === parent2.type) {
|
|
59019
59024
|
const mappedType = getTypeFromTypeNode(parent2);
|
|
59020
59025
|
if (getTypeParameterFromMappedType(mappedType) === getActualTypeVariable(type)) {
|
|
59021
59026
|
const typeParameter = getHomomorphicTypeVariable(mappedType);
|
package/lib/typingsInstaller.js
CHANGED
|
@@ -8427,7 +8427,20 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
|
|
|
8427
8427
|
}
|
|
8428
8428
|
const ch = codePointAt(text, pos);
|
|
8429
8429
|
if (pos === 0) {
|
|
8430
|
-
|
|
8430
|
+
let isBinary = ch === 65533 /* replacementCharacter */;
|
|
8431
|
+
if (ch === 71 /* G */) {
|
|
8432
|
+
const end2 = Math.min(text.length, pos + 188);
|
|
8433
|
+
let i = pos + charSize(ch);
|
|
8434
|
+
while (i < end2) {
|
|
8435
|
+
const ch2 = codePointAt(text, i);
|
|
8436
|
+
if (codePointAt(text, i) === 65533 /* replacementCharacter */) {
|
|
8437
|
+
isBinary = true;
|
|
8438
|
+
break;
|
|
8439
|
+
}
|
|
8440
|
+
i += charSize(ch2);
|
|
8441
|
+
}
|
|
8442
|
+
}
|
|
8443
|
+
if (isBinary) {
|
|
8431
8444
|
error(Diagnostics.File_appears_to_be_binary);
|
|
8432
8445
|
pos = end;
|
|
8433
8446
|
return token = 8 /* NonTextFileMarkerTrivia */;
|
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.4.0-pr-
|
|
5
|
+
"version": "5.4.0-pr-57008-7",
|
|
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": "9e96ea21415bfb8f99bcee14acd21a8d97923585"
|
|
118
118
|
}
|