@secretlint/formatter
Advanced tools
Comparing version 3.3.0 to 3.3.1-next.19
@@ -43,3 +43,3 @@ "use strict"; | ||
}); | ||
const output = table_1.table(rows, { | ||
const output = (0, table_1.table)(rows, { | ||
columns: { | ||
@@ -116,5 +116,5 @@ 0: { | ||
"\n" + | ||
table_1.table([ | ||
[chalk_1.default.red(pluralize_1.default("Error", errorCount, true))], | ||
[chalk_1.default.yellow(pluralize_1.default("Warning", warningCount, true))], | ||
(0, table_1.table)([ | ||
[chalk_1.default.red((0, pluralize_1.default)("Error", errorCount, true))], | ||
[chalk_1.default.yellow((0, pluralize_1.default)("Warning", warningCount, true))], | ||
], { | ||
@@ -132,3 +132,3 @@ columns: { | ||
if (!useColor) { | ||
return strip_ansi_1.default(output); | ||
return (0, strip_ansi_1.default)(output); | ||
} | ||
@@ -135,0 +135,0 @@ return output; |
@@ -35,3 +35,3 @@ // LICENSE : MIT | ||
const messageId = enableTerminalLink && message.docsUrl | ||
? terminal_link_1.default(message.messageId, message.docsUrl, { | ||
? (0, terminal_link_1.default)(message.messageId, message.docsUrl, { | ||
fallback: (text, _url) => { | ||
@@ -79,3 +79,3 @@ return text; | ||
catch (_b) { | ||
const format = linter_formatter_1.createFormatter(formatterConfig); | ||
const format = (0, linter_formatter_1.createFormatter)(formatterConfig); | ||
return { | ||
@@ -103,10 +103,10 @@ format: (results) => { | ||
else { | ||
if (is_file_1.default(`${path_1.default.join(__dirname, "formatters/", formatterName)}.js`)) { | ||
if ((0, is_file_1.default)(`${path_1.default.join(__dirname, "formatters/", formatterName)}.js`)) { | ||
formatterPath = `${path_1.default.join(__dirname, "formatters/", formatterName)}.js`; | ||
} | ||
else if (is_file_1.default(`${path_1.default.join(__dirname, "formatters/", formatterName)}.ts`)) { | ||
else if ((0, is_file_1.default)(`${path_1.default.join(__dirname, "formatters/", formatterName)}.ts`)) { | ||
formatterPath = `${path_1.default.join(__dirname, "formatters/", formatterName)}.ts`; | ||
} | ||
else { | ||
const pkgPath = try_resolve_1.default(`secretlint-formatter-${formatterName}`) || try_resolve_1.default(formatterName); | ||
const pkgPath = (0, try_resolve_1.default)(`secretlint-formatter-${formatterName}`) || (0, try_resolve_1.default)(formatterName); | ||
if (pkgPath) { | ||
@@ -118,3 +118,3 @@ formatterPath = pkgPath; | ||
try { | ||
formatter = module_interop_1.moduleInterop(require(formatterPath)); | ||
formatter = (0, module_interop_1.moduleInterop)(require(formatterPath)); | ||
} | ||
@@ -131,3 +131,3 @@ catch (ex) { | ||
function getFormatterList() { | ||
const textlintFormatters = linter_formatter_1.getFormatterList(); | ||
const textlintFormatters = (0, linter_formatter_1.getFormatterList)(); | ||
const secretlintFormatters = secretlintGetFormatterList(); | ||
@@ -134,0 +134,0 @@ const secretlintFormatterNames = secretlintFormatters.map((formatter) => formatter.name); |
{ | ||
"name": "@secretlint/formatter", | ||
"version": "3.3.0", | ||
"version": "3.3.1-next.19+2c93303", | ||
"description": "A formatter collection for Secretlint.", | ||
@@ -15,7 +15,2 @@ "homepage": "https://github.com/secretlint/secretlint/tree/master/packages/@secretlint/formatter/", | ||
"author": "azu", | ||
"files": [ | ||
"bin/", | ||
"lib/", | ||
"src/" | ||
], | ||
"main": "lib/index.js", | ||
@@ -27,2 +22,7 @@ "types": "lib/index.d.ts", | ||
}, | ||
"files": [ | ||
"bin/", | ||
"lib/", | ||
"src/" | ||
], | ||
"scripts": { | ||
@@ -43,5 +43,5 @@ "build": "cross-env NODE_ENV=production tsc -p .", | ||
"dependencies": { | ||
"@secretlint/types": "^3.3.0", | ||
"@textlint/linter-formatter": "^3.1.12", | ||
"@textlint/types": "^1.3.1", | ||
"@secretlint/types": "^3.3.1-next.19+2c93303", | ||
"@textlint/linter-formatter": "^12.0.2", | ||
"@textlint/types": "^12.0.2", | ||
"chalk": "^4.1.1", | ||
@@ -56,4 +56,4 @@ "debug": "^4.1.1", | ||
"devDependencies": { | ||
"@types/mocha": "^8.2.2", | ||
"@types/node": "^14.14.41", | ||
"@types/mocha": "^9.0.0", | ||
"@types/node": "^16.9.1", | ||
"@types/pluralize": "0.0.29", | ||
@@ -69,6 +69,9 @@ "cross-env": "^7.0.3", | ||
}, | ||
"engines": { | ||
"node": "^12.20.0 || ^14.13.1 || >=16.0.0" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"gitHead": "f6ee7794184c8cfb89c0bcd87e11e58d99301b25" | ||
"gitHead": "2c93303d1fd60f10601af494489dc55eeb5669a8" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
34788
1
1
+ Added@secretlint/types@3.3.1-next.19(transitive)
+ Added@textlint/ast-node-types@12.6.1(transitive)
+ Added@textlint/linter-formatter@12.6.1(transitive)
+ Added@textlint/module-interop@12.6.1(transitive)
+ Added@textlint/types@12.6.1(transitive)
- Removed@secretlint/types@3.3.0(transitive)
- Removed@textlint/ast-node-types@4.4.3(transitive)
- Removed@textlint/linter-formatter@3.3.5(transitive)
- Removed@textlint/module-interop@1.2.5(transitive)
- Removed@textlint/types@1.5.5(transitive)
- Removedajv@4.11.8(transitive)
- Removedajv-keywords@1.5.1(transitive)
- Removedansi-regex@2.1.13.0.1(transitive)
- Removedansi-styles@2.2.1(transitive)
- Removedbuffer-from@1.1.2(transitive)
- Removedcall-bind@1.0.8(transitive)
- Removedcall-bind-apply-helpers@1.0.2(transitive)
- Removedcall-bound@1.0.4(transitive)
- Removedchalk@1.1.3(transitive)
- Removedco@4.6.0(transitive)
- Removedconcat-stream@1.6.2(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removeddefine-data-property@1.1.4(transitive)
- Removeddunder-proto@1.0.1(transitive)
- Removedes-define-property@1.0.1(transitive)
- Removedes-errors@1.3.0(transitive)
- Removedes-object-atoms@1.1.1(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedget-intrinsic@1.3.0(transitive)
- Removedget-proto@1.0.1(transitive)
- Removedgopd@1.2.0(transitive)
- Removedhas-ansi@2.0.0(transitive)
- Removedhas-property-descriptors@1.0.2(transitive)
- Removedhas-symbols@1.1.0(transitive)
- Removedhasown@2.0.2(transitive)
- Removedinherits@2.0.4(transitive)
- Removedis-fullwidth-code-point@2.0.0(transitive)
- Removedisarray@1.0.02.0.5(transitive)
- Removedjson-stable-stringify@1.2.1(transitive)
- Removedjsonify@0.0.1(transitive)
- Removedmath-intrinsics@1.1.0(transitive)
- Removedobject-keys@1.1.1(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedreadable-stream@2.3.8(transitive)
- Removedsafe-buffer@5.1.2(transitive)
- Removedset-function-length@1.2.2(transitive)
- Removedslice-ansi@0.0.4(transitive)
- Removedstring-width@2.1.1(transitive)
- Removedstring_decoder@1.1.1(transitive)
- Removedstrip-ansi@3.0.14.0.0(transitive)
- Removedsupports-color@2.0.0(transitive)
- Removedtable@3.8.3(transitive)
- Removedtypedarray@0.0.6(transitive)
- Removedutil-deprecate@1.0.2(transitive)
- Removedxml-escape@1.1.0(transitive)
Updated@textlint/types@^12.0.2