ast-contains-only-empty-space
Advanced tools
Comparing version 3.2.4 to 3.2.5
/** | ||
* @name ast-contains-only-empty-space | ||
* @fileoverview Does AST contain only empty space? | ||
* @version 3.2.4 | ||
* @version 3.2.5 | ||
* @author Roy Revelt, Codsen Ltd | ||
@@ -10,2 +10,2 @@ * @license MIT | ||
import{traverse as c}from"ast-monkey-traverse";var r="3.2.4";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=c(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 c}from"ast-monkey-traverse";var r="3.2.5";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=c(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.4 | ||
* @version 3.2.5 | ||
* @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,ae=Object.getOwnPropertyDescriptor,ie=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,ie(e));var at=(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})},it=(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=ae(e,o))||n.enumerable});return t};var st=(t,e,r)=>(r=t!=null?ne(ce(t)):{},it(e||!t||!t.__esModule?S(r,"default",{value:t,enumerable:!0}):r,t)),le=t=>it(S({},"__esModule",{value:!0}),t);var Xt=at(($,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*)$/,a={};a[q]=a[de]=a[$t]=a[M]=a[jt]=a[Ot]=a[Ct]=a[Et]=a[It]=a[Pt]=a[Dt]=a[P]=a[wt]=a[Y]=a[Tt]=a[D]=a[St]=a[At]=a[Mt]=a[Nt]=a[Vt]=a[Rt]=!0;a[he]=a[X]=a[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"),k=T(d,"Set"),J=T(d,"WeakMap"),E=T(Object,"create"),Re=v(F),Ge=v(C),Be=v(U),He=v(k),Ke=v(J),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 ke(t){var e=this.__data__;return E?e[t]!==void 0:y.call(e,t)}function Je(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=ke;m.prototype.set=Je;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 We(){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=We;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 ar(t){return this.__data__.get(t)}function ir(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=ar;w.prototype.has=ir;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)&&Jt(n,r))||r===void 0&&!(e in t))&&(t[e]=r)}function R(t,e){for(var r=t.length;r--;)if(Jt(t[r][0],e))return r;return-1}function ur(t,e){return t&&Ft(e,tt(e),t)}function W(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(!a[p])return s?t:{};c=Ar(t,p,W,e)}}l||(l=new w);var i=l.get(t);if(i)return i;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,W(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(!kt(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||k&&_(new k)!=D||J&&_(new J)!=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"&&!kt(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 kt(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 W(t,!0,!0)}function Jt(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 Wt(t){return t!=null&&Nr(t.length)&&!qt(t)}function Dr(t){return Vr(t)&&Wt(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 Wt(t)?cr(t):hr(t)}function Rr(){return[]}function Gr(){return!1}O.exports=Ir});var zt=at((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),kr=Yt.toString,Jr=Kr(Object.getPrototypeOf,Object);function Wr(t){return!!t&&typeof t=="object"}function qr(t){if(!Wr(t)||kr.call(t)!=Br||Hr(t))return!1;var e=Jr(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 i=0,g=f.length;i<g&&!c.now;i++){let b=u.path?`${u.path}.${i}`:`${i}`;f[i]!==void 0?(u.parent=(0,H.default)(f),u.parentType="array",u.parentKey=et(b),p=n(s(f[i],void 0,A(j({},u),{path:b}),c),s,A(j({},u),{path:b}),c),Number.isNaN(p)&&i<f.length?(f.splice(i,1),i-=1):f[i]=p):f.splice(i,1)}else if((0,te.default)(f))for(let i in f){if(c.now&&i!=null)break;let g=u.path?`${u.path}.${i}`:i;u.depth===0&&i!=null&&(u.topmostKey=i),u.parent=(0,H.default)(f),u.parentType="object",u.parentKey=et(g),p=n(s(i,f[i],A(j({},u),{path:g}),c),s,A(j({},u),{path:g}),c),Number.isNaN(p)?delete f[i]:f[i]=p}return f}return n(t,e,{},r)}var re="3.2.4";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,ae=Object.getOwnPropertyDescriptor,ie=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,ie(e));var at=(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})},it=(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=ae(e,o))||n.enumerable});return t};var st=(t,e,r)=>(r=t!=null?ne(ce(t)):{},it(e||!t||!t.__esModule?S(r,"default",{value:t,enumerable:!0}):r,t)),le=t=>it(S({},"__esModule",{value:!0}),t);var Xt=at(($,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*)$/,a={};a[q]=a[de]=a[$t]=a[M]=a[jt]=a[Ot]=a[Ct]=a[Et]=a[It]=a[Pt]=a[Dt]=a[P]=a[wt]=a[Y]=a[Tt]=a[D]=a[St]=a[At]=a[Mt]=a[Nt]=a[Vt]=a[Rt]=!0;a[he]=a[X]=a[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 ar(t){return this.__data__.get(t)}function ir(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=ar;w.prototype.has=ir;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(!a[p])return s?t:{};c=Ar(t,p,k,e)}}l||(l=new w);var i=l.get(t);if(i)return i;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=at((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 i=0,g=f.length;i<g&&!c.now;i++){let b=u.path?`${u.path}.${i}`:`${i}`;f[i]!==void 0?(u.parent=(0,H.default)(f),u.parentType="array",u.parentKey=et(b),p=n(s(f[i],void 0,A(j({},u),{path:b}),c),s,A(j({},u),{path:b}),c),Number.isNaN(p)&&i<f.length?(f.splice(i,1),i-=1):f[i]=p):f.splice(i,1)}else if((0,te.default)(f))for(let i in f){if(c.now&&i!=null)break;let g=u.path?`${u.path}.${i}`:i;u.depth===0&&i!=null&&(u.topmostKey=i),u.parent=(0,H.default)(f),u.parentType="object",u.parentKey=et(g),p=n(s(i,f[i],A(j({},u),{path:g}),c),s,A(j({},u),{path:g}),c),Number.isNaN(p)?delete f[i]:f[i]=p}return f}return n(t,e,{},r)}var re="3.2.5";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.4 | ||
* @version 3.1.5 | ||
* @author Roy Revelt, Codsen Ltd | ||
@@ -23,3 +23,3 @@ * @license MIT | ||
* @fileoverview Utility library of AST helper functions | ||
* @version 2.1.4 | ||
* @version 2.1.5 | ||
* @author Roy Revelt, Codsen Ltd | ||
@@ -26,0 +26,0 @@ * @license MIT |
{ | ||
"name": "ast-contains-only-empty-space", | ||
"version": "3.2.4", | ||
"version": "3.2.5", | ||
"description": "Does AST contain only empty space?", | ||
@@ -75,4 +75,4 @@ "keywords": [ | ||
"dependencies": { | ||
"ast-monkey-traverse": "^3.1.4" | ||
"ast-monkey-traverse": "^3.1.5" | ||
} | ||
} |
@@ -1,12 +0,12 @@ | ||
# ast-contains-only-empty-space | ||
<h1 align="center">ast-contains-only-empty-space</h1> | ||
> Does AST contain only empty space? | ||
<p align="center">Does AST contain only empty space?</p> | ||
<div class="package-badges"> | ||
<p align="center"> | ||
<a href="https://codsen.com/os/ast-contains-only-empty-space" rel="nofollow noreferrer noopener"> | ||
<img src="https://img.shields.io/badge/-codsen-blue?style=flat-square" alt="page on codsen.com"> | ||
</a> | ||
<a href="https://www.npmjs.com/package/ast-contains-only-empty-space" rel="nofollow noreferrer noopener"> | ||
<img src="https://img.shields.io/badge/-npm-blue?style=flat-square" alt="page on npm"> | ||
</a> | ||
<a href="https://codsen.com/os/ast-contains-only-empty-space" rel="nofollow noreferrer noopener"> | ||
<img src="https://img.shields.io/badge/-codsen-blue?style=flat-square" alt="page on codsen.com"> | ||
</a> | ||
<a href="https://github.com/codsen/codsen/tree/main/packages/ast-contains-only-empty-space" rel="nofollow noreferrer noopener"> | ||
@@ -18,10 +18,7 @@ <img src="https://img.shields.io/badge/-github-blue?style=flat-square" alt="page on github"> | ||
</a> | ||
<a href="https://prettier.io" rel="nofollow noreferrer noopener" target="_blank"> | ||
<img src="https://img.shields.io/badge/code_style-prettier-brightgreen.svg?style=flat-square" alt="Code style: prettier"> | ||
<a href="https://codsen.com/os/ast-contains-only-empty-space/changelog" rel="nofollow noreferrer noopener"> | ||
<img src="https://img.shields.io/badge/changelog-here-brightgreen?style=flat-square" alt="changelog"> | ||
</a> | ||
<img src="https://img.shields.io/badge/licence-MIT-brightgreen.svg?style=flat-square" alt="MIT License"> | ||
<a href="https://liberamanifesto.com" rel="nofollow noreferrer noopener" target="_blank"> | ||
<img src="https://img.shields.io/badge/libera-manifesto-lightgrey.svg?style=flat-square" alt="libera manifesto"> | ||
</a> | ||
</div> | ||
<img src="https://img.shields.io/badge/licence-MIT-brightgreen.svg?style=flat-square" alt="MIT Licence"> | ||
</p> | ||
@@ -74,6 +71,6 @@ ## Install | ||
MIT License | ||
MIT License. | ||
Copyright (c) 2010-2022 Roy Revelt and other contributors | ||
Copyright © 2010-2022 Roy Revelt and other contributors. | ||
<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 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> |
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
22361
75
Updatedast-monkey-traverse@^3.1.5