@typescript-deploys/pr-build 5.3.0-pr-55273-3 → 5.3.0-pr-54960-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.
Files changed (43) hide show
  1. package/lib/lib.decorators.d.ts +3 -6
  2. package/lib/lib.es2015.collection.d.ts +1 -2
  3. package/lib/lib.es2015.core.d.ts +1 -1
  4. package/lib/lib.es2015.iterable.d.ts +4 -5
  5. package/lib/lib.es2015.promise.d.ts +1 -1
  6. package/lib/lib.es2015.symbol.d.ts +1 -1
  7. package/lib/lib.es2016.array.include.d.ts +1 -1
  8. package/lib/lib.es2016.d.ts +1 -1
  9. package/lib/lib.es2016.full.d.ts +1 -1
  10. package/lib/lib.es2017.full.d.ts +1 -1
  11. package/lib/lib.es2017.intl.d.ts +11 -12
  12. package/lib/lib.es2017.object.d.ts +3 -3
  13. package/lib/lib.es2018.asynciterable.d.ts +1 -1
  14. package/lib/lib.es2018.full.d.ts +1 -1
  15. package/lib/lib.es2018.intl.d.ts +1 -2
  16. package/lib/lib.es2018.promise.d.ts +1 -1
  17. package/lib/lib.es2018.regexp.d.ts +5 -5
  18. package/lib/lib.es2019.array.d.ts +14 -18
  19. package/lib/lib.es2019.intl.d.ts +1 -1
  20. package/lib/lib.es2019.object.d.ts +1 -1
  21. package/lib/lib.es2020.bigint.d.ts +7 -7
  22. package/lib/lib.es2020.date.d.ts +1 -1
  23. package/lib/lib.es2020.intl.d.ts +11 -13
  24. package/lib/lib.es2020.promise.d.ts +1 -1
  25. package/lib/lib.es2021.intl.d.ts +5 -6
  26. package/lib/lib.es2021.promise.d.ts +3 -3
  27. package/lib/lib.es2021.weakref.d.ts +2 -2
  28. package/lib/lib.es2022.error.d.ts +2 -2
  29. package/lib/lib.es2022.intl.d.ts +1 -2
  30. package/lib/lib.es2022.sharedmemory.d.ts +2 -2
  31. package/lib/lib.es2023.array.d.ts +61 -61
  32. package/lib/lib.es5.d.ts +74 -88
  33. package/lib/lib.esnext.disposable.d.ts +10 -10
  34. package/lib/lib.esnext.full.d.ts +1 -1
  35. package/lib/lib.esnext.intl.d.ts +7 -7
  36. package/lib/lib.scripthost.d.ts +1 -4
  37. package/lib/lib.webworker.importscripts.d.ts +0 -1
  38. package/lib/tsc.js +1379 -1460
  39. package/lib/tsserver.js +1927 -2080
  40. package/lib/typescript.d.ts +339 -117
  41. package/lib/typescript.js +1925 -2080
  42. package/lib/typingsInstaller.js +143 -130
  43. package/package.json +4 -2
@@ -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.20230811`;
57
+ var version = `${versionMajorMinor}.0-insiders.20230817`;
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: { get() {
1284
- return formatEnum(
1285
- this.flags,
1286
- FlowFlags,
1287
- /*isFlags*/
1288
- true
1289
- );
1290
- } },
1291
- __debugToString: { value() {
1292
- return formatControlFlowGraph(this);
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: { get() {
1353
- return formatSymbolFlags(this.flags);
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: { get() {
1366
- return formatTypeFlags(this.flags);
1367
- } },
1368
- __debugObjectFlags: { get() {
1369
- return this.flags & 524288 /* Object */ ? formatObjectFlags(this.objectFlags) : "";
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: { get() {
1384
- return formatSignatureFlags(this.flags);
1385
- } },
1386
- __debugSignatureToString: { value() {
1387
- var _a;
1388
- return (_a = this.checker) == null ? void 0 : _a.signatureToString(this);
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: { get() {
1408
- return formatSyntaxKind(this.kind);
1409
- } },
1410
- __debugNodeFlags: { get() {
1411
- return formatNodeFlags(this.flags);
1412
- } },
1413
- __debugModifierFlags: { get() {
1414
- return formatModifierFlags(getEffectiveModifierFlagsNoCache(this));
1415
- } },
1416
- __debugTransformFlags: { get() {
1417
- return formatTransformFlags(this.transformFlags);
1418
- } },
1419
- __debugIsParseTreeNode: { get() {
1420
- return isParseTreeNode(this);
1421
- } },
1422
- __debugEmitFlags: { get() {
1423
- return formatEmitFlags(getEmitFlags(this));
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("<", version2.increment(
2065
- isWildcard(minor) ? "major" : "minor"
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("<", version2.increment(
2071
- version2.major > 0 || isWildcard(minor) ? "major" : version2.minor > 0 || isWildcard(patch) ? "minor" : "patch"
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(/^development$/i.test(sys.getEnvironmentVariable("NODE_ENV")) ? 1 /* Normal */ : 0 /* None */);
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
- 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."),
6028
- 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}'?"),
6029
- 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."),
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."),
@@ -10169,13 +10199,11 @@ function createDiagnosticForNodeInSourceFile(sourceFile, node, message, ...args)
10169
10199
  const span = getErrorSpanForNode(sourceFile, node);
10170
10200
  return createFileDiagnostic(sourceFile, span.start, span.length, message, ...args);
10171
10201
  }
10172
- function assertDiagnosticLocation(file, start, length2) {
10202
+ function assertDiagnosticLocation(sourceText, start, length2) {
10173
10203
  Debug.assertGreaterThanOrEqual(start, 0);
10174
10204
  Debug.assertGreaterThanOrEqual(length2, 0);
10175
- if (file) {
10176
- Debug.assertLessThanOrEqual(start, file.text.length);
10177
- Debug.assertLessThanOrEqual(start + length2, file.text.length);
10178
- }
10205
+ Debug.assertLessThanOrEqual(start, sourceText.length);
10206
+ Debug.assertLessThanOrEqual(start + length2, sourceText.length);
10179
10207
  }
10180
10208
  function getSpanOfTokenAtPosition(sourceFile, pos) {
10181
10209
  const scanner = createScanner(
@@ -10817,8 +10845,11 @@ function getBinaryOperatorPrecedence(kind) {
10817
10845
  }
10818
10846
  return -1;
10819
10847
  }
10848
+ function containsInvalidEscapeFlag(node) {
10849
+ return !!((node.templateFlags || 0) & 2048 /* ContainsInvalidEscape */);
10850
+ }
10820
10851
  function hasInvalidEscape(template) {
10821
- return template && !!(isNoSubstitutionTemplateLiteral(template) ? template.templateFlags : template.head.templateFlags || some(template.templateSpans, (span) => !!span.literal.templateFlags));
10852
+ return template && !!(isNoSubstitutionTemplateLiteral(template) ? containsInvalidEscapeFlag(template) : containsInvalidEscapeFlag(template.head) || some(template.templateSpans, (span) => containsInvalidEscapeFlag(span.literal)));
10822
10853
  }
10823
10854
  var escapedCharsMap = new Map(Object.entries({
10824
10855
  " ": "\\t",
@@ -11023,21 +11054,17 @@ function closeFileWatcher(watcher) {
11023
11054
  }
11024
11055
  function getLastChild(node) {
11025
11056
  let lastChild;
11026
- forEachChild(
11027
- node,
11028
- (child) => {
11029
- if (nodeIsPresent(child))
11030
- lastChild = child;
11031
- },
11032
- (children) => {
11033
- for (let i = children.length - 1; i >= 0; i--) {
11034
- if (nodeIsPresent(children[i])) {
11035
- lastChild = children[i];
11036
- break;
11037
- }
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;
11038
11065
  }
11039
11066
  }
11040
- );
11067
+ });
11041
11068
  return lastChild;
11042
11069
  }
11043
11070
  function isTypeNodeKind(kind) {
@@ -11161,13 +11188,11 @@ var localizedDiagnosticMessages;
11161
11188
  function getLocaleSpecificMessage(message) {
11162
11189
  return localizedDiagnosticMessages && localizedDiagnosticMessages[message.key] || message.message;
11163
11190
  }
11164
- function createDetachedDiagnostic(fileName, start, length2, message, ...args) {
11165
- assertDiagnosticLocation(
11166
- /*file*/
11167
- void 0,
11168
- start,
11169
- length2
11170
- );
11191
+ function createDetachedDiagnostic(fileName, sourceText, start, length2, message, ...args) {
11192
+ if (start + length2 > sourceText.length) {
11193
+ length2 = sourceText.length - start;
11194
+ }
11195
+ assertDiagnosticLocation(sourceText, start, length2);
11171
11196
  let text = getLocaleSpecificMessage(message);
11172
11197
  if (some(args)) {
11173
11198
  text = formatStringFromArgs(text, args);
@@ -11223,7 +11248,7 @@ function attachFileToDiagnostics(diagnostics, file) {
11223
11248
  return diagnosticsWithLocation;
11224
11249
  }
11225
11250
  function createFileDiagnostic(file, start, length2, message, ...args) {
11226
- assertDiagnosticLocation(file, start, length2);
11251
+ assertDiagnosticLocation(file.text, start, length2);
11227
11252
  let text = getLocaleSpecificMessage(message);
11228
11253
  if (some(args)) {
11229
11254
  text = formatStringFromArgs(text, args);
@@ -18354,9 +18379,9 @@ var Parser;
18354
18379
  /*allowReservedWords*/
18355
18380
  true
18356
18381
  );
18357
- const isInvalid = token() === 1 /* EndOfFileToken */ && !parseDiagnostics.length;
18382
+ const isValid = token() === 1 /* EndOfFileToken */ && !parseDiagnostics.length;
18358
18383
  clearState();
18359
- return isInvalid ? entityName : void 0;
18384
+ return isValid ? entityName : void 0;
18360
18385
  }
18361
18386
  Parser2.parseIsolatedEntityName = parseIsolatedEntityName2;
18362
18387
  function parseJsonText2(fileName2, sourceText2, languageVersion2 = 2 /* ES2015 */, syntaxCursor2, setParentNodes = false) {
@@ -18522,7 +18547,7 @@ var Parser;
18522
18547
  }
18523
18548
  return sourceFile;
18524
18549
  function reportPragmaDiagnostic(pos, end, diagnostic) {
18525
- parseDiagnostics.push(createDetachedDiagnostic(fileName, pos, end, diagnostic));
18550
+ parseDiagnostics.push(createDetachedDiagnostic(fileName, sourceText, pos, end, diagnostic));
18526
18551
  }
18527
18552
  }
18528
18553
  let hasDeprecatedTag = false;
@@ -18762,7 +18787,7 @@ var Parser;
18762
18787
  const lastError = lastOrUndefined(parseDiagnostics);
18763
18788
  let result;
18764
18789
  if (!lastError || start !== lastError.start) {
18765
- result = createDetachedDiagnostic(fileName, start, length2, message, ...args);
18790
+ result = createDetachedDiagnostic(fileName, sourceText, start, length2, message, ...args);
18766
18791
  parseDiagnostics.push(result);
18767
18792
  }
18768
18793
  parseErrorBeforeNextFinishedNode = true;
@@ -18990,7 +19015,7 @@ var Parser;
18990
19015
  if (lastError) {
18991
19016
  addRelatedInfo(
18992
19017
  lastError,
18993
- createDetachedDiagnostic(fileName, openPosition, 1, Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here, tokenToString(openKind), tokenToString(closeKind))
19018
+ createDetachedDiagnostic(fileName, sourceText, openPosition, 1, Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here, tokenToString(openKind), tokenToString(closeKind))
18994
19019
  );
18995
19020
  }
18996
19021
  }
@@ -20589,7 +20614,7 @@ var Parser;
20589
20614
  if (lastError && lastError.code === Diagnostics._0_expected.code) {
20590
20615
  addRelatedInfo(
20591
20616
  lastError,
20592
- createDetachedDiagnostic(fileName, openBracePosition, 1, Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here, "{", "}")
20617
+ createDetachedDiagnostic(fileName, sourceText, openBracePosition, 1, Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here, "{", "}")
20593
20618
  );
20594
20619
  }
20595
20620
  }
@@ -23706,7 +23731,7 @@ var Parser;
23706
23731
  if (lastError && lastError.code === Diagnostics._0_expected.code) {
23707
23732
  addRelatedInfo(
23708
23733
  lastError,
23709
- createDetachedDiagnostic(fileName, openBracePosition, 1, Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here, "{", "}")
23734
+ createDetachedDiagnostic(fileName, sourceText, openBracePosition, 1, Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here, "{", "}")
23710
23735
  );
23711
23736
  }
23712
23737
  }
@@ -24685,7 +24710,7 @@ var Parser;
24685
24710
  if (childTypeTag) {
24686
24711
  const lastError = parseErrorAtCurrentToken(Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);
24687
24712
  if (lastError) {
24688
- addRelatedInfo(lastError, createDetachedDiagnostic(fileName, 0, 0, Diagnostics.The_tag_was_first_specified_here));
24713
+ addRelatedInfo(lastError, createDetachedDiagnostic(fileName, sourceText, 0, 0, Diagnostics.The_tag_was_first_specified_here));
24689
24714
  }
24690
24715
  break;
24691
24716
  } else {
@@ -24980,16 +25005,7 @@ var IncrementalParser;
24980
25005
  Debug.assert(textSpanEnd(changeRange.span) === textSpanEnd(textChangeRange.span));
24981
25006
  Debug.assert(textSpanEnd(textChangeRangeNewSpan(changeRange)) === textSpanEnd(textChangeRangeNewSpan(textChangeRange)));
24982
25007
  const delta = textChangeRangeNewSpan(changeRange).length - changeRange.span.length;
24983
- updateTokenPositionsAndMarkElements(
24984
- incrementalSourceFile,
24985
- changeRange.span.start,
24986
- textSpanEnd(changeRange.span),
24987
- textSpanEnd(textChangeRangeNewSpan(changeRange)),
24988
- delta,
24989
- oldText,
24990
- newText,
24991
- aggressiveChecks
24992
- );
25008
+ updateTokenPositionsAndMarkElements(incrementalSourceFile, changeRange.span.start, textSpanEnd(changeRange.span), textSpanEnd(textChangeRangeNewSpan(changeRange)), delta, oldText, newText, aggressiveChecks);
24993
25009
  const result = Parser.parseSourceFile(
24994
25010
  sourceFile.fileName,
24995
25011
  newText,
@@ -28510,13 +28526,15 @@ function getLoadModuleFromTargetImportOrExport(extensions, state, cache, redirec
28510
28526
  false,
28511
28527
  redirectedReference
28512
28528
  );
28513
- return toSearchResult(result.resolvedModule ? {
28514
- path: result.resolvedModule.resolvedFileName,
28515
- extension: result.resolvedModule.extension,
28516
- packageId: result.resolvedModule.packageId,
28517
- originalPath: result.resolvedModule.originalPath,
28518
- resolvedUsingTsExtension: result.resolvedModule.resolvedUsingTsExtension
28519
- } : void 0);
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
+ );
28520
28538
  }
28521
28539
  if (state.traceEnabled) {
28522
28540
  trace(state.host, Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1, scope.packageDirectory, moduleName);
@@ -28549,13 +28567,7 @@ function getLoadModuleFromTargetImportOrExport(extensions, state, cache, redirec
28549
28567
  );
28550
28568
  }
28551
28569
  if (state.traceEnabled) {
28552
- trace(
28553
- state.host,
28554
- Diagnostics.Using_0_subpath_1_with_target_2,
28555
- isImports ? "imports" : "exports",
28556
- key,
28557
- pattern ? target.replace(/\*/g, subpath) : target + subpath
28558
- );
28570
+ trace(state.host, Diagnostics.Using_0_subpath_1_with_target_2, isImports ? "imports" : "exports", key, pattern ? target.replace(/\*/g, subpath) : target + subpath);
28559
28571
  }
28560
28572
  const finalPath = toAbsolutePath(pattern ? resolvedTarget.replace(/\*/g, subpath) : resolvedTarget + subpath);
28561
28573
  const inputLink = tryLoadInputFileForPath(finalPath, subpath, combinePaths(scope.packageDirectory, "package.json"), isImports);
@@ -31094,13 +31106,16 @@ var BuilderState;
31094
31106
  sourceFile,
31095
31107
  (fileName, text, _writeByteOrderMark, _onError, sourceFiles, data) => {
31096
31108
  Debug.assert(isDeclarationFileName(fileName), `File extension for signature expected to be dts: Got:: ${fileName}`);
31097
- onNewSignature(computeSignatureWithDiagnostics(
31098
- programOfThisState,
31099
- sourceFile,
31100
- text,
31101
- host,
31102
- data
31103
- ), sourceFiles);
31109
+ onNewSignature(
31110
+ computeSignatureWithDiagnostics(
31111
+ programOfThisState,
31112
+ sourceFile,
31113
+ text,
31114
+ host,
31115
+ data
31116
+ ),
31117
+ sourceFiles
31118
+ );
31104
31119
  },
31105
31120
  cancellationToken,
31106
31121
  /*emitOnly*/
@@ -31283,9 +31298,7 @@ function computeSignatureWithDiagnostics(program, sourceFile, text, host, data)
31283
31298
  text = getTextHandlingSourceMapForSignature(text, data);
31284
31299
  let sourceFileDirectory;
31285
31300
  if ((_a = data == null ? void 0 : data.diagnostics) == null ? void 0 : _a.length) {
31286
- text += data.diagnostics.map(
31287
- (diagnostic) => `${locationInfo(diagnostic)}${DiagnosticCategory[diagnostic.category]}${diagnostic.code}: ${flattenDiagnosticMessageText2(diagnostic.messageText)}`
31288
- ).join("\n");
31301
+ text += data.diagnostics.map((diagnostic) => `${locationInfo(diagnostic)}${DiagnosticCategory[diagnostic.category]}${diagnostic.code}: ${flattenDiagnosticMessageText2(diagnostic.messageText)}`).join("\n");
31289
31302
  }
31290
31303
  return (host.createHash ?? generateDjb2Hash)(text);
31291
31304
  function flattenDiagnosticMessageText2(diagnostic) {
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-55273-3",
5
+ "version": "5.3.0-pr-54960-7",
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
  "prepare": ""
101
103
  },
@@ -114,5 +116,5 @@
114
116
  "node": "20.1.0",
115
117
  "npm": "8.19.4"
116
118
  },
117
- "gitHead": "a0b5283eef46b87eee5b6f1849411d3f01f146c6"
119
+ "gitHead": "ae95122fa7f9f848e529b57e084c88077da69b97"
118
120
  }