@commitlint/parse 21.1.0 → 21.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/lib/index.d.ts.map +1 -1
- package/lib/index.js +3 -2
- package/lib/index.js.map +1 -1
- package/package.json +6 -6
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,aAAa,EAAgB,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,aAAa,EAAgB,MAAM,6BAA6B,CAAC;AAe5F,wBAAsB,KAAK,CAC1B,OAAO,EAAE,MAAM,EACf,MAAM,GAAE,MAAsB,EAC9B,UAAU,CAAC,EAAE,aAAa,GACxB,OAAO,CAAC,MAAM,CAAC,CAkBjB;eAEc,KAAK"}
|
package/lib/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { CommitParser } from "conventional-commits-parser";
|
|
2
|
-
// @ts-expect-error -- no typings
|
|
3
2
|
import defaultChangelogOpts from "conventional-changelog-angular";
|
|
4
3
|
const defaultParser = (message, options) => {
|
|
5
4
|
if (message === undefined || message === null) {
|
|
@@ -13,7 +12,9 @@ const defaultParser = (message, options) => {
|
|
|
13
12
|
return result;
|
|
14
13
|
};
|
|
15
14
|
export async function parse(message, parser = defaultParser, parserOpts) {
|
|
16
|
-
|
|
15
|
+
// conventional-changelog-angular@>=9 ships typings that declare the preset as
|
|
16
|
+
// `{}`; the parser options live under `.parser` at runtime.
|
|
17
|
+
const preset = (await defaultChangelogOpts());
|
|
17
18
|
const defaultOpts = preset.parser || preset.parserOpts;
|
|
18
19
|
// Support user-provided parser options passed either flat or nested under a 'parser' key
|
|
19
20
|
const userOpts = parserOpts?.parser || parserOpts || {};
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAmC,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC5F,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAmC,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC5F,OAAO,oBAAoB,MAAM,gCAAgC,CAAC;AAElE,MAAM,aAAa,GAAW,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE;IAClD,IAAI,OAAO,KAAK,SAAS,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;QAC/C,MAAM,IAAI,SAAS,CAAC,uBAAuB,CAAC,CAAC;IAC9C,CAAC;IACD,MAAM,MAAM,GAAG,IAAI,YAAY,CAAC,OAAO,CAAC,CAAC;IACzC,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IACrC,MAAM,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,IAAI,IAAI,CAAC;IACpC,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,IAAI,IAAI,CAAC;IACxC,MAAM,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,IAAI,IAAI,CAAC;IAClC,OAAO,MAAM,CAAC;AACf,CAAC,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,KAAK,CAC1B,OAAe,EACf,MAAM,GAAW,aAAa,EAC9B,UAA0B;IAE1B,8EAA8E;IAC9E,4DAA4D;IAC5D,MAAM,MAAM,GAAG,CAAC,MAAM,oBAAoB,EAAE,CAG3C,CAAC;IACF,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,IAAI,MAAM,CAAC,UAAU,CAAC;IACvD,yFAAyF;IACzF,MAAM,QAAQ,GAAI,UAAkB,EAAE,MAAM,IAAI,UAAU,IAAI,EAAE,CAAC;IACjE,MAAM,IAAI,GAAG;QACZ,GAAG,WAAW;QACd,YAAY,EAAE,IAAI;QAClB,GAAG,QAAQ;KACX,CAAC;IACF,MAAM,MAAM,GAAG,MAAM,CAAC,OAAO,EAAE,IAAI,CAAW,CAAC;IAC/C,MAAM,CAAC,GAAG,GAAG,OAAO,CAAC;IACrB,OAAO,MAAM,CAAC;AACf,CAAC;AAED,eAAe,KAAK,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commitlint/parse",
|
|
3
|
-
"version": "21.
|
|
4
|
-
"gitHead": "
|
|
3
|
+
"version": "21.2.2",
|
|
4
|
+
"gitHead": "d00d190ecc8030a0f65ead16a396c2391a23996b",
|
|
5
5
|
"description": "Lint your commit messages",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"commitlint",
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
"pkg": "pkg-check"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@commitlint/types": "^21.
|
|
38
|
-
"conventional-changelog-angular": "^
|
|
39
|
-
"conventional-commits-parser": "^
|
|
37
|
+
"@commitlint/types": "^21.2.0",
|
|
38
|
+
"conventional-changelog-angular": "^9.0.0",
|
|
39
|
+
"conventional-commits-parser": "^7.0.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@commitlint/test": "^21.0
|
|
42
|
+
"@commitlint/test": "^21.2.0",
|
|
43
43
|
"@commitlint/utils": "^21.0.1"
|
|
44
44
|
},
|
|
45
45
|
"engines": {
|