typescript 5.5.4 → 5.6.2

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 (37) hide show
  1. package/lib/cs/diagnosticMessages.generated.json +292 -85
  2. package/lib/de/diagnosticMessages.generated.json +292 -85
  3. package/lib/es/diagnosticMessages.generated.json +290 -83
  4. package/lib/fr/diagnosticMessages.generated.json +292 -85
  5. package/lib/it/diagnosticMessages.generated.json +291 -84
  6. package/lib/ja/diagnosticMessages.generated.json +291 -84
  7. package/lib/ko/diagnosticMessages.generated.json +291 -84
  8. package/lib/lib.dom.asynciterable.d.ts +14 -6
  9. package/lib/lib.dom.d.ts +349 -858
  10. package/lib/lib.dom.iterable.d.ts +95 -79
  11. package/lib/lib.es2015.generator.d.ts +2 -2
  12. package/lib/lib.es2015.iterable.d.ts +100 -68
  13. package/lib/lib.es2017.object.d.ts +4 -4
  14. package/lib/lib.es2018.asyncgenerator.d.ts +2 -2
  15. package/lib/lib.es2018.asynciterable.d.ts +16 -6
  16. package/lib/lib.es2020.bigint.d.ts +8 -8
  17. package/lib/lib.es2020.string.d.ts +2 -2
  18. package/lib/lib.es2020.symbol.wellknown.d.ts +5 -1
  19. package/lib/lib.es2022.intl.d.ts +5 -1
  20. package/lib/lib.esnext.d.ts +1 -0
  21. package/lib/lib.esnext.disposable.d.ts +8 -0
  22. package/lib/lib.esnext.iterator.d.ts +148 -0
  23. package/lib/lib.webworker.asynciterable.d.ts +14 -6
  24. package/lib/lib.webworker.d.ts +79 -100
  25. package/lib/lib.webworker.iterable.d.ts +47 -35
  26. package/lib/pl/diagnosticMessages.generated.json +290 -83
  27. package/lib/pt-br/diagnosticMessages.generated.json +292 -85
  28. package/lib/ru/diagnosticMessages.generated.json +292 -85
  29. package/lib/tr/diagnosticMessages.generated.json +292 -85
  30. package/lib/tsc.js +2744 -1783
  31. package/lib/tsserver.js +33 -31
  32. package/lib/typescript.d.ts +244 -156
  33. package/lib/typescript.js +4460 -3392
  34. package/lib/typingsInstaller.js +3 -3
  35. package/lib/zh-cn/diagnosticMessages.generated.json +291 -84
  36. package/lib/zh-tw/diagnosticMessages.generated.json +290 -83
  37. package/package.json +36 -31
@@ -50,6 +50,7 @@ __export(nodeTypingsInstaller_exports, {
50
50
  NodeTypingsInstaller: () => NodeTypingsInstaller
51
51
  });
52
52
  module.exports = __toCommonJS(nodeTypingsInstaller_exports);
53
+ var import_child_process = require("child_process");
53
54
  var fs = __toESM(require("fs"));
54
55
  var path = __toESM(require("path"));
55
56
 
@@ -68,7 +69,7 @@ var FileLog = class {
68
69
  if (typeof this.logFile !== "string") return;
69
70
  try {
70
71
  fs.appendFileSync(this.logFile, `[${typescript_exports.server.nowString()}] ${text}${typescript_exports.sys.newLine}`);
71
- } catch (e) {
72
+ } catch {
72
73
  this.logFile = void 0;
73
74
  }
74
75
  };
@@ -127,7 +128,6 @@ var NodeTypingsInstaller = class extends typescript_exports.server.typingsInstal
127
128
  this.log.writeLine(`NPM location: ${this.npmPath} (explicit '${typescript_exports.server.Arguments.NpmLocation}' ${npmLocation2 === void 0 ? "not " : ""} provided)`);
128
129
  this.log.writeLine(`validateDefaultNpmLocation: ${validateDefaultNpmLocation2}`);
129
130
  }
130
- ({ execSync: this.nodeExecSync } = require("child_process"));
131
131
  this.ensurePackageDirectoryExists(globalTypingsCacheLocation2);
132
132
  try {
133
133
  if (this.log.isEnabled()) {
@@ -182,7 +182,7 @@ var NodeTypingsInstaller = class extends typescript_exports.server.typingsInstal
182
182
  this.log.writeLine(`Exec: ${command}`);
183
183
  }
184
184
  try {
185
- const stdout = this.nodeExecSync(command, { ...options, encoding: "utf-8" });
185
+ const stdout = (0, import_child_process.execFileSync)(command, { ...options, encoding: "utf-8" });
186
186
  if (this.log.isEnabled()) {
187
187
  this.log.writeLine(` Succeeded. stdout:${indent(typescript_exports.sys.newLine, stdout)}`);
188
188
  }