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 2.1.1 to 2.2.0

15

lib/index.js

@@ -7,2 +7,3 @@ // LICENSE : MIT

Object.defineProperty(exports, "__esModule", { value: true });
exports.getFormatterList = exports.createFormatter = void 0;
const linter_formatter_1 = require("@textlint/linter-formatter");

@@ -18,3 +19,3 @@ const terminal_link_1 = __importDefault(require("terminal-link"));

filePath: secretLintCoreResult.filePath,
messages: secretLintCoreResult.messages.map(message => {
messages: secretLintCoreResult.messages.map((message) => {
const severityLevel = message.severity === "info"

@@ -32,3 +33,3 @@ ? 0

return text;
}
},
})

@@ -50,5 +51,5 @@ : message.messageId;

fix: undefined,
type: "lint"
type: "lint",
};
})
}),
};

@@ -68,6 +69,6 @@ };

format: (results) => {
return format(results.map(result => convertSecretLintResultToTextlintResult(result, {
enableTerminalLink
return format(results.map((result) => convertSecretLintResultToTextlintResult(result, {
enableTerminalLink,
})));
}
},
};

@@ -74,0 +75,0 @@ }

{
"name": "@secretlint/formatter",
"version": "2.1.1",
"version": "2.2.0",
"description": "A formatter collection for Secretlint.",

@@ -32,2 +32,3 @@ "homepage": "https://github.com/secretlint/secretlint/tree/master/packages/@secretlint/formatter/",

"test": "mocha \"test/**/*.ts\"",
"updateSnapshot": "UPDATE_SNAPSHOT=1 npm test",
"watch": "tsc -p . --watch"

@@ -41,3 +42,3 @@ },

"dependencies": {
"@secretlint/types": "^2.1.1",
"@secretlint/types": "^2.2.0",
"@textlint/linter-formatter": "^3.1.12",

@@ -49,12 +50,12 @@ "@textlint/types": "^1.3.1",

"devDependencies": {
"@types/mocha": "^7.0.1",
"@types/node": "^13.9.3",
"cross-env": "^7.0.0",
"@types/mocha": "^8.2.2",
"@types/node": "^14.14.41",
"cross-env": "^7.0.3",
"escape-string-regexp": "^2.0.0",
"mocha": "^7.1.1",
"mocha": "^8.3.2",
"prettier": "^2.0.2",
"rimraf": "^3.0.2",
"ts-node": "^8.8.1",
"ts-node-test-register": "^8.0.1",
"typescript": "^3.8.2"
"ts-node": "^9.0.0",
"ts-node-test-register": "^9.0.1",
"typescript": "^4.0.5"
},

@@ -64,3 +65,3 @@ "publishConfig": {

},
"gitHead": "ee794cdf7b9aa5f2ec756e361d269b24b6e40070"
"gitHead": "64bf33d6ee6e31a8416bf2bde6ee27a700955fb1"
}

@@ -6,3 +6,3 @@ // LICENSE : MIT

createFormatter as textlintCreateFormatter,
getFormatterList as textlintGetFormatterList
getFormatterList as textlintGetFormatterList,
} from "@textlint/linter-formatter";

@@ -42,3 +42,3 @@ import { SecretLintCoreResult } from "@secretlint/types";

filePath: secretLintCoreResult.filePath,
messages: secretLintCoreResult.messages.map(message => {
messages: secretLintCoreResult.messages.map((message) => {
const severityLevel =

@@ -59,3 +59,3 @@ message.severity === "info"

return text;
}
},
})

@@ -77,5 +77,5 @@ : message.messageId;

fix: undefined,
type: "lint"
type: "lint",
};
})
}),
};

@@ -96,9 +96,9 @@ };

return format(
results.map(result =>
results.map((result) =>
convertSecretLintResultToTextlintResult(result, {
enableTerminalLink
enableTerminalLink,
})
)
);
}
},
};

@@ -105,0 +105,0 @@ }

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