Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

conventional-commits-parser

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

conventional-commits-parser - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

8

lib/parser.js

@@ -14,3 +14,3 @@ 'use strict';

if (!raw || !raw.trim()) {
warn('Cannot parse raw commit');
warn('Cannot parse raw commit: "' + raw + '"');
return null;

@@ -39,3 +39,3 @@ }

if (!msg.header) {
warn('Cannot parse commit header');
warn('Cannot parse commit header: "' + raw + '"');
return null;

@@ -46,6 +46,6 @@ }

if (!match || !match[1]) {
warn('Cannot parse commit type');
warn('Cannot parse commit type: "' + raw + '"');
return null;
} else if (!match[3]) {
warn('Cannot parse commit subject');
warn('Cannot parse commit subject: "' + raw + '"');
return null;

@@ -52,0 +52,0 @@ }

{
"name": "conventional-commits-parser",
"version": "0.0.8",
"version": "0.0.9",
"description": "Parse raw conventional commits",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/stevemao/conventional-commits-parser",

@@ -54,3 +54,3 @@ 'use strict';

warn: function(warning) {
expect(warning).to.equal('Cannot parse raw commit');
expect(warning).to.equal('Cannot parse raw commit: ""');
}

@@ -60,3 +60,3 @@ });

warn: function(warning) {
expect(warning).to.equal('Cannot parse raw commit');
expect(warning).to.equal('Cannot parse raw commit: "\n"');
}

@@ -66,3 +66,3 @@ });

warn: function(warning) {
expect(warning).to.equal('Cannot parse raw commit');
expect(warning).to.equal('Cannot parse raw commit: " "');
}

@@ -84,3 +84,3 @@ });

warn: function(warning) {
expect(warning).to.equal('Cannot parse commit type');
expect(warning).to.equal('Cannot parse commit type: "bla bla"');
}

@@ -92,3 +92,3 @@ });

options.warn = function(warning) {
expect(warning).to.equal('Cannot parse commit subject');
expect(warning).to.equal('Cannot parse commit subject: "fix: "');
};

@@ -104,3 +104,3 @@ parser('fix: ', options);

options.warn = function(warning) {
expect(warning).to.equal('Cannot parse commit header');
expect(warning).to.equal('Cannot parse commit header: "056f5827de86cace1f282c8e3f1cccc952fcad2e"');
};

@@ -107,0 +107,0 @@ parser('056f5827de86cace1f282c8e3f1cccc952fcad2e', options);

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