New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ts-unused-exports

Package Overview
Dependencies
Maintainers
2
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-unused-exports - npm Package Compare versions

Comparing version 10.0.1 to 10.1.0

7

CHANGELOG.md

@@ -0,1 +1,8 @@

## [10.1.0] - 24 May 2024
### Changed
- fix: --ignorefiles was ignoring file extensions when matching - #296
- fix: --ignoreLocallyUsed had some false positives. Detail: was incorrectly excluding when parent is variable or function declaration - #300
## [10.0.1] - 4 Sept 2023

@@ -2,0 +9,0 @@

2

lib/analyzer.js

@@ -173,3 +173,3 @@ "use strict";

};
return files.filter(function (f) { return !shouldIgnoreFile(f.path); });
return files.filter(function (f) { return !shouldIgnoreFile(f.fullPath); });
};

@@ -176,0 +176,0 @@ var areEqual = function (files1, files2) {

@@ -101,6 +101,3 @@ "use strict";

}
if ((extraOptions === null || extraOptions === void 0 ? void 0 : extraOptions.ignoreLocallyUsed) &&
kind === ts.SyntaxKind.Identifier &&
node.parent.kind !== ts.SyntaxKind.VariableDeclaration &&
node.parent.kind !== ts.SyntaxKind.FunctionDeclaration) {
if ((extraOptions === null || extraOptions === void 0 ? void 0 : extraOptions.ignoreLocallyUsed) && kind === ts.SyntaxKind.Identifier) {
addImport({

@@ -107,0 +104,0 @@ from: util_1.removeTsFileExtension(node.getSourceFile().fileName),

{
"name": "ts-unused-exports",
"version": "10.0.1",
"version": "10.1.0",
"description": "ts-unused-exports finds unused exported symbols in your Typescript project",

@@ -5,0 +5,0 @@ "main": "lib/app.js",

Sorry, the diff of this file is not supported yet

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