ranges-iterate 4.2.0 → 4.2.2

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/CHANGELOG.md CHANGED
@@ -3,12 +3,18 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 4.2.1 (2026-08-22)
7
+
8
+ ### Performance Improvements
9
+
10
+ - optimise package hot paths and JSON editing ([f3112bd](https://github.com/codsen/codsen/commit/f3112bd7fc0d7c9bc09312d3744c950691d72ca5))
11
+
6
12
  ## 4.2.0 (2026-08-19)
7
13
 
8
14
  ### Bug Fixes
9
15
 
10
16
  - make validation diagnostics safe ([7b01074](https://github.com/codsen/codsen/commit/7b0107476f12734aeb8e82852ba980b187280110))
11
- - resolve review findings REV-004 through REV-007 ([b60e9ee](https://github.com/codsen/codsen/commit/b60e9eeb499af94685cfb87b4970fe025be1fc10))
17
+ - resolve various review findings ([b60e9ee](https://github.com/codsen/codsen/commit/b60e9eeb499af94685cfb87b4970fe025be1fc10))
12
18
  - retire direct publish aliases ([f98e31e](https://github.com/codsen/codsen/commit/f98e31eb89bc185471225664e610b55f34fbf648))
13
19
 
14
20
  ### Features
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @name ranges-iterate
3
3
  * @fileoverview Iterate a string and any changes within given string index ranges
4
- * @version 4.2.0
4
+ * @version 4.2.2
5
5
  * @author Roy Revelt
6
6
  * @license MIT
7
7
  * {@link https://codsen.com/os/ranges-iterate/}
8
8
  */
9
9
 
10
- import{formatDiagnosticValue as u}from"codsen-utils";var p="4.2.0";var I=p;function x(t,s,n,c=0){if(typeof t!="string")throw new TypeError(`ranges-iterate/rIterate(): [THROW_ID_01] Input string must be a string! It was given as ${typeof t}, equal to: ${u(t)}`);if(!t.length)throw new TypeError("ranges-iterate/rIterate(): [THROW_ID_02] Input string must be non-empty!");if(s!=null&&!Array.isArray(s))throw new TypeError(`ranges-iterate/rIterate(): [THROW_ID_03] Input ranges must be an array, consisting of zero or more arrays! Currently its type is: ${typeof s}, equal to: ${u(s)}`);if(n){if(typeof n!="function")throw new TypeError(`ranges-iterate/rIterate(): [THROW_ID_05] The callback function (third input argument) must be a function. It was given as: ${typeof n}, equal to: ${u(n)}`)}else throw new TypeError("ranges-iterate/rIterate(): [THROW_ID_04] You should provide a callback function as third input argument!");if(s?.length){let e=s,o=c,r=c;if(r<e[0][0])for(;r<e[0][0]&&t[r];r++,o++)n({i:r,val:t[r]});if(e[0][0]<=o)for(let i=0;i<e.length;i++){let l=e[i];if(l[2])for(let a=0,d=l[2].length;a<d;a++)n({i:r,val:l[2][a]}),r+=1;for(;o<l[1];)o+=1;let m=t.length;for(e[i+1]&&(m=e[i+1][0]);o<m;r++,o++)n({i:r,val:t[o]})}}else for(let e=0;e<t.length;e++)n({i:e,val:t[e]})}export{x as rIterate,I as version};
10
+ import{formatDiagnosticValue as u}from"codsen-utils";var p="4.2.2";var I=p;function x(t,s,n,c=0){if(typeof t!="string")throw new TypeError(`ranges-iterate/rIterate(): [THROW_ID_01] Input string must be a string! It was given as ${typeof t}, equal to: ${u(t)}`);if(!t.length)throw new TypeError("ranges-iterate/rIterate(): [THROW_ID_02] Input string must be non-empty!");if(s!=null&&!Array.isArray(s))throw new TypeError(`ranges-iterate/rIterate(): [THROW_ID_03] Input ranges must be an array, consisting of zero or more arrays! Currently its type is: ${typeof s}, equal to: ${u(s)}`);if(n){if(typeof n!="function")throw new TypeError(`ranges-iterate/rIterate(): [THROW_ID_05] The callback function (third input argument) must be a function. It was given as: ${typeof n}, equal to: ${u(n)}`)}else throw new TypeError("ranges-iterate/rIterate(): [THROW_ID_04] You should provide a callback function as third input argument!");if(s?.length){let e=s,o=c,r=c;if(r<e[0][0])for(;r<e[0][0]&&t[r];r++,o++)n({i:r,val:t[r]});if(e[0][0]<=o)for(let i=0;i<e.length;i++){let l=e[i];if(l[2])for(let a=0,d=l[2].length;a<d;a++)n({i:r,val:l[2][a]}),r+=1;for(;o<l[1];)o+=1;let m=t.length;for(e[i+1]&&(m=e[i+1][0]);o<m;r++,o++)n({i:r,val:t[o]})}}else for(let e=0;e<t.length;e++)n({i:e,val:t[e]})}export{x as rIterate,I as version};
@@ -1,17 +1,25 @@
1
1
  /**
2
2
  * @name ranges-iterate
3
3
  * @fileoverview Iterate a string and any changes within given string index ranges
4
- * @version 4.2.0
4
+ * @version 4.2.2
5
5
  * @author Roy Revelt
6
6
  * @license MIT
7
7
  * {@link https://codsen.com/os/ranges-iterate/}
8
8
  */
9
9
 
10
- "use strict";var rangesIterate=(()=>{var x=Object.defineProperty;var D=Object.getOwnPropertyDescriptor;var O=Object.getOwnPropertyNames;var S=Object.prototype.hasOwnProperty;var j=(t,n)=>{for(var e in n)x(t,e,{get:n[e],enumerable:!0})},E=(t,n,e,i)=>{if(n&&typeof n=="object"||typeof n=="function")for(let l of O(n))!S.call(t,l)&&l!==e&&x(t,l,{get:()=>n[l],enumerable:!(i=D(n,l))||i.enumerable});return t};var W=t=>E(x({},"__esModule",{value:!0}),t);var U={};j(U,{rIterate:()=>L,version:()=>V});function R(){let t=[],n=0,e=!1;return{append(i){return e?!1:n+i.length>1999?(t.push("\u2026"),n+=1,e=!0,!1):(t.push(i),n+=i.length,!0)},result(){return t.join("")},stopped(){return e}}}function M(t){return"\\u".concat(t.toString(16).padStart(4,"0"))}function y(t,n){if(t.append('"')){for(let e=0;e<n.length&&!t.stopped();e+=1){let i=n.charCodeAt(e);i===34?t.append('\\"'):i===92?t.append("\\\\"):i===8?t.append("\\b"):i===9?t.append("\\t"):i===10?t.append("\\n"):i===12?t.append("\\f"):i===13?t.append("\\r"):i<32||i===8232||i===8233||i>=55296&&i<=57343?t.append(M(i)):t.append(n[e])}t.append('"')}}function B(t){return t.get&&t.set?"[Getter/Setter]":t.get?"[Getter]":t.set?"[Setter]":"[Accessor]"}function I(t,n){t.append("Symbol(");let e=String(n);e.length>8&&y(t,e.slice(7,-1)),t.append(")")}function A(t,n){typeof n=="symbol"?I(t,n):y(t,String(n))}function $(t,n=0){let e=R(),i=n===4?4:0,l=new WeakSet,u=0;function o(r){i&&e.append(" ".repeat(r*i))}function c(r,s){r&&e.append(","),i&&(e.append("\n"),o(s+1))}function g(r,s,a){i&&s&&(e.append("\n"),o(a)),e.append(r)}function m(r,s){Object.prototype.hasOwnProperty.call(r,"value")?w(r.value,s):e.append(B(r))}function b(r,s){let a;try{a=Reflect.getOwnPropertyDescriptor(r,"length")}catch(p){e.append("[Uninspectable]");return}let f=a==null?void 0:a.value;if(!Number.isSafeInteger(f)||f<0){e.append("[Uninspectable]");return}e.append("[");let d=!1;for(let p=0;p<f&&!e.stopped();p+=1){if(c(d,s),d=!0,u>=50){e.append("[MaxEntries]");break}u+=1;let h;try{h=Reflect.getOwnPropertyDescriptor(r,String(p))}catch(P){e.append("[Uninspectable]");continue}h!=null&&h.enumerable?m(h,s+1):e.append("[Empty]")}g("]",d,s)}function v(r,s){let a;try{a=Reflect.ownKeys(r)}catch(d){e.append("[Uninspectable]");return}e.append("{");let f=!1;for(let d of a){if(e.stopped())break;if(u>=50){c(f,s),f=!0,y(e,"\u2026"),e.append(i?": ":":"),e.append("[MaxEntries]");break}u+=1;let p;try{p=Reflect.getOwnPropertyDescriptor(r,d)}catch(h){c(f,s),f=!0,A(e,d),e.append(i?": ":":"),e.append("[Uninspectable]");continue}p!=null&&p.enumerable&&(c(f,s),f=!0,A(e,d),e.append(i?": ":":"),m(p,s+1))}g("}",f,s)}function k(r,s){if(l.has(r)){e.append("[Circular]");return}if(s>=5){e.append("[MaxDepth]");return}let a;try{a=Array.isArray(r)}catch(f){e.append("[Uninspectable]");return}l.add(r);try{a?b(r,s):v(r,s)}finally{l.delete(r)}}function w(r,s){r===null?e.append("null"):typeof r=="string"?y(e,r):typeof r=="number"?e.append(Object.is(r,-0)?"-0":String(r)):typeof r=="boolean"?e.append(r?"true":"false"):typeof r>"u"?e.append("undefined"):typeof r=="bigint"?e.append("".concat(r,"n")):typeof r=="symbol"?I(e,r):typeof r=="function"?e.append("[Function]"):k(r,s)}try{return w(t,0),e.result()}catch(r){return"[Uninspectable]"}}var _=new Set([..."\u060B$\u20BC\u17DB\xA5\u20A1\u20B1\xA3\u20AC\xA2\u20B9\uFDFC\u20AA\u20A9\u20AD\u20A8\u20AE\u20A6\u20BD\u20AB\u0E3F\u20A9\u20BA\u20B4","$U","$b","B/.","BZ$","Br","Bs","C$","CHF","Ft","Gs","J$","KM","K\u010D","L","MT","NT$","P","Q","R","R$","RD$","RM","Rp","S","S/.","TT$","Z$","kn","kr","lei","z\u0142","\u0192","\u0414\u0438\u043D.","\u0434\u0435\u043D","\u043B\u0432","\u062F.\u0625","Lek"]);var C="4.2.0";var V=C;function L(t,n,e,i=0){if(typeof t!="string")throw new TypeError("ranges-iterate/rIterate(): [THROW_ID_01] Input string must be a string! It was given as ".concat(typeof t,", equal to: ").concat($(t)));if(!t.length)throw new TypeError("ranges-iterate/rIterate(): [THROW_ID_02] Input string must be non-empty!");if(n!=null&&!Array.isArray(n))throw new TypeError("ranges-iterate/rIterate(): [THROW_ID_03] Input ranges must be an array, consisting of zero or more arrays! Currently its type is: ".concat(typeof n,", equal to: ").concat($(n)));if(e){if(typeof e!="function")throw new TypeError("ranges-iterate/rIterate(): [THROW_ID_05] The callback function (third input argument) must be a function. It was given as: ".concat(typeof e,", equal to: ").concat($(e)))}else throw new TypeError("ranges-iterate/rIterate(): [THROW_ID_04] You should provide a callback function as third input argument!");if(n!=null&&n.length){let l=n,u=i,o=i;if(o<l[0][0])for(;o<l[0][0]&&t[o];o++,u++)e({i:o,val:t[o]});if(l[0][0]<=u)for(let c=0;c<l.length;c++){let g=l[c];if(g[2])for(let b=0,v=g[2].length;b<v;b++)e({i:o,val:g[2][b]}),o+=1;for(;u<g[1];)u+=1;let m=t.length;for(l[c+1]&&(m=l[c+1][0]);u<m;o++,u++)e({i:o,val:t[u]})}}else for(let l=0;l<t.length;l++)e({i:l,val:t[l]})}return W(U);})();
10
+ "use strict";var rangesIterate=(()=>{var $=Object.defineProperty;var E=Object.getOwnPropertyDescriptor;var W=Object.getOwnPropertyNames;var P=Object.prototype.hasOwnProperty;var M=(_,r)=>{for(var e in r)$(_,e,{get:r[e],enumerable:!0})},B=(_,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of W(r))!P.call(_,i)&&i!==e&&$(_,i,{get:()=>r[i],enumerable:!(n=E(r,i))||n.enumerable});return _};var V=_=>B($({},"__esModule",{value:!0}),_);var Q={};M(Q,{rIterate:()=>K,version:()=>H});function T(){let _=[],r=0,e=!1;return{append(n){return e?!1:r+n.length>1999?(_.push("\u2026"),r+=1,e=!0,!1):(_.push(n),r+=n.length,!0)},result(){return _.join("")},stopped(){return e}}}function L(_){return"\\u".concat(_.toString(16).padStart(4,"0"))}function y(_,r){if(_.append('"')){for(let e=0;e<r.length&&!_.stopped();e+=1){let n=r.charCodeAt(e);n===34?_.append('\\"'):n===92?_.append("\\\\"):n===8?_.append("\\b"):n===9?_.append("\\t"):n===10?_.append("\\n"):n===12?_.append("\\f"):n===13?_.append("\\r"):n<32||n===8232||n===8233||n>=55296&&n<=57343?_.append(L(n)):_.append(r[e])}_.append('"')}}function z(_){return _.get&&_.set?"[Getter/Setter]":_.get?"[Getter]":_.set?"[Setter]":"[Accessor]"}function A(_,r){_.append("Symbol(");let e=String(r);e.length>8&&y(_,e.slice(7,-1)),_.append(")")}function j(_,r){typeof r=="symbol"?A(_,r):y(_,String(r))}function b(_,r=0){let e=T(),n=r===4?4:0,i=new WeakSet,s=0;function o(t){n&&e.append(" ".repeat(t*n))}function c(t,l){t&&e.append(","),n&&(e.append("\n"),o(l+1))}function g(t,l,a){n&&l&&(e.append("\n"),o(a)),e.append(t)}function h(t,l){Object.prototype.hasOwnProperty.call(t,"value")?w(t.value,l):e.append(z(t))}function m(t,l){let a;try{a=Reflect.getOwnPropertyDescriptor(t,"length")}catch(f){e.append("[Uninspectable]");return}let u=a==null?void 0:a.value;if(!Number.isSafeInteger(u)||u<0){e.append("[Uninspectable]");return}e.append("[");let p=!1;for(let f=0;f<u&&!e.stopped();f+=1){if(c(p,l),p=!0,s>=50){e.append("[MaxEntries]");break}s+=1;let d;try{d=Reflect.getOwnPropertyDescriptor(t,String(f))}catch(J){e.append("[Uninspectable]");continue}d!=null&&d.enumerable?h(d,l+1):e.append("[Empty]")}g("]",p,l)}function v(t,l){let a;try{a=Reflect.ownKeys(t)}catch(p){e.append("[Uninspectable]");return}e.append("{");let u=!1;for(let p of a){if(e.stopped())break;if(s>=50){c(u,l),u=!0,y(e,"\u2026"),e.append(n?": ":":"),e.append("[MaxEntries]");break}s+=1;let f;try{f=Reflect.getOwnPropertyDescriptor(t,p)}catch(d){c(u,l),u=!0,j(e,p),e.append(n?": ":":"),e.append("[Uninspectable]");continue}f!=null&&f.enumerable&&(c(u,l),u=!0,j(e,p),e.append(n?": ":":"),h(f,l+1))}g("}",u,l)}function R(t,l){if(i.has(t)){e.append("[Circular]");return}if(l>=5){e.append("[MaxDepth]");return}let a;try{a=Array.isArray(t)}catch(u){e.append("[Uninspectable]");return}i.add(t);try{a?m(t,l):v(t,l)}finally{i.delete(t)}}function w(t,l){t===null?e.append("null"):typeof t=="string"?y(e,t):typeof t=="number"?e.append(Object.is(t,-0)?"-0":String(t)):typeof t=="boolean"?e.append(t?"true":"false"):typeof t>"u"?e.append("undefined"):typeof t=="bigint"?e.append("".concat(t,"n")):typeof t=="symbol"?A(e,t):typeof t=="function"?e.append("[Function]"):R(t,l)}try{return w(_,0),e.result()}catch(t){return"[Uninspectable]"}}var N=["_16_0_a_0_4_0_5_m_1_u_1_cp_4_b_e_4_7_0_1_0_3l_4_1_1_2_3_1_0_6_0_1_2_1_0_1_j_1_2a_1_3u_8_4l_1_11_2_0_","6_14_1z_q_4_3_19_16_z_1_1_2q_1_0_f_1_7_1_a_2_2_0_g_0_1_t_t_2g_b_0_o_w_9_1_4_0_5_l_4_0_9_0_3_0_n_o_7_","a_5_n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t_34","_6_1_1_1_11_l_0_p_5_1_1_1_v_e_0_n_17_78_i_f_0_1_c_1_x_3g_0_27_pl_6e_5f_218_2o_f_tr_h_5_p_32y_5_g6_5a","1_t_1cy_fs_7_u_h_26_h_t_i_1b_g_3_v_k_5_i_c0_18_5v_1r_w_o_2_o_18_22_5_0_1u_c_1s_1_1_0_e_1_c_5p1_15_v_","2p_36_6pp_3_1_6_1_1_1_82_f_0_t_2_2_0_e_3_8_az_1s4_2y_5_c_3_8_7_9_4me_2c_1_1y_1_1_2_0_2_1_2_3_1_b_1_0","_1_6_1_1s_1_3_2_7_1_6_1_r_1_3_1_4_1_0_3_6_1_9f_2_o_1_o_1_u_1_o_1_u_1_o_1_u_1_o_1_u_1_o_1_7_1f8_u_6_5","_79_1p_42_18_a_6_g_0_8x_t_i_17_dg_r_6c_t_2_0_5r_u_1_2_1_1_1_6_2_4_9_1_68_6_1_3_1_1_1_e_1_5g_1n_1v_7_","0_xg_3_1_q_1_1_1_0_2_0_1_9_1_3_1_0_1_0_6_0_4_0_1_0_1_0_1_2_1_1_1_0_2_0_1_0_1_0_1_0_1_0_1_1_1_0_2_3_1","_6_1_3_1_3_1_0_1_9_1_g_5_2_1_4_1_g_3es_wyn_w_3dp_2_4gd_2_5rk_f_h9_1wi_f1_15u_3t6_5_6jt"].join(""),x=N.slice(1).split("_"),U=[],O=127;for(let _=0;_<x.length;_+=2){let r=O+1+Number.parseInt(x[_],36),e=r+Number.parseInt(x[_+1],36);U.push([r,e]),O=e}var ee=new Set([..."\u060B$\u20BC\u17DB\xA5\u20A1\u20B1\xA3\u20AC\xA2\u20B9\uFDFC\u20AA\u20A9\u20AD\u20A8\u20AE\u20A6\u20BD\u20AB\u0E3F\u20A9\u20BA\u20B4","$U","$b","B/.","BZ$","Br","Bs","C$","CHF","Ft","Gs","J$","KM","K\u010D","L","MT","NT$","P","Q","R","R$","RD$","RM","Rp","S","S/.","TT$","Z$","kn","kr","lei","z\u0142","\u0192","\u0414\u0438\u043D.","\u0434\u0435\u043D","\u043B\u0432","\u062F.\u0625","Lek"]);var F=Function.prototype.toString,_e=F.call(Object);var te=Map.prototype.entries,re=Set.prototype.values;var I,ne=(I=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength"))==null?void 0:I.get,k,ie=(k=Object.getOwnPropertyDescriptor(RegExp.prototype,"flags"))==null?void 0:k.get,D,le=(D=Object.getOwnPropertyDescriptor(RegExp.prototype,"global"))==null?void 0:D.get,C,oe=(C=Object.getOwnPropertyDescriptor(RegExp.prototype,"source"))==null?void 0:C.get,se=RegExp.prototype.test;var ae=Date.prototype.getTime;var S="4.2.2";var H=S;function K(_,r,e,n=0){if(typeof _!="string")throw new TypeError("ranges-iterate/rIterate(): [THROW_ID_01] Input string must be a string! It was given as ".concat(typeof _,", equal to: ").concat(b(_)));if(!_.length)throw new TypeError("ranges-iterate/rIterate(): [THROW_ID_02] Input string must be non-empty!");if(r!=null&&!Array.isArray(r))throw new TypeError("ranges-iterate/rIterate(): [THROW_ID_03] Input ranges must be an array, consisting of zero or more arrays! Currently its type is: ".concat(typeof r,", equal to: ").concat(b(r)));if(e){if(typeof e!="function")throw new TypeError("ranges-iterate/rIterate(): [THROW_ID_05] The callback function (third input argument) must be a function. It was given as: ".concat(typeof e,", equal to: ").concat(b(e)))}else throw new TypeError("ranges-iterate/rIterate(): [THROW_ID_04] You should provide a callback function as third input argument!");if(r!=null&&r.length){let i=r,s=n,o=n;if(o<i[0][0])for(;o<i[0][0]&&_[o];o++,s++)e({i:o,val:_[o]});if(i[0][0]<=s)for(let c=0;c<i.length;c++){let g=i[c];if(g[2])for(let m=0,v=g[2].length;m<v;m++)e({i:o,val:g[2][m]}),o+=1;for(;s<g[1];)s+=1;let h=_.length;for(i[c+1]&&(h=i[c+1][0]);s<h;o++,s++)e({i:o,val:_[s]})}}else for(let i=0;i<_.length;i++)e({i,val:_[i]})}return V(Q);})();
11
+ /**
12
+ * @name codsen-format-diagnostic-value
13
+ * @fileoverview Safely format untrusted JavaScript values for diagnostics
14
+ * @version 1.1.0
15
+ * @author Roy Revelt
16
+ * @license MIT
17
+ * {@link https://codsen.com/os/codsen-format-diagnostic-value/}
18
+ */
11
19
  /**
12
20
  * @name codsen-utils
13
21
  * @fileoverview Various utility functions
14
- * @version 1.8.0
22
+ * @version 1.10.0
15
23
  * @author Roy Revelt
16
24
  * @license MIT
17
25
  * {@link https://codsen.com/os/codsen-utils/}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ranges-iterate",
3
- "version": "4.2.0",
3
+ "version": "4.2.2",
4
4
  "description": "Iterate a string and any changes within given string index ranges",
5
5
  "keywords": [
6
6
  "array",
@@ -66,7 +66,7 @@
66
66
  }
67
67
  },
68
68
  "dependencies": {
69
- "codsen-utils": "^1.8.0"
69
+ "codsen-utils": "^1.10.0"
70
70
  },
71
71
  "engines": {
72
72
  "node": ">=18.20.8"