@typescript-deploys/pr-build 5.9.0-pr-61746-2 → 5.9.0-pr-61746-5

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
@@ -80538,6 +80538,7 @@ function createTypeChecker(host) {
80538
80538
  return type;
80539
80539
  }
80540
80540
  function checkConstEnumAccess(node, type) {
80541
+ var _a;
80541
80542
  const ok = node.parent.kind === 211 /* PropertyAccessExpression */ && node.parent.expression === node || node.parent.kind === 212 /* ElementAccessExpression */ && node.parent.expression === node || ((node.kind === 80 /* Identifier */ || node.kind === 166 /* QualifiedName */) && isInRightSideOfImportOrExportAssignment(node) || node.parent.kind === 186 /* TypeQuery */ && node.parent.exprName === node) || node.parent.kind === 281 /* ExportSpecifier */;
80542
80543
  if (!ok) {
80543
80544
  error(node, Diagnostics.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query);
@@ -80555,7 +80556,7 @@ function createTypeChecker(host) {
80555
80556
  )) {
80556
80557
  Debug.assert(!!(type.symbol.flags & 128 /* ConstEnum */));
80557
80558
  const constEnumDeclaration = type.symbol.valueDeclaration;
80558
- const redirect = host.getRedirectReferenceForResolutionFromSourceOfProject(getSourceFileOfNode(constEnumDeclaration).resolvedPath);
80559
+ const redirect = (_a = host.getRedirectFromOutput(getSourceFileOfNode(constEnumDeclaration).resolvedPath)) == null ? void 0 : _a.resolvedRef;
80559
80560
  if (constEnumDeclaration.flags & 33554432 /* Ambient */ && !isValidTypeOnlyAliasUseSite(node) && (!redirect || !shouldPreserveConstEnums(redirect.commandLine.options))) {
80560
80561
  error(node, Diagnostics.Cannot_access_ambient_const_enums_when_0_is_enabled, isolatedModulesLikeFlagName);
80561
80562
  }
@@ -85511,7 +85512,7 @@ function createTypeChecker(host) {
85511
85512
  }
85512
85513
  }
85513
85514
  function checkAliasSymbol(node) {
85514
- var _a, _b, _c, _d;
85515
+ var _a, _b, _c, _d, _e;
85515
85516
  let symbol = getSymbolOfDeclaration(node);
85516
85517
  const target = resolveAlias(symbol);
85517
85518
  if (target !== unknownSymbol) {
@@ -85605,7 +85606,7 @@ function createTypeChecker(host) {
85605
85606
  }
85606
85607
  if (compilerOptions.verbatimModuleSyntax && !isTypeOnlyImportOrExportDeclaration(node) && !(node.flags & 33554432 /* Ambient */) && targetFlags & 128 /* ConstEnum */) {
85607
85608
  const constEnumDeclaration = target.valueDeclaration;
85608
- const redirect = host.getRedirectReferenceForResolutionFromSourceOfProject(getSourceFileOfNode(constEnumDeclaration).resolvedPath);
85609
+ const redirect = (_e = host.getRedirectFromOutput(getSourceFileOfNode(constEnumDeclaration).resolvedPath)) == null ? void 0 : _e.resolvedRef;
85609
85610
  if (constEnumDeclaration.flags & 33554432 /* Ambient */ && (!redirect || !shouldPreserveConstEnums(redirect.commandLine.options))) {
85610
85611
  error(node, Diagnostics.Cannot_access_ambient_const_enums_when_0_is_enabled, isolatedModulesLikeFlagName);
85611
85612
  }
@@ -122083,7 +122084,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
122083
122084
  getResolvedProjectReferenceByPath,
122084
122085
  forEachResolvedProjectReference: forEachResolvedProjectReference2,
122085
122086
  isSourceOfProjectReferenceRedirect,
122086
- getRedirectReferenceForResolutionFromSourceOfProject,
122087
+ getRedirectFromOutput,
122087
122088
  getCompilerOptionsForFile,
122088
122089
  getDefaultResolutionModeForFile: getDefaultResolutionModeForFile2,
122089
122090
  getEmitModuleFormatOfFile,
@@ -122212,17 +122213,14 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
122212
122213
  return result;
122213
122214
  }
122214
122215
  function getRedirectReferenceForResolution(file) {
122216
+ var _a2, _b2;
122215
122217
  const redirect = getRedirectFromSourceFile(file.originalFileName);
122216
122218
  if (redirect || !isDeclarationFileName(file.originalFileName)) return redirect == null ? void 0 : redirect.resolvedRef;
122217
- const resultFromDts = getRedirectReferenceForResolutionFromSourceOfProject(file.path);
122219
+ const resultFromDts = (_a2 = getRedirectFromOutput(file.path)) == null ? void 0 : _a2.resolvedRef;
122218
122220
  if (resultFromDts) return resultFromDts;
122219
122221
  if (!host.realpath || !options.preserveSymlinks || !file.originalFileName.includes(nodeModulesPathPart)) return void 0;
122220
122222
  const realDeclarationPath = toPath3(host.realpath(file.originalFileName));
122221
- return realDeclarationPath === file.path ? void 0 : getRedirectReferenceForResolutionFromSourceOfProject(realDeclarationPath);
122222
- }
122223
- function getRedirectReferenceForResolutionFromSourceOfProject(filePath) {
122224
- var _a2;
122225
- return (_a2 = getRedirectFromOutput(filePath)) == null ? void 0 : _a2.resolvedRef;
122223
+ return realDeclarationPath === file.path ? void 0 : (_b2 = getRedirectFromOutput(realDeclarationPath)) == null ? void 0 : _b2.resolvedRef;
122226
122224
  }
122227
122225
  function compareDefaultLibFiles(a, b) {
122228
122226
  return compareValues(getDefaultLibFilePriority(a), getDefaultLibFilePriority(b));
package/lib/typescript.js CHANGED
@@ -85150,6 +85150,7 @@ function createTypeChecker(host) {
85150
85150
  return type;
85151
85151
  }
85152
85152
  function checkConstEnumAccess(node, type) {
85153
+ var _a;
85153
85154
  const ok = node.parent.kind === 211 /* PropertyAccessExpression */ && node.parent.expression === node || node.parent.kind === 212 /* ElementAccessExpression */ && node.parent.expression === node || ((node.kind === 80 /* Identifier */ || node.kind === 166 /* QualifiedName */) && isInRightSideOfImportOrExportAssignment(node) || node.parent.kind === 186 /* TypeQuery */ && node.parent.exprName === node) || node.parent.kind === 281 /* ExportSpecifier */;
85154
85155
  if (!ok) {
85155
85156
  error2(node, Diagnostics.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query);
@@ -85167,7 +85168,7 @@ function createTypeChecker(host) {
85167
85168
  )) {
85168
85169
  Debug.assert(!!(type.symbol.flags & 128 /* ConstEnum */));
85169
85170
  const constEnumDeclaration = type.symbol.valueDeclaration;
85170
- const redirect = host.getRedirectReferenceForResolutionFromSourceOfProject(getSourceFileOfNode(constEnumDeclaration).resolvedPath);
85171
+ const redirect = (_a = host.getRedirectFromOutput(getSourceFileOfNode(constEnumDeclaration).resolvedPath)) == null ? void 0 : _a.resolvedRef;
85171
85172
  if (constEnumDeclaration.flags & 33554432 /* Ambient */ && !isValidTypeOnlyAliasUseSite(node) && (!redirect || !shouldPreserveConstEnums(redirect.commandLine.options))) {
85172
85173
  error2(node, Diagnostics.Cannot_access_ambient_const_enums_when_0_is_enabled, isolatedModulesLikeFlagName);
85173
85174
  }
@@ -90123,7 +90124,7 @@ function createTypeChecker(host) {
90123
90124
  }
90124
90125
  }
90125
90126
  function checkAliasSymbol(node) {
90126
- var _a, _b, _c, _d;
90127
+ var _a, _b, _c, _d, _e;
90127
90128
  let symbol = getSymbolOfDeclaration(node);
90128
90129
  const target = resolveAlias(symbol);
90129
90130
  if (target !== unknownSymbol) {
@@ -90217,7 +90218,7 @@ function createTypeChecker(host) {
90217
90218
  }
90218
90219
  if (compilerOptions.verbatimModuleSyntax && !isTypeOnlyImportOrExportDeclaration(node) && !(node.flags & 33554432 /* Ambient */) && targetFlags & 128 /* ConstEnum */) {
90219
90220
  const constEnumDeclaration = target.valueDeclaration;
90220
- const redirect = host.getRedirectReferenceForResolutionFromSourceOfProject(getSourceFileOfNode(constEnumDeclaration).resolvedPath);
90221
+ const redirect = (_e = host.getRedirectFromOutput(getSourceFileOfNode(constEnumDeclaration).resolvedPath)) == null ? void 0 : _e.resolvedRef;
90221
90222
  if (constEnumDeclaration.flags & 33554432 /* Ambient */ && (!redirect || !shouldPreserveConstEnums(redirect.commandLine.options))) {
90222
90223
  error2(node, Diagnostics.Cannot_access_ambient_const_enums_when_0_is_enabled, isolatedModulesLikeFlagName);
90223
90224
  }
@@ -126934,7 +126935,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
126934
126935
  getResolvedProjectReferenceByPath,
126935
126936
  forEachResolvedProjectReference: forEachResolvedProjectReference2,
126936
126937
  isSourceOfProjectReferenceRedirect,
126937
- getRedirectReferenceForResolutionFromSourceOfProject,
126938
+ getRedirectFromOutput,
126938
126939
  getCompilerOptionsForFile,
126939
126940
  getDefaultResolutionModeForFile: getDefaultResolutionModeForFile2,
126940
126941
  getEmitModuleFormatOfFile: getEmitModuleFormatOfFile2,
@@ -127063,17 +127064,14 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
127063
127064
  return result;
127064
127065
  }
127065
127066
  function getRedirectReferenceForResolution(file) {
127067
+ var _a2, _b2;
127066
127068
  const redirect = getRedirectFromSourceFile(file.originalFileName);
127067
127069
  if (redirect || !isDeclarationFileName(file.originalFileName)) return redirect == null ? void 0 : redirect.resolvedRef;
127068
- const resultFromDts = getRedirectReferenceForResolutionFromSourceOfProject(file.path);
127070
+ const resultFromDts = (_a2 = getRedirectFromOutput(file.path)) == null ? void 0 : _a2.resolvedRef;
127069
127071
  if (resultFromDts) return resultFromDts;
127070
127072
  if (!host.realpath || !options.preserveSymlinks || !file.originalFileName.includes(nodeModulesPathPart)) return void 0;
127071
127073
  const realDeclarationPath = toPath3(host.realpath(file.originalFileName));
127072
- return realDeclarationPath === file.path ? void 0 : getRedirectReferenceForResolutionFromSourceOfProject(realDeclarationPath);
127073
- }
127074
- function getRedirectReferenceForResolutionFromSourceOfProject(filePath) {
127075
- var _a2;
127076
- return (_a2 = getRedirectFromOutput(filePath)) == null ? void 0 : _a2.resolvedRef;
127074
+ return realDeclarationPath === file.path ? void 0 : (_b2 = getRedirectFromOutput(realDeclarationPath)) == null ? void 0 : _b2.resolvedRef;
127077
127075
  }
127078
127076
  function compareDefaultLibFiles(a, b) {
127079
127077
  return compareValues(getDefaultLibFilePriority(a), getDefaultLibFilePriority(b));
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.9.0-pr-61746-2",
5
+ "version": "5.9.0-pr-61746-5",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [