Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dts-bundle-generator

Package Overview
Dependencies
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dts-bundle-generator - npm Package Compare versions

Comparing version 9.5.0 to 9.5.1

2

config-schema.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc