dts-bundle-generator
Advanced tools
Comparing version 9.5.0 to 9.5.1
@@ -1,2 +0,2 @@ | ||
// Generated by dts-bundle-generator v9.5.0 | ||
// Generated by dts-bundle-generator v9.5.1 | ||
@@ -3,0 +3,0 @@ export interface CompilationOptions { |
@@ -1,2 +0,2 @@ | ||
// Generated by dts-bundle-generator v9.5.0 | ||
// Generated by dts-bundle-generator v9.5.1 | ||
@@ -3,0 +3,0 @@ export interface CompilationOptions { |
@@ -194,21 +194,7 @@ "use strict"; | ||
computeUsagesRecursively(parent, parentSymbol) { | ||
const processUsageForChild = (child) => { | ||
ts.forEachChild(parent, (child) => { | ||
if (child.kind === ts.SyntaxKind.JSDoc) { | ||
return; | ||
} | ||
let recursionStartNode = child; | ||
if (ts.isQualifiedName(child) && !ts.isQualifiedName(child.parent)) { | ||
const leftmostSymbol = this.getNodeOwnSymbol(child.left); | ||
// i.e. `import * as NS from './local-module'` | ||
const namespaceImport = (0, typescript_1.getDeclarationsForSymbol)(leftmostSymbol).find(ts.isNamespaceImport); | ||
if (namespaceImport !== undefined) { | ||
// if a node is a qualified name and its top-level part was created by a namespaced import | ||
// then we shouldn't add usages of that "namespaced import" to the parent symbol | ||
// because we can just import the referenced symbol directly, without wrapping with a namespace | ||
recursionStartNode = child.right; | ||
// recursive processing doesn't process a node itself so we need to handle it separately | ||
processUsageForChild(recursionStartNode); | ||
} | ||
} | ||
this.computeUsagesRecursively(recursionStartNode, parentSymbol); | ||
this.computeUsagesRecursively(child, parentSymbol); | ||
if (ts.isIdentifier(child) || child.kind === ts.SyntaxKind.DefaultKeyword) { | ||
@@ -238,4 +224,3 @@ // identifiers in labelled tuples don't have symbols for their labels | ||
} | ||
}; | ||
ts.forEachChild(parent, processUsageForChild); | ||
}); | ||
} | ||
@@ -242,0 +227,0 @@ addUsages(childSymbol, parentSymbol) { |
{ | ||
"name": "dts-bundle-generator", | ||
"version": "9.5.0", | ||
"version": "9.5.1", | ||
"description": "DTS Bundle Generator", | ||
@@ -5,0 +5,0 @@ "main": "dist/bundle-generator.js", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
178220
3202