ast-contains-only-empty-space
Advanced tools
Comparing version 3.2.6 to 4.0.0
@@ -6,2 +6,12 @@ # Change Log | ||
# 4.0.0 (2022-12-01) | ||
### Features | ||
- drop Node v12 support; minimum version requirement now is v14.18 and above ([c8049e8](https://github.com/codsen/codsen/commit/c8049e82a5844d3f72587740f1cc74e3c9020d22)) | ||
### BREAKING CHANGES | ||
- Minimum supported Node version is v14.18; we're dropping v12 support | ||
# 3.2.0 (2022-08-12) | ||
@@ -8,0 +18,0 @@ |
/** | ||
* @name ast-contains-only-empty-space | ||
* @fileoverview Does AST contain only empty space? | ||
* @version 3.2.6 | ||
* @version 4.0.0 | ||
* @author Roy Revelt, Codsen Ltd | ||
@@ -10,2 +10,2 @@ * @license MIT | ||
import{traverse as l}from"ast-monkey-traverse";var r="3.2.6";var m=r;function y(e){if(typeof e=="string")return!e.trim();if(!["object","string"].includes(typeof e)||!e)return!1;let n=!0;return e=l(e,(o,s,a,i)=>{let t=s!==void 0?s:o;return typeof t=="string"&&t.trim()&&(n=!1,i.now=!0),t}),n}export{y as empty,m as version}; | ||
import{traverse as l}from"ast-monkey-traverse";var r="4.0.0";var m=r;function y(e){if(typeof e=="string")return!e.trim();if(!["object","string"].includes(typeof e)||!e)return!1;let n=!0;return e=l(e,(o,s,a,i)=>{let t=s!==void 0?s:o;return typeof t=="string"&&t.trim()&&(n=!1,i.now=!0),t}),n}export{y as empty,m as version}; |
/** | ||
* @name ast-contains-only-empty-space | ||
* @fileoverview Does AST contain only empty space? | ||
* @version 3.2.6 | ||
* @version 4.0.0 | ||
* @author Roy Revelt, Codsen Ltd | ||
@@ -10,7 +10,7 @@ * @license MIT | ||
"use strict";var astContainsOnlyEmptySpace=(()=>{var ne=Object.create;var S=Object.defineProperty,oe=Object.defineProperties,ie=Object.getOwnPropertyDescriptor,ae=Object.getOwnPropertyDescriptors,se=Object.getOwnPropertyNames,rt=Object.getOwnPropertySymbols,ce=Object.getPrototypeOf,ot=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable;var nt=(t,e,r)=>e in t?S(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,j=(t,e)=>{for(var r in e||(e={}))ot.call(e,r)&&nt(t,r,e[r]);if(rt)for(var r of rt(e))ue.call(e,r)&&nt(t,r,e[r]);return t},A=(t,e)=>oe(t,ae(e));var it=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),fe=(t,e)=>{for(var r in e)S(t,r,{get:e[r],enumerable:!0})},at=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of se(e))!ot.call(t,o)&&o!==r&&S(t,o,{get:()=>e[o],enumerable:!(n=ie(e,o))||n.enumerable});return t};var st=(t,e,r)=>(r=t!=null?ne(ce(t)):{},at(e||!t||!t.__esModule?S(r,"default",{value:t,enumerable:!0}):r,t)),le=t=>at(S({},"__esModule",{value:!0}),t);var Xt=it(($,O)=>{var pe=200,mt="__lodash_hash_undefined__",vt=9007199254740991,q="[object Arguments]",de="[object Array]",jt="[object Boolean]",Ot="[object Date]",he="[object Error]",X="[object Function]",xt="[object GeneratorFunction]",P="[object Map]",wt="[object Number]",Y="[object Object]",ct="[object Promise]",Tt="[object RegExp]",D="[object Set]",St="[object String]",At="[object Symbol]",L="[object WeakMap]",$t="[object ArrayBuffer]",M="[object DataView]",Ct="[object Float32Array]",Et="[object Float64Array]",It="[object Int8Array]",Pt="[object Int16Array]",Dt="[object Int32Array]",Mt="[object Uint8Array]",Nt="[object Uint8ClampedArray]",Vt="[object Uint16Array]",Rt="[object Uint32Array]",ge=/[\\^$.*+?()[\]{}|]/g,ye=/\w*$/,be=/^\[object .+?Constructor\]$/,_e=/^(?:0|[1-9]\d*)$/,i={};i[q]=i[de]=i[$t]=i[M]=i[jt]=i[Ot]=i[Ct]=i[Et]=i[It]=i[Pt]=i[Dt]=i[P]=i[wt]=i[Y]=i[Tt]=i[D]=i[St]=i[At]=i[Mt]=i[Nt]=i[Vt]=i[Rt]=!0;i[he]=i[X]=i[L]=!1;var me=typeof global=="object"&&global&&global.Object===Object&&global,ve=typeof self=="object"&&self&&self.Object===Object&&self,d=me||ve||Function("return this")(),Gt=typeof $=="object"&&$&&!$.nodeType&&$,ut=Gt&&typeof O=="object"&&O&&!O.nodeType&&O,je=ut&&ut.exports===Gt;function Oe(t,e){return t.set(e[0],e[1]),t}function xe(t,e){return t.add(e),t}function we(t,e){for(var r=-1,n=t?t.length:0;++r<n&&e(t[r],r,t)!==!1;);return t}function Te(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}function Bt(t,e,r,n){var o=-1,s=t?t.length:0;for(n&&s&&(r=t[++o]);++o<s;)r=e(r,t[o],o,t);return r}function Se(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}function Ae(t,e){return t==null?void 0:t[e]}function Ht(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch(r){}return e}function ft(t){var e=-1,r=Array(t.size);return t.forEach(function(n,o){r[++e]=[o,n]}),r}function Z(t,e){return function(r){return t(e(r))}}function lt(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var $e=Array.prototype,Ce=Function.prototype,N=Object.prototype,K=d["__core-js_shared__"],pt=function(){var t=/[^.]+$/.exec(K&&K.keys&&K.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Kt=Ce.toString,y=N.hasOwnProperty,V=N.toString,Ee=RegExp("^"+Kt.call(y).replace(ge,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),dt=je?d.Buffer:void 0,ht=d.Symbol,gt=d.Uint8Array,Ie=Z(Object.getPrototypeOf,Object),Pe=Object.create,De=N.propertyIsEnumerable,Me=$e.splice,yt=Object.getOwnPropertySymbols,Ne=dt?dt.isBuffer:void 0,Ve=Z(Object.keys,Object),F=T(d,"DataView"),C=T(d,"Map"),U=T(d,"Promise"),J=T(d,"Set"),W=T(d,"WeakMap"),E=T(Object,"create"),Re=v(F),Ge=v(C),Be=v(U),He=v(J),Ke=v(W),bt=ht?ht.prototype:void 0,_t=bt?bt.valueOf:void 0;function m(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Le(){this.__data__=E?E(null):{}}function Fe(t){return this.has(t)&&delete this.__data__[t]}function Ue(t){var e=this.__data__;if(E){var r=e[t];return r===mt?void 0:r}return y.call(e,t)?e[t]:void 0}function Je(t){var e=this.__data__;return E?e[t]!==void 0:y.call(e,t)}function We(t,e){var r=this.__data__;return r[t]=E&&e===void 0?mt:e,this}m.prototype.clear=Le;m.prototype.delete=Fe;m.prototype.get=Ue;m.prototype.has=Je;m.prototype.set=We;function h(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function ke(){this.__data__=[]}function qe(t){var e=this.__data__,r=R(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():Me.call(e,r,1),!0}function Xe(t){var e=this.__data__,r=R(e,t);return r<0?void 0:e[r][1]}function Ye(t){return R(this.__data__,t)>-1}function Ze(t,e){var r=this.__data__,n=R(r,t);return n<0?r.push([t,e]):r[n][1]=e,this}h.prototype.clear=ke;h.prototype.delete=qe;h.prototype.get=Xe;h.prototype.has=Ye;h.prototype.set=Ze;function x(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Qe(){this.__data__={hash:new m,map:new(C||h),string:new m}}function ze(t){return G(this,t).delete(t)}function tr(t){return G(this,t).get(t)}function er(t){return G(this,t).has(t)}function rr(t,e){return G(this,t).set(t,e),this}x.prototype.clear=Qe;x.prototype.delete=ze;x.prototype.get=tr;x.prototype.has=er;x.prototype.set=rr;function w(t){this.__data__=new h(t)}function nr(){this.__data__=new h}function or(t){return this.__data__.delete(t)}function ir(t){return this.__data__.get(t)}function ar(t){return this.__data__.has(t)}function sr(t,e){var r=this.__data__;if(r instanceof h){var n=r.__data__;if(!C||n.length<pe-1)return n.push([t,e]),this;r=this.__data__=new x(n)}return r.set(t,e),this}w.prototype.clear=nr;w.prototype.delete=or;w.prototype.get=ir;w.prototype.has=ar;w.prototype.set=sr;function cr(t,e){var r=z(t)||Pr(t)?Se(t.length,String):[],n=r.length,o=!!n;for(var s in t)(e||y.call(t,s))&&!(o&&(s=="length"||$r(s,n)))&&r.push(s);return r}function Lt(t,e,r){var n=t[e];(!(y.call(t,e)&&Wt(n,r))||r===void 0&&!(e in t))&&(t[e]=r)}function R(t,e){for(var r=t.length;r--;)if(Wt(t[r][0],e))return r;return-1}function ur(t,e){return t&&Ft(e,tt(e),t)}function k(t,e,r,n,o,s,l){var c;if(n&&(c=s?n(t,o,s,l):n(t)),c!==void 0)return c;if(!B(t))return t;var f=z(t);if(f){if(c=Tr(t),!e)return Or(t,c)}else{var p=_(t),u=p==X||p==xt;if(Mr(t))return gr(t,e);if(p==Y||p==q||u&&!s){if(Ht(t))return s?t:{};if(c=Sr(u?{}:t),!e)return xr(t,ur(c,t))}else{if(!i[p])return s?t:{};c=Ar(t,p,k,e)}}l||(l=new w);var a=l.get(t);if(a)return a;if(l.set(t,c),!f)var g=r?wr(t):tt(t);return we(g||t,function(b,I){g&&(I=b,b=t[I]),Lt(c,I,k(b,e,r,n,I,t,l))}),c}function fr(t){return B(t)?Pe(t):{}}function lr(t,e,r){var n=e(t);return z(t)?n:Te(n,r(t))}function pr(t){return V.call(t)}function dr(t){if(!B(t)||Er(t))return!1;var e=qt(t)||Ht(t)?Ee:be;return e.test(v(t))}function hr(t){if(!Jt(t))return Ve(t);var e=[];for(var r in Object(t))y.call(t,r)&&r!="constructor"&&e.push(r);return e}function gr(t,e){if(e)return t.slice();var r=new t.constructor(t.length);return t.copy(r),r}function Q(t){var e=new t.constructor(t.byteLength);return new gt(e).set(new gt(t)),e}function yr(t,e){var r=e?Q(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}function br(t,e,r){var n=e?r(ft(t),!0):ft(t);return Bt(n,Oe,new t.constructor)}function _r(t){var e=new t.constructor(t.source,ye.exec(t));return e.lastIndex=t.lastIndex,e}function mr(t,e,r){var n=e?r(lt(t),!0):lt(t);return Bt(n,xe,new t.constructor)}function vr(t){return _t?Object(_t.call(t)):{}}function jr(t,e){var r=e?Q(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function Or(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}function Ft(t,e,r,n){r||(r={});for(var o=-1,s=e.length;++o<s;){var l=e[o],c=n?n(r[l],t[l],l,r,t):void 0;Lt(r,l,c===void 0?t[l]:c)}return r}function xr(t,e){return Ft(t,Ut(t),e)}function wr(t){return lr(t,tt,Ut)}function G(t,e){var r=t.__data__;return Cr(e)?r[typeof e=="string"?"string":"hash"]:r.map}function T(t,e){var r=Ae(t,e);return dr(r)?r:void 0}var Ut=yt?Z(yt,Object):Rr,_=pr;(F&&_(new F(new ArrayBuffer(1)))!=M||C&&_(new C)!=P||U&&_(U.resolve())!=ct||J&&_(new J)!=D||W&&_(new W)!=L)&&(_=function(t){var e=V.call(t),r=e==Y?t.constructor:void 0,n=r?v(r):void 0;if(n)switch(n){case Re:return M;case Ge:return P;case Be:return ct;case He:return D;case Ke:return L}return e});function Tr(t){var e=t.length,r=t.constructor(e);return e&&typeof t[0]=="string"&&y.call(t,"index")&&(r.index=t.index,r.input=t.input),r}function Sr(t){return typeof t.constructor=="function"&&!Jt(t)?fr(Ie(t)):{}}function Ar(t,e,r,n){var o=t.constructor;switch(e){case $t:return Q(t);case jt:case Ot:return new o(+t);case M:return yr(t,n);case Ct:case Et:case It:case Pt:case Dt:case Mt:case Nt:case Vt:case Rt:return jr(t,n);case P:return br(t,n,r);case wt:case St:return new o(t);case Tt:return _r(t);case D:return mr(t,n,r);case At:return vr(t)}}function $r(t,e){return e=e==null?vt:e,!!e&&(typeof t=="number"||_e.test(t))&&t>-1&&t%1==0&&t<e}function Cr(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Er(t){return!!pt&&pt in t}function Jt(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||N;return t===r}function v(t){if(t!=null){try{return Kt.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function Ir(t){return k(t,!0,!0)}function Wt(t,e){return t===e||t!==t&&e!==e}function Pr(t){return Dr(t)&&y.call(t,"callee")&&(!De.call(t,"callee")||V.call(t)==q)}var z=Array.isArray;function kt(t){return t!=null&&Nr(t.length)&&!qt(t)}function Dr(t){return Vr(t)&&kt(t)}var Mr=Ne||Gr;function qt(t){var e=B(t)?V.call(t):"";return e==X||e==xt}function Nr(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=vt}function B(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function Vr(t){return!!t&&typeof t=="object"}function tt(t){return kt(t)?cr(t):hr(t)}function Rr(){return[]}function Gr(){return!1}O.exports=Ir});var zt=it((en,Qt)=>{var Br="[object Object]";function Hr(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch(r){}return e}function Kr(t,e){return function(r){return t(e(r))}}var Lr=Function.prototype,Yt=Object.prototype,Zt=Lr.toString,Fr=Yt.hasOwnProperty,Ur=Zt.call(Object),Jr=Yt.toString,Wr=Kr(Object.getPrototypeOf,Object);function kr(t){return!!t&&typeof t=="object"}function qr(t){if(!kr(t)||Jr.call(t)!=Br||Hr(t))return!1;var e=Wr(t);if(e===null)return!0;var r=Fr.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Zt.call(r)==Ur}Qt.exports=qr});var zr={};fe(zr,{empty:()=>Qr,version:()=>Zr});var H=st(Xt(),1),te=st(zt(),1);function Xr(t){if(t.includes(".")){let e=t.lastIndexOf(".");if(!t.slice(0,e).includes("."))return t.slice(0,e);for(let r=e-1;r--;)if(t[r]===".")return t.slice(r+1,e)}return null}var et=Xr;function ee(t,e){let r={now:!1};function n(o,s,l,c){let f=(0,H.default)(o),p,u=j({depth:-1,path:""},l);if(u.depth+=1,Array.isArray(f))for(let a=0,g=f.length;a<g&&!c.now;a++){let b=u.path?`${u.path}.${a}`:`${a}`;f[a]!==void 0?(u.parent=(0,H.default)(f),u.parentType="array",u.parentKey=et(b),p=n(s(f[a],void 0,A(j({},u),{path:b}),c),s,A(j({},u),{path:b}),c),Number.isNaN(p)&&a<f.length?(f.splice(a,1),a-=1):f[a]=p):f.splice(a,1)}else if((0,te.default)(f))for(let a in f){if(c.now&&a!=null)break;let g=u.path?`${u.path}.${a}`:a;u.depth===0&&a!=null&&(u.topmostKey=a),u.parent=(0,H.default)(f),u.parentType="object",u.parentKey=et(g),p=n(s(a,f[a],A(j({},u),{path:g}),c),s,A(j({},u),{path:g}),c),Number.isNaN(p)?delete f[a]:f[a]=p}return f}return n(t,e,{},r)}var re="3.2.6";var Zr=re;function Qr(t){if(typeof t=="string")return!t.trim();if(!["object","string"].includes(typeof t)||!t)return!1;let e=!0;return t=ee(t,(r,n,o,s)=>{let l=n!==void 0?n:r;return typeof l=="string"&&l.trim()&&(e=!1,s.now=!0),l}),e}return le(zr);})(); | ||
"use strict";var astContainsOnlyEmptySpace=(()=>{var ne=Object.create;var S=Object.defineProperty,oe=Object.defineProperties,ie=Object.getOwnPropertyDescriptor,ae=Object.getOwnPropertyDescriptors,se=Object.getOwnPropertyNames,rt=Object.getOwnPropertySymbols,ce=Object.getPrototypeOf,ot=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable;var nt=(t,e,r)=>e in t?S(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,j=(t,e)=>{for(var r in e||(e={}))ot.call(e,r)&&nt(t,r,e[r]);if(rt)for(var r of rt(e))ue.call(e,r)&&nt(t,r,e[r]);return t},A=(t,e)=>oe(t,ae(e));var it=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),fe=(t,e)=>{for(var r in e)S(t,r,{get:e[r],enumerable:!0})},at=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of se(e))!ot.call(t,o)&&o!==r&&S(t,o,{get:()=>e[o],enumerable:!(n=ie(e,o))||n.enumerable});return t};var st=(t,e,r)=>(r=t!=null?ne(ce(t)):{},at(e||!t||!t.__esModule?S(r,"default",{value:t,enumerable:!0}):r,t)),le=t=>at(S({},"__esModule",{value:!0}),t);var Xt=it(($,O)=>{var pe=200,mt="__lodash_hash_undefined__",vt=9007199254740991,q="[object Arguments]",de="[object Array]",jt="[object Boolean]",Ot="[object Date]",he="[object Error]",X="[object Function]",xt="[object GeneratorFunction]",P="[object Map]",wt="[object Number]",Y="[object Object]",ct="[object Promise]",Tt="[object RegExp]",D="[object Set]",St="[object String]",At="[object Symbol]",L="[object WeakMap]",$t="[object ArrayBuffer]",M="[object DataView]",Ct="[object Float32Array]",Et="[object Float64Array]",It="[object Int8Array]",Pt="[object Int16Array]",Dt="[object Int32Array]",Mt="[object Uint8Array]",Nt="[object Uint8ClampedArray]",Vt="[object Uint16Array]",Rt="[object Uint32Array]",ge=/[\\^$.*+?()[\]{}|]/g,ye=/\w*$/,be=/^\[object .+?Constructor\]$/,_e=/^(?:0|[1-9]\d*)$/,i={};i[q]=i[de]=i[$t]=i[M]=i[jt]=i[Ot]=i[Ct]=i[Et]=i[It]=i[Pt]=i[Dt]=i[P]=i[wt]=i[Y]=i[Tt]=i[D]=i[St]=i[At]=i[Mt]=i[Nt]=i[Vt]=i[Rt]=!0;i[he]=i[X]=i[L]=!1;var me=typeof global=="object"&&global&&global.Object===Object&&global,ve=typeof self=="object"&&self&&self.Object===Object&&self,d=me||ve||Function("return this")(),Gt=typeof $=="object"&&$&&!$.nodeType&&$,ut=Gt&&typeof O=="object"&&O&&!O.nodeType&&O,je=ut&&ut.exports===Gt;function Oe(t,e){return t.set(e[0],e[1]),t}function xe(t,e){return t.add(e),t}function we(t,e){for(var r=-1,n=t?t.length:0;++r<n&&e(t[r],r,t)!==!1;);return t}function Te(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}function Bt(t,e,r,n){var o=-1,s=t?t.length:0;for(n&&s&&(r=t[++o]);++o<s;)r=e(r,t[o],o,t);return r}function Se(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}function Ae(t,e){return t==null?void 0:t[e]}function Ht(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch(r){}return e}function ft(t){var e=-1,r=Array(t.size);return t.forEach(function(n,o){r[++e]=[o,n]}),r}function Z(t,e){return function(r){return t(e(r))}}function lt(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var $e=Array.prototype,Ce=Function.prototype,N=Object.prototype,K=d["__core-js_shared__"],pt=function(){var t=/[^.]+$/.exec(K&&K.keys&&K.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Kt=Ce.toString,y=N.hasOwnProperty,V=N.toString,Ee=RegExp("^"+Kt.call(y).replace(ge,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),dt=je?d.Buffer:void 0,ht=d.Symbol,gt=d.Uint8Array,Ie=Z(Object.getPrototypeOf,Object),Pe=Object.create,De=N.propertyIsEnumerable,Me=$e.splice,yt=Object.getOwnPropertySymbols,Ne=dt?dt.isBuffer:void 0,Ve=Z(Object.keys,Object),F=T(d,"DataView"),C=T(d,"Map"),U=T(d,"Promise"),J=T(d,"Set"),W=T(d,"WeakMap"),E=T(Object,"create"),Re=v(F),Ge=v(C),Be=v(U),He=v(J),Ke=v(W),bt=ht?ht.prototype:void 0,_t=bt?bt.valueOf:void 0;function m(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Le(){this.__data__=E?E(null):{}}function Fe(t){return this.has(t)&&delete this.__data__[t]}function Ue(t){var e=this.__data__;if(E){var r=e[t];return r===mt?void 0:r}return y.call(e,t)?e[t]:void 0}function Je(t){var e=this.__data__;return E?e[t]!==void 0:y.call(e,t)}function We(t,e){var r=this.__data__;return r[t]=E&&e===void 0?mt:e,this}m.prototype.clear=Le;m.prototype.delete=Fe;m.prototype.get=Ue;m.prototype.has=Je;m.prototype.set=We;function h(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function ke(){this.__data__=[]}function qe(t){var e=this.__data__,r=R(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():Me.call(e,r,1),!0}function Xe(t){var e=this.__data__,r=R(e,t);return r<0?void 0:e[r][1]}function Ye(t){return R(this.__data__,t)>-1}function Ze(t,e){var r=this.__data__,n=R(r,t);return n<0?r.push([t,e]):r[n][1]=e,this}h.prototype.clear=ke;h.prototype.delete=qe;h.prototype.get=Xe;h.prototype.has=Ye;h.prototype.set=Ze;function x(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Qe(){this.__data__={hash:new m,map:new(C||h),string:new m}}function ze(t){return G(this,t).delete(t)}function tr(t){return G(this,t).get(t)}function er(t){return G(this,t).has(t)}function rr(t,e){return G(this,t).set(t,e),this}x.prototype.clear=Qe;x.prototype.delete=ze;x.prototype.get=tr;x.prototype.has=er;x.prototype.set=rr;function w(t){this.__data__=new h(t)}function nr(){this.__data__=new h}function or(t){return this.__data__.delete(t)}function ir(t){return this.__data__.get(t)}function ar(t){return this.__data__.has(t)}function sr(t,e){var r=this.__data__;if(r instanceof h){var n=r.__data__;if(!C||n.length<pe-1)return n.push([t,e]),this;r=this.__data__=new x(n)}return r.set(t,e),this}w.prototype.clear=nr;w.prototype.delete=or;w.prototype.get=ir;w.prototype.has=ar;w.prototype.set=sr;function cr(t,e){var r=z(t)||Pr(t)?Se(t.length,String):[],n=r.length,o=!!n;for(var s in t)(e||y.call(t,s))&&!(o&&(s=="length"||$r(s,n)))&&r.push(s);return r}function Lt(t,e,r){var n=t[e];(!(y.call(t,e)&&Wt(n,r))||r===void 0&&!(e in t))&&(t[e]=r)}function R(t,e){for(var r=t.length;r--;)if(Wt(t[r][0],e))return r;return-1}function ur(t,e){return t&&Ft(e,tt(e),t)}function k(t,e,r,n,o,s,l){var c;if(n&&(c=s?n(t,o,s,l):n(t)),c!==void 0)return c;if(!B(t))return t;var f=z(t);if(f){if(c=Tr(t),!e)return Or(t,c)}else{var p=_(t),u=p==X||p==xt;if(Mr(t))return gr(t,e);if(p==Y||p==q||u&&!s){if(Ht(t))return s?t:{};if(c=Sr(u?{}:t),!e)return xr(t,ur(c,t))}else{if(!i[p])return s?t:{};c=Ar(t,p,k,e)}}l||(l=new w);var a=l.get(t);if(a)return a;if(l.set(t,c),!f)var g=r?wr(t):tt(t);return we(g||t,function(b,I){g&&(I=b,b=t[I]),Lt(c,I,k(b,e,r,n,I,t,l))}),c}function fr(t){return B(t)?Pe(t):{}}function lr(t,e,r){var n=e(t);return z(t)?n:Te(n,r(t))}function pr(t){return V.call(t)}function dr(t){if(!B(t)||Er(t))return!1;var e=qt(t)||Ht(t)?Ee:be;return e.test(v(t))}function hr(t){if(!Jt(t))return Ve(t);var e=[];for(var r in Object(t))y.call(t,r)&&r!="constructor"&&e.push(r);return e}function gr(t,e){if(e)return t.slice();var r=new t.constructor(t.length);return t.copy(r),r}function Q(t){var e=new t.constructor(t.byteLength);return new gt(e).set(new gt(t)),e}function yr(t,e){var r=e?Q(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}function br(t,e,r){var n=e?r(ft(t),!0):ft(t);return Bt(n,Oe,new t.constructor)}function _r(t){var e=new t.constructor(t.source,ye.exec(t));return e.lastIndex=t.lastIndex,e}function mr(t,e,r){var n=e?r(lt(t),!0):lt(t);return Bt(n,xe,new t.constructor)}function vr(t){return _t?Object(_t.call(t)):{}}function jr(t,e){var r=e?Q(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function Or(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}function Ft(t,e,r,n){r||(r={});for(var o=-1,s=e.length;++o<s;){var l=e[o],c=n?n(r[l],t[l],l,r,t):void 0;Lt(r,l,c===void 0?t[l]:c)}return r}function xr(t,e){return Ft(t,Ut(t),e)}function wr(t){return lr(t,tt,Ut)}function G(t,e){var r=t.__data__;return Cr(e)?r[typeof e=="string"?"string":"hash"]:r.map}function T(t,e){var r=Ae(t,e);return dr(r)?r:void 0}var Ut=yt?Z(yt,Object):Rr,_=pr;(F&&_(new F(new ArrayBuffer(1)))!=M||C&&_(new C)!=P||U&&_(U.resolve())!=ct||J&&_(new J)!=D||W&&_(new W)!=L)&&(_=function(t){var e=V.call(t),r=e==Y?t.constructor:void 0,n=r?v(r):void 0;if(n)switch(n){case Re:return M;case Ge:return P;case Be:return ct;case He:return D;case Ke:return L}return e});function Tr(t){var e=t.length,r=t.constructor(e);return e&&typeof t[0]=="string"&&y.call(t,"index")&&(r.index=t.index,r.input=t.input),r}function Sr(t){return typeof t.constructor=="function"&&!Jt(t)?fr(Ie(t)):{}}function Ar(t,e,r,n){var o=t.constructor;switch(e){case $t:return Q(t);case jt:case Ot:return new o(+t);case M:return yr(t,n);case Ct:case Et:case It:case Pt:case Dt:case Mt:case Nt:case Vt:case Rt:return jr(t,n);case P:return br(t,n,r);case wt:case St:return new o(t);case Tt:return _r(t);case D:return mr(t,n,r);case At:return vr(t)}}function $r(t,e){return e=e==null?vt:e,!!e&&(typeof t=="number"||_e.test(t))&&t>-1&&t%1==0&&t<e}function Cr(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Er(t){return!!pt&&pt in t}function Jt(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||N;return t===r}function v(t){if(t!=null){try{return Kt.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function Ir(t){return k(t,!0,!0)}function Wt(t,e){return t===e||t!==t&&e!==e}function Pr(t){return Dr(t)&&y.call(t,"callee")&&(!De.call(t,"callee")||V.call(t)==q)}var z=Array.isArray;function kt(t){return t!=null&&Nr(t.length)&&!qt(t)}function Dr(t){return Vr(t)&&kt(t)}var Mr=Ne||Gr;function qt(t){var e=B(t)?V.call(t):"";return e==X||e==xt}function Nr(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=vt}function B(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function Vr(t){return!!t&&typeof t=="object"}function tt(t){return kt(t)?cr(t):hr(t)}function Rr(){return[]}function Gr(){return!1}O.exports=Ir});var zt=it((en,Qt)=>{var Br="[object Object]";function Hr(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch(r){}return e}function Kr(t,e){return function(r){return t(e(r))}}var Lr=Function.prototype,Yt=Object.prototype,Zt=Lr.toString,Fr=Yt.hasOwnProperty,Ur=Zt.call(Object),Jr=Yt.toString,Wr=Kr(Object.getPrototypeOf,Object);function kr(t){return!!t&&typeof t=="object"}function qr(t){if(!kr(t)||Jr.call(t)!=Br||Hr(t))return!1;var e=Wr(t);if(e===null)return!0;var r=Fr.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Zt.call(r)==Ur}Qt.exports=qr});var zr={};fe(zr,{empty:()=>Qr,version:()=>Zr});var H=st(Xt(),1),te=st(zt(),1);function Xr(t){if(t.includes(".")){let e=t.lastIndexOf(".");if(!t.slice(0,e).includes("."))return t.slice(0,e);for(let r=e-1;r--;)if(t[r]===".")return t.slice(r+1,e)}return null}var et=Xr;function ee(t,e){let r={now:!1};function n(o,s,l,c){let f=(0,H.default)(o),p,u=j({depth:-1,path:""},l);if(u.depth+=1,Array.isArray(f))for(let a=0,g=f.length;a<g&&!c.now;a++){let b=u.path?`${u.path}.${a}`:`${a}`;f[a]!==void 0?(u.parent=(0,H.default)(f),u.parentType="array",u.parentKey=et(b),p=n(s(f[a],void 0,A(j({},u),{path:b}),c),s,A(j({},u),{path:b}),c),Number.isNaN(p)&&a<f.length?(f.splice(a,1),a-=1):f[a]=p):f.splice(a,1)}else if((0,te.default)(f))for(let a in f){if(c.now&&a!=null)break;let g=u.path?`${u.path}.${a}`:a;u.depth===0&&a!=null&&(u.topmostKey=a),u.parent=(0,H.default)(f),u.parentType="object",u.parentKey=et(g),p=n(s(a,f[a],A(j({},u),{path:g}),c),s,A(j({},u),{path:g}),c),Number.isNaN(p)?delete f[a]:f[a]=p}return f}return n(t,e,{},r)}var re="4.0.0";var Zr=re;function Qr(t){if(typeof t=="string")return!t.trim();if(!["object","string"].includes(typeof t)||!t)return!1;let e=!0;return t=ee(t,(r,n,o,s)=>{let l=n!==void 0?n:r;return typeof l=="string"&&l.trim()&&(e=!1,s.now=!0),l}),e}return le(zr);})(); | ||
/** | ||
* @name ast-monkey-traverse | ||
* @fileoverview Utility library to traverse AST | ||
* @version 3.1.6 | ||
* @version 4.0.0 | ||
* @author Roy Revelt, Codsen Ltd | ||
@@ -23,3 +23,3 @@ * @license MIT | ||
* @fileoverview Utility library of AST helper functions | ||
* @version 2.1.6 | ||
* @version 3.0.0 | ||
* @author Roy Revelt, Codsen Ltd | ||
@@ -26,0 +26,0 @@ * @license MIT |
{ | ||
"name": "ast-contains-only-empty-space", | ||
"version": "3.2.6", | ||
"version": "4.0.0", | ||
"description": "Does AST contain only empty space?", | ||
@@ -60,3 +60,3 @@ "keywords": [ | ||
"engines": { | ||
"node": "^12.20.0 || ^14.13.1 || >=16.0.0" | ||
"node": ">=14.18.0" | ||
}, | ||
@@ -78,4 +78,4 @@ "c8": { | ||
"dependencies": { | ||
"ast-monkey-traverse": "^3.1.6" | ||
"ast-monkey-traverse": "^4.0.0" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22689
+ Addedast-monkey-traverse@4.0.16(transitive)
+ Addedast-monkey-util@3.0.8(transitive)
+ Addedcodsen-utils@1.6.4(transitive)
+ Addedrfdc@1.4.1(transitive)
- Removedast-monkey-traverse@3.1.6(transitive)
- Removedast-monkey-util@2.1.6(transitive)
- Removedlodash.clonedeep@4.5.0(transitive)
- Removedlodash.isplainobject@4.0.6(transitive)
Updatedast-monkey-traverse@^4.0.0