Socket
Socket
Sign inDemoInstall

@commitlint/message

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@commitlint/message - npm Package Compare versions

Comparing version 6.1.3 to 7.0.0

4

lib/index.js

@@ -9,5 +9,3 @@ 'use strict';

function message() {
var input = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
function message(input = []) {
return input.filter(Boolean).join(' ');

@@ -14,0 +12,0 @@ }

@@ -13,13 +13,13 @@ 'use strict';

(0, _ava2.default)('should return an empty string for empty input', function (t) {
(0, _ava2.default)('should return an empty string for empty input', t => {
t.deepEqual((0, _2.default)(), '');
});
(0, _ava2.default)('should return an empty string for empty input array', function (t) {
(0, _ava2.default)('should return an empty string for empty input array', t => {
t.deepEqual((0, _2.default)([]), '');
});
(0, _ava2.default)('should filter falsy values', function (t) {
(0, _ava2.default)('should filter falsy values', t => {
t.deepEqual((0, _2.default)([null, 'some', null, 'message', null]), 'some message');
});
//# sourceMappingURL=index.test.js.map
{
"name": "@commitlint/message",
"version": "6.1.3",
"version": "7.0.0",
"description": "Lint your commit messages",

@@ -62,7 +62,7 @@ "main": "lib/index.js",

"devDependencies": {
"@commitlint/test": "^6.1.3",
"@commitlint/utils": "^6.1.3",
"@commitlint/test": "^7.0.0",
"@commitlint/utils": "^7.0.0",
"ava": "0.22.0",
"babel-cli": "6.26.0",
"babel-preset-commitlint": "^6.1.3",
"babel-preset-commitlint": "^7.0.0",
"babel-register": "6.26.0",

@@ -69,0 +69,0 @@ "concurrently": "3.5.1",

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