linguist-js
Advanced tools
Comparing version 1.9.0 to 1.9.1
@@ -10,4 +10,2 @@ "use strict"; | ||
const index_1 = __importDefault(require("./index")); | ||
if (typeof commander_1.program === 'undefined') | ||
throw `Dependency 'commander' is not installed.`; | ||
commander_1.program | ||
@@ -14,0 +12,0 @@ .name('linguist --analyze') |
@@ -198,3 +198,3 @@ "use strict"; | ||
for (const [file, lang] of Object.entries(finalResults)) { | ||
if (!hiddenCategories.some(cat => lang && langData[lang].type === cat)) | ||
if (!hiddenCategories.some(cat => { var _a; return lang && ((_a = langData[lang]) === null || _a === void 0 ? void 0 : _a.type) === cat; })) | ||
continue; | ||
@@ -201,0 +201,0 @@ delete finalResults[file]; |
{ | ||
"name": "linguist-js", | ||
"version": "1.9.0", | ||
"version": "1.9.1", | ||
"description": "Analyse languages used in a folder. Powered by GitHub Linguist, although it doesn't need to be installed.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -110,2 +110,5 @@ [![Latest version](https://img.shields.io/github/v/release/Nixinova/Linguist?label=latest%20version&style=flat-square)](https://github.com/Nixinova/Linguist/releases) | ||
CLI usage requires `commander`, which is marked as an optional dependency. | ||
If an error saying `Cannot find module 'commander'` is thrown, run `npm install commander --no-save`. | ||
``` | ||
@@ -112,0 +115,0 @@ linguist --analyze [<folder>] [<...options>] |
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
32050
155
510