ast-monkey-traverse-with-lookahead 4.2.4 → 4.2.5
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,6 +3,12 @@
|
|
|
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.4 (2026-09-06)
|
|
7
|
+
|
|
8
|
+
### Performance Improvements
|
|
9
|
+
|
|
10
|
+
- Recorded a 30.71% higher normalized benchmark score than v4.1.3 (15,634 → 20,435).
|
|
11
|
+
|
|
6
12
|
## 4.2.2 (2026-08-22)
|
|
7
13
|
|
|
8
14
|
### Performance Improvements
|
|
@@ -23,11 +29,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
23
29
|
- add codsen-glob and migrate glob consumers ([5595a2b](https://github.com/codsen/codsen/commit/5595a2b267eaa6cb60072d037aef00b7a28edd42))
|
|
24
30
|
- refresh the tooling and generate with the latest dependencies ([781f802](https://github.com/codsen/codsen/commit/781f802911066a82a4533b0e5a3fcbd742d0dd83))
|
|
25
31
|
|
|
26
|
-
### Reverts
|
|
27
|
-
|
|
28
|
-
- Revert "Merge pull request #128 from codsen/release/npm-32198404552-1" ([5baeeaa](https://github.com/codsen/codsen/commit/5baeeaaa677b86f1eaa6396cadf3aea32b06416e)), closes [#128](https://github.com/codsen/codsen/issues/128)
|
|
29
|
-
- Revert "Merge pull request #127 from codsen/release/npm-32194020886-1" ([5f1e94d](https://github.com/codsen/codsen/commit/5f1e94deef910ce735266b16aeee08a76de7a862)), closes [#127](https://github.com/codsen/codsen/issues/127)
|
|
30
|
-
|
|
31
32
|
## 4.0.0 (2022-12-01)
|
|
32
33
|
|
|
33
34
|
### BREAKING CHANGES
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name ast-monkey-traverse-with-lookahead
|
|
3
3
|
* @fileoverview Utility library to traverse AST, reports upcoming values
|
|
4
|
-
* @version 4.2.
|
|
4
|
+
* @version 4.2.5
|
|
5
5
|
* @author Roy Revelt
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/ast-monkey-traverse-with-lookahead/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import{deepClone as u,isPlainObject as f}from"codsen-utils";var h="4.2.
|
|
10
|
+
import{deepClone as u,isPlainObject as f}from"codsen-utils";var h="4.2.5";var V=h;function D(y,a,$=0){if(typeof a!="function")throw new TypeError(`ast-monkey-traverse-with-lookahead/traverse(): [THROW_ID_01] The second argument must be a callback function. It was ${typeof a}.`);function l(e){return typeof e=="string"&&e[0]==="."?e.slice(1):e}let g={now:!1},s=[];function m(e,o,t,r){if(t={...t},t.depth+=1,Array.isArray(e))for(let n=0,i=e.length;n<i&&!r.now;n++){let c=`${t.path}.${n}`;t.parent=u(e),t.parentType="array",o(e[n],void 0,{...t,path:l(c)},r),m(e[n],o,{...t,path:l(c)},r)}else if(f(e))for(let n in e){if(r.now&&n!=null)break;let i=`${t.path}.${n}`;t.depth===0&&n!=null&&(t.topmostKey=n),t.parent=u(e),t.parentType="object",o(n,e[n],{...t,path:l(i)},r),m(e[n],o,{...t,path:l(i)},r)}}function p(){let e=s.shift();e[2].next=[];for(let o=0;o<$&&s[o];o++)e[2].next.push(u([s[o][0],s[o][1],s[o][2]]));a(...e)}function d(...e){s.push([...e]),s.length>$&&p()}if(m(y,d,{depth:-1,path:""},g),s.length)for(let e=0,o=s.length;e<o;e++)p()}export{D as traverse,V as version};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name ast-monkey-traverse-with-lookahead
|
|
3
3
|
* @fileoverview Utility library to traverse AST, reports upcoming values
|
|
4
|
-
* @version 4.2.
|
|
4
|
+
* @version 4.2.5
|
|
5
5
|
* @author Roy Revelt
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/ast-monkey-traverse-with-lookahead/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
"use strict";var astMonkeyTraverseWithLookahead=(()=>{var $=Object.defineProperty,B=Object.defineProperties,L=Object.getOwnPropertyDescriptor,U=Object.getOwnPropertyDescriptors,z=Object.getOwnPropertyNames,S=Object.getOwnPropertySymbols;var D=Object.prototype.hasOwnProperty,J=Object.prototype.propertyIsEnumerable;var w=(e,t,_)=>t in e?$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:_}):e[t]=_,g=(e,t)=>{for(var _ in t||(t={}))D.call(t,_)&&w(e,_,t[_]);if(S)for(var _ of S(t))J.call(t,_)&&w(e,_,t[_]);return e},m=(e,t)=>B(e,U(t));var H=(e,t)=>{for(var _ in t)$(e,_,{get:t[_],enumerable:!0})},q=(e,t,_,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of z(t))!D.call(e,i)&&i!==_&&$(e,i,{get:()=>t[i],enumerable:!(o=L(t,i))||o.enumerable});return e};var G=e=>q($({},"__esModule",{value:!0}),e);var y=(e,t,_)=>w(e,typeof t!="symbol"?t+"":t,_);var he={};H(he,{traverse:()=>pe,version:()=>fe});var K=["_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_1_6_g_15_1m_1h_3_0_i_0_7_9_f_f_4_7_2_1_2_l_1_6_1_0_3_3_3_0_g_0_d_1_1_2_e_1_a_0_8_5_4_1_2_l_1_6","_1_1_1_1_1_1_v_3_1_0_j_2_g_8_1_2_1_l_1_6_1_1_1_4_3_0_i_0_f_1_n_0_b_7_2_1_2_l_1_6_1_1_1_4_3_0_u_1_1_2","_f_0_h_0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_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(""),A=K.slice(1).split("_"),Q=[],E=127;for(let e=0;e<A.length;e+=2){let t=E+1+Number.parseInt(A[e],36),_=t+Number.parseInt(A[e+1],36);Q.push([t,_]),E=_}var be=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 R=Function.prototype.toString,Z=R.call(Object),Y=class{constructor(){y(this,"hasRepeatedReferences",!1);y(this,"clones",[]);y(this,"index");y(this,"sources",[])}get(e){if(this.index){let _=this.index.get(e);return _!==void 0&&(this.hasRepeatedReferences=!0),_}let t=this.sources.indexOf(e);if(t!==-1)return this.hasRepeatedReferences=!0,this.clones[t]}set(e,t){if(this.index){this.index.set(e,t);return}if(this.sources.push(e),this.clones.push(t),this.sources.length===32){this.index=new WeakMap;for(let _=0;_<this.sources.length;_++)this.index.set(this.sources[_],this.clones[_]);this.sources=[],this.clones=[]}}};function P(e,t){let _=t.get(e);if(_!==void 0)return _;let o=e.slice(0);return t.set(e,o),o}function X(e,t){if(typeof Buffer<"u"&&Buffer.isBuffer(e)){let l=Buffer.from(e);return t.set(e,l),l}let _=P(e.buffer,t);if(e instanceof DataView||Object.prototype.toString.call(e)==="[object DataView]"){let l=new DataView(_,e.byteOffset,e.byteLength);return t.set(e,l),l}let o=e.constructor,i=new o(_,e.byteOffset,e.length);return t.set(e,i),i}function ee(e,t,_){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,value:_,writable:!0})}function v(e,t,_,o){for(let i of _){let l=t[i],c=typeof l!="object"||l===null?l:p(l,o);i==="__proto__"?ee(e,i,c):e[i]=c}}function d(e,t,_,o){for(let i of _){let l=Object.getOwnPropertyDescriptor(t,i);if(l){if("value"in l){let c=l.value;l.value=typeof c!="object"||c===null?c:p(c,o)}Object.defineProperty(e,i,l)}}}var te=Map.prototype.entries,_e=Set.prototype.values,j=Object.prototype.toString,C,re=(C=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength"))==null?void 0:C.get,N,ne=(N=Object.getOwnPropertyDescriptor(RegExp.prototype,"flags"))==null?void 0:N.get,I,$e=(I=Object.getOwnPropertyDescriptor(RegExp.prototype,"global"))==null?void 0:I.get,V,M=(V=Object.getOwnPropertyDescriptor(RegExp.prototype,"source"))==null?void 0:V.get,ve=RegExp.prototype.test,O;function le(e){if(e instanceof ArrayBuffer)return!0;try{return re.call(e),!0}catch(t){return!1}}function oe(e){try{return te.call(e)}catch(t){return null}}function ie(e){try{return _e.call(e)}catch(t){return null}}function se(e){var t;try{return O||(O=(t=Object.getOwnPropertyDescriptor(URL.prototype,"href"))==null?void 0:t.get),O.call(e)}catch(_){return null}}function p(e,t){if(typeof e!="object"||e===null)return e;let _=t.get(e);if(_!==void 0)return _;if(Array.isArray(e)){let r=e.length,n=new Array(r);t.set(e,n);let a=e,s=Object.keys(e);if(s.length===r&&(r===0||s[r-1]==="".concat(r-1)))for(let f=0;f<r;f++){let u=a[f];n[f]=typeof u!="object"||u===null?u:p(u,t)}else v(n,a,s,t);return n}let o=Object.getPrototypeOf(e);if(o===Object.prototype){let r={};return t.set(e,r),v(r,e,Object.keys(e),t),r}if(o===null){let r=Object.create(null);return t.set(e,r),v(r,e,Object.keys(e),t),r}if(ue(e)){let r=new Date(W.call(e));return t.set(e,r),d(r,e,Object.keys(e),t),r}if(ArrayBuffer.isView(e))return X(e,t);if(le(e)||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return P(e,t);let i=oe(e);if(i){let r=new Map;t.set(e,r);for(let[n,a]of i)r.set(p(n,t),p(a,t));return d(r,e,Object.keys(e),t),r}let l=ie(e);if(l){let r=new Set;t.set(e,r);for(let n of l)r.add(p(n,t));return d(r,e,Object.keys(e),t),r}if(ae(e)&&e!==RegExp.prototype){let r=new RegExp(M.call(e),ne.call(e));return r.lastIndex=e.lastIndex,t.set(e,r),d(r,e,Object.keys(e),t),r}let c=se(e);if(c!==null){let r=new URL(c);return t.set(e,r),d(r,e,Object.keys(e),t),r}if(e instanceof Error||j.call(e)==="[object Error]"){let r=Object.create(Object.getPrototypeOf(e));return t.set(e,r),d(r,e,Reflect.ownKeys(e),t),r}let h=Object.create(o);return t.set(e,h),v(h,e,Object.keys(e),t),h}function k(e){return p(e,new Y)}function T(e){var o;if(e==null||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;let _=Object.getOwnPropertyDescriptor(t,"constructor");return!_||!("value"in _)||typeof _.value!="function"?!1:((o=Object.getOwnPropertyDescriptor(_.value,"prototype"))==null?void 0:o.value)===t&&R.call(_.value)===Z}function ae(e){if(e===null||typeof e!="object")return!1;try{return e instanceof RegExp?(e.source,!0):j.call(e)!=="[object RegExp]"?!1:(M.call(e),!0)}catch(t){return!1}}var W=Date.prototype.getTime;function ue(e){if(e instanceof Date)return!0;if(e===null||typeof e!="object"||j.call(e)!=="[object Date]")return!1;try{return W.call(e),!0}catch(t){return!1}}var F="4.2.4";var fe=F;function pe(e,t,_=0){if(typeof t!="function")throw new TypeError("ast-monkey-traverse-with-lookahead/traverse(): [THROW_ID_01] The second argument must be a callback function. It was ".concat(typeof t,"."));function o(n){return typeof n=="string"&&n[0]==="."?n.slice(1):n}let i={now:!1},l=[];function c(n,a,s,f){if(s=g({},s),s.depth+=1,Array.isArray(n))for(let u=0,b=n.length;u<b&&!f.now;u++){let x="".concat(s.path,".").concat(u);s.parent=k(n),s.parentType="array",a(n[u],void 0,m(g({},s),{path:o(x)}),f),c(n[u],a,m(g({},s),{path:o(x)}),f)}else if(T(n))for(let u in n){if(f.now&&u!=null)break;let b="".concat(s.path,".").concat(u);s.depth===0&&u!=null&&(s.topmostKey=u),s.parent=k(n),s.parentType="object",a(u,n[u],m(g({},s),{path:o(b)}),f),c(n[u],a,m(g({},s),{path:o(b)}),f)}}function h(){let n=l.shift();n[2].next=[];for(let a=0;a<_&&l[a];a++)n[2].next.push(k([l[a][0],l[a][1],l[a][2]]));t(...n)}function r(...n){l.push([...n]),l.length>_&&h()}if(c(e,r,{depth:-1,path:""},i),l.length)for(let n=0,a=l.length;n<a;n++)h()}return G(he);})();
|
|
10
|
+
"use strict";var astMonkeyTraverseWithLookahead=(()=>{var $=Object.defineProperty,B=Object.defineProperties,L=Object.getOwnPropertyDescriptor,U=Object.getOwnPropertyDescriptors,z=Object.getOwnPropertyNames,S=Object.getOwnPropertySymbols;var D=Object.prototype.hasOwnProperty,J=Object.prototype.propertyIsEnumerable;var w=(e,t,_)=>t in e?$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:_}):e[t]=_,g=(e,t)=>{for(var _ in t||(t={}))D.call(t,_)&&w(e,_,t[_]);if(S)for(var _ of S(t))J.call(t,_)&&w(e,_,t[_]);return e},m=(e,t)=>B(e,U(t));var H=(e,t)=>{for(var _ in t)$(e,_,{get:t[_],enumerable:!0})},q=(e,t,_,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of z(t))!D.call(e,i)&&i!==_&&$(e,i,{get:()=>t[i],enumerable:!(o=L(t,i))||o.enumerable});return e};var G=e=>q($({},"__esModule",{value:!0}),e);var y=(e,t,_)=>w(e,typeof t!="symbol"?t+"":t,_);var he={};H(he,{traverse:()=>pe,version:()=>fe});var K=["_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_1_6_g_15_1m_1h_3_0_i_0_7_9_f_f_4_7_2_1_2_l_1_6_1_0_3_3_3_0_g_0_d_1_1_2_e_1_a_0_8_5_4_1_2_l_1_6","_1_1_1_1_1_1_v_3_1_0_j_2_g_8_1_2_1_l_1_6_1_1_1_4_3_0_i_0_f_1_n_0_b_7_2_1_2_l_1_6_1_1_1_4_3_0_u_1_1_2","_f_0_h_0_1_5_3_2_1_3_3_1_1_0_1_1_3_1_3_2_3_b_m_0_1g_7_1_2_1_m_1_f_3_0_q_2_1_1_2_1_u_0_4_7_1_2_1_m_1_","9_1_4_3_0_u_2_1_1_f_1_h_8_1_2_1_14_2_0_g_0_5_2_8_2_o_5_5_h_3_n_1_8_1_0_2_6_1m_1b_1_1_c_6_1m_1_1_0_1_","4_1_n_1_0_1_9_1_1_9_0_2_4_1_0_l_3_w_0_1r_7_1_z_r_4_37_16_k_0_g_5_4_3_3_0_3_1_7_2_4_c_c_0_h_11_1_0_5_","0_2_16_1_98_1_3_2_6_1_0_1_3_2_14_1_3_2_w_1_3_2_6_1_0_1_3_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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(""),A=K.slice(1).split("_"),Q=[],E=127;for(let e=0;e<A.length;e+=2){let t=E+1+Number.parseInt(A[e],36),_=t+Number.parseInt(A[e+1],36);Q.push([t,_]),E=_}var be=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 R=Function.prototype.toString,Z=R.call(Object),Y=class{constructor(){y(this,"hasRepeatedReferences",!1);y(this,"clones",[]);y(this,"index");y(this,"sources",[])}get(e){if(this.index){let _=this.index.get(e);return _!==void 0&&(this.hasRepeatedReferences=!0),_}let t=this.sources.indexOf(e);if(t!==-1)return this.hasRepeatedReferences=!0,this.clones[t]}set(e,t){if(this.index){this.index.set(e,t);return}if(this.sources.push(e),this.clones.push(t),this.sources.length===32){this.index=new WeakMap;for(let _=0;_<this.sources.length;_++)this.index.set(this.sources[_],this.clones[_]);this.sources=[],this.clones=[]}}};function P(e,t){let _=t.get(e);if(_!==void 0)return _;let o=e.slice(0);return t.set(e,o),o}function X(e,t){if(typeof Buffer<"u"&&Buffer.isBuffer(e)){let l=Buffer.from(e);return t.set(e,l),l}let _=P(e.buffer,t);if(e instanceof DataView||Object.prototype.toString.call(e)==="[object DataView]"){let l=new DataView(_,e.byteOffset,e.byteLength);return t.set(e,l),l}let o=e.constructor,i=new o(_,e.byteOffset,e.length);return t.set(e,i),i}function ee(e,t,_){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,value:_,writable:!0})}function v(e,t,_,o){for(let i of _){let l=t[i],c=typeof l!="object"||l===null?l:p(l,o);i==="__proto__"?ee(e,i,c):e[i]=c}}function d(e,t,_,o){for(let i of _){let l=Object.getOwnPropertyDescriptor(t,i);if(l){if("value"in l){let c=l.value;l.value=typeof c!="object"||c===null?c:p(c,o)}Object.defineProperty(e,i,l)}}}var te=Map.prototype.entries,_e=Set.prototype.values,j=Object.prototype.toString,C,re=(C=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength"))==null?void 0:C.get,N,ne=(N=Object.getOwnPropertyDescriptor(RegExp.prototype,"flags"))==null?void 0:N.get,I,$e=(I=Object.getOwnPropertyDescriptor(RegExp.prototype,"global"))==null?void 0:I.get,V,M=(V=Object.getOwnPropertyDescriptor(RegExp.prototype,"source"))==null?void 0:V.get,ve=RegExp.prototype.test,O;function le(e){if(e instanceof ArrayBuffer)return!0;try{return re.call(e),!0}catch(t){return!1}}function oe(e){try{return te.call(e)}catch(t){return null}}function ie(e){try{return _e.call(e)}catch(t){return null}}function se(e){var t;try{return O||(O=(t=Object.getOwnPropertyDescriptor(URL.prototype,"href"))==null?void 0:t.get),O.call(e)}catch(_){return null}}function p(e,t){if(typeof e!="object"||e===null)return e;let _=t.get(e);if(_!==void 0)return _;if(Array.isArray(e)){let r=e.length,n=new Array(r);t.set(e,n);let a=e,s=Object.keys(e);if(s.length===r&&(r===0||s[r-1]==="".concat(r-1)))for(let f=0;f<r;f++){let u=a[f];n[f]=typeof u!="object"||u===null?u:p(u,t)}else v(n,a,s,t);return n}let o=Object.getPrototypeOf(e);if(o===Object.prototype){let r={};return t.set(e,r),v(r,e,Object.keys(e),t),r}if(o===null){let r=Object.create(null);return t.set(e,r),v(r,e,Object.keys(e),t),r}if(ue(e)){let r=new Date(W.call(e));return t.set(e,r),d(r,e,Object.keys(e),t),r}if(ArrayBuffer.isView(e))return X(e,t);if(le(e)||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return P(e,t);let i=oe(e);if(i){let r=new Map;t.set(e,r);for(let[n,a]of i)r.set(p(n,t),p(a,t));return d(r,e,Object.keys(e),t),r}let l=ie(e);if(l){let r=new Set;t.set(e,r);for(let n of l)r.add(p(n,t));return d(r,e,Object.keys(e),t),r}if(ae(e)&&e!==RegExp.prototype){let r=new RegExp(M.call(e),ne.call(e));return r.lastIndex=e.lastIndex,t.set(e,r),d(r,e,Object.keys(e),t),r}let c=se(e);if(c!==null){let r=new URL(c);return t.set(e,r),d(r,e,Object.keys(e),t),r}if(e instanceof Error||j.call(e)==="[object Error]"){let r=Object.create(Object.getPrototypeOf(e));return t.set(e,r),d(r,e,Reflect.ownKeys(e),t),r}let h=Object.create(o);return t.set(e,h),v(h,e,Object.keys(e),t),h}function k(e){return p(e,new Y)}function T(e){var o;if(e==null||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;let _=Object.getOwnPropertyDescriptor(t,"constructor");return!_||!("value"in _)||typeof _.value!="function"?!1:((o=Object.getOwnPropertyDescriptor(_.value,"prototype"))==null?void 0:o.value)===t&&R.call(_.value)===Z}function ae(e){if(e===null||typeof e!="object")return!1;try{return e instanceof RegExp?(e.source,!0):j.call(e)!=="[object RegExp]"?!1:(M.call(e),!0)}catch(t){return!1}}var W=Date.prototype.getTime;function ue(e){if(e instanceof Date)return!0;if(e===null||typeof e!="object"||j.call(e)!=="[object Date]")return!1;try{return W.call(e),!0}catch(t){return!1}}var F="4.2.5";var fe=F;function pe(e,t,_=0){if(typeof t!="function")throw new TypeError("ast-monkey-traverse-with-lookahead/traverse(): [THROW_ID_01] The second argument must be a callback function. It was ".concat(typeof t,"."));function o(n){return typeof n=="string"&&n[0]==="."?n.slice(1):n}let i={now:!1},l=[];function c(n,a,s,f){if(s=g({},s),s.depth+=1,Array.isArray(n))for(let u=0,b=n.length;u<b&&!f.now;u++){let x="".concat(s.path,".").concat(u);s.parent=k(n),s.parentType="array",a(n[u],void 0,m(g({},s),{path:o(x)}),f),c(n[u],a,m(g({},s),{path:o(x)}),f)}else if(T(n))for(let u in n){if(f.now&&u!=null)break;let b="".concat(s.path,".").concat(u);s.depth===0&&u!=null&&(s.topmostKey=u),s.parent=k(n),s.parentType="object",a(u,n[u],m(g({},s),{path:o(b)}),f),c(n[u],a,m(g({},s),{path:o(b)}),f)}}function h(){let n=l.shift();n[2].next=[];for(let a=0;a<_&&l[a];a++)n[2].next.push(k([l[a][0],l[a][1],l[a][2]]));t(...n)}function r(...n){l.push([...n]),l.length>_&&h()}if(c(e,r,{depth:-1,path:""},i),l.length)for(let n=0,a=l.length;n<a;n++)h()}return G(he);})();
|
|
11
11
|
/**
|
|
12
12
|
* @name codsen-format-diagnostic-value
|
|
13
13
|
* @fileoverview Safely format untrusted JavaScript values for diagnostics
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
/**
|
|
20
20
|
* @name codsen-utils
|
|
21
21
|
* @fileoverview Various utility functions
|
|
22
|
-
* @version 1.10.
|
|
22
|
+
* @version 1.10.2
|
|
23
23
|
* @author Roy Revelt
|
|
24
24
|
* @license MIT
|
|
25
25
|
* {@link https://codsen.com/os/codsen-utils/}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ast-monkey-traverse-with-lookahead",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.5",
|
|
4
4
|
"description": "Utility library to traverse AST, reports upcoming values",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ast",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"various": {}
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
|
-
"codsen-utils": "^1.10.
|
|
82
|
+
"codsen-utils": "^1.10.2"
|
|
83
83
|
},
|
|
84
84
|
"engines": {
|
|
85
85
|
"node": ">=18.20.8"
|