conventional-commits-parser 3.2.1 → 3.2.2
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 +7 -0
- package/lib/parser.js +4 -1
- package/package.json +3 -4
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.2](https://www.github.com/conventional-changelog/conventional-changelog/compare/conventional-commits-parser-v3.2.1...conventional-commits-parser-v3.2.2) (2021-09-09)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Bug Fixes
|
|
44
|
+
|
|
45
|
+
* **conventional-commits-parser:** address CVE-2021-23425 ([#841](https://www.github.com/conventional-changelog/conventional-changelog/issues/841)) ([02b3d53](https://www.github.com/conventional-changelog/conventional-changelog/commit/02b3d53a0c142f0c28ee7d190d210c76a62887c2))
|
|
46
|
+
|
|
40
47
|
### [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
48
|
|
|
42
49
|
|
package/lib/parser.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
'use strict'
|
|
2
|
-
const trimOffNewlines = require('trim-off-newlines')
|
|
3
2
|
const _ = require('lodash')
|
|
4
3
|
|
|
5
4
|
const CATCH_ALL = /()(.+)/gi
|
|
6
5
|
const SCISSOR = '# ------------------------ >8 ------------------------'
|
|
7
6
|
|
|
7
|
+
function trimOffNewlines (input) {
|
|
8
|
+
return input.replace(/^(?:\r|\n)+|(?:\r|\n)+$/g, '')
|
|
9
|
+
}
|
|
10
|
+
|
|
8
11
|
function append (src, line) {
|
|
9
12
|
if (src) {
|
|
10
13
|
src += '\n' + line
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "conventional-commits-parser",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.2",
|
|
4
4
|
"description": "Parse raw conventional commits",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/conventional-changelog/conventional-changelog/issues"
|
|
@@ -33,13 +33,12 @@
|
|
|
33
33
|
"logs"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"JSONStream": "^1.0.4",
|
|
37
36
|
"is-text-path": "^1.0.1",
|
|
37
|
+
"JSONStream": "^1.0.4",
|
|
38
38
|
"lodash": "^4.17.15",
|
|
39
39
|
"meow": "^8.0.0",
|
|
40
40
|
"split2": "^3.0.0",
|
|
41
|
-
"through2": "^4.0.0"
|
|
42
|
-
"trim-off-newlines": "^1.0.0"
|
|
41
|
+
"through2": "^4.0.0"
|
|
43
42
|
},
|
|
44
43
|
"scripts": {
|
|
45
44
|
"test-windows": "echo 'make work on windows'"
|