@typescript-deploys/pr-build 5.4.0-pr-56418-6 → 5.4.0-pr-56429-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 CHANGED
@@ -18,7 +18,7 @@ and limitations under the License.
18
18
 
19
19
  // src/compiler/corePublic.ts
20
20
  var versionMajorMinor = "5.4";
21
- var version = `${versionMajorMinor}.0-insiders.20231115`;
21
+ var version = `${versionMajorMinor}.0-insiders.20231116`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -48268,6 +48268,8 @@ function createTypeChecker(host) {
48268
48268
  context.symbolDepth.set(id, depth + 1);
48269
48269
  }
48270
48270
  context.visitedTypes.add(typeId);
48271
+ const prevTrackedSymbols = context.trackedSymbols;
48272
+ context.trackedSymbols = void 0;
48271
48273
  const startLength = context.approximateLength;
48272
48274
  const result = transform(type2);
48273
48275
  const addedLength = context.approximateLength - startLength;
@@ -48283,6 +48285,7 @@ function createTypeChecker(host) {
48283
48285
  if (id) {
48284
48286
  context.symbolDepth.set(id, depth);
48285
48287
  }
48288
+ context.trackedSymbols = prevTrackedSymbols;
48286
48289
  return result;
48287
48290
  function deepCloneOrReuseNode(node) {
48288
48291
  if (!nodeIsSynthesized(node) && getParseTreeNode(node) === node) {
@@ -52607,7 +52610,7 @@ function createTypeChecker(host) {
52607
52610
  } else if (getter && noImplicitAny) {
52608
52611
  error(getter, Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions, symbolToString(symbol));
52609
52612
  }
52610
- type = anyType;
52613
+ type = errorType;
52611
52614
  }
52612
52615
  links.type = type;
52613
52616
  }
@@ -52625,7 +52628,7 @@ function createTypeChecker(host) {
52625
52628
  if (getAnnotatedAccessorTypeNode(setter)) {
52626
52629
  error(setter, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol));
52627
52630
  }
52628
- writeType = anyType;
52631
+ writeType = errorType;
52629
52632
  }
52630
52633
  links.writeType = writeType || getTypeOfAccessors(symbol);
52631
52634
  }
@@ -52706,8 +52709,7 @@ function createTypeChecker(host) {
52706
52709
  const declaredType = firstDefined(exportSymbol == null ? void 0 : exportSymbol.declarations, (d) => isExportAssignment(d) ? tryGetTypeFromEffectiveTypeNode(d) : void 0);
52707
52710
  links.type = (exportSymbol == null ? void 0 : exportSymbol.declarations) && isDuplicatedCommonJSExport(exportSymbol.declarations) && symbol.declarations.length ? getFlowTypeFromCommonJSExport(exportSymbol) : isDuplicatedCommonJSExport(symbol.declarations) ? autoType : declaredType ? declaredType : getSymbolFlags(targetSymbol) & 111551 /* Value */ ? getTypeOfSymbol(targetSymbol) : errorType;
52708
52711
  if (!popTypeResolution()) {
52709
- reportCircularityError(exportSymbol ?? symbol);
52710
- return links.type = errorType;
52712
+ return links.type = reportCircularityError(exportSymbol ?? symbol);
52711
52713
  }
52712
52714
  }
52713
52715
  return links.type;
@@ -52736,7 +52738,7 @@ function createTypeChecker(host) {
52736
52738
  error(node, Diagnostics.Circular_definition_of_import_alias_0, symbolToString(symbol));
52737
52739
  }
52738
52740
  }
52739
- return anyType;
52741
+ return errorType;
52740
52742
  }
52741
52743
  function getTypeOfSymbolWithDeferredType(symbol) {
52742
52744
  const links = getSymbolLinks(symbol);
@@ -55497,7 +55499,7 @@ function createTypeChecker(host) {
55497
55499
  }
55498
55500
  }
55499
55501
  }
55500
- type = anyType;
55502
+ type = errorType;
55501
55503
  }
55502
55504
  signature.resolvedReturnType = type;
55503
55505
  }
@@ -75536,7 +75538,7 @@ function createTypeChecker(host) {
75536
75538
  const modifiers = getTypeParameterModifiers(typeParameter) & (8192 /* In */ | 16384 /* Out */);
75537
75539
  if (modifiers) {
75538
75540
  const symbol = getSymbolOfDeclaration(node.parent);
75539
- if (isTypeAliasDeclaration(node.parent) && !(getObjectFlags(getDeclaredTypeOfSymbol(symbol)) & (4 /* Reference */ | 16 /* Anonymous */ | 32 /* Mapped */))) {
75541
+ if (isTypeAliasDeclaration(node.parent) && !(getObjectFlags(getDeclaredTypeOfSymbol(symbol)) & (16 /* Anonymous */ | 32 /* Mapped */))) {
75540
75542
  error(node, Diagnostics.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);
75541
75543
  } else if (modifiers === 8192 /* In */ || modifiers === 16384 /* Out */) {
75542
75544
  (_a = tracing) == null ? void 0 : _a.push(tracing.Phase.CheckTypes, "checkTypeParameterDeferred", { parent: getTypeId(getDeclaredTypeOfSymbol(symbol)), id: getTypeId(typeParameter) });
package/lib/tsserver.js CHANGED
@@ -2330,7 +2330,7 @@ module.exports = __toCommonJS(server_exports);
2330
2330
 
2331
2331
  // src/compiler/corePublic.ts
2332
2332
  var versionMajorMinor = "5.4";
2333
- var version = `${versionMajorMinor}.0-insiders.20231115`;
2333
+ var version = `${versionMajorMinor}.0-insiders.20231116`;
2334
2334
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2335
2335
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2336
2336
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -52976,6 +52976,8 @@ function createTypeChecker(host) {
52976
52976
  context.symbolDepth.set(id, depth + 1);
52977
52977
  }
52978
52978
  context.visitedTypes.add(typeId);
52979
+ const prevTrackedSymbols = context.trackedSymbols;
52980
+ context.trackedSymbols = void 0;
52979
52981
  const startLength = context.approximateLength;
52980
52982
  const result = transform2(type2);
52981
52983
  const addedLength = context.approximateLength - startLength;
@@ -52991,6 +52993,7 @@ function createTypeChecker(host) {
52991
52993
  if (id) {
52992
52994
  context.symbolDepth.set(id, depth);
52993
52995
  }
52996
+ context.trackedSymbols = prevTrackedSymbols;
52994
52997
  return result;
52995
52998
  function deepCloneOrReuseNode(node) {
52996
52999
  if (!nodeIsSynthesized(node) && getParseTreeNode(node) === node) {
@@ -57315,7 +57318,7 @@ function createTypeChecker(host) {
57315
57318
  } else if (getter && noImplicitAny) {
57316
57319
  error2(getter, Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions, symbolToString(symbol));
57317
57320
  }
57318
- type = anyType;
57321
+ type = errorType;
57319
57322
  }
57320
57323
  links.type = type;
57321
57324
  }
@@ -57333,7 +57336,7 @@ function createTypeChecker(host) {
57333
57336
  if (getAnnotatedAccessorTypeNode(setter)) {
57334
57337
  error2(setter, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol));
57335
57338
  }
57336
- writeType = anyType;
57339
+ writeType = errorType;
57337
57340
  }
57338
57341
  links.writeType = writeType || getTypeOfAccessors(symbol);
57339
57342
  }
@@ -57414,8 +57417,7 @@ function createTypeChecker(host) {
57414
57417
  const declaredType = firstDefined(exportSymbol == null ? void 0 : exportSymbol.declarations, (d) => isExportAssignment(d) ? tryGetTypeFromEffectiveTypeNode(d) : void 0);
57415
57418
  links.type = (exportSymbol == null ? void 0 : exportSymbol.declarations) && isDuplicatedCommonJSExport(exportSymbol.declarations) && symbol.declarations.length ? getFlowTypeFromCommonJSExport(exportSymbol) : isDuplicatedCommonJSExport(symbol.declarations) ? autoType : declaredType ? declaredType : getSymbolFlags(targetSymbol) & 111551 /* Value */ ? getTypeOfSymbol(targetSymbol) : errorType;
57416
57419
  if (!popTypeResolution()) {
57417
- reportCircularityError(exportSymbol ?? symbol);
57418
- return links.type = errorType;
57420
+ return links.type = reportCircularityError(exportSymbol ?? symbol);
57419
57421
  }
57420
57422
  }
57421
57423
  return links.type;
@@ -57444,7 +57446,7 @@ function createTypeChecker(host) {
57444
57446
  error2(node, Diagnostics.Circular_definition_of_import_alias_0, symbolToString(symbol));
57445
57447
  }
57446
57448
  }
57447
- return anyType;
57449
+ return errorType;
57448
57450
  }
57449
57451
  function getTypeOfSymbolWithDeferredType(symbol) {
57450
57452
  const links = getSymbolLinks(symbol);
@@ -60205,7 +60207,7 @@ function createTypeChecker(host) {
60205
60207
  }
60206
60208
  }
60207
60209
  }
60208
- type = anyType;
60210
+ type = errorType;
60209
60211
  }
60210
60212
  signature.resolvedReturnType = type;
60211
60213
  }
@@ -80244,7 +80246,7 @@ function createTypeChecker(host) {
80244
80246
  const modifiers = getTypeParameterModifiers(typeParameter) & (8192 /* In */ | 16384 /* Out */);
80245
80247
  if (modifiers) {
80246
80248
  const symbol = getSymbolOfDeclaration(node.parent);
80247
- if (isTypeAliasDeclaration(node.parent) && !(getObjectFlags(getDeclaredTypeOfSymbol(symbol)) & (4 /* Reference */ | 16 /* Anonymous */ | 32 /* Mapped */))) {
80249
+ if (isTypeAliasDeclaration(node.parent) && !(getObjectFlags(getDeclaredTypeOfSymbol(symbol)) & (16 /* Anonymous */ | 32 /* Mapped */))) {
80248
80250
  error2(node, Diagnostics.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);
80249
80251
  } else if (modifiers === 8192 /* In */ || modifiers === 16384 /* Out */) {
80250
80252
  (_a = tracing) == null ? void 0 : _a.push(tracing.Phase.CheckTypes, "checkTypeParameterDeferred", { parent: getTypeId(getDeclaredTypeOfSymbol(symbol)), id: getTypeId(typeParameter) });
@@ -175479,7 +175481,7 @@ var TypingsInstaller = class {
175479
175481
  }
175480
175482
  /** @internal */
175481
175483
  installPackage(req) {
175482
- const { fileName, packageName, projectName, projectRootPath } = req;
175484
+ const { fileName, packageName, projectName, projectRootPath, id } = req;
175483
175485
  const cwd = forEachAncestorDirectory(getDirectoryPath(fileName), (directory) => {
175484
175486
  if (this.installTypingHost.fileExists(combinePaths(directory, "package.json"))) {
175485
175487
  return directory;
@@ -175491,6 +175493,7 @@ var TypingsInstaller = class {
175491
175493
  const response = {
175492
175494
  kind: ActionPackageInstalled,
175493
175495
  projectName,
175496
+ id,
175494
175497
  success,
175495
175498
  message
175496
175499
  };
@@ -175500,6 +175503,7 @@ var TypingsInstaller = class {
175500
175503
  const response = {
175501
175504
  kind: ActionPackageInstalled,
175502
175505
  projectName,
175506
+ id,
175503
175507
  success: false,
175504
175508
  message: "Could not determine a project root path."
175505
175509
  };
@@ -186695,6 +186699,7 @@ var _TypingsInstallerAdapter = class _TypingsInstallerAdapter {
186695
186699
  // Maps project name to newest requestQueue entry for that project
186696
186700
  /** We will lazily request the types registry on the first call to `isKnownTypesPackageName` and store it in `typesRegistryCache`. */
186697
186701
  this.requestedRegistry = false;
186702
+ this.packageInstallId = 0;
186698
186703
  }
186699
186704
  isKnownTypesPackageName(name) {
186700
186705
  var _a;
@@ -186709,11 +186714,13 @@ var _TypingsInstallerAdapter = class _TypingsInstallerAdapter {
186709
186714
  return !!((_a = this.typesRegistryCache) == null ? void 0 : _a.has(name));
186710
186715
  }
186711
186716
  installPackage(options) {
186712
- this.installer.send({ kind: "installPackage", ...options });
186713
- Debug.assert(this.packageInstalledPromise === void 0);
186714
- return new Promise((resolve, reject) => {
186715
- this.packageInstalledPromise = { resolve, reject };
186717
+ this.packageInstallId++;
186718
+ const request = { kind: "installPackage", ...options, id: this.packageInstallId };
186719
+ const promise = new Promise((resolve, reject) => {
186720
+ (this.packageInstalledPromise ?? (this.packageInstalledPromise = /* @__PURE__ */ new Map())).set(this.packageInstallId, { resolve, reject });
186716
186721
  });
186722
+ this.installer.send(request);
186723
+ return promise;
186717
186724
  }
186718
186725
  attach(projectService) {
186719
186726
  this.projectService = projectService;
@@ -186738,6 +186745,7 @@ var _TypingsInstallerAdapter = class _TypingsInstallerAdapter {
186738
186745
  }
186739
186746
  }
186740
186747
  handleMessage(response) {
186748
+ var _a, _b;
186741
186749
  if (this.logger.hasLevel(3 /* verbose */)) {
186742
186750
  this.logger.info(`TIAdapter:: Received response:${stringifyIndented(response)}`);
186743
186751
  }
@@ -186746,13 +186754,14 @@ var _TypingsInstallerAdapter = class _TypingsInstallerAdapter {
186746
186754
  this.typesRegistryCache = new Map(Object.entries(response.typesRegistry));
186747
186755
  break;
186748
186756
  case ActionPackageInstalled: {
186749
- const { success, message } = response;
186750
- if (success) {
186751
- this.packageInstalledPromise.resolve({ successMessage: message });
186757
+ const promise = (_a = this.packageInstalledPromise) == null ? void 0 : _a.get(response.id);
186758
+ Debug.assertIsDefined(promise, "Should find the promise for package install");
186759
+ (_b = this.packageInstalledPromise) == null ? void 0 : _b.delete(response.id);
186760
+ if (response.success) {
186761
+ promise.resolve({ successMessage: response.message });
186752
186762
  } else {
186753
- this.packageInstalledPromise.reject(message);
186763
+ promise.reject(response.message);
186754
186764
  }
186755
- this.packageInstalledPromise = void 0;
186756
186765
  this.projectService.updateTypingsForProject(response);
186757
186766
  this.event(response, "setTypings");
186758
186767
  break;
@@ -49,9 +49,11 @@ declare namespace ts {
49
49
  readonly fileName: Path;
50
50
  readonly packageName: string;
51
51
  readonly projectRootPath: Path;
52
+ readonly id: number;
52
53
  }
53
54
  interface PackageInstalledResponse extends ProjectResponse {
54
55
  readonly kind: ActionPackageInstalled;
56
+ readonly id: number;
55
57
  readonly success: boolean;
56
58
  readonly message: string;
57
59
  }
package/lib/typescript.js CHANGED
@@ -35,7 +35,7 @@ var ts = (() => {
35
35
  "src/compiler/corePublic.ts"() {
36
36
  "use strict";
37
37
  versionMajorMinor = "5.4";
38
- version = `${versionMajorMinor}.0-insiders.20231115`;
38
+ version = `${versionMajorMinor}.0-insiders.20231116`;
39
39
  Comparison = /* @__PURE__ */ ((Comparison3) => {
40
40
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
41
41
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -50741,6 +50741,8 @@ ${lanes.join("\n")}
50741
50741
  context.symbolDepth.set(id, depth + 1);
50742
50742
  }
50743
50743
  context.visitedTypes.add(typeId);
50744
+ const prevTrackedSymbols = context.trackedSymbols;
50745
+ context.trackedSymbols = void 0;
50744
50746
  const startLength = context.approximateLength;
50745
50747
  const result = transform2(type2);
50746
50748
  const addedLength = context.approximateLength - startLength;
@@ -50756,6 +50758,7 @@ ${lanes.join("\n")}
50756
50758
  if (id) {
50757
50759
  context.symbolDepth.set(id, depth);
50758
50760
  }
50761
+ context.trackedSymbols = prevTrackedSymbols;
50759
50762
  return result;
50760
50763
  function deepCloneOrReuseNode(node) {
50761
50764
  if (!nodeIsSynthesized(node) && getParseTreeNode(node) === node) {
@@ -55080,7 +55083,7 @@ ${lanes.join("\n")}
55080
55083
  } else if (getter && noImplicitAny) {
55081
55084
  error2(getter, Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions, symbolToString(symbol));
55082
55085
  }
55083
- type = anyType;
55086
+ type = errorType;
55084
55087
  }
55085
55088
  links.type = type;
55086
55089
  }
@@ -55098,7 +55101,7 @@ ${lanes.join("\n")}
55098
55101
  if (getAnnotatedAccessorTypeNode(setter)) {
55099
55102
  error2(setter, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol));
55100
55103
  }
55101
- writeType = anyType;
55104
+ writeType = errorType;
55102
55105
  }
55103
55106
  links.writeType = writeType || getTypeOfAccessors(symbol);
55104
55107
  }
@@ -55179,8 +55182,7 @@ ${lanes.join("\n")}
55179
55182
  const declaredType = firstDefined(exportSymbol == null ? void 0 : exportSymbol.declarations, (d) => isExportAssignment(d) ? tryGetTypeFromEffectiveTypeNode(d) : void 0);
55180
55183
  links.type = (exportSymbol == null ? void 0 : exportSymbol.declarations) && isDuplicatedCommonJSExport(exportSymbol.declarations) && symbol.declarations.length ? getFlowTypeFromCommonJSExport(exportSymbol) : isDuplicatedCommonJSExport(symbol.declarations) ? autoType : declaredType ? declaredType : getSymbolFlags(targetSymbol) & 111551 /* Value */ ? getTypeOfSymbol(targetSymbol) : errorType;
55181
55184
  if (!popTypeResolution()) {
55182
- reportCircularityError(exportSymbol ?? symbol);
55183
- return links.type = errorType;
55185
+ return links.type = reportCircularityError(exportSymbol ?? symbol);
55184
55186
  }
55185
55187
  }
55186
55188
  return links.type;
@@ -55209,7 +55211,7 @@ ${lanes.join("\n")}
55209
55211
  error2(node, Diagnostics.Circular_definition_of_import_alias_0, symbolToString(symbol));
55210
55212
  }
55211
55213
  }
55212
- return anyType;
55214
+ return errorType;
55213
55215
  }
55214
55216
  function getTypeOfSymbolWithDeferredType(symbol) {
55215
55217
  const links = getSymbolLinks(symbol);
@@ -57970,7 +57972,7 @@ ${lanes.join("\n")}
57970
57972
  }
57971
57973
  }
57972
57974
  }
57973
- type = anyType;
57975
+ type = errorType;
57974
57976
  }
57975
57977
  signature.resolvedReturnType = type;
57976
57978
  }
@@ -78009,7 +78011,7 @@ ${lanes.join("\n")}
78009
78011
  const modifiers = getTypeParameterModifiers(typeParameter) & (8192 /* In */ | 16384 /* Out */);
78010
78012
  if (modifiers) {
78011
78013
  const symbol = getSymbolOfDeclaration(node.parent);
78012
- if (isTypeAliasDeclaration(node.parent) && !(getObjectFlags(getDeclaredTypeOfSymbol(symbol)) & (4 /* Reference */ | 16 /* Anonymous */ | 32 /* Mapped */))) {
78014
+ if (isTypeAliasDeclaration(node.parent) && !(getObjectFlags(getDeclaredTypeOfSymbol(symbol)) & (16 /* Anonymous */ | 32 /* Mapped */))) {
78013
78015
  error2(node, Diagnostics.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);
78014
78016
  } else if (modifiers === 8192 /* In */ || modifiers === 16384 /* Out */) {
78015
78017
  (_a = tracing) == null ? void 0 : _a.push(tracing.Phase.CheckTypes, "checkTypeParameterDeferred", { parent: getTypeId(getDeclaredTypeOfSymbol(symbol)), id: getTypeId(typeParameter) });
@@ -172693,7 +172695,7 @@ ${options.prefix}` : "\n" : options.prefix
172693
172695
  }
172694
172696
  /** @internal */
172695
172697
  installPackage(req) {
172696
- const { fileName, packageName, projectName, projectRootPath } = req;
172698
+ const { fileName, packageName, projectName, projectRootPath, id } = req;
172697
172699
  const cwd = forEachAncestorDirectory(getDirectoryPath(fileName), (directory) => {
172698
172700
  if (this.installTypingHost.fileExists(combinePaths(directory, "package.json"))) {
172699
172701
  return directory;
@@ -172705,6 +172707,7 @@ ${options.prefix}` : "\n" : options.prefix
172705
172707
  const response = {
172706
172708
  kind: ActionPackageInstalled,
172707
172709
  projectName,
172710
+ id,
172708
172711
  success,
172709
172712
  message
172710
172713
  };
@@ -172714,6 +172717,7 @@ ${options.prefix}` : "\n" : options.prefix
172714
172717
  const response = {
172715
172718
  kind: ActionPackageInstalled,
172716
172719
  projectName,
172720
+ id,
172717
172721
  success: false,
172718
172722
  message: "Could not determine a project root path."
172719
172723
  };
@@ -184034,6 +184038,7 @@ ${e.message}`;
184034
184038
  // Maps project name to newest requestQueue entry for that project
184035
184039
  /** We will lazily request the types registry on the first call to `isKnownTypesPackageName` and store it in `typesRegistryCache`. */
184036
184040
  this.requestedRegistry = false;
184041
+ this.packageInstallId = 0;
184037
184042
  }
184038
184043
  isKnownTypesPackageName(name) {
184039
184044
  var _a;
@@ -184048,11 +184053,13 @@ ${e.message}`;
184048
184053
  return !!((_a = this.typesRegistryCache) == null ? void 0 : _a.has(name));
184049
184054
  }
184050
184055
  installPackage(options) {
184051
- this.installer.send({ kind: "installPackage", ...options });
184052
- Debug.assert(this.packageInstalledPromise === void 0);
184053
- return new Promise((resolve, reject) => {
184054
- this.packageInstalledPromise = { resolve, reject };
184056
+ this.packageInstallId++;
184057
+ const request = { kind: "installPackage", ...options, id: this.packageInstallId };
184058
+ const promise = new Promise((resolve, reject) => {
184059
+ (this.packageInstalledPromise ?? (this.packageInstalledPromise = /* @__PURE__ */ new Map())).set(this.packageInstallId, { resolve, reject });
184055
184060
  });
184061
+ this.installer.send(request);
184062
+ return promise;
184056
184063
  }
184057
184064
  attach(projectService) {
184058
184065
  this.projectService = projectService;
@@ -184077,6 +184084,7 @@ ${e.message}`;
184077
184084
  }
184078
184085
  }
184079
184086
  handleMessage(response) {
184087
+ var _a, _b;
184080
184088
  if (this.logger.hasLevel(3 /* verbose */)) {
184081
184089
  this.logger.info(`TIAdapter:: Received response:${stringifyIndented(response)}`);
184082
184090
  }
@@ -184085,13 +184093,14 @@ ${e.message}`;
184085
184093
  this.typesRegistryCache = new Map(Object.entries(response.typesRegistry));
184086
184094
  break;
184087
184095
  case ActionPackageInstalled: {
184088
- const { success, message } = response;
184089
- if (success) {
184090
- this.packageInstalledPromise.resolve({ successMessage: message });
184096
+ const promise = (_a = this.packageInstalledPromise) == null ? void 0 : _a.get(response.id);
184097
+ Debug.assertIsDefined(promise, "Should find the promise for package install");
184098
+ (_b = this.packageInstalledPromise) == null ? void 0 : _b.delete(response.id);
184099
+ if (response.success) {
184100
+ promise.resolve({ successMessage: response.message });
184091
184101
  } else {
184092
- this.packageInstalledPromise.reject(message);
184102
+ promise.reject(response.message);
184093
184103
  }
184094
- this.packageInstalledPromise = void 0;
184095
184104
  this.projectService.updateTypingsForProject(response);
184096
184105
  this.event(response, "setTypings");
184097
184106
  break;
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
54
54
 
55
55
  // src/compiler/corePublic.ts
56
56
  var versionMajorMinor = "5.4";
57
- var version = `${versionMajorMinor}.0-insiders.20231115`;
57
+ var version = `${versionMajorMinor}.0-insiders.20231116`;
58
58
 
59
59
  // src/compiler/core.ts
60
60
  var emptyArray = [];
@@ -31947,7 +31947,7 @@ var TypingsInstaller = class {
31947
31947
  }
31948
31948
  /** @internal */
31949
31949
  installPackage(req) {
31950
- const { fileName, packageName, projectName, projectRootPath } = req;
31950
+ const { fileName, packageName, projectName, projectRootPath, id } = req;
31951
31951
  const cwd = forEachAncestorDirectory(getDirectoryPath(fileName), (directory) => {
31952
31952
  if (this.installTypingHost.fileExists(combinePaths(directory, "package.json"))) {
31953
31953
  return directory;
@@ -31959,6 +31959,7 @@ var TypingsInstaller = class {
31959
31959
  const response = {
31960
31960
  kind: ActionPackageInstalled,
31961
31961
  projectName,
31962
+ id,
31962
31963
  success,
31963
31964
  message
31964
31965
  };
@@ -31968,6 +31969,7 @@ var TypingsInstaller = class {
31968
31969
  const response = {
31969
31970
  kind: ActionPackageInstalled,
31970
31971
  projectName,
31972
+ id,
31971
31973
  success: false,
31972
31974
  message: "Could not determine a project root path."
31973
31975
  };
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-56418-6",
5
+ "version": "5.4.0-pr-56429-7",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [
@@ -115,5 +115,5 @@
115
115
  "node": "20.1.0",
116
116
  "npm": "8.19.4"
117
117
  },
118
- "gitHead": "66b933eedd4e6149c1a51829ee6d2047ff00c8d2"
118
+ "gitHead": "1f095db76098959d2ad1e8beef365f4e5b2a7b9a"
119
119
  }