conventional-commits-parser 3.2.0 → 3.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -37,6 +37,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
37
37
 
38
38
 
39
39
 
40
+ ### [3.2.1](https://www.github.com/conventional-changelog/conventional-changelog/compare/conventional-commits-parser@3.2.0...v3.2.1) (2021-02-15)
41
+
42
+
43
+ ### Bug Fixes
44
+
45
+ * handle missing header in merge commit ([#757](https://www.github.com/conventional-changelog/conventional-changelog/issues/757)) ([d189d3e](https://www.github.com/conventional-changelog/conventional-changelog/commit/d189d3e45b82e7141115ce8eccd95c8cf2d7db77))
46
+
40
47
  ## [3.0.8](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-commits-parser@3.0.7...conventional-commits-parser@3.0.8) (2019-11-14)
41
48
 
42
49
 
package/lib/parser.js CHANGED
@@ -147,9 +147,12 @@ function parser (raw, options, regex) {
147
147
  merge = mergeMatch[0]
148
148
 
149
149
  header = lines.shift()
150
- while (!header.trim()) {
150
+ while (header !== undefined && !header.trim()) {
151
151
  header = lines.shift()
152
152
  }
153
+ if (!header) {
154
+ header = ''
155
+ }
153
156
 
154
157
  _.forEach(mergeCorrespondence, function (partName, index) {
155
158
  const partValue = mergeMatch[index + 1] || null
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "conventional-commits-parser",
3
- "version": "3.2.0",
3
+ "version": "3.2.1",
4
4
  "description": "Parse raw conventional commits",
5
5
  "bugs": {
6
6
  "url": "https://github.com/conventional-changelog/conventional-changelog/issues"
@@ -37,7 +37,7 @@
37
37
  "is-text-path": "^1.0.1",
38
38
  "lodash": "^4.17.15",
39
39
  "meow": "^8.0.0",
40
- "split2": "^2.0.0",
40
+ "split2": "^3.0.0",
41
41
  "through2": "^4.0.0",
42
42
  "trim-off-newlines": "^1.0.0"
43
43
  },
@@ -49,6 +49,5 @@
49
49
  },
50
50
  "devDependencies": {
51
51
  "forceable-tty": "^0.1.0"
52
- },
53
- "gitHead": "cc567b98facf71315f4b1620d81ce01d155efaca"
52
+ }
54
53
  }