New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@secretlint/formatter

Package Overview
Dependencies
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@secretlint/formatter - npm Package Compare versions

Comparing version 3.3.0 to 3.3.1-next.19

10

lib/formatters/table.js

@@ -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

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