@secretlint/formatter
Advanced tools
Comparing version 5.3.0 to 6.0.1
@@ -20,3 +20,2 @@ // LICENSE : MIT | ||
* Convert secretlint result to textlint result for formatter | ||
* @param secretLintCoreResult | ||
*/ | ||
@@ -57,3 +56,3 @@ const convertSecretLintResultToTextlintResult = (secretLintCoreResult, { enableTerminalLink }) => { | ||
/** | ||
* @deprecated backword compatibility - use range or loc | ||
* @deprecated backward compatibility - use range or loc | ||
*/ | ||
@@ -151,3 +150,3 @@ column: message.loc.start.column, | ||
.filter((file) => { | ||
return [".js", ".ts"].some((formatterExtension) => path_1.default.extname(file) === formatterExtension); | ||
return [".js", ".ts"].some((formatterExtension) => path_1.default.extname(file) === formatterExtension && !file.endsWith(".d.ts")); | ||
}) | ||
@@ -154,0 +153,0 @@ .map((file) => { |
{ | ||
"name": "@secretlint/formatter", | ||
"version": "5.3.0", | ||
"version": "6.0.1", | ||
"description": "A formatter collection for Secretlint.", | ||
@@ -41,5 +41,5 @@ "homepage": "https://github.com/secretlint/secretlint/tree/master/packages/@secretlint/formatter/", | ||
"dependencies": { | ||
"@secretlint/types": "^5.3.0", | ||
"@textlint/linter-formatter": "^12.2.2", | ||
"@textlint/types": "^12.2.2", | ||
"@secretlint/types": "^6.0.1", | ||
"@textlint/linter-formatter": "^12.2.4", | ||
"@textlint/types": "^12.2.3", | ||
"chalk": "^4.1.2", | ||
@@ -49,3 +49,3 @@ "debug": "^4.3.4", | ||
"strip-ansi": "^6.0.1", | ||
"table": "^6.8.0", | ||
"table": "^6.8.1", | ||
"terminal-link": "^2.1.1", | ||
@@ -56,6 +56,6 @@ "try-resolve": "^1.0.1" | ||
"@types/mocha": "^9.1.1", | ||
"@types/node": "^18.11.3", | ||
"@types/node": "^18.11.17", | ||
"@types/pluralize": "0.0.29", | ||
"escape-string-regexp": "^4.0.0", | ||
"mocha": "^10.1.0", | ||
"mocha": "^10.2.0", | ||
"prettier": "^2.7.1", | ||
@@ -73,3 +73,3 @@ "rimraf": "^3.0.2", | ||
}, | ||
"gitHead": "7df8da9e3b25593fe47a4f190fe073623a4b94c1" | ||
"gitHead": "67f291f3857b462d2b998d00c26d3c58a26c0d72" | ||
} |
@@ -41,3 +41,2 @@ // LICENSE : MIT | ||
* Convert secretlint result to textlint result for formatter | ||
* @param secretLintCoreResult | ||
*/ | ||
@@ -84,3 +83,3 @@ const convertSecretLintResultToTextlintResult = ( | ||
/** | ||
* @deprecated backword compatibility - use range or loc | ||
* @deprecated backward compatibility - use range or loc | ||
*/ | ||
@@ -183,3 +182,5 @@ column: message.loc.start.column, | ||
.filter((file: string) => { | ||
return [".js", ".ts"].some((formatterExtension) => path.extname(file) === formatterExtension); | ||
return [".js", ".ts"].some( | ||
(formatterExtension) => path.extname(file) === formatterExtension && !file.endsWith(".d.ts") | ||
); | ||
}) | ||
@@ -186,0 +187,0 @@ .map((file: string) => { |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
38842
19
696
1
+ Added@secretlint/types@6.2.4(transitive)
- Removed@secretlint/types@5.3.0(transitive)
Updated@secretlint/types@^6.0.1
Updated@textlint/types@^12.2.3
Updatedtable@^6.8.1