lerna-clean-changelogs 4.2.5 → 4.2.7
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/README.md
CHANGED
|
@@ -1,28 +1,25 @@
|
|
|
1
|
-
|
|
1
|
+
<h1 align="center">lerna-clean-changelogs</h1>
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
<p align="center">Removes frivolous entries from commitizen generated changelogs</p>
|
|
4
4
|
|
|
5
|
-
<
|
|
6
|
-
<a href="https://www.npmjs.com/package/lerna-clean-changelogs" rel="nofollow noreferrer noopener">
|
|
7
|
-
<img src="https://img.shields.io/badge/-npm-blue?style=flat-square" alt="page on npm">
|
|
8
|
-
</a>
|
|
5
|
+
<p align="center">
|
|
9
6
|
<a href="https://codsen.com/os/lerna-clean-changelogs" rel="nofollow noreferrer noopener">
|
|
10
7
|
<img src="https://img.shields.io/badge/-codsen-blue?style=flat-square" alt="page on codsen.com">
|
|
11
8
|
</a>
|
|
9
|
+
<a href="https://www.npmjs.com/package/lerna-clean-changelogs" rel="nofollow noreferrer noopener">
|
|
10
|
+
<img src="https://img.shields.io/badge/-npm-blue?style=flat-square" alt="page on npm">
|
|
11
|
+
</a>
|
|
12
12
|
<a href="https://github.com/codsen/codsen/tree/main/packages/lerna-clean-changelogs" rel="nofollow noreferrer noopener">
|
|
13
13
|
<img src="https://img.shields.io/badge/-github-blue?style=flat-square" alt="page on github">
|
|
14
14
|
</a>
|
|
15
15
|
<a href="https://npmcharts.com/compare/lerna-clean-changelogs?interval=30" rel="nofollow noreferrer noopener" target="_blank">
|
|
16
16
|
<img src="https://img.shields.io/npm/dm/lerna-clean-changelogs.svg?style=flat-square" alt="Downloads per month">
|
|
17
17
|
</a>
|
|
18
|
-
<a href="https://
|
|
19
|
-
<img src="https://img.shields.io/badge/
|
|
20
|
-
</a>
|
|
21
|
-
<img src="https://img.shields.io/badge/licence-MIT-brightgreen.svg?style=flat-square" alt="MIT License">
|
|
22
|
-
<a href="https://liberamanifesto.com" rel="nofollow noreferrer noopener" target="_blank">
|
|
23
|
-
<img src="https://img.shields.io/badge/libera-manifesto-lightgrey.svg?style=flat-square" alt="libera manifesto">
|
|
18
|
+
<a href="https://codsen.com/os/lerna-clean-changelogs/changelog" rel="nofollow noreferrer noopener">
|
|
19
|
+
<img src="https://img.shields.io/badge/changelog-here-brightgreen?style=flat-square" alt="changelog">
|
|
24
20
|
</a>
|
|
25
|
-
|
|
21
|
+
<img src="https://img.shields.io/badge/licence-MIT-brightgreen.svg?style=flat-square" alt="MIT Licence">
|
|
22
|
+
</p>
|
|
26
23
|
|
|
27
24
|
## Install
|
|
28
25
|
|
|
@@ -97,8 +94,8 @@ To report bugs or request features or assistance, [raise an issue](https://githu
|
|
|
97
94
|
|
|
98
95
|
## Licence
|
|
99
96
|
|
|
100
|
-
MIT License
|
|
97
|
+
MIT License.
|
|
101
98
|
|
|
102
|
-
Copyright
|
|
99
|
+
Copyright © 2010-2022 Roy Revelt and other contributors.
|
|
103
100
|
|
|
104
|
-
<img src="https://codsen.com/images/png-codsen-ok.png" width="98" alt="ok" align="center"> <img src="https://codsen.com/images/png-codsen-1.png" width="148" alt="codsen" align="center"> <img src="https://codsen.com/images/png-codsen-star-small.png" width="32" alt="star" align="center">
|
|
101
|
+
<p align="center"><img src="https://codsen.com/images/png-codsen-ok.png" width="98" alt="ok" align="center"> <img src="https://codsen.com/images/png-codsen-1.png" width="148" alt="codsen" align="center"> <img src="https://codsen.com/images/png-codsen-star-small.png" width="32" alt="star" align="center"></p>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name lerna-clean-changelogs
|
|
3
3
|
* @fileoverview Removes frivolous entries from commitizen generated changelogs
|
|
4
|
-
* @version 4.2.
|
|
4
|
+
* @version 4.2.7
|
|
5
5
|
* @author Roy Revelt, Codsen Ltd
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/lerna-clean-changelogs/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
var c="4.2.
|
|
10
|
+
var c="4.2.7";var f=c;function n(t){return typeof t=="string"}var $={extras:!1};function g(t,p){if(t===void 0)throw new Error("lerna-clean-changelogs: [THROW_ID_01] The first input argument is missing!");if(!n(t))throw new Error(`lerna-clean-changelogs: [THROW_ID_02] The first input argument must be a string! It was given as ${Array.isArray(t)?"array":typeof t}, equal to:
|
|
11
11
|
${JSON.stringify(t,null,4)}`);let a={...$,...p},i=`
|
|
12
12
|
`;t.includes(`\r
|
|
13
13
|
`)?i=`\r
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name lerna-clean-changelogs
|
|
3
3
|
* @fileoverview Removes frivolous entries from commitizen generated changelogs
|
|
4
|
-
* @version 4.2.
|
|
4
|
+
* @version 4.2.7
|
|
5
5
|
* @author Roy Revelt, Codsen Ltd
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/lerna-clean-changelogs/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
"use strict";var lernaCleanChangelogs=(()=>{var p=Object.defineProperty;var
|
|
11
|
-
${JSON.stringify(e,null,4)}`);let n=c(c({},
|
|
10
|
+
"use strict";var lernaCleanChangelogs=(()=>{var p=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var L=Object.getOwnPropertyNames,w=Object.getOwnPropertySymbols;var S=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var D=(e,r,n)=>r in e?p(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,c=(e,r)=>{for(var n in r||(r={}))S.call(r,n)&&D(e,n,r[n]);if(w)for(var n of w(r))V.call(r,n)&&D(e,n,r[n]);return e};var T=(e,r)=>{for(var n in r)p(e,n,{get:r[n],enumerable:!0})},k=(e,r,n,l)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of L(r))!S.call(e,i)&&i!==n&&p(e,i,{get:()=>r[i],enumerable:!(l=g(r,i))||l.enumerable});return e};var R=e=>k(p({},"__esModule",{value:!0}),e);var I={};T(I,{cleanChangelogs:()=>J,defaults:()=>O,version:()=>A});var j="4.2.7";var A=j;function a(e){return typeof e=="string"}var O={extras:!1};function J(e,r){var d,f,$,y,b,E,x,h;if(e===void 0)throw new Error("lerna-clean-changelogs: [THROW_ID_01] The first input argument is missing!");if(!a(e))throw new Error(`lerna-clean-changelogs: [THROW_ID_02] The first input argument must be a string! It was given as ${Array.isArray(e)?"array":typeof e}, equal to:
|
|
11
|
+
${JSON.stringify(e,null,4)}`);let n=c(c({},O),r),l=`
|
|
12
12
|
`;e.includes(`\r
|
|
13
13
|
`)?l=`\r
|
|
14
14
|
`:e.includes("\r")&&!e.includes(`
|
|
15
|
-
`)&&(l="\r");let i,m=!1;if(typeof e=="string"&&(e==null?void 0:e.trim())){let
|
|
16
|
-
`||e[~-e.length]==="\r");e=e==null?void 0:e.trim().replace(/(https:\/\/git\.sr\.ht\/~[^/]+\/[^/]+\/)commits\//g,"$1commit/");let s=e.split(/\r?\n/);n.extras&&s.forEach((t,o)=>{var v;t!=null&&t.startsWith("#")&&(s[o]=t.replace(/(#+) \[?(\d+\.\d+\.\d+)\s?\]\([^)]*\)/g,"$1 $2")),o&&((v=s[o])==null?void 0:v.startsWith("# "))&&(s[o]=`#${s[o]}`)});let u=[];for(let t=s.length;t--;){if(((d=s[t])==null?void 0:d.startsWith("**Note:** Version bump only"))||n.extras&&s[t].toLowerCase().includes("wip")){for(;t&&a(s[~-t])&&!((f=s[~-t])!=null&&f.trim());)t-=1;for(t&&a(s[~-t])&&((y=($=s[~-t])==null?void 0:$.trim())==null?void 0:y.startsWith("#"))&&(t-=1);t&&a(s[~-t])&&!((b=s[~-t])!=null&&b.trim());)t-=1}else(E=s[t])!=null&&E.trim()?s[t][0]==="*"&&s[t][1]===" "?u.unshift(`- ${s[t].slice(2)}`):u.unshift(s[t]):m||(u.unshift((x=s[t])==null?void 0:x.trim()),m=!0);(h=s[t])!=null&&h.trim()&&(m=!1)}i=`${u.join(l)}${
|
|
15
|
+
`)&&(l="\r");let i,m=!1;if(typeof e=="string"&&(e==null?void 0:e.trim())){let W=a(e)&&e.length&&(e[~-e.length]===`
|
|
16
|
+
`||e[~-e.length]==="\r");e=e==null?void 0:e.trim().replace(/(https:\/\/git\.sr\.ht\/~[^/]+\/[^/]+\/)commits\//g,"$1commit/");let s=e.split(/\r?\n/);n.extras&&s.forEach((t,o)=>{var v;t!=null&&t.startsWith("#")&&(s[o]=t.replace(/(#+) \[?(\d+\.\d+\.\d+)\s?\]\([^)]*\)/g,"$1 $2")),o&&((v=s[o])==null?void 0:v.startsWith("# "))&&(s[o]=`#${s[o]}`)});let u=[];for(let t=s.length;t--;){if(((d=s[t])==null?void 0:d.startsWith("**Note:** Version bump only"))||n.extras&&s[t].toLowerCase().includes("wip")){for(;t&&a(s[~-t])&&!((f=s[~-t])!=null&&f.trim());)t-=1;for(t&&a(s[~-t])&&((y=($=s[~-t])==null?void 0:$.trim())==null?void 0:y.startsWith("#"))&&(t-=1);t&&a(s[~-t])&&!((b=s[~-t])!=null&&b.trim());)t-=1}else(E=s[t])!=null&&E.trim()?s[t][0]==="*"&&s[t][1]===" "?u.unshift(`- ${s[t].slice(2)}`):u.unshift(s[t]):m||(u.unshift((x=s[t])==null?void 0:x.trim()),m=!0);(h=s[t])!=null&&h.trim()&&(m=!1)}i=`${u.join(l)}${W?l:""}`}return{version:A,res:i||e}}return R(I);})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lerna-clean-changelogs",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.7",
|
|
4
4
|
"description": "Removes frivolous entries from commitizen generated changelogs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"changelog",
|
|
@@ -37,6 +37,8 @@
|
|
|
37
37
|
"types": "types/index.d.ts",
|
|
38
38
|
"scripts": {
|
|
39
39
|
"build": "node '../../ops/scripts/esbuild.js' && yarn run dts",
|
|
40
|
+
"cjs-off": "exit 0",
|
|
41
|
+
"cjs-on": "exit 0",
|
|
40
42
|
"dev": "DEV=true node '../../ops/scripts/esbuild.js' && yarn run dts",
|
|
41
43
|
"devtest": "c8 yarn run unit && yarn run examples && yarn run lint",
|
|
42
44
|
"dts": "rollup -c && yarn run prettier 'types/index.d.ts' --write",
|