typescript 5.3.0-dev.20230816 → 5.3.0-dev.20230818
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/lib.decorators.d.ts +3 -6
- package/lib/lib.es2015.collection.d.ts +1 -2
- package/lib/lib.es2015.core.d.ts +1 -1
- package/lib/lib.es2015.iterable.d.ts +4 -5
- package/lib/lib.es2015.promise.d.ts +1 -1
- package/lib/lib.es2015.symbol.d.ts +1 -1
- package/lib/lib.es2016.array.include.d.ts +1 -1
- package/lib/lib.es2016.d.ts +1 -1
- package/lib/lib.es2016.full.d.ts +1 -1
- package/lib/lib.es2017.full.d.ts +1 -1
- package/lib/lib.es2017.intl.d.ts +11 -12
- package/lib/lib.es2017.object.d.ts +3 -3
- package/lib/lib.es2018.asynciterable.d.ts +1 -1
- package/lib/lib.es2018.full.d.ts +1 -1
- package/lib/lib.es2018.intl.d.ts +1 -2
- package/lib/lib.es2018.promise.d.ts +1 -1
- package/lib/lib.es2018.regexp.d.ts +5 -5
- package/lib/lib.es2019.array.d.ts +14 -18
- package/lib/lib.es2019.intl.d.ts +1 -1
- package/lib/lib.es2019.object.d.ts +1 -1
- package/lib/lib.es2020.bigint.d.ts +7 -7
- package/lib/lib.es2020.date.d.ts +1 -1
- package/lib/lib.es2020.intl.d.ts +11 -13
- package/lib/lib.es2020.promise.d.ts +1 -1
- package/lib/lib.es2021.intl.d.ts +5 -6
- package/lib/lib.es2021.promise.d.ts +3 -3
- package/lib/lib.es2021.weakref.d.ts +2 -2
- package/lib/lib.es2022.error.d.ts +2 -2
- package/lib/lib.es2022.intl.d.ts +1 -2
- package/lib/lib.es2022.sharedmemory.d.ts +2 -2
- package/lib/lib.es2023.array.d.ts +61 -61
- package/lib/lib.es5.d.ts +74 -88
- package/lib/lib.esnext.disposable.d.ts +10 -10
- package/lib/lib.esnext.full.d.ts +1 -1
- package/lib/lib.esnext.intl.d.ts +7 -7
- package/lib/lib.scripthost.d.ts +1 -4
- package/lib/lib.webworker.importscripts.d.ts +0 -1
- package/lib/tsc.js +1249 -1398
- package/lib/tsserver.js +1789 -2017
- package/lib/typescript.d.ts +339 -117
- package/lib/typescript.js +1789 -2017
- package/lib/typingsInstaller.js +124 -110
- package/package.json +4 -2
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-dev.
|
|
57
|
+
var version = `${versionMajorMinor}.0-dev.20230818`;
|
|
58
58
|
|
|
59
59
|
// src/compiler/core.ts
|
|
60
60
|
var emptyArray = [];
|
|
@@ -1280,17 +1280,21 @@ Node ${formatSyntaxKind(node.kind)} was unexpected.`,
|
|
|
1280
1280
|
return `${flowHeader}${remainingFlags ? ` (${formatFlowFlags(remainingFlags)})` : ""}`;
|
|
1281
1281
|
}
|
|
1282
1282
|
},
|
|
1283
|
-
__debugFlowFlags: {
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1283
|
+
__debugFlowFlags: {
|
|
1284
|
+
get() {
|
|
1285
|
+
return formatEnum(
|
|
1286
|
+
this.flags,
|
|
1287
|
+
FlowFlags,
|
|
1288
|
+
/*isFlags*/
|
|
1289
|
+
true
|
|
1290
|
+
);
|
|
1291
|
+
}
|
|
1292
|
+
},
|
|
1293
|
+
__debugToString: {
|
|
1294
|
+
value() {
|
|
1295
|
+
return formatControlFlowGraph(this);
|
|
1296
|
+
}
|
|
1297
|
+
}
|
|
1294
1298
|
});
|
|
1295
1299
|
}
|
|
1296
1300
|
}
|
|
@@ -1349,9 +1353,11 @@ Node ${formatSyntaxKind(node.kind)} was unexpected.`,
|
|
|
1349
1353
|
return `${symbolHeader} '${symbolName(this)}'${remainingSymbolFlags ? ` (${formatSymbolFlags(remainingSymbolFlags)})` : ""}`;
|
|
1350
1354
|
}
|
|
1351
1355
|
},
|
|
1352
|
-
__debugFlags: {
|
|
1353
|
-
|
|
1354
|
-
|
|
1356
|
+
__debugFlags: {
|
|
1357
|
+
get() {
|
|
1358
|
+
return formatSymbolFlags(this.flags);
|
|
1359
|
+
}
|
|
1360
|
+
}
|
|
1355
1361
|
});
|
|
1356
1362
|
Object.defineProperties(objectAllocator.getTypeConstructor().prototype, {
|
|
1357
1363
|
// for use with vscode-js-debug's new customDescriptionGenerator in launch.json
|
|
@@ -1362,12 +1368,16 @@ Node ${formatSyntaxKind(node.kind)} was unexpected.`,
|
|
|
1362
1368
|
return `${typeHeader}${this.symbol ? ` '${symbolName(this.symbol)}'` : ""}${remainingObjectFlags ? ` (${formatObjectFlags(remainingObjectFlags)})` : ""}`;
|
|
1363
1369
|
}
|
|
1364
1370
|
},
|
|
1365
|
-
__debugFlags: {
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
+
__debugFlags: {
|
|
1372
|
+
get() {
|
|
1373
|
+
return formatTypeFlags(this.flags);
|
|
1374
|
+
}
|
|
1375
|
+
},
|
|
1376
|
+
__debugObjectFlags: {
|
|
1377
|
+
get() {
|
|
1378
|
+
return this.flags & 524288 /* Object */ ? formatObjectFlags(this.objectFlags) : "";
|
|
1379
|
+
}
|
|
1380
|
+
},
|
|
1371
1381
|
__debugTypeToString: {
|
|
1372
1382
|
value() {
|
|
1373
1383
|
let text = weakTypeTextMap.get(this);
|
|
@@ -1380,13 +1390,17 @@ Node ${formatSyntaxKind(node.kind)} was unexpected.`,
|
|
|
1380
1390
|
}
|
|
1381
1391
|
});
|
|
1382
1392
|
Object.defineProperties(objectAllocator.getSignatureConstructor().prototype, {
|
|
1383
|
-
__debugFlags: {
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1393
|
+
__debugFlags: {
|
|
1394
|
+
get() {
|
|
1395
|
+
return formatSignatureFlags(this.flags);
|
|
1396
|
+
}
|
|
1397
|
+
},
|
|
1398
|
+
__debugSignatureToString: {
|
|
1399
|
+
value() {
|
|
1400
|
+
var _a;
|
|
1401
|
+
return (_a = this.checker) == null ? void 0 : _a.signatureToString(this);
|
|
1402
|
+
}
|
|
1403
|
+
}
|
|
1390
1404
|
});
|
|
1391
1405
|
const nodeConstructors = [
|
|
1392
1406
|
objectAllocator.getNodeConstructor(),
|
|
@@ -1404,24 +1418,36 @@ Node ${formatSyntaxKind(node.kind)} was unexpected.`,
|
|
|
1404
1418
|
return `${nodeHeader}${this.flags ? ` (${formatNodeFlags(this.flags)})` : ""}`;
|
|
1405
1419
|
}
|
|
1406
1420
|
},
|
|
1407
|
-
__debugKind: {
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
}
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1421
|
+
__debugKind: {
|
|
1422
|
+
get() {
|
|
1423
|
+
return formatSyntaxKind(this.kind);
|
|
1424
|
+
}
|
|
1425
|
+
},
|
|
1426
|
+
__debugNodeFlags: {
|
|
1427
|
+
get() {
|
|
1428
|
+
return formatNodeFlags(this.flags);
|
|
1429
|
+
}
|
|
1430
|
+
},
|
|
1431
|
+
__debugModifierFlags: {
|
|
1432
|
+
get() {
|
|
1433
|
+
return formatModifierFlags(getEffectiveModifierFlagsNoCache(this));
|
|
1434
|
+
}
|
|
1435
|
+
},
|
|
1436
|
+
__debugTransformFlags: {
|
|
1437
|
+
get() {
|
|
1438
|
+
return formatTransformFlags(this.transformFlags);
|
|
1439
|
+
}
|
|
1440
|
+
},
|
|
1441
|
+
__debugIsParseTreeNode: {
|
|
1442
|
+
get() {
|
|
1443
|
+
return isParseTreeNode(this);
|
|
1444
|
+
}
|
|
1445
|
+
},
|
|
1446
|
+
__debugEmitFlags: {
|
|
1447
|
+
get() {
|
|
1448
|
+
return formatEmitFlags(getEmitFlags(this));
|
|
1449
|
+
}
|
|
1450
|
+
},
|
|
1425
1451
|
__debugGetText: {
|
|
1426
1452
|
value(includeTrivia) {
|
|
1427
1453
|
if (nodeIsSynthesized(this))
|
|
@@ -2061,15 +2087,21 @@ function parseComparator(operator, text, comparators) {
|
|
|
2061
2087
|
switch (operator) {
|
|
2062
2088
|
case "~":
|
|
2063
2089
|
comparators.push(createComparator(">=", version2));
|
|
2064
|
-
comparators.push(createComparator(
|
|
2065
|
-
|
|
2066
|
-
|
|
2090
|
+
comparators.push(createComparator(
|
|
2091
|
+
"<",
|
|
2092
|
+
version2.increment(
|
|
2093
|
+
isWildcard(minor) ? "major" : "minor"
|
|
2094
|
+
)
|
|
2095
|
+
));
|
|
2067
2096
|
break;
|
|
2068
2097
|
case "^":
|
|
2069
2098
|
comparators.push(createComparator(">=", version2));
|
|
2070
|
-
comparators.push(createComparator(
|
|
2071
|
-
|
|
2072
|
-
|
|
2099
|
+
comparators.push(createComparator(
|
|
2100
|
+
"<",
|
|
2101
|
+
version2.increment(
|
|
2102
|
+
version2.major > 0 || isWildcard(minor) ? "major" : version2.minor > 0 || isWildcard(patch) ? "minor" : "patch"
|
|
2103
|
+
)
|
|
2104
|
+
));
|
|
2073
2105
|
break;
|
|
2074
2106
|
case "<":
|
|
2075
2107
|
case ">=":
|
|
@@ -2265,11 +2297,7 @@ var tracingEnabled;
|
|
|
2265
2297
|
const meta = { cat: "__metadata", ph: "M", ts: 1e3 * timestamp(), pid: 1, tid: 1 };
|
|
2266
2298
|
fs2.writeSync(
|
|
2267
2299
|
traceFd,
|
|
2268
|
-
"[\n" + [
|
|
2269
|
-
{ name: "process_name", args: { name: "tsc" }, ...meta },
|
|
2270
|
-
{ name: "thread_name", args: { name: "Main" }, ...meta },
|
|
2271
|
-
{ name: "TracingStartedInBrowser", ...meta, cat: "disabled-by-default-devtools.timeline" }
|
|
2272
|
-
].map((v) => JSON.stringify(v)).join(",\n")
|
|
2300
|
+
"[\n" + [{ name: "process_name", args: { name: "tsc" }, ...meta }, { name: "thread_name", args: { name: "Main" }, ...meta }, { name: "TracingStartedInBrowser", ...meta, cat: "disabled-by-default-devtools.timeline" }].map((v) => JSON.stringify(v)).join(",\n")
|
|
2273
2301
|
);
|
|
2274
2302
|
}
|
|
2275
2303
|
tracingEnabled2.startTracing = startTracing2;
|
|
@@ -4707,7 +4735,9 @@ var sys = (() => {
|
|
|
4707
4735
|
})();
|
|
4708
4736
|
if (sys && sys.getEnvironmentVariable) {
|
|
4709
4737
|
setCustomPollingValues(sys);
|
|
4710
|
-
Debug.setAssertionLevel(
|
|
4738
|
+
Debug.setAssertionLevel(
|
|
4739
|
+
/^development$/i.test(sys.getEnvironmentVariable("NODE_ENV")) ? 1 /* Normal */ : 0 /* None */
|
|
4740
|
+
);
|
|
4711
4741
|
}
|
|
4712
4742
|
if (sys && sys.debugMode) {
|
|
4713
4743
|
Debug.isDebugging = true;
|
|
@@ -6024,9 +6054,9 @@ var Diagnostics = {
|
|
|
6024
6054
|
Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext: diag(2821, 1 /* Error */, "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821", "Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'."),
|
|
6025
6055
|
Import_assertions_cannot_be_used_with_type_only_imports_or_exports: diag(2822, 1 /* Error */, "Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822", "Import assertions cannot be used with type-only imports or exports."),
|
|
6026
6056
|
Cannot_find_namespace_0_Did_you_mean_1: diag(2833, 1 /* Error */, "Cannot_find_namespace_0_Did_you_mean_1_2833", "Cannot find namespace '{0}'. Did you mean '{1}'?"),
|
|
6027
|
-
|
|
6028
|
-
|
|
6029
|
-
|
|
6057
|
+
Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path: diag(2834, 1 /* Error */, "Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834", "Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),
|
|
6058
|
+
Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0: diag(2835, 1 /* Error */, "Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835", "Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),
|
|
6059
|
+
Import_assertions_are_not_allowed_on_statements_that_transpile_to_CommonJS_require_calls: diag(2836, 1 /* Error */, "Import_assertions_are_not_allowed_on_statements_that_transpile_to_CommonJS_require_calls_2836", "Import assertions are not allowed on statements that transpile to CommonJS 'require' calls."),
|
|
6030
6060
|
Import_assertion_values_must_be_string_literal_expressions: diag(2837, 1 /* Error */, "Import_assertion_values_must_be_string_literal_expressions_2837", "Import assertion values must be string literal expressions."),
|
|
6031
6061
|
All_declarations_of_0_must_have_identical_constraints: diag(2838, 1 /* Error */, "All_declarations_of_0_must_have_identical_constraints_2838", "All declarations of '{0}' must have identical constraints."),
|
|
6032
6062
|
This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value: diag(2839, 1 /* Error */, "This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839", "This condition will always return '{0}' since JavaScript compares objects by reference, not value."),
|
|
@@ -11024,21 +11054,17 @@ function closeFileWatcher(watcher) {
|
|
|
11024
11054
|
}
|
|
11025
11055
|
function getLastChild(node) {
|
|
11026
11056
|
let lastChild;
|
|
11027
|
-
forEachChild(
|
|
11028
|
-
|
|
11029
|
-
|
|
11030
|
-
|
|
11031
|
-
|
|
11032
|
-
|
|
11033
|
-
|
|
11034
|
-
|
|
11035
|
-
if (nodeIsPresent(children[i])) {
|
|
11036
|
-
lastChild = children[i];
|
|
11037
|
-
break;
|
|
11038
|
-
}
|
|
11057
|
+
forEachChild(node, (child) => {
|
|
11058
|
+
if (nodeIsPresent(child))
|
|
11059
|
+
lastChild = child;
|
|
11060
|
+
}, (children) => {
|
|
11061
|
+
for (let i = children.length - 1; i >= 0; i--) {
|
|
11062
|
+
if (nodeIsPresent(children[i])) {
|
|
11063
|
+
lastChild = children[i];
|
|
11064
|
+
break;
|
|
11039
11065
|
}
|
|
11040
11066
|
}
|
|
11041
|
-
);
|
|
11067
|
+
});
|
|
11042
11068
|
return lastChild;
|
|
11043
11069
|
}
|
|
11044
11070
|
function isTypeNodeKind(kind) {
|
|
@@ -18353,9 +18379,9 @@ var Parser;
|
|
|
18353
18379
|
/*allowReservedWords*/
|
|
18354
18380
|
true
|
|
18355
18381
|
);
|
|
18356
|
-
const
|
|
18382
|
+
const isValid = token() === 1 /* EndOfFileToken */ && !parseDiagnostics.length;
|
|
18357
18383
|
clearState();
|
|
18358
|
-
return
|
|
18384
|
+
return isValid ? entityName : void 0;
|
|
18359
18385
|
}
|
|
18360
18386
|
Parser2.parseIsolatedEntityName = parseIsolatedEntityName2;
|
|
18361
18387
|
function parseJsonText2(fileName2, sourceText2, languageVersion2 = 2 /* ES2015 */, syntaxCursor2, setParentNodes = false) {
|
|
@@ -24979,16 +25005,7 @@ var IncrementalParser;
|
|
|
24979
25005
|
Debug.assert(textSpanEnd(changeRange.span) === textSpanEnd(textChangeRange.span));
|
|
24980
25006
|
Debug.assert(textSpanEnd(textChangeRangeNewSpan(changeRange)) === textSpanEnd(textChangeRangeNewSpan(textChangeRange)));
|
|
24981
25007
|
const delta = textChangeRangeNewSpan(changeRange).length - changeRange.span.length;
|
|
24982
|
-
updateTokenPositionsAndMarkElements(
|
|
24983
|
-
incrementalSourceFile,
|
|
24984
|
-
changeRange.span.start,
|
|
24985
|
-
textSpanEnd(changeRange.span),
|
|
24986
|
-
textSpanEnd(textChangeRangeNewSpan(changeRange)),
|
|
24987
|
-
delta,
|
|
24988
|
-
oldText,
|
|
24989
|
-
newText,
|
|
24990
|
-
aggressiveChecks
|
|
24991
|
-
);
|
|
25008
|
+
updateTokenPositionsAndMarkElements(incrementalSourceFile, changeRange.span.start, textSpanEnd(changeRange.span), textSpanEnd(textChangeRangeNewSpan(changeRange)), delta, oldText, newText, aggressiveChecks);
|
|
24992
25009
|
const result = Parser.parseSourceFile(
|
|
24993
25010
|
sourceFile.fileName,
|
|
24994
25011
|
newText,
|
|
@@ -28509,13 +28526,15 @@ function getLoadModuleFromTargetImportOrExport(extensions, state, cache, redirec
|
|
|
28509
28526
|
false,
|
|
28510
28527
|
redirectedReference
|
|
28511
28528
|
);
|
|
28512
|
-
return toSearchResult(
|
|
28513
|
-
|
|
28514
|
-
|
|
28515
|
-
|
|
28516
|
-
|
|
28517
|
-
|
|
28518
|
-
|
|
28529
|
+
return toSearchResult(
|
|
28530
|
+
result.resolvedModule ? {
|
|
28531
|
+
path: result.resolvedModule.resolvedFileName,
|
|
28532
|
+
extension: result.resolvedModule.extension,
|
|
28533
|
+
packageId: result.resolvedModule.packageId,
|
|
28534
|
+
originalPath: result.resolvedModule.originalPath,
|
|
28535
|
+
resolvedUsingTsExtension: result.resolvedModule.resolvedUsingTsExtension
|
|
28536
|
+
} : void 0
|
|
28537
|
+
);
|
|
28519
28538
|
}
|
|
28520
28539
|
if (state.traceEnabled) {
|
|
28521
28540
|
trace(state.host, Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1, scope.packageDirectory, moduleName);
|
|
@@ -28548,13 +28567,7 @@ function getLoadModuleFromTargetImportOrExport(extensions, state, cache, redirec
|
|
|
28548
28567
|
);
|
|
28549
28568
|
}
|
|
28550
28569
|
if (state.traceEnabled) {
|
|
28551
|
-
trace(
|
|
28552
|
-
state.host,
|
|
28553
|
-
Diagnostics.Using_0_subpath_1_with_target_2,
|
|
28554
|
-
isImports ? "imports" : "exports",
|
|
28555
|
-
key,
|
|
28556
|
-
pattern ? target.replace(/\*/g, subpath) : target + subpath
|
|
28557
|
-
);
|
|
28570
|
+
trace(state.host, Diagnostics.Using_0_subpath_1_with_target_2, isImports ? "imports" : "exports", key, pattern ? target.replace(/\*/g, subpath) : target + subpath);
|
|
28558
28571
|
}
|
|
28559
28572
|
const finalPath = toAbsolutePath(pattern ? resolvedTarget.replace(/\*/g, subpath) : resolvedTarget + subpath);
|
|
28560
28573
|
const inputLink = tryLoadInputFileForPath(finalPath, subpath, combinePaths(scope.packageDirectory, "package.json"), isImports);
|
|
@@ -31093,13 +31106,16 @@ var BuilderState;
|
|
|
31093
31106
|
sourceFile,
|
|
31094
31107
|
(fileName, text, _writeByteOrderMark, _onError, sourceFiles, data) => {
|
|
31095
31108
|
Debug.assert(isDeclarationFileName(fileName), `File extension for signature expected to be dts: Got:: ${fileName}`);
|
|
31096
|
-
onNewSignature(
|
|
31097
|
-
|
|
31098
|
-
|
|
31099
|
-
|
|
31100
|
-
|
|
31101
|
-
|
|
31102
|
-
|
|
31109
|
+
onNewSignature(
|
|
31110
|
+
computeSignatureWithDiagnostics(
|
|
31111
|
+
programOfThisState,
|
|
31112
|
+
sourceFile,
|
|
31113
|
+
text,
|
|
31114
|
+
host,
|
|
31115
|
+
data
|
|
31116
|
+
),
|
|
31117
|
+
sourceFiles
|
|
31118
|
+
);
|
|
31103
31119
|
},
|
|
31104
31120
|
cancellationToken,
|
|
31105
31121
|
/*emitOnly*/
|
|
@@ -31282,9 +31298,7 @@ function computeSignatureWithDiagnostics(program, sourceFile, text, host, data)
|
|
|
31282
31298
|
text = getTextHandlingSourceMapForSignature(text, data);
|
|
31283
31299
|
let sourceFileDirectory;
|
|
31284
31300
|
if ((_a = data == null ? void 0 : data.diagnostics) == null ? void 0 : _a.length) {
|
|
31285
|
-
text += data.diagnostics.map(
|
|
31286
|
-
(diagnostic) => `${locationInfo(diagnostic)}${DiagnosticCategory[diagnostic.category]}${diagnostic.code}: ${flattenDiagnosticMessageText2(diagnostic.messageText)}`
|
|
31287
|
-
).join("\n");
|
|
31301
|
+
text += data.diagnostics.map((diagnostic) => `${locationInfo(diagnostic)}${DiagnosticCategory[diagnostic.category]}${diagnostic.code}: ${flattenDiagnosticMessageText2(diagnostic.messageText)}`).join("\n");
|
|
31288
31302
|
}
|
|
31289
31303
|
return (host.createHash ?? generateDjb2Hash)(text);
|
|
31290
31304
|
function flattenDiagnosticMessageText2(diagnostic) {
|
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": "5.3.0-dev.
|
|
5
|
+
"version": "5.3.0-dev.20230818",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -61,6 +61,7 @@
|
|
|
61
61
|
"chokidar": "^3.5.3",
|
|
62
62
|
"del": "^6.1.1",
|
|
63
63
|
"diff": "^5.1.0",
|
|
64
|
+
"dprint": "^0.40.2",
|
|
64
65
|
"esbuild": "^0.19.0",
|
|
65
66
|
"eslint": "^8.22.0",
|
|
66
67
|
"eslint-formatter-autolinkable-stylish": "^1.2.0",
|
|
@@ -96,6 +97,7 @@
|
|
|
96
97
|
"clean": "hereby clean",
|
|
97
98
|
"gulp": "hereby",
|
|
98
99
|
"lint": "hereby lint",
|
|
100
|
+
"format": "dprint fmt",
|
|
99
101
|
"setup-hooks": "node scripts/link-hooks.mjs"
|
|
100
102
|
},
|
|
101
103
|
"browser": {
|
|
@@ -113,5 +115,5 @@
|
|
|
113
115
|
"node": "20.1.0",
|
|
114
116
|
"npm": "8.19.4"
|
|
115
117
|
},
|
|
116
|
-
"gitHead": "
|
|
118
|
+
"gitHead": "a0e0104656415b6c6d18c6ba1100ae42157a4f09"
|
|
117
119
|
}
|