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 8.0.3 to 8.0.4

2

lib/analyzer.d.ts
import { Analysis, ExtraCommandLineOptions, File } from './types';
export { Analysis } from './types';
declare const _default: (files: File[], extraOptions?: ExtraCommandLineOptions) => Analysis;
declare const _default: (files: File[], extraOptions?: ExtraCommandLineOptions | undefined) => Analysis;
export default _default;

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

delete fileExports.exports[ex];
var exports = (_a = exportMap[(0, util_1.removeExportStarPrefix)(ex)]) === null || _a === void 0 ? void 0 : _a.exports;
var exports = (_a = exportMap[util_1.removeExportStarPrefix(ex)]) === null || _a === void 0 ? void 0 : _a.exports;
if (exports) {

@@ -108,3 +108,3 @@ Object.keys(exports)

// Mark the items as imported, for the imported file:
var importedFileExports = exportMap[(0, util_1.removeExportStarPrefix)(ex)];
var importedFileExports = exportMap[util_1.removeExportStarPrefix(ex)];
if (importedFileExports) {

@@ -111,0 +111,0 @@ importedFileExports.exports[key].usageCount++;

import { Analysis } from './analyzer';
declare const _default: (tsconfigPath: string, files?: string[]) => Analysis;
declare const _default: (tsconfigPath: string, files?: string[] | undefined) => Analysis;
export default _default;

@@ -9,7 +9,7 @@ "use strict";

var parseTsConfig = function (tsconfigPath) {
var basePath = (0, path_1.resolve)((0, path_1.dirname)(tsconfigPath));
var basePath = path_1.resolve(path_1.dirname(tsconfigPath));
try {
var configFileName = ts.findConfigFile(basePath, ts.sys.fileExists, tsconfigPath);
if (!configFileName)
throw "Couldn't find ".concat(tsconfigPath);
throw "Couldn't find " + tsconfigPath;
var configFile = ts.readConfigFile(configFileName, ts.sys.readFile);

@@ -29,3 +29,3 @@ var result = ts.parseJsonConfigFileContent(configFile.config, ts.sys, basePath, undefined, tsconfigPath);

catch (e) {
throw "\n Cannot parse '".concat(tsconfigPath, "'.\n\n ").concat(JSON.stringify(e), "\n ");
throw "\n Cannot parse '" + tsconfigPath + "'.\n\n " + JSON.stringify(e) + "\n ";
}

@@ -38,6 +38,6 @@ };

exports.default = (function (tsconfigPath, files) {
var args = (0, argsParser_1.extractOptionsFromFiles)(files);
var args = argsParser_1.extractOptionsFromFiles(files);
var tsConfig = loadTsConfig(tsconfigPath, args.tsFiles);
return (0, analyzer_1.default)((0, parser_1.default)(tsConfig, args.options), args.options);
return analyzer_1.default(parser_1.default(tsConfig, args.options), args.options);
});
//# sourceMappingURL=app.js.map
import { ExtraCommandLineOptions } from './types';
type TsFilesAndOptions = {
declare type TsFilesAndOptions = {
tsFiles?: string[];

@@ -4,0 +4,0 @@ options?: ExtraCommandLineOptions;

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

default:
throw new Error("Not a recognised option '".concat(optionName, "'"));
throw new Error("Not a recognised option '" + optionName + "'");
}

@@ -128,3 +128,3 @@ });

function isTsConfigValid(tsconfigFilePath) {
return (0, fs_1.existsSync)(tsconfigFilePath) && (0, fs_1.statSync)(tsconfigFilePath).isFile();
return fs_1.existsSync(tsconfigFilePath) && fs_1.statSync(tsconfigFilePath).isFile();
}

@@ -136,3 +136,3 @@ function hasValidArgs(showError, tsconfig, tsFiles) {

if (!isTsConfigValid(tsconfig)) {
showError("The tsconfig file '".concat(tsconfig, "' could not be found."));
showError("The tsconfig file '" + tsconfig + "' could not be found.");
return false;

@@ -139,0 +139,0 @@ }

@@ -19,6 +19,6 @@ "use strict";

}
return "[".concat(location.line, ",").concat(location.character, "]");
return "[" + location.line + "," + location.character + "]";
};
var showMessages = function (files, showMessage, analysis, options) {
var filesCountMessage = "".concat(chalk.bold(files.length.toString()), " module").concat(files.length == 1 ? '' : 's', " with unused exports");
var filesCountMessage = chalk.bold(files.length.toString()) + " module" + (files.length == 1 ? '' : 's') + " with unused exports";
showMessage(files.length ? chalk.red(filesCountMessage) : filesCountMessage);

@@ -28,3 +28,3 @@ if (options === null || options === void 0 ? void 0 : options.showLineNumber) {

analysis[path].forEach(function (unusedExport) {
showMessage("".concat(path).concat(getLocationInFile(unusedExport.location), ": ").concat(chalk.bold.yellow(unusedExport.exportName)));
showMessage("" + path + getLocationInFile(unusedExport.location) + ": " + chalk.bold.yellow(unusedExport.exportName));
});

@@ -35,9 +35,9 @@ });

files.forEach(function (path) {
return showMessage("".concat(path, ": ").concat(chalk.bold.yellow(analysis[path].map(function (r) { return r.exportName; }).join(', '))));
return showMessage(path + ": " + chalk.bold.yellow(analysis[path].map(function (r) { return r.exportName; }).join(', ')));
});
}
};
var runCli = function (exitWith, showError, showMessage, _a) {
exports.runCli = function (exitWith, showError, showMessage, _a) {
var tsconfig = _a[0], tsFiles = _a.slice(1);
if (!(0, argsParser_1.hasValidArgs)(showError, tsconfig, tsFiles)) {
if (!argsParser_1.hasValidArgs(showError, tsconfig, tsFiles)) {
showError(usage_1.USAGE);

@@ -47,5 +47,5 @@ return exitWith(ExitCode.BadArgsOrException);

try {
var analysis_1 = (0, app_1.default)(tsconfig, tsFiles.length ? tsFiles : undefined);
var analysis_1 = app_1.default(tsconfig, tsFiles.length ? tsFiles : undefined);
var files = Object.keys(analysis_1);
var options = (0, argsParser_1.extractOptionsFromFiles)(tsFiles).options;
var options = argsParser_1.extractOptionsFromFiles(tsFiles).options;
var hideMessages = (options === null || options === void 0 ? void 0 : options.silent) && files.length === 0;

@@ -76,3 +76,2 @@ if (!hideMessages) {

};
exports.runCli = runCli;
//# sourceMappingURL=cli.js.map

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

// Parse Comments (that can disable ts-unused-exports)
var isNodeDisabledViaComment = function (node, file) {
exports.isNodeDisabledViaComment = function (node, file) {
var comments = ts.getLeadingCommentRanges(file.getFullText(), node.getFullStart());

@@ -20,3 +20,2 @@ if (comments) {

};
exports.isNodeDisabledViaComment = isNodeDisabledViaComment;
//# sourceMappingURL=comment.js.map

@@ -6,10 +6,8 @@ "use strict";

var TRIM_QUOTES = /^['"](.*)['"]$/;
var getFromText = function (moduleSpecifier) {
exports.getFromText = function (moduleSpecifier) {
return moduleSpecifier.replace(TRIM_QUOTES, '$1').replace(/\/index$/, '');
};
exports.getFromText = getFromText;
var getFrom = function (moduleSpecifier) {
return (0, exports.getFromText)(moduleSpecifier.getText());
exports.getFrom = function (moduleSpecifier) {
return exports.getFromText(moduleSpecifier.getText());
};
exports.getFrom = getFrom;
//# sourceMappingURL=common.js.map

@@ -9,6 +9,5 @@ "use strict";

// Parse Dynamic Imports
var mayContainDynamicImports = function (node) {
exports.mayContainDynamicImports = function (node) {
return !namespaceBlacklist_1.namespaceBlacklist.includes(node.kind) && node.getText().includes('import(');
};
exports.mayContainDynamicImports = mayContainDynamicImports;
function isWithExpressionBoolean(node) {

@@ -23,4 +22,4 @@ var myInterface = node;

var types = [];
var usagePrefix = "".concat(paramName, ".");
(0, util_1.recurseIntoChildren)(lambda, function (child) {
var usagePrefix = paramName + ".";
util_1.recurseIntoChildren(lambda, function (child) {
if (child.getText().startsWith(usagePrefix)) {

@@ -73,3 +72,3 @@ var usage = child.getText().substring(usagePrefix.length);

};
var firstArrow = (0, util_1.findFirstChildOfKind)(node, ts.SyntaxKind.ArrowFunction);
var firstArrow = util_1.findFirstChildOfKind(node, ts.SyntaxKind.ArrowFunction);
if (firstArrow) {

@@ -84,3 +83,3 @@ processLambda(firstArrow);

addImport({
from: (0, common_1.getFromText)(from),
from: common_1.getFromText(from),
what: what,

@@ -91,7 +90,7 @@ });

var tryParseImportExpression = function (expr, addImport) {
var callExpression = (0, util_1.findFirstChildOfKind)(expr, ts.SyntaxKind.CallExpression);
var callExpression = util_1.findFirstChildOfKind(expr, ts.SyntaxKind.CallExpression);
if (!(callExpression === null || callExpression === void 0 ? void 0 : callExpression.getText().startsWith('import'))) {
return false;
}
var syntaxListWithFrom = (0, util_1.findFirstChildOfKind)(callExpression, ts.SyntaxKind.SyntaxList);
var syntaxListWithFrom = util_1.findFirstChildOfKind(callExpression, ts.SyntaxKind.SyntaxList);
if (!syntaxListWithFrom) {

@@ -109,3 +108,3 @@ return false;

// Example: see test with Promise.all[]
(0, util_1.recurseIntoChildren)(expr, function (node) {
util_1.recurseIntoChildren(expr, function (node) {
if (isWithExpressionBoolean(node) && node.getText().startsWith('import')) {

@@ -139,3 +138,3 @@ tryParseImportExpression(node, addImport);

if (ts.isJsxElement(expression1) || ts.isJsxFragment(expression1)) {
var jsxExpressions = (0, util_1.findAllChildrenOfKind)(expression1, ts.SyntaxKind.JsxExpression);
var jsxExpressions = util_1.findAllChildrenOfKind(expression1, ts.SyntaxKind.JsxExpression);
jsxExpressions.forEach(function (j) {

@@ -148,3 +147,3 @@ var jsxExpr = j;

}
var selfClosingElements = (0, util_1.findAllChildrenOfKind)(expression1, ts.SyntaxKind.JsxSelfClosingElement);
var selfClosingElements = util_1.findAllChildrenOfKind(expression1, ts.SyntaxKind.JsxSelfClosingElement);
selfClosingElements.forEach(function (elem) {

@@ -164,3 +163,3 @@ if (ts.isJsxSelfClosingElement(elem)) {

};
var addDynamicImports = function (node, addImport) {
exports.addDynamicImports = function (node, addImport) {
var addImportsInAnyExpression = function (node) {

@@ -173,5 +172,4 @@ if (isWithExpression(node)) {

// Recurse, since dynamic imports can occur at nested levels within the code
(0, util_1.recurseIntoChildren)(node, addImportsInAnyExpression);
util_1.recurseIntoChildren(node, addImportsInAnyExpression);
};
exports.addDynamicImports = addDynamicImports;
//# sourceMappingURL=dynamic.js.map

@@ -10,2 +10,2 @@ import * as ts from 'typescript';

export declare const extractExportNames: (path: string, node: ts.Node) => string[];
export declare const addExportCore: (exportName: string, file: ts.SourceFile, node: ts.Node, exportLocations: LocationInFile[], exports: string[], extraOptions?: ExtraCommandLineOptions) => void;
export declare const addExportCore: (exportName: string, file: ts.SourceFile, node: ts.Node, exportLocations: LocationInFile[], exports: string[], extraOptions?: ExtraCommandLineOptions | undefined) => void;

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

};
var extractExportStatement = function (decl) {
exports.extractExportStatement = function (decl) {
return decl.exportClause

@@ -27,4 +27,3 @@ ? extractAliasFirstFromBindings(decl.exportClause)

};
exports.extractExportStatement = extractExportStatement;
var extractExportFromImport = function (decl, moduleSpecifier) {
exports.extractExportFromImport = function (decl, moduleSpecifier) {
var exportClause = decl.exportClause;

@@ -41,7 +40,7 @@ var whatExported = exportClause

exported: {
from: (0, common_1.getFrom)(moduleSpecifier),
from: common_1.getFrom(moduleSpecifier),
what: whatExported,
},
imported: {
from: (0, common_1.getFrom)(moduleSpecifier),
from: common_1.getFrom(moduleSpecifier),
what: whatImported,

@@ -52,3 +51,2 @@ isExportStarAs: (exportClause === null || exportClause === void 0 ? void 0 : exportClause.kind) === ts.SyntaxKind.NamespaceExport,

};
exports.extractExportFromImport = extractExportFromImport;
// Can be a name like 'a' or else a destructured set like '{ a, b }'

@@ -65,3 +63,3 @@ var parseExportNames = function (exportName) {

};
var extractExportNames = function (path, node) {
exports.extractExportNames = function (path, node) {
switch (node.kind) {

@@ -74,3 +72,3 @@ case ts.SyntaxKind.VariableStatement:

default: {
console.warn("WARN: ".concat(path, ": unknown export node (kind:").concat(node.kind, ")"));
console.warn("WARN: " + path + ": unknown export node (kind:" + node.kind + ")");
return [''];

@@ -80,3 +78,2 @@ }

};
exports.extractExportNames = extractExportNames;
var shouldNodeTypeBeIgnored = function (node, extraOptions) {

@@ -94,3 +91,3 @@ var allowUnusedTypes = !!(extraOptions === null || extraOptions === void 0 ? void 0 : extraOptions.allowUnusedTypes);

};
var addExportCore = function (exportName, file, node, exportLocations, exports, extraOptions) {
exports.addExportCore = function (exportName, file, node, exportLocations, exports, extraOptions) {
if (exports.includes(exportName) ||

@@ -107,3 +104,2 @@ shouldNodeTypeBeIgnored(node, extraOptions)) {

};
exports.addExportCore = addExportCore;
//# sourceMappingURL=export.js.map

@@ -6,2 +6,2 @@ import * as ts from 'typescript';

export declare const extractImport: (decl: ts.ImportDeclaration) => FromWhat;
export declare const addImportCore: (fw: FromWhat, pathIn: string, imports: Imports, baseUrl: string, tsconfigPathsMatcher?: tsconfigPaths.MatchPath) => string | undefined;
export declare const addImportCore: (fw: FromWhat, pathIn: string, imports: Imports, baseUrl: string, tsconfigPathsMatcher?: tsconfigPaths.MatchPath | undefined) => string | undefined;

@@ -12,9 +12,9 @@ "use strict";

var isRelativeToBaseDir = function (baseDir, from) {
return (0, fs_1.existsSync)((0, path_1.resolve)(baseDir, "".concat(from, ".js"))) ||
(0, fs_1.existsSync)((0, path_1.resolve)(baseDir, "".concat(from, ".ts"))) ||
(0, fs_1.existsSync)((0, path_1.resolve)(baseDir, "".concat(from, ".d.ts"))) ||
(0, fs_1.existsSync)((0, path_1.resolve)(baseDir, "".concat(from, ".tsx"))) ||
(0, fs_1.existsSync)((0, path_1.resolve)(baseDir, from, 'index.js')) ||
(0, fs_1.existsSync)((0, path_1.resolve)(baseDir, from, 'index.ts')) ||
(0, fs_1.existsSync)((0, path_1.resolve)(baseDir, from, 'index.tsx'));
return fs_1.existsSync(path_1.resolve(baseDir, from + ".js")) ||
fs_1.existsSync(path_1.resolve(baseDir, from + ".ts")) ||
fs_1.existsSync(path_1.resolve(baseDir, from + ".d.ts")) ||
fs_1.existsSync(path_1.resolve(baseDir, from + ".tsx")) ||
fs_1.existsSync(path_1.resolve(baseDir, from, 'index.js')) ||
fs_1.existsSync(path_1.resolve(baseDir, from, 'index.ts')) ||
fs_1.existsSync(path_1.resolve(baseDir, from, 'index.tsx'));
};

@@ -26,4 +26,4 @@ var joinWithBaseUrl = function (baseUrl, from) {

};
var extractImport = function (decl) {
var from = (0, common_1.getFrom)(decl.moduleSpecifier);
exports.extractImport = function (decl) {
var from = common_1.getFrom(decl.moduleSpecifier);
var importClause = decl.importClause;

@@ -54,9 +54,8 @@ if (!importClause)

};
exports.extractImport = extractImport;
var declarationFilePatch = function (matchedPath) {
return matchedPath.endsWith('.d') && (0, fs_1.existsSync)("".concat(matchedPath, ".ts"))
return matchedPath.endsWith('.d') && fs_1.existsSync(matchedPath + ".ts")
? matchedPath.slice(0, -2)
: matchedPath;
};
var addImportCore = function (fw, pathIn, imports, baseUrl, tsconfigPathsMatcher) {
exports.addImportCore = function (fw, pathIn, imports, baseUrl, tsconfigPathsMatcher) {
var from = fw.from, what = fw.what;

@@ -66,3 +65,3 @@ var getKey = function (from) {

// An undefined return indicates the import is from 'index.ts' or similar == '.'
return (0, path_1.resolve)((0, path_1.dirname)(pathIn), from) || '.';
return path_1.resolve(path_1.dirname(pathIn), from) || '.';
}

@@ -90,3 +89,2 @@ else {

};
exports.addImportCore = addImportCore;
//# sourceMappingURL=import.js.map

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

keys.forEach(function (fromFile) {
var namespaces = imports[fromFile].map(function (i) { return "".concat(i, "."); });
var namespaces = imports[fromFile].map(function (i) { return i + "."; });
imported.push({

@@ -24,3 +24,3 @@ file: fromFile,

};
var addImportsFromNamespace = function (node, imports, addImport) {
exports.addImportsFromNamespace = function (node, imports, addImport) {
var possibles = getPossibleImportedNamespaces(imports);

@@ -53,3 +53,2 @@ if (!mayContainImportsFromNamespace(node, possibles)) {

};
exports.addImportsFromNamespace = addImportsFromNamespace;
//# sourceMappingURL=imports-from-namespace.js.map
import { ExtraCommandLineOptions, File, TsConfig } from '../types';
declare const _default: (TsConfig: TsConfig, extraOptions?: ExtraCommandLineOptions) => File[];
declare const _default: (TsConfig: TsConfig, extraOptions?: ExtraCommandLineOptions | undefined) => File[];
export default _default;

@@ -37,12 +37,12 @@ "use strict";

var addImport = function (fw) {
return (0, import_1.addImportCore)(fw, path, imports, baseUrl, tsconfigPathsMatcher);
return import_1.addImportCore(fw, path, imports, baseUrl, tsconfigPathsMatcher);
};
var addExport = function (exportName, node) {
(0, export_1.addExportCore)(exportName, file, node, exportLocations, exportNames, extraOptions);
export_1.addExportCore(exportName, file, node, exportLocations, exportNames, extraOptions);
};
ts.forEachChild(file, function (node) {
if ((0, comment_1.isNodeDisabledViaComment)(node, file)) {
if (comment_1.isNodeDisabledViaComment(node, file)) {
return;
}
(0, nodeProcessor_1.processNode)(node, path, addImport, addExport, imports, exportNames, extraOptions);
nodeProcessor_1.processNode(node, path, addImport, addExport, imports, exportNames, extraOptions);
});

@@ -58,3 +58,3 @@ return {

var parseFile = function (path, baseUrl, paths, extraOptions) {
return mapFile(path, ts.createSourceFile(path, (0, fs_1.readFileSync)(path, { encoding: 'utf8' }), ts.ScriptTarget.ES2015,
return mapFile(path, ts.createSourceFile(path, fs_1.readFileSync(path, { encoding: 'utf8' }), ts.ScriptTarget.ES2015,
/*setParentNodes */ true), baseUrl, paths, extraOptions);

@@ -67,3 +67,3 @@ };

.filter(function (p) { return includeDeclarationFiles || !p.includes('.d.'); })
.map(function (path) { return parseFile((0, path_1.resolve)('.', path), baseUrl, paths, extraOptions); });
.map(function (path) { return parseFile(path_1.resolve('.', path), baseUrl, paths, extraOptions); });
return files;

@@ -70,0 +70,0 @@ };

import * as ts from 'typescript';
import { ExtraCommandLineOptions, Imports } from '../types';
import { FromWhat } from './common';
export declare const processNode: (node: ts.Node, path: string, addImport: (fw: FromWhat) => string | undefined, addExport: (exportName: string, node: ts.Node) => void, imports: Imports, exportNames: string[], extraOptions?: ExtraCommandLineOptions, namespace?: string) => void;
export declare const processNode: (node: ts.Node, path: string, addImport: (fw: FromWhat) => string | undefined, addExport: (exportName: string, node: ts.Node) => void, imports: Imports, exportNames: string[], extraOptions?: ExtraCommandLineOptions | undefined, namespace?: string) => void;

@@ -18,4 +18,3 @@ "use strict";

if ((exportDecl.isTypeOnly && (extraOptions === null || extraOptions === void 0 ? void 0 : extraOptions.allowUnusedTypes)) ||
(kinds_1.ENUM_NODE_KINDS.includes(exportDecl.kind) &&
(extraOptions === null || extraOptions === void 0 ? void 0 : extraOptions.allowUnusedEnums))) {
(kinds_1.ENUM_NODE_KINDS.includes(exportDecl.kind) && (extraOptions === null || extraOptions === void 0 ? void 0 : extraOptions.allowUnusedEnums))) {
return;

@@ -25,7 +24,7 @@ }

if (moduleSpecifier === undefined) {
(0, export_1.extractExportStatement)(exportDecl).forEach(function (e) { return addExport(e, node); });
export_1.extractExportStatement(exportDecl).forEach(function (e) { return addExport(e, node); });
return;
}
else {
var _a = (0, export_1.extractExportFromImport)(exportDecl, moduleSpecifier), exported = _a.exported, imported = _a.imported;
var _a = export_1.extractExportFromImport(exportDecl, moduleSpecifier), exported = _a.exported, imported = _a.imported;
var key = addImport(imported);

@@ -35,7 +34,7 @@ if (key) {

if (what == common_1.STAR) {
addExport("*:".concat(key), node);
addExport("*:" + key, node);
}
if (what != common_1.STAR) {
if (imported.isExportStarAs) {
addExport("*as:".concat(key), node);
addExport("*as:" + key, node);
}

@@ -54,3 +53,3 @@ what.forEach(function (w) { return exportNames.push(w); });

var decl = node;
var names = decl.name ? [decl.name.text] : (0, export_1.extractExportNames)(path, node);
var names = decl.name ? [decl.name.text] : export_1.extractExportNames(path, node);
names

@@ -78,10 +77,10 @@ .filter(function (name) { return !!name; })

};
var processNode = function (node, path, addImport, addExport, imports, exportNames, extraOptions, namespace) {
exports.processNode = function (node, path, addImport, addExport, imports, exportNames, extraOptions, namespace) {
if (namespace === void 0) { namespace = ''; }
var kind = node.kind;
var processSubNode = function (subNode, namespace) {
(0, exports.processNode)(subNode, path, addImport, addExport, imports, exportNames, extraOptions, namespace);
exports.processNode(subNode, path, addImport, addExport, imports, exportNames, extraOptions, namespace);
};
if (kind === ts.SyntaxKind.ImportDeclaration) {
addImport((0, import_1.extractImport)(node));
addImport(import_1.extractImport(node));
return;

@@ -98,4 +97,4 @@ }

// so for performance should only be done when necessary.
if ((0, dynamic_1.mayContainDynamicImports)(node)) {
(0, dynamic_1.addDynamicImports)(node, addImport);
if (dynamic_1.mayContainDynamicImports(node)) {
dynamic_1.addDynamicImports(node, addImport);
}

@@ -105,3 +104,3 @@ // Searching for use of types in namespace requires inspecting statements in the file,

if (extraOptions === null || extraOptions === void 0 ? void 0 : extraOptions.searchNamespaces) {
(0, imports_from_namespace_1.addImportsFromNamespace)(node, imports, addImport);
imports_from_namespace_1.addImportsFromNamespace(node, imports, addImport);
}

@@ -125,3 +124,2 @@ if (hasModifier(node, ts.SyntaxKind.ExportKeyword)) {

};
exports.processNode = processNode;
//# sourceMappingURL=nodeProcessor.js.map
{
"name": "ts-unused-exports",
"version": "8.0.3",
"version": "8.0.4",
"description": "ts-unused-exports finds unused exported symbols in your Typescript project",

@@ -56,3 +56,3 @@ "main": "lib/app.js",

"ts-node": "^9.0.0",
"typescript": "^4.9.3"
"typescript": "^4.0.5"
},

@@ -59,0 +59,0 @@ "dependencies": {

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

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

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