@microsoft/api-extractor
Advanced tools
Comparing version 7.38.5 to 7.39.0
@@ -196,3 +196,3 @@ "use strict"; | ||
: undefined; | ||
const resolvedModule = TypeScriptInternals_1.TypeScriptInternals.getResolvedModule(importOrExportDeclaration.getSourceFile(), moduleSpecifier, mode); | ||
const resolvedModule = TypeScriptInternals_1.TypeScriptInternals.getResolvedModule(this._program, importOrExportDeclaration.getSourceFile(), moduleSpecifier, mode); | ||
if (resolvedModule === undefined) { | ||
@@ -670,3 +670,3 @@ // The TS compiler API `getResolvedModule` cannot resolve ambient modules. Thus, to match API Extractor's | ||
: undefined; | ||
const resolvedModule = TypeScriptInternals_1.TypeScriptInternals.getResolvedModule(importOrExportDeclaration.getSourceFile(), moduleSpecifier, mode); | ||
const resolvedModule = TypeScriptInternals_1.TypeScriptInternals.getResolvedModule(this._program, importOrExportDeclaration.getSourceFile(), moduleSpecifier, mode); | ||
if (resolvedModule === undefined) { | ||
@@ -673,0 +673,0 @@ // Encountered in https://github.com/microsoft/rushstack/issues/1914. |
@@ -36,3 +36,3 @@ import * as ts from 'typescript'; | ||
*/ | ||
static getResolvedModule(sourceFile: ts.SourceFile, moduleNameText: string, mode: ts.ModuleKind.CommonJS | ts.ModuleKind.ESNext | undefined): ts.ResolvedModuleFull | undefined; | ||
static getResolvedModule(program: ts.Program, sourceFile: ts.SourceFile, moduleNameText: string, mode: ts.ModuleKind.CommonJS | ts.ModuleKind.ESNext | undefined): ts.ResolvedModuleFull | undefined; | ||
/** | ||
@@ -39,0 +39,0 @@ * Gets the mode required for module resolution required with the addition of Node16/nodenext |
@@ -87,6 +87,7 @@ "use strict"; | ||
*/ | ||
static getResolvedModule(sourceFile, moduleNameText, mode) { | ||
static getResolvedModule(program, sourceFile, moduleNameText, mode) { | ||
// Compiler internal: | ||
// https://github.com/microsoft/TypeScript/blob/v4.7.2/src/compiler/utilities.ts#L161 | ||
return ts.getResolvedModule(sourceFile, moduleNameText, mode); | ||
// https://github.com/microsoft/TypeScript/blob/v5.3.3/src/compiler/types.ts#L4698 | ||
const result = program.getResolvedModule(sourceFile, moduleNameText, mode); | ||
return result === null || result === void 0 ? void 0 : result.resolvedModule; | ||
} | ||
@@ -93,0 +94,0 @@ /** |
{ | ||
"name": "@microsoft/api-extractor", | ||
"version": "7.38.5", | ||
"version": "7.39.0", | ||
"description": "Analyze the exported API for a TypeScript library and generate reviews, documentation, and .d.ts rollups", | ||
@@ -42,7 +42,7 @@ "keywords": [ | ||
"source-map": "~0.6.1", | ||
"typescript": "~5.0.4", | ||
"@microsoft/api-extractor-model": "7.28.3", | ||
"typescript": "5.3.3", | ||
"@rushstack/ts-command-line": "4.17.1", | ||
"@rushstack/rig-package": "0.5.1", | ||
"@rushstack/node-core-library": "3.62.0", | ||
"@rushstack/ts-command-line": "4.17.1", | ||
"@rushstack/rig-package": "0.5.1" | ||
"@microsoft/api-extractor-model": "7.28.3" | ||
}, | ||
@@ -49,0 +49,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1568627
15544
+ Addedtypescript@5.3.3(transitive)
- Removedtypescript@5.0.4(transitive)
Updatedtypescript@5.3.3