conventional-commits-parser
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -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); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34203