lerna-clean-changelogs 5.0.28 → 5.0.29

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/.eslintcache ADDED
@@ -0,0 +1 @@
1
+ [{"/home/runner/work/codsen/codsen/packages/lerna-clean-changelogs/examples/_quickTake.js":"1","/home/runner/work/codsen/codsen/packages/lerna-clean-changelogs/perf/check.js":"2","/home/runner/work/codsen/codsen/packages/lerna-clean-changelogs/rollup.config.js":"3","/home/runner/work/codsen/codsen/packages/lerna-clean-changelogs/src/main.ts":"4","/home/runner/work/codsen/codsen/packages/lerna-clean-changelogs/test/test.js":"5","/home/runner/work/codsen/codsen/packages/lerna-clean-changelogs/test/throws.js":"6"},{"size":989,"mtime":1760280945935,"results":"7","hashOfConfig":"8"},{"size":538,"mtime":1760280945935,"results":"9","hashOfConfig":"10"},{"size":373,"mtime":1760280945935,"results":"11","hashOfConfig":"8"},{"size":5389,"mtime":1760280945935,"results":"12","hashOfConfig":"10"},{"size":3697,"mtime":1760280945936,"results":"13","hashOfConfig":"14"},{"size":1180,"mtime":1760280945936,"results":"15","hashOfConfig":"14"},{"filePath":"16","messages":"17","suppressedMessages":"18","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1f1u168",{"filePath":"19","messages":"20","suppressedMessages":"21","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"91l1rm",{"filePath":"22","messages":"23","suppressedMessages":"24","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"25","messages":"26","suppressedMessages":"27","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"28","messages":"29","suppressedMessages":"30","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"ns3qdb",{"filePath":"31","messages":"32","suppressedMessages":"33","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/home/runner/work/codsen/codsen/packages/lerna-clean-changelogs/examples/_quickTake.js",[],[],"/home/runner/work/codsen/codsen/packages/lerna-clean-changelogs/perf/check.js",[],[],"/home/runner/work/codsen/codsen/packages/lerna-clean-changelogs/rollup.config.js",[],[],"/home/runner/work/codsen/codsen/packages/lerna-clean-changelogs/src/main.ts",[],[],"/home/runner/work/codsen/codsen/packages/lerna-clean-changelogs/test/test.js",[],["34","35","36","37","38","39"],"/home/runner/work/codsen/codsen/packages/lerna-clean-changelogs/test/throws.js",[],["40","41","42","43","44"],{"ruleId":"45","severity":2,"message":"46","line":5,"column":17,"nodeType":null,"messageId":"47","endLine":5,"endColumn":19,"suppressions":"48"},{"ruleId":"45","severity":2,"message":"49","line":5,"column":21,"nodeType":null,"messageId":"47","endLine":5,"endColumn":23,"suppressions":"50"},{"ruleId":"45","severity":2,"message":"51","line":5,"column":25,"nodeType":null,"messageId":"47","endLine":5,"endColumn":31,"suppressions":"52"},{"ruleId":"45","severity":2,"message":"53","line":5,"column":33,"nodeType":null,"messageId":"47","endLine":5,"endColumn":37,"suppressions":"54"},{"ruleId":"45","severity":2,"message":"55","line":5,"column":39,"nodeType":null,"messageId":"47","endLine":5,"endColumn":42,"suppressions":"56"},{"ruleId":"45","severity":2,"message":"57","line":5,"column":44,"nodeType":null,"messageId":"47","endLine":5,"endColumn":49,"suppressions":"58"},{"ruleId":"45","severity":2,"message":"46","line":3,"column":17,"nodeType":null,"messageId":"47","endLine":3,"endColumn":19,"suppressions":"59"},{"ruleId":"45","severity":2,"message":"49","line":3,"column":21,"nodeType":null,"messageId":"47","endLine":3,"endColumn":23,"suppressions":"60"},{"ruleId":"45","severity":2,"message":"53","line":3,"column":33,"nodeType":null,"messageId":"47","endLine":3,"endColumn":37,"suppressions":"61"},{"ruleId":"45","severity":2,"message":"55","line":3,"column":39,"nodeType":null,"messageId":"47","endLine":3,"endColumn":42,"suppressions":"62"},{"ruleId":"45","severity":2,"message":"57","line":3,"column":44,"nodeType":null,"messageId":"47","endLine":3,"endColumn":49,"suppressions":"63"},"@typescript-eslint/no-unused-vars","'is' is defined but never used.","unusedVar",["64"],"'ok' is defined but never used.",["65"],"'throws' is defined but never used.",["66"],"'type' is defined but never used.",["67"],"'not' is defined but never used.",["68"],"'match' is defined but never used.",["69"],["70"],["71"],["72"],["73"],["74"],{"kind":"75","justification":"76"},{"kind":"75","justification":"76"},{"kind":"75","justification":"76"},{"kind":"75","justification":"76"},{"kind":"75","justification":"76"},{"kind":"75","justification":"76"},{"kind":"75","justification":"76"},{"kind":"75","justification":"76"},{"kind":"75","justification":"76"},{"kind":"75","justification":"76"},{"kind":"75","justification":"76"},"directive",""]
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2010-2025 Roy Revelt and other contributors
3
+ Copyright © 2010-2025 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
@@ -19,4 +19,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
19
  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
20
  LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
21
  OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -94,8 +94,8 @@ To report bugs or request features or assistance, [raise an issue](https://githu
94
94
 
95
95
  ## Licence
96
96
 
97
- MIT License.
97
+ MIT License
98
98
 
99
- Copyright © 2010-2025 Roy Revelt and other contributors.
99
+ Copyright © 2010-2025 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,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.28
5
- * @author Roy Revelt, Codsen Ltd
4
+ * @version 5.0.29
5
+ * @author Roy Revelt
6
6
  * @license MIT
7
7
  * {@link https://codsen.com/os/lerna-clean-changelogs/}
8
8
  */
9
9
 
10
- import{isStr as n,detectEol as f}from"codsen-utils";var m="5.0.28";var $=m,g={extras:!1};function x(s,u){if(s===void 0)throw new Error("lerna-clean-changelogs: [THROW_ID_01] The first input argument is missing!");if(!n(s))throw new Error(`lerna-clean-changelogs: [THROW_ID_02] The first input argument must be a string! It was given as ${Array.isArray(s)?"array":typeof s}, equal to:
11
- ${JSON.stringify(s,null,4)}`);let o={...g,...u},a=f(s)||`
10
+ import{isStr as n,detectEol as f}from"codsen-utils";var u="5.0.29";var $=u,g={extras:!1};function x(s,m){if(s===void 0)throw new Error("lerna-clean-changelogs: [THROW_ID_01] The first input argument is missing!");if(!n(s))throw new Error(`lerna-clean-changelogs: [THROW_ID_02] The first input argument must be a string! It was given as ${Array.isArray(s)?"array":typeof s}, equal to:
11
+ ${JSON.stringify(s,null,4)}`);let o={...g,...m},a=f(s)||`
12
12
  `,p,l=!1;if(typeof s=="string"&&s?.trim()){let c=n(s)&&!!s.length&&(s[~-s.length]===`
13
13
  `||s[~-s.length]==="\r");s=s?.trim().replace(/(https:\/\/git\.sr\.ht\/~[^/]+\/[^/]+\/)commits\//g,"$1commit/");let t=s.split(/\r?\n/);o.extras&&t.forEach((e,r)=>{e?.startsWith("#")&&(t[r]=e.replace(/(#+) \[?(\d+\.\d+\.\d+)\s?\]\([^)]*\)/g,"$1 $2")),r&&t[r]?.startsWith("# ")&&(t[r]=`#${t[r]}`)});let i=[];for(let e=t.length;e--;){if(t[e]?.startsWith("**Note:** Version bump only")||o.extras&&t[e].toLowerCase().includes("wip")){for(;e&&n(t[~-e])&&!t[~-e]?.trim();)e-=1;for(e&&n(t[~-e])&&t[~-e]?.trim()?.startsWith("#")&&(e-=1);e&&n(t[~-e])&&!t[~-e]?.trim();)e-=1}else t[e]?.trim()?t[e][0]==="*"&&t[e][1]===" "?i.unshift(`- ${t[e].slice(2)}`):i.unshift(t[e]):l||(i.unshift(t[e]?.trim()),l=!0);t[e]?.trim()&&(l=!1)}p=`${i.join(a)}${c?a:""}`}return{version:$,res:p||s}}export{x as cleanChangelogs,g as defaults,$ as version};
@@ -1,18 +1,18 @@
1
1
  /**
2
2
  * @name lerna-clean-changelogs
3
3
  * @fileoverview Removes frivolous entries from commitizen generated changelogs
4
- * @version 5.0.28
5
- * @author Roy Revelt, Codsen Ltd
4
+ * @version 5.0.29
5
+ * @author Roy Revelt
6
6
  * @license MIT
7
7
  * {@link https://codsen.com/os/lerna-clean-changelogs/}
8
8
  */
9
9
 
10
- "use strict";var lernaCleanChangelogs=(()=>{var V=Object.create;var $=Object.defineProperty;var R=Object.getOwnPropertyDescriptor;var W=Object.getOwnPropertyNames,E=Object.getOwnPropertySymbols,M=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var S=(e,n,i)=>n in e?$(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i,O=(e,n)=>{for(var i in n||(n={}))x.call(n,i)&&S(e,i,n[i]);if(E)for(var i of E(n))P.call(n,i)&&S(e,i,n[i]);return e};var F=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),H=(e,n)=>{for(var i in n)$(e,i,{get:n[i],enumerable:!0})},v=(e,n,i,m)=>{if(n&&typeof n=="object"||typeof n=="function")for(let c of W(n))!x.call(e,c)&&c!==i&&$(e,c,{get:()=>n[c],enumerable:!(m=R(n,c))||m.enumerable});return e};var I=(e,n,i)=>(i=e!=null?V(M(e)):{},v(n||!e||!e.__esModule?$(i,"default",{value:e,enumerable:!0}):i,e)),J=e=>v($({},"__esModule",{value:!0}),e);var C=F((Z,D)=>{"use strict";D.exports=Q;function h(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function Q(e){if(e=e||{},e.circles)return _(e);let n=new Map;if(n.set(Date,s=>new Date(s)),n.set(Map,(s,u)=>new Map(m(Array.from(s),u))),n.set(Set,(s,u)=>new Set(m(Array.from(s),u))),e.constructorHandlers)for(let s of e.constructorHandlers)n.set(s[0],s[1]);let i=null;return e.proto?d:c;function m(s,u){let r=Object.keys(s),t=new Array(r.length);for(let a=0;a<r.length;a++){let o=r[a],p=s[o];typeof p!="object"||p===null?t[o]=p:p.constructor!==Object&&(i=n.get(p.constructor))?t[o]=i(p,u):ArrayBuffer.isView(p)?t[o]=h(p):t[o]=u(p)}return t}function c(s){if(typeof s!="object"||s===null)return s;if(Array.isArray(s))return m(s,c);if(s.constructor!==Object&&(i=n.get(s.constructor)))return i(s,c);let u={};for(let r in s){if(Object.hasOwnProperty.call(s,r)===!1)continue;let t=s[r];typeof t!="object"||t===null?u[r]=t:t.constructor!==Object&&(i=n.get(t.constructor))?u[r]=i(t,c):ArrayBuffer.isView(t)?u[r]=h(t):u[r]=c(t)}return u}function d(s){if(typeof s!="object"||s===null)return s;if(Array.isArray(s))return m(s,d);if(s.constructor!==Object&&(i=n.get(s.constructor)))return i(s,d);let u={};for(let r in s){let t=s[r];typeof t!="object"||t===null?u[r]=t:t.constructor!==Object&&(i=n.get(t.constructor))?u[r]=i(t,d):ArrayBuffer.isView(t)?u[r]=h(t):u[r]=d(t)}return u}}function _(e){let n=[],i=[],m=new Map;if(m.set(Date,r=>new Date(r)),m.set(Map,(r,t)=>new Map(d(Array.from(r),t))),m.set(Set,(r,t)=>new Set(d(Array.from(r),t))),e.constructorHandlers)for(let r of e.constructorHandlers)m.set(r[0],r[1]);let c=null;return e.proto?u:s;function d(r,t){let a=Object.keys(r),o=new Array(a.length);for(let p=0;p<a.length;p++){let b=a[p],y=r[b];if(typeof y!="object"||y===null)o[b]=y;else if(y.constructor!==Object&&(c=m.get(y.constructor)))o[b]=c(y,t);else if(ArrayBuffer.isView(y))o[b]=h(y);else{let f=n.indexOf(y);f!==-1?o[b]=i[f]:o[b]=t(y)}}return o}function s(r){if(typeof r!="object"||r===null)return r;if(Array.isArray(r))return d(r,s);if(r.constructor!==Object&&(c=m.get(r.constructor)))return c(r,s);let t={};n.push(r),i.push(t);for(let a in r){if(Object.hasOwnProperty.call(r,a)===!1)continue;let o=r[a];if(typeof o!="object"||o===null)t[a]=o;else if(o.constructor!==Object&&(c=m.get(o.constructor)))t[a]=c(o,s);else if(ArrayBuffer.isView(o))t[a]=h(o);else{let p=n.indexOf(o);p!==-1?t[a]=i[p]:t[a]=s(o)}}return n.pop(),i.pop(),t}function u(r){if(typeof r!="object"||r===null)return r;if(Array.isArray(r))return d(r,u);if(r.constructor!==Object&&(c=m.get(r.constructor)))return c(r,u);let t={};n.push(r),i.push(t);for(let a in r){let o=r[a];if(typeof o!="object"||o===null)t[a]=o;else if(o.constructor!==Object&&(c=m.get(o.constructor)))t[a]=c(o,u);else if(ArrayBuffer.isView(o))t[a]=h(o);else{let p=n.indexOf(o);p!==-1?t[a]=i[p]:t[a]=u(o)}}return n.pop(),i.pop(),t}}});var z={};H(z,{cleanChangelogs:()=>q,defaults:()=>N,version:()=>T});var k=I(C(),1);var G=(0,k.default)();function g(e){return typeof e=="string"}function B(e){if(!(typeof e!="string"||!e)){if(e.includes("\r\n"))return"\r\n";if(e.includes("\n"))return"\n";if(e.includes("\r"))return"\r"}}var L="5.0.28";var T=L,N={extras:!1};function q(e,n){var s,u,r,t,a,o,p,b;if(e===void 0)throw new Error("lerna-clean-changelogs: [THROW_ID_01] The first input argument is missing!");if(!g(e))throw new Error("lerna-clean-changelogs: [THROW_ID_02] The first input argument must be a string! It was given as ".concat(Array.isArray(e)?"array":typeof e,", equal to:\n").concat(JSON.stringify(e,null,4)));let i=O(O({},N),n),m=B(e)||"\n",c,d=!1;if(typeof e=="string"&&(e!=null&&e.trim())){let y=g(e)&&!!e.length&&(e[~-e.length]==="\n"||e[~-e.length]==="\r");e=e==null?void 0:e.trim().replace(/(https:\/\/git\.sr\.ht\/~[^/]+\/[^/]+\/)commits\//g,"$1commit/");let f=e.split(/\r?\n/);i.extras&&f.forEach((l,A)=>{var j;l!=null&&l.startsWith("#")&&(f[A]=l.replace(/(#+) \[?(\d+\.\d+\.\d+)\s?\]\([^)]*\)/g,"$1 $2")),A&&((j=f[A])!=null&&j.startsWith("# "))&&(f[A]="#".concat(f[A]))});let w=[];for(let l=f.length;l--;){if((s=f[l])!=null&&s.startsWith("**Note:** Version bump only")||i.extras&&f[l].toLowerCase().includes("wip")){for(;l&&g(f[~-l])&&!((u=f[~-l])!=null&&u.trim());)l-=1;for(l&&g(f[~-l])&&((t=(r=f[~-l])==null?void 0:r.trim())!=null&&t.startsWith("#"))&&(l-=1);l&&g(f[~-l])&&!((a=f[~-l])!=null&&a.trim());)l-=1}else(o=f[l])!=null&&o.trim()?f[l][0]==="*"&&f[l][1]===" "?w.unshift("- ".concat(f[l].slice(2))):w.unshift(f[l]):d||(w.unshift((p=f[l])==null?void 0:p.trim()),d=!0);(b=f[l])!=null&&b.trim()&&(d=!1)}c="".concat(w.join(m)).concat(y?m:"")}return{version:T,res:c||e}}return J(z);})();
10
+ "use strict";var lernaCleanChangelogs=(()=>{var V=Object.create;var $=Object.defineProperty;var R=Object.getOwnPropertyDescriptor;var W=Object.getOwnPropertyNames,E=Object.getOwnPropertySymbols,M=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var S=(e,n,i)=>n in e?$(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i,O=(e,n)=>{for(var i in n||(n={}))x.call(n,i)&&S(e,i,n[i]);if(E)for(var i of E(n))P.call(n,i)&&S(e,i,n[i]);return e};var F=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),H=(e,n)=>{for(var i in n)$(e,i,{get:n[i],enumerable:!0})},v=(e,n,i,m)=>{if(n&&typeof n=="object"||typeof n=="function")for(let c of W(n))!x.call(e,c)&&c!==i&&$(e,c,{get:()=>n[c],enumerable:!(m=R(n,c))||m.enumerable});return e};var I=(e,n,i)=>(i=e!=null?V(M(e)):{},v(n||!e||!e.__esModule?$(i,"default",{value:e,enumerable:!0}):i,e)),J=e=>v($({},"__esModule",{value:!0}),e);var C=F((Z,D)=>{"use strict";D.exports=Q;function h(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function Q(e){if(e=e||{},e.circles)return _(e);let n=new Map;if(n.set(Date,s=>new Date(s)),n.set(Map,(s,u)=>new Map(m(Array.from(s),u))),n.set(Set,(s,u)=>new Set(m(Array.from(s),u))),e.constructorHandlers)for(let s of e.constructorHandlers)n.set(s[0],s[1]);let i=null;return e.proto?d:c;function m(s,u){let r=Object.keys(s),t=new Array(r.length);for(let a=0;a<r.length;a++){let o=r[a],p=s[o];typeof p!="object"||p===null?t[o]=p:p.constructor!==Object&&(i=n.get(p.constructor))?t[o]=i(p,u):ArrayBuffer.isView(p)?t[o]=h(p):t[o]=u(p)}return t}function c(s){if(typeof s!="object"||s===null)return s;if(Array.isArray(s))return m(s,c);if(s.constructor!==Object&&(i=n.get(s.constructor)))return i(s,c);let u={};for(let r in s){if(Object.hasOwnProperty.call(s,r)===!1)continue;let t=s[r];typeof t!="object"||t===null?u[r]=t:t.constructor!==Object&&(i=n.get(t.constructor))?u[r]=i(t,c):ArrayBuffer.isView(t)?u[r]=h(t):u[r]=c(t)}return u}function d(s){if(typeof s!="object"||s===null)return s;if(Array.isArray(s))return m(s,d);if(s.constructor!==Object&&(i=n.get(s.constructor)))return i(s,d);let u={};for(let r in s){let t=s[r];typeof t!="object"||t===null?u[r]=t:t.constructor!==Object&&(i=n.get(t.constructor))?u[r]=i(t,d):ArrayBuffer.isView(t)?u[r]=h(t):u[r]=d(t)}return u}}function _(e){let n=[],i=[],m=new Map;if(m.set(Date,r=>new Date(r)),m.set(Map,(r,t)=>new Map(d(Array.from(r),t))),m.set(Set,(r,t)=>new Set(d(Array.from(r),t))),e.constructorHandlers)for(let r of e.constructorHandlers)m.set(r[0],r[1]);let c=null;return e.proto?u:s;function d(r,t){let a=Object.keys(r),o=new Array(a.length);for(let p=0;p<a.length;p++){let b=a[p],y=r[b];if(typeof y!="object"||y===null)o[b]=y;else if(y.constructor!==Object&&(c=m.get(y.constructor)))o[b]=c(y,t);else if(ArrayBuffer.isView(y))o[b]=h(y);else{let f=n.indexOf(y);f!==-1?o[b]=i[f]:o[b]=t(y)}}return o}function s(r){if(typeof r!="object"||r===null)return r;if(Array.isArray(r))return d(r,s);if(r.constructor!==Object&&(c=m.get(r.constructor)))return c(r,s);let t={};n.push(r),i.push(t);for(let a in r){if(Object.hasOwnProperty.call(r,a)===!1)continue;let o=r[a];if(typeof o!="object"||o===null)t[a]=o;else if(o.constructor!==Object&&(c=m.get(o.constructor)))t[a]=c(o,s);else if(ArrayBuffer.isView(o))t[a]=h(o);else{let p=n.indexOf(o);p!==-1?t[a]=i[p]:t[a]=s(o)}}return n.pop(),i.pop(),t}function u(r){if(typeof r!="object"||r===null)return r;if(Array.isArray(r))return d(r,u);if(r.constructor!==Object&&(c=m.get(r.constructor)))return c(r,u);let t={};n.push(r),i.push(t);for(let a in r){let o=r[a];if(typeof o!="object"||o===null)t[a]=o;else if(o.constructor!==Object&&(c=m.get(o.constructor)))t[a]=c(o,u);else if(ArrayBuffer.isView(o))t[a]=h(o);else{let p=n.indexOf(o);p!==-1?t[a]=i[p]:t[a]=u(o)}}return n.pop(),i.pop(),t}}});var z={};H(z,{cleanChangelogs:()=>q,defaults:()=>N,version:()=>T});var k=I(C(),1);var G=(0,k.default)();function g(e){return typeof e=="string"}function B(e){if(!(typeof e!="string"||!e)){if(e.includes("\r\n"))return"\r\n";if(e.includes("\n"))return"\n";if(e.includes("\r"))return"\r"}}var L="5.0.29";var T=L,N={extras:!1};function q(e,n){var s,u,r,t,a,o,p,b;if(e===void 0)throw new Error("lerna-clean-changelogs: [THROW_ID_01] The first input argument is missing!");if(!g(e))throw new Error("lerna-clean-changelogs: [THROW_ID_02] The first input argument must be a string! It was given as ".concat(Array.isArray(e)?"array":typeof e,", equal to:\n").concat(JSON.stringify(e,null,4)));let i=O(O({},N),n),m=B(e)||"\n",c,d=!1;if(typeof e=="string"&&(e!=null&&e.trim())){let y=g(e)&&!!e.length&&(e[~-e.length]==="\n"||e[~-e.length]==="\r");e=e==null?void 0:e.trim().replace(/(https:\/\/git\.sr\.ht\/~[^/]+\/[^/]+\/)commits\//g,"$1commit/");let f=e.split(/\r?\n/);i.extras&&f.forEach((l,A)=>{var j;l!=null&&l.startsWith("#")&&(f[A]=l.replace(/(#+) \[?(\d+\.\d+\.\d+)\s?\]\([^)]*\)/g,"$1 $2")),A&&((j=f[A])!=null&&j.startsWith("# "))&&(f[A]="#".concat(f[A]))});let w=[];for(let l=f.length;l--;){if((s=f[l])!=null&&s.startsWith("**Note:** Version bump only")||i.extras&&f[l].toLowerCase().includes("wip")){for(;l&&g(f[~-l])&&!((u=f[~-l])!=null&&u.trim());)l-=1;for(l&&g(f[~-l])&&((t=(r=f[~-l])==null?void 0:r.trim())!=null&&t.startsWith("#"))&&(l-=1);l&&g(f[~-l])&&!((a=f[~-l])!=null&&a.trim());)l-=1}else(o=f[l])!=null&&o.trim()?f[l][0]==="*"&&f[l][1]===" "?w.unshift("- ".concat(f[l].slice(2))):w.unshift(f[l]):d||(w.unshift((p=f[l])==null?void 0:p.trim()),d=!0);(b=f[l])!=null&&b.trim()&&(d=!1)}c="".concat(w.join(m)).concat(y?m:"")}return{version:T,res:c||e}}return J(z);})();
11
11
  /**
12
12
  * @name codsen-utils
13
13
  * @fileoverview Various utility functions
14
- * @version 1.6.18
15
- * @author Roy Revelt, Codsen Ltd
14
+ * @version 1.6.19
15
+ * @author Roy Revelt
16
16
  * @license MIT
17
17
  * {@link https://codsen.com/os/codsen-utils/}
18
18
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lerna-clean-changelogs",
3
- "version": "5.0.28",
3
+ "version": "5.0.29",
4
4
  "description": "Removes frivolous entries from commitizen generated changelogs",
5
5
  "keywords": [
6
6
  "changelog",
@@ -45,7 +45,7 @@
45
45
  "examples": "node '../../ops/scripts/run-examples.js'",
46
46
  "lect": "node '../../ops/lect/lect.js' && npm run prettier -- 'README.md' '.all-contributorsrc' 'rollup.config.js' --write",
47
47
  "letspublish": "npm publish --provenance || :",
48
- "lint": "eslint . --fix",
48
+ "lint": "eslint . --fix --concurrency=auto --cache",
49
49
  "perf": "node perf/check.js",
50
50
  "prep": "echo 'ready'",
51
51
  "prettier": "prettier",
@@ -72,7 +72,7 @@
72
72
  }
73
73
  },
74
74
  "dependencies": {
75
- "codsen-utils": "^1.6.18"
75
+ "codsen-utils": "^1.6.19"
76
76
  },
77
77
  "publishConfig": {
78
78
  "registry": "https://registry.npmjs.org/"