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
1
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 2.0.10 to 2.0.11

lib/analyzer.d.ts

2

lib/cli.js

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

files.forEach(function (path) { return console.log(path + ": " + analysis_1[path].join(', ')); });
process.exit(files.length);
process.exit(Math.min(255, files.length));
}

@@ -20,0 +20,0 @@ catch (e) {

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

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

"scripts": {
"build": "node_modules/.bin/tsc",
"watch": "node_modules/.bin/tsc -w",
"test": "npm run build && node_modules/.bin/jasmine",
"build": "tsc",
"watch": "tsc -w",
"test": "npm run build && jasmine",
"exec": "bin/ts-unused-exports"

@@ -28,0 +28,0 @@ },

import { File, Imports, Analysis } from './types';
export { Analysis } from './types'

@@ -3,0 +4,0 @@ interface FileExports {

@@ -5,3 +5,3 @@ import { readFileSync } from 'fs';

import parseFiles from './parser';
import analyze from './analyzer';
import analyze, { Analysis } from './analyzer';

@@ -50,3 +50,3 @@ const parseTsConfig = (tsconfigPath:string) => {

export default (tsconfigPath:string, files?:string[]) => {
export default (tsconfigPath:string, files?:string[]): Analysis => {
const tsConfig = loadTsConfig(tsconfigPath, files);

@@ -53,0 +53,0 @@ return analyze(

@@ -43,3 +43,3 @@ import analyzeTsConfig from './app';

process.exit(files.length);
process.exit(Math.min(255, files.length));
} catch (e) {

@@ -46,0 +46,0 @@ console.error(e);

{
"compilerOptions": {
"target": "ES5",
"declaration": true,
"module": "commonjs",

@@ -5,0 +6,0 @@ "outDir": "./lib",

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