Socket
Socket
Sign inDemoInstall

@commitlint/format

Package Overview
Dependencies
7
Maintainers
4
Versions
56
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 8.3.0 to 8.3.2

15

lib/format.js
"use strict";
var __spreadArrays = (this && this.__spreadArrays) || function () {
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
for (var r = Array(s), k = 0, i = 0; i < il; i++)
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
r[k] = a[j];
return r;
};
var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -19,4 +26,4 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

.filter(function (r) { return Array.isArray(r.warnings) || Array.isArray(r.errors); })
.map(function (result) { return fi(result).concat(fr(result)); })
.reduce(function (acc, item) { return (Array.isArray(item) ? acc.concat(item) : acc.concat([item])); }, [])
.map(function (result) { return __spreadArrays(fi(result), fr(result)); })
.reduce(function (acc, item) { return (Array.isArray(item) ? __spreadArrays(acc, item) : __spreadArrays(acc, [item])); }, [])
.join('\n');

@@ -46,3 +53,3 @@ }

var _d = result.errors, errors = _d === void 0 ? [] : _d, _e = result.warnings, warnings = _e === void 0 ? [] : _e;
var problems = errors.concat(warnings).map(function (problem) {
var problems = __spreadArrays(errors, warnings).map(function (problem) {
var sign = signs[problem.level] || '';

@@ -67,3 +74,3 @@ var color = colors[problem.level] || 'white';

var help = hasProblems ? "\u24D8 Get help: " + options.helpUrl : undefined;
return problems.concat([
return __spreadArrays(problems, [
hasProblems ? '' : undefined,

@@ -70,0 +77,0 @@ fmtSummary,

{
"name": "@commitlint/format",
"version": "8.3.0",
"version": "8.3.2",
"description": "Format commitlint reports",

@@ -38,5 +38,5 @@ "main": "lib/index.js",

"@commitlint/utils": "^8.3.0",
"@types/lodash": "4.14.140",
"@types/lodash": "4.14.144",
"lodash": "4.17.15",
"typescript": "3.5.3"
"typescript": "3.6.4"
},

@@ -46,3 +46,3 @@ "dependencies": {

},
"gitHead": "e2edc43219f5005cee5222133859bb0e839c4a05"
"gitHead": "0382070379cfc841da8dc57718d232d1649dac6f"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc