@typescript-deploys/pr-build 5.4.0-pr-56243-5 → 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 +17 -14
- package/lib/tsserver.js +17 -14
- package/lib/typescript.js +17 -14
- 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 */;
|
|
@@ -50244,7 +50257,7 @@ function createTypeChecker(host) {
|
|
|
50244
50257
|
});
|
|
50245
50258
|
let addingDeclare = !bundled;
|
|
50246
50259
|
const exportEquals = symbolTable.get("export=" /* ExportEquals */);
|
|
50247
|
-
if (exportEquals && symbolTable.size > 1 && exportEquals.flags &
|
|
50260
|
+
if (exportEquals && symbolTable.size > 1 && exportEquals.flags & 2097152 /* Alias */) {
|
|
50248
50261
|
symbolTable = createSymbolTable();
|
|
50249
50262
|
symbolTable.set("export=" /* ExportEquals */, exportEquals);
|
|
50250
50263
|
}
|
|
@@ -50701,18 +50714,8 @@ function createTypeChecker(host) {
|
|
|
50701
50714
|
);
|
|
50702
50715
|
}
|
|
50703
50716
|
function getNamespaceMembersForSerialization(symbol) {
|
|
50704
|
-
|
|
50705
|
-
|
|
50706
|
-
if (merged !== symbol) {
|
|
50707
|
-
const membersSet = new Set(exports2);
|
|
50708
|
-
for (const exported of getExportsOfSymbol(merged).values()) {
|
|
50709
|
-
if (!(getSymbolFlags(resolveSymbol(exported)) & 111551 /* Value */)) {
|
|
50710
|
-
membersSet.add(exported);
|
|
50711
|
-
}
|
|
50712
|
-
}
|
|
50713
|
-
exports2 = arrayFrom(membersSet);
|
|
50714
|
-
}
|
|
50715
|
-
return filter(exports2, (m) => isNamespaceMember(m) && isIdentifierText(m.escapedName, 99 /* ESNext */));
|
|
50717
|
+
const exports2 = getExportsOfSymbol(symbol);
|
|
50718
|
+
return !exports2 ? [] : filter(arrayFrom(exports2.values()), (m) => isNamespaceMember(m) && isIdentifierText(m.escapedName, 99 /* ESNext */));
|
|
50716
50719
|
}
|
|
50717
50720
|
function isTypeOnlyNamespace(symbol) {
|
|
50718
50721
|
return every(getNamespaceMembersForSerialization(symbol), (m) => !(getSymbolFlags(resolveSymbol(m)) & 111551 /* Value */));
|
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 */;
|
|
@@ -54982,7 +54995,7 @@ function createTypeChecker(host) {
|
|
|
54982
54995
|
});
|
|
54983
54996
|
let addingDeclare = !bundled;
|
|
54984
54997
|
const exportEquals = symbolTable.get("export=" /* ExportEquals */);
|
|
54985
|
-
if (exportEquals && symbolTable.size > 1 && exportEquals.flags &
|
|
54998
|
+
if (exportEquals && symbolTable.size > 1 && exportEquals.flags & 2097152 /* Alias */) {
|
|
54986
54999
|
symbolTable = createSymbolTable();
|
|
54987
55000
|
symbolTable.set("export=" /* ExportEquals */, exportEquals);
|
|
54988
55001
|
}
|
|
@@ -55439,18 +55452,8 @@ function createTypeChecker(host) {
|
|
|
55439
55452
|
);
|
|
55440
55453
|
}
|
|
55441
55454
|
function getNamespaceMembersForSerialization(symbol) {
|
|
55442
|
-
|
|
55443
|
-
|
|
55444
|
-
if (merged !== symbol) {
|
|
55445
|
-
const membersSet = new Set(exports2);
|
|
55446
|
-
for (const exported of getExportsOfSymbol(merged).values()) {
|
|
55447
|
-
if (!(getSymbolFlags(resolveSymbol(exported)) & 111551 /* Value */)) {
|
|
55448
|
-
membersSet.add(exported);
|
|
55449
|
-
}
|
|
55450
|
-
}
|
|
55451
|
-
exports2 = arrayFrom(membersSet);
|
|
55452
|
-
}
|
|
55453
|
-
return filter(exports2, (m) => isNamespaceMember(m) && isIdentifierText(m.escapedName, 99 /* ESNext */));
|
|
55455
|
+
const exports2 = getExportsOfSymbol(symbol);
|
|
55456
|
+
return !exports2 ? [] : filter(arrayFrom(exports2.values()), (m) => isNamespaceMember(m) && isIdentifierText(m.escapedName, 99 /* ESNext */));
|
|
55454
55457
|
}
|
|
55455
55458
|
function isTypeOnlyNamespace(symbol) {
|
|
55456
55459
|
return every(getNamespaceMembersForSerialization(symbol), (m) => !(getSymbolFlags(resolveSymbol(m)) & 111551 /* Value */));
|
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 */;
|
|
@@ -52737,7 +52750,7 @@ ${lanes.join("\n")}
|
|
|
52737
52750
|
});
|
|
52738
52751
|
let addingDeclare = !bundled;
|
|
52739
52752
|
const exportEquals = symbolTable.get("export=" /* ExportEquals */);
|
|
52740
|
-
if (exportEquals && symbolTable.size > 1 && exportEquals.flags &
|
|
52753
|
+
if (exportEquals && symbolTable.size > 1 && exportEquals.flags & 2097152 /* Alias */) {
|
|
52741
52754
|
symbolTable = createSymbolTable();
|
|
52742
52755
|
symbolTable.set("export=" /* ExportEquals */, exportEquals);
|
|
52743
52756
|
}
|
|
@@ -53194,18 +53207,8 @@ ${lanes.join("\n")}
|
|
|
53194
53207
|
);
|
|
53195
53208
|
}
|
|
53196
53209
|
function getNamespaceMembersForSerialization(symbol) {
|
|
53197
|
-
|
|
53198
|
-
|
|
53199
|
-
if (merged !== symbol) {
|
|
53200
|
-
const membersSet = new Set(exports);
|
|
53201
|
-
for (const exported of getExportsOfSymbol(merged).values()) {
|
|
53202
|
-
if (!(getSymbolFlags(resolveSymbol(exported)) & 111551 /* Value */)) {
|
|
53203
|
-
membersSet.add(exported);
|
|
53204
|
-
}
|
|
53205
|
-
}
|
|
53206
|
-
exports = arrayFrom(membersSet);
|
|
53207
|
-
}
|
|
53208
|
-
return filter(exports, (m) => isNamespaceMember(m) && isIdentifierText(m.escapedName, 99 /* ESNext */));
|
|
53210
|
+
const exports = getExportsOfSymbol(symbol);
|
|
53211
|
+
return !exports ? [] : filter(arrayFrom(exports.values()), (m) => isNamespaceMember(m) && isIdentifierText(m.escapedName, 99 /* ESNext */));
|
|
53209
53212
|
}
|
|
53210
53213
|
function isTypeOnlyNamespace(symbol) {
|
|
53211
53214
|
return every(getNamespaceMembersForSerialization(symbol), (m) => !(getSymbolFlags(resolveSymbol(m)) & 111551 /* Value */));
|
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
|
}
|