lerna-clean-changelogs 5.0.5 → 5.0.6

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2010-2022 Roy Revelt and other contributors
3
+ Copyright (c) 2010-2023 Roy Revelt and other contributors
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining
6
6
  a copy of this software and associated documentation files (the
package/README.md CHANGED
@@ -96,6 +96,6 @@ To report bugs or request features or assistance, [raise an issue](https://githu
96
96
 
97
97
  MIT License.
98
98
 
99
- Copyright © 2010-2022 Roy Revelt and other contributors.
99
+ Copyright © 2010-2023 Roy Revelt and other contributors.
100
100
 
101
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,16 +1,16 @@
1
1
  /**
2
2
  * @name lerna-clean-changelogs
3
3
  * @fileoverview Removes frivolous entries from commitizen generated changelogs
4
- * @version 5.0.5
4
+ * @version 5.0.6
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 p="5.0.5";var f=p;function n(t){return typeof t=="string"}var $={extras:!1};function g(t,m){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:
10
+ var p="5.0.6";var f=p;function n(t){return typeof t=="string"}var $={extras:!1};function b(t,m){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 u={...$,...m},i=`
12
12
  `;t.includes(`\r
13
13
  `)?i=`\r
14
14
  `:t.includes("\r")&&!t.includes(`
15
15
  `)&&(i="\r");let a,o=!1;if(typeof t=="string"&&t?.trim()){let c=n(t)&&t.length&&(t[~-t.length]===`
16
- `||t[~-t.length]==="\r");t=t?.trim().replace(/(https:\/\/git\.sr\.ht\/~[^/]+\/[^/]+\/)commits\//g,"$1commit/");let s=t.split(/\r?\n/);u.extras&&s.forEach((e,r)=>{e?.startsWith("#")&&(s[r]=e.replace(/(#+) \[?(\d+\.\d+\.\d+)\s?\]\([^)]*\)/g,"$1 $2")),r&&s[r]?.startsWith("# ")&&(s[r]=`#${s[r]}`)});let l=[];for(let e=s.length;e--;){if(s[e]?.startsWith("**Note:** Version bump only")||u.extras&&s[e].toLowerCase().includes("wip")){for(;e&&n(s[~-e])&&!s[~-e]?.trim();)e-=1;for(e&&n(s[~-e])&&s[~-e]?.trim()?.startsWith("#")&&(e-=1);e&&n(s[~-e])&&!s[~-e]?.trim();)e-=1}else s[e]?.trim()?s[e][0]==="*"&&s[e][1]===" "?l.unshift(`- ${s[e].slice(2)}`):l.unshift(s[e]):o||(l.unshift(s[e]?.trim()),o=!0);s[e]?.trim()&&(o=!1)}a=`${l.join(i)}${c?i:""}`}return{version:f,res:a||t}}export{g as cleanChangelogs,$ as defaults,f as version};
16
+ `||t[~-t.length]==="\r");t=t?.trim().replace(/(https:\/\/git\.sr\.ht\/~[^/]+\/[^/]+\/)commits\//g,"$1commit/");let s=t.split(/\r?\n/);u.extras&&s.forEach((e,r)=>{e?.startsWith("#")&&(s[r]=e.replace(/(#+) \[?(\d+\.\d+\.\d+)\s?\]\([^)]*\)/g,"$1 $2")),r&&s[r]?.startsWith("# ")&&(s[r]=`#${s[r]}`)});let l=[];for(let e=s.length;e--;){if(s[e]?.startsWith("**Note:** Version bump only")||u.extras&&s[e].toLowerCase().includes("wip")){for(;e&&n(s[~-e])&&!s[~-e]?.trim();)e-=1;for(e&&n(s[~-e])&&s[~-e]?.trim()?.startsWith("#")&&(e-=1);e&&n(s[~-e])&&!s[~-e]?.trim();)e-=1}else s[e]?.trim()?s[e][0]==="*"&&s[e][1]===" "?l.unshift(`- ${s[e].slice(2)}`):l.unshift(s[e]):o||(l.unshift(s[e]?.trim()),o=!0);s[e]?.trim()&&(o=!1)}a=`${l.join(i)}${c?i:""}`}return{version:f,res:a||t}}export{b as cleanChangelogs,$ as defaults,f as version};
@@ -1,13 +1,13 @@
1
1
  /**
2
2
  * @name lerna-clean-changelogs
3
3
  * @fileoverview Removes frivolous entries from commitizen generated changelogs
4
- * @version 5.0.5
4
+ * @version 5.0.6
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 m=Object.defineProperty;var W=Object.getOwnPropertyDescriptor;var L=Object.getOwnPropertyNames,w=Object.getOwnPropertySymbols;var D=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var g=(e,s,n)=>s in e?m(e,s,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[s]=n,c=(e,s)=>{for(var n in s||(s={}))D.call(s,n)&&g(e,n,s[n]);if(w)for(var n of w(s))V.call(s,n)&&g(e,n,s[n]);return e};var T=(e,s)=>{for(var n in s)m(e,n,{get:s[n],enumerable:!0})},k=(e,s,n,l)=>{if(s&&typeof s=="object"||typeof s=="function")for(let i of L(s))!D.call(e,i)&&i!==n&&m(e,i,{get:()=>s[i],enumerable:!(l=W(s,i))||l.enumerable});return e};var R=e=>k(m({},"__esModule",{value:!0}),e);var I={};T(I,{cleanChangelogs:()=>J,defaults:()=>A,version:()=>j});var S="5.0.5";var j=S;function u(e){return typeof e=="string"}var A={extras:!1};function J(e,s){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(!u(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:
10
+ "use strict";var lernaCleanChangelogs=(()=>{var m=Object.defineProperty;var W=Object.getOwnPropertyDescriptor;var L=Object.getOwnPropertyNames,g=Object.getOwnPropertySymbols;var D=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var w=(e,s,n)=>s in e?m(e,s,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[s]=n,c=(e,s)=>{for(var n in s||(s={}))D.call(s,n)&&w(e,n,s[n]);if(g)for(var n of g(s))V.call(s,n)&&w(e,n,s[n]);return e};var T=(e,s)=>{for(var n in s)m(e,n,{get:s[n],enumerable:!0})},k=(e,s,n,l)=>{if(s&&typeof s=="object"||typeof s=="function")for(let i of L(s))!D.call(e,i)&&i!==n&&m(e,i,{get:()=>s[i],enumerable:!(l=W(s,i))||l.enumerable});return e};var R=e=>k(m({},"__esModule",{value:!0}),e);var I={};T(I,{cleanChangelogs:()=>J,defaults:()=>A,version:()=>j});var S="5.0.6";var j=S;function u(e){return typeof e=="string"}var A={extras:!1};function J(e,s){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(!u(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
11
  ${JSON.stringify(e,null,4)}`);let n=c(c({},A),s),l=`
12
12
  `;e.includes(`\r
13
13
  `)?l=`\r
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lerna-clean-changelogs",
3
- "version": "5.0.5",
3
+ "version": "5.0.6",
4
4
  "description": "Removes frivolous entries from commitizen generated changelogs",
5
5
  "keywords": [
6
6
  "changelog",