@commitlint/parse 18.6.1 → 19.0.3
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 +3 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +5 -8
- package/lib/index.js.map +1 -1
- package/package.json +7 -5
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import type { Parser } from '@commitlint/types';
|
|
2
|
+
import { type Commit, type Options } from 'conventional-commits-parser';
|
|
3
|
+
export declare function parse(message: string, parser?: Parser, parserOpts?: Options): Promise<Commit>;
|
|
3
4
|
export default parse;
|
|
4
5
|
//# sourceMappingURL=index.d.ts.map
|
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,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAC,KAAK,MAAM,EAAE,KAAK,OAAO,EAAO,MAAM,6BAA6B,CAAC;AAI5E,wBAAsB,KAAK,CAC1B,OAAO,EAAE,MAAM,EACf,MAAM,GAAE,MAAa,EACrB,UAAU,CAAC,EAAE,OAAO,GAClB,OAAO,CAAC,MAAM,CAAC,CAWjB;AAED,eAAe,KAAK,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const defaultChangelogOpts = require('conventional-changelog-angular');
|
|
6
|
-
async function parse(message, parser = sync, parserOpts) {
|
|
1
|
+
import { sync } from 'conventional-commits-parser';
|
|
2
|
+
// @ts-expect-error -- no typings
|
|
3
|
+
import defaultChangelogOpts from 'conventional-changelog-angular';
|
|
4
|
+
export async function parse(message, parser = sync, parserOpts) {
|
|
7
5
|
const preset = await defaultChangelogOpts();
|
|
8
6
|
const defaultOpts = preset.parserOpts;
|
|
9
7
|
const opts = Object.assign(Object.assign(Object.assign({}, defaultOpts), { fieldPattern: null }), (parserOpts || {}));
|
|
@@ -11,6 +9,5 @@ async function parse(message, parser = sync, parserOpts) {
|
|
|
11
9
|
parsed.raw = message;
|
|
12
10
|
return parsed;
|
|
13
11
|
}
|
|
14
|
-
|
|
15
|
-
exports.default = parse;
|
|
12
|
+
export default parse;
|
|
16
13
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAA4B,IAAI,EAAC,MAAM,6BAA6B,CAAC;AAC5E,iCAAiC;AACjC,OAAO,oBAAoB,MAAM,gCAAgC,CAAC;AAElE,MAAM,CAAC,KAAK,UAAU,KAAK,CAC1B,OAAe,EACf,SAAiB,IAAI,EACrB,UAAoB;IAEpB,MAAM,MAAM,GAAG,MAAM,oBAAoB,EAAE,CAAC;IAC5C,MAAM,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC;IACtC,MAAM,IAAI,iDACN,WAAW,KACd,YAAY,EAAE,IAAI,KACf,CAAC,UAAU,IAAI,EAAE,CAAC,CACrB,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,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commitlint/parse",
|
|
3
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "19.0.3",
|
|
4
5
|
"description": "Lint your commit messages",
|
|
5
6
|
"main": "lib/index.js",
|
|
6
7
|
"types": "lib/index.d.ts",
|
|
@@ -35,13 +36,14 @@
|
|
|
35
36
|
},
|
|
36
37
|
"license": "MIT",
|
|
37
38
|
"devDependencies": {
|
|
38
|
-
"@commitlint/test": "^
|
|
39
|
-
"@commitlint/utils": "^
|
|
39
|
+
"@commitlint/test": "^19.0.0",
|
|
40
|
+
"@commitlint/utils": "^19.0.0",
|
|
41
|
+
"@types/conventional-commits-parser": "^5.0.0"
|
|
40
42
|
},
|
|
41
43
|
"dependencies": {
|
|
42
|
-
"@commitlint/types": "^
|
|
44
|
+
"@commitlint/types": "^19.0.3",
|
|
43
45
|
"conventional-changelog-angular": "^7.0.0",
|
|
44
46
|
"conventional-commits-parser": "^5.0.0"
|
|
45
47
|
},
|
|
46
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "9b4ac34069e06cd327760ce37adbde8d537d8e3e"
|
|
47
49
|
}
|