@commitlint/parse 19.0.3 → 19.5.0

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.js CHANGED
@@ -4,7 +4,11 @@ import defaultChangelogOpts from 'conventional-changelog-angular';
4
4
  export async function parse(message, parser = sync, parserOpts) {
5
5
  const preset = await defaultChangelogOpts();
6
6
  const defaultOpts = preset.parserOpts;
7
- const opts = Object.assign(Object.assign(Object.assign({}, defaultOpts), { fieldPattern: null }), (parserOpts || {}));
7
+ const opts = {
8
+ ...defaultOpts,
9
+ fieldPattern: null,
10
+ ...(parserOpts || {}),
11
+ };
8
12
  const parsed = parser(message, opts);
9
13
  parsed.raw = message;
10
14
  return parsed;
package/lib/index.js.map CHANGED
@@ -1 +1 @@
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"}
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,GAAG;QACZ,GAAG,WAAW;QACd,YAAY,EAAE,IAAI;QAClB,GAAG,CAAC,UAAU,IAAI,EAAE,CAAC;KACrB,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
3
  "type": "module",
4
- "version": "19.0.3",
4
+ "version": "19.5.0",
5
5
  "description": "Lint your commit messages",
6
6
  "main": "lib/index.js",
7
7
  "types": "lib/index.d.ts",
@@ -36,14 +36,14 @@
36
36
  },
37
37
  "license": "MIT",
38
38
  "devDependencies": {
39
- "@commitlint/test": "^19.0.0",
40
- "@commitlint/utils": "^19.0.0",
39
+ "@commitlint/test": "^19.5.0",
40
+ "@commitlint/utils": "^19.5.0",
41
41
  "@types/conventional-commits-parser": "^5.0.0"
42
42
  },
43
43
  "dependencies": {
44
- "@commitlint/types": "^19.0.3",
44
+ "@commitlint/types": "^19.5.0",
45
45
  "conventional-changelog-angular": "^7.0.0",
46
46
  "conventional-commits-parser": "^5.0.0"
47
47
  },
48
- "gitHead": "9b4ac34069e06cd327760ce37adbde8d537d8e3e"
48
+ "gitHead": "7e79af18b7500cda0e38f35944ee08b0b312c006"
49
49
  }