Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ast-contains-only-empty-space

Package Overview
Dependencies
Maintainers
1
Versions
154
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ast-contains-only-empty-space - npm Package Compare versions

Comparing version 3.0.11 to 3.0.12

2

dist/ast-contains-only-empty-space.esm.js
/**
* @name ast-contains-only-empty-space
* @fileoverview Does AST contain only empty space?
* @version 3.0.11
* @version 3.0.12
* @author Roy Revelt, Codsen Ltd

@@ -6,0 +6,0 @@ * @license MIT

/**
* @name ast-contains-only-empty-space
* @fileoverview Does AST contain only empty space?
* @version 3.0.11
* @version 3.0.12
* @author Roy Revelt, Codsen Ltd

@@ -10,7 +10,7 @@ * @license MIT

var astContainsOnlyEmptySpace=(()=>{var nr=Object.create;var $=Object.defineProperty,or=Object.defineProperties,ar=Object.getOwnPropertyDescriptor,ir=Object.getOwnPropertyDescriptors,cr=Object.getOwnPropertyNames,et=Object.getOwnPropertySymbols,sr=Object.getPrototypeOf,nt=Object.prototype.hasOwnProperty,ur=Object.prototype.propertyIsEnumerable;var ot=(t,r,e)=>r in t?$(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,m=(t,r)=>{for(var e in r||(r={}))nt.call(r,e)&&ot(t,e,r[e]);if(et)for(var e of et(r))ur.call(r,e)&&ot(t,e,r[e]);return t},x=(t,r)=>or(t,ir(r)),at=t=>$(t,"__esModule",{value:!0});var it=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),fr=(t,r)=>{for(var e in r)$(t,e,{get:r[e],enumerable:!0})},ct=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of cr(r))!nt.call(t,o)&&(e||o!=="default")&&$(t,o,{get:()=>r[o],enumerable:!(n=ar(r,o))||n.enumerable});return t},st=(t,r)=>ct(at($(t!=null?nr(sr(t)):{},"default",!r&&t&&t.__esModule?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t),lr=(t=>(r,e)=>t&&t.get(r)||(e=ct(at({}),r,1),t&&t.set(r,e),e))(typeof WeakMap!="undefined"?new WeakMap:0);var Zt=it((E,T)=>{var pr=200,ut="__lodash_hash_undefined__",ft=9007199254740991,L="[object Arguments]",hr="[object Array]",lt="[object Boolean]",pt="[object Date]",dr="[object Error]",R="[object Function]",ht="[object GeneratorFunction]",P="[object Map]",dt="[object Number]",F="[object Object]",gt="[object Promise]",bt="[object RegExp]",D="[object Set]",_t="[object String]",yt="[object Symbol]",U="[object WeakMap]",vt="[object ArrayBuffer]",N="[object DataView]",Ot="[object Float32Array]",mt="[object Float64Array]",jt="[object Int8Array]",wt="[object Int16Array]",St="[object Int32Array]",Tt="[object Uint8Array]",$t="[object Uint8ClampedArray]",xt="[object Uint16Array]",At="[object Uint32Array]",gr=/[\\^$.*+?()[\]{}|]/g,br=/\w*$/,_r=/^\[object .+?Constructor\]$/,yr=/^(?:0|[1-9]\d*)$/,a={};a[L]=a[hr]=a[vt]=a[N]=a[lt]=a[pt]=a[Ot]=a[mt]=a[jt]=a[wt]=a[St]=a[P]=a[dt]=a[F]=a[bt]=a[D]=a[_t]=a[yt]=a[Tt]=a[$t]=a[xt]=a[At]=!0;a[dr]=a[R]=a[U]=!1;var vr=typeof global=="object"&&global&&global.Object===Object&&global,Or=typeof self=="object"&&self&&self.Object===Object&&self,h=vr||Or||Function("return this")(),Ct=typeof E=="object"&&E&&!E.nodeType&&E,Et=Ct&&typeof T=="object"&&T&&!T.nodeType&&T,mr=Et&&Et.exports===Ct;function jr(t,r){return t.set(r[0],r[1]),t}function wr(t,r){return t.add(r),t}function Sr(t,r){for(var e=-1,n=t?t.length:0;++e<n&&r(t[e],e,t)!==!1;);return t}function Tr(t,r){for(var e=-1,n=r.length,o=t.length;++e<n;)t[o+e]=r[e];return t}function It(t,r,e,n){var o=-1,c=t?t.length:0;for(n&&c&&(e=t[++o]);++o<c;)e=r(e,t[o],o,t);return e}function $r(t,r){for(var e=-1,n=Array(t);++e<t;)n[e]=r(e);return n}function xr(t,r){return t==null?void 0:t[r]}function Pt(t){var r=!1;if(t!=null&&typeof t.toString!="function")try{r=!!(t+"")}catch(e){}return r}function Dt(t){var r=-1,e=Array(t.size);return t.forEach(function(n,o){e[++r]=[o,n]}),e}function J(t,r){return function(e){return t(r(e))}}function Nt(t){var r=-1,e=Array(t.size);return t.forEach(function(n){e[++r]=n}),e}var Ar=Array.prototype,Cr=Function.prototype,M=Object.prototype,W=h["__core-js_shared__"],Mt=function(){var t=/[^.]+$/.exec(W&&W.keys&&W.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Vt=Cr.toString,b=M.hasOwnProperty,V=M.toString,Er=RegExp("^"+Vt.call(b).replace(gr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Gt=mr?h.Buffer:void 0,Bt=h.Symbol,Ht=h.Uint8Array,Ir=J(Object.getPrototypeOf,Object),Pr=Object.create,Dr=M.propertyIsEnumerable,Nr=Ar.splice,Kt=Object.getOwnPropertySymbols,Mr=Gt?Gt.isBuffer:void 0,Vr=J(Object.keys,Object),q=S(h,"DataView"),A=S(h,"Map"),X=S(h,"Promise"),Y=S(h,"Set"),Z=S(h,"WeakMap"),C=S(Object,"create"),Gr=O(q),Br=O(A),Hr=O(X),Kr=O(Y),Lr=O(Z),Lt=Bt?Bt.prototype:void 0,Rt=Lt?Lt.valueOf:void 0;function y(t){var r=-1,e=t?t.length:0;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}function Rr(){this.__data__=C?C(null):{}}function Fr(t){return this.has(t)&&delete this.__data__[t]}function Ur(t){var r=this.__data__;if(C){var e=r[t];return e===ut?void 0:e}return b.call(r,t)?r[t]:void 0}function Jr(t){var r=this.__data__;return C?r[t]!==void 0:b.call(r,t)}function Wr(t,r){var e=this.__data__;return e[t]=C&&r===void 0?ut:r,this}y.prototype.clear=Rr;y.prototype.delete=Fr;y.prototype.get=Ur;y.prototype.has=Jr;y.prototype.set=Wr;function d(t){var r=-1,e=t?t.length:0;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}function qr(){this.__data__=[]}function Xr(t){var r=this.__data__,e=G(r,t);if(e<0)return!1;var n=r.length-1;return e==n?r.pop():Nr.call(r,e,1),!0}function Yr(t){var r=this.__data__,e=G(r,t);return e<0?void 0:r[e][1]}function Zr(t){return G(this.__data__,t)>-1}function Qr(t,r){var e=this.__data__,n=G(e,t);return n<0?e.push([t,r]):e[n][1]=r,this}d.prototype.clear=qr;d.prototype.delete=Xr;d.prototype.get=Yr;d.prototype.has=Zr;d.prototype.set=Qr;function j(t){var r=-1,e=t?t.length:0;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}function zr(){this.__data__={hash:new y,map:new(A||d),string:new y}}function kr(t){return B(this,t).delete(t)}function te(t){return B(this,t).get(t)}function re(t){return B(this,t).has(t)}function ee(t,r){return B(this,t).set(t,r),this}j.prototype.clear=zr;j.prototype.delete=kr;j.prototype.get=te;j.prototype.has=re;j.prototype.set=ee;function w(t){this.__data__=new d(t)}function ne(){this.__data__=new d}function oe(t){return this.__data__.delete(t)}function ae(t){return this.__data__.get(t)}function ie(t){return this.__data__.has(t)}function ce(t,r){var e=this.__data__;if(e instanceof d){var n=e.__data__;if(!A||n.length<pr-1)return n.push([t,r]),this;e=this.__data__=new j(n)}return e.set(t,r),this}w.prototype.clear=ne;w.prototype.delete=oe;w.prototype.get=ae;w.prototype.has=ie;w.prototype.set=ce;function se(t,r){var e=k(t)||Pe(t)?$r(t.length,String):[],n=e.length,o=!!n;for(var c in t)(r||b.call(t,c))&&!(o&&(c=="length"||Ae(c,n)))&&e.push(c);return e}function Ft(t,r,e){var n=t[r];(!(b.call(t,r)&&qt(n,e))||e===void 0&&!(r in t))&&(t[r]=e)}function G(t,r){for(var e=t.length;e--;)if(qt(t[e][0],r))return e;return-1}function ue(t,r){return t&&Ut(r,tt(r),t)}function Q(t,r,e,n,o,c,l){var s;if(n&&(s=c?n(t,o,c,l):n(t)),s!==void 0)return s;if(!H(t))return t;var f=k(t);if(f){if(s=Te(t),!r)return je(t,s)}else{var p=v(t),u=p==R||p==ht;if(Ne(t))return ge(t,r);if(p==F||p==L||u&&!c){if(Pt(t))return c?t:{};if(s=$e(u?{}:t),!r)return we(t,ue(s,t))}else{if(!a[p])return c?t:{};s=xe(t,p,Q,r)}}l||(l=new w);var i=l.get(t);if(i)return i;if(l.set(t,s),!f)var g=e?Se(t):tt(t);return Sr(g||t,function(_,I){g&&(I=_,_=t[I]),Ft(s,I,Q(_,r,e,n,I,t,l))}),s}function fe(t){return H(t)?Pr(t):{}}function le(t,r,e){var n=r(t);return k(t)?n:Tr(n,e(t))}function pe(t){return V.call(t)}function he(t){if(!H(t)||Ee(t))return!1;var r=Yt(t)||Pt(t)?Er:_r;return r.test(O(t))}function de(t){if(!Wt(t))return Vr(t);var r=[];for(var e in Object(t))b.call(t,e)&&e!="constructor"&&r.push(e);return r}function ge(t,r){if(r)return t.slice();var e=new t.constructor(t.length);return t.copy(e),e}function z(t){var r=new t.constructor(t.byteLength);return new Ht(r).set(new Ht(t)),r}function be(t,r){var e=r?z(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}function _e(t,r,e){var n=r?e(Dt(t),!0):Dt(t);return It(n,jr,new t.constructor)}function ye(t){var r=new t.constructor(t.source,br.exec(t));return r.lastIndex=t.lastIndex,r}function ve(t,r,e){var n=r?e(Nt(t),!0):Nt(t);return It(n,wr,new t.constructor)}function Oe(t){return Rt?Object(Rt.call(t)):{}}function me(t,r){var e=r?z(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}function je(t,r){var e=-1,n=t.length;for(r||(r=Array(n));++e<n;)r[e]=t[e];return r}function Ut(t,r,e,n){e||(e={});for(var o=-1,c=r.length;++o<c;){var l=r[o],s=n?n(e[l],t[l],l,e,t):void 0;Ft(e,l,s===void 0?t[l]:s)}return e}function we(t,r){return Ut(t,Jt(t),r)}function Se(t){return le(t,tt,Jt)}function B(t,r){var e=t.__data__;return Ce(r)?e[typeof r=="string"?"string":"hash"]:e.map}function S(t,r){var e=xr(t,r);return he(e)?e:void 0}var Jt=Kt?J(Kt,Object):Ge,v=pe;(q&&v(new q(new ArrayBuffer(1)))!=N||A&&v(new A)!=P||X&&v(X.resolve())!=gt||Y&&v(new Y)!=D||Z&&v(new Z)!=U)&&(v=function(t){var r=V.call(t),e=r==F?t.constructor:void 0,n=e?O(e):void 0;if(n)switch(n){case Gr:return N;case Br:return P;case Hr:return gt;case Kr:return D;case Lr:return U}return r});function Te(t){var r=t.length,e=t.constructor(r);return r&&typeof t[0]=="string"&&b.call(t,"index")&&(e.index=t.index,e.input=t.input),e}function $e(t){return typeof t.constructor=="function"&&!Wt(t)?fe(Ir(t)):{}}function xe(t,r,e,n){var o=t.constructor;switch(r){case vt:return z(t);case lt:case pt:return new o(+t);case N:return be(t,n);case Ot:case mt:case jt:case wt:case St:case Tt:case $t:case xt:case At:return me(t,n);case P:return _e(t,n,e);case dt:case _t:return new o(t);case bt:return ye(t);case D:return ve(t,n,e);case yt:return Oe(t)}}function Ae(t,r){return r=r==null?ft:r,!!r&&(typeof t=="number"||yr.test(t))&&t>-1&&t%1==0&&t<r}function Ce(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}function Ee(t){return!!Mt&&Mt in t}function Wt(t){var r=t&&t.constructor,e=typeof r=="function"&&r.prototype||M;return t===e}function O(t){if(t!=null){try{return Vt.call(t)}catch(r){}try{return t+""}catch(r){}}return""}function Ie(t){return Q(t,!0,!0)}function qt(t,r){return t===r||t!==t&&r!==r}function Pe(t){return De(t)&&b.call(t,"callee")&&(!Dr.call(t,"callee")||V.call(t)==L)}var k=Array.isArray;function Xt(t){return t!=null&&Me(t.length)&&!Yt(t)}function De(t){return Ve(t)&&Xt(t)}var Ne=Mr||Be;function Yt(t){var r=H(t)?V.call(t):"";return r==R||r==ht}function Me(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=ft}function H(t){var r=typeof t;return!!t&&(r=="object"||r=="function")}function Ve(t){return!!t&&typeof t=="object"}function tt(t){return Xt(t)?se(t):de(t)}function Ge(){return[]}function Be(){return!1}T.exports=Ie});var tr=it((ke,kt)=>{var He="[object Object]";function Ke(t){var r=!1;if(t!=null&&typeof t.toString!="function")try{r=!!(t+"")}catch(e){}return r}function Le(t,r){return function(e){return t(r(e))}}var Re=Function.prototype,Qt=Object.prototype,zt=Re.toString,Fe=Qt.hasOwnProperty,Ue=zt.call(Object),Je=Qt.toString,We=Le(Object.getPrototypeOf,Object);function qe(t){return!!t&&typeof t=="object"}function Xe(t){if(!qe(t)||Je.call(t)!=He||Ke(t))return!1;var r=We(t);if(r===null)return!0;var e=Fe.call(r,"constructor")&&r.constructor;return typeof e=="function"&&e instanceof e&&zt.call(e)==Ue}kt.exports=Xe});var Qe={};fr(Qe,{empty:()=>Ze});var K=st(Zt(),1),rr=st(tr(),1);function Ye(t){if(t.includes(".")){let r=t.lastIndexOf(".");if(!t.slice(0,r).includes("."))return t.slice(0,r);for(let e=r-1;e--;)if(t[e]===".")return t.slice(e+1,r)}return null}var rt=Ye;function er(t,r){let e={now:!1};function n(o,c,l,s){let f=(0,K.default)(o),p,u=m({depth:-1,path:""},l);if(u.depth+=1,Array.isArray(f))for(let i=0,g=f.length;i<g&&!s.now;i++){let _=u.path?`${u.path}.${i}`:`${i}`;f[i]!==void 0?(u.parent=(0,K.default)(f),u.parentType="array",u.parentKey=rt(_),p=n(c(f[i],void 0,x(m({},u),{path:_}),s),c,x(m({},u),{path:_}),s),Number.isNaN(p)&&i<f.length?(f.splice(i,1),i-=1):f[i]=p):f.splice(i,1)}else if((0,rr.default)(f))for(let i in f){if(s.now&&i!=null)break;let g=u.path?`${u.path}.${i}`:i;u.depth===0&&i!=null&&(u.topmostKey=i),u.parent=(0,K.default)(f),u.parentType="object",u.parentKey=rt(g),p=n(c(i,f[i],x(m({},u),{path:g}),s),c,x(m({},u),{path:g}),s),Number.isNaN(p)?delete f[i]:f[i]=p}return f}return n(t,r,{},e)}function Ze(t){if(typeof t=="string")return!t.trim();if(!["object","string"].includes(typeof t)||!t)return!1;let r=!0;return t=er(t,(e,n,o,c)=>{let l=n!==void 0?n:e;return typeof l=="string"&&l.trim()&&(r=!1,c.now=!0),l}),r}return lr(Qe);})();
var astContainsOnlyEmptySpace=(()=>{var nr=Object.create;var x=Object.defineProperty,or=Object.defineProperties,ar=Object.getOwnPropertyDescriptor,ir=Object.getOwnPropertyDescriptors,cr=Object.getOwnPropertyNames,et=Object.getOwnPropertySymbols,sr=Object.getPrototypeOf,nt=Object.prototype.hasOwnProperty,ur=Object.prototype.propertyIsEnumerable;var ot=(t,r,e)=>r in t?x(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,m=(t,r)=>{for(var e in r||(r={}))nt.call(r,e)&&ot(t,e,r[e]);if(et)for(var e of et(r))ur.call(r,e)&&ot(t,e,r[e]);return t},A=(t,r)=>or(t,ir(r)),at=t=>x(t,"__esModule",{value:!0});var it=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),fr=(t,r)=>{for(var e in r)x(t,e,{get:r[e],enumerable:!0})},ct=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of cr(r))!nt.call(t,o)&&(e||o!=="default")&&x(t,o,{get:()=>r[o],enumerable:!(n=ar(r,o))||n.enumerable});return t},st=(t,r)=>ct(at(x(t!=null?nr(sr(t)):{},"default",!r&&t&&t.__esModule?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t),lr=(t=>(r,e)=>t&&t.get(r)||(e=ct(at({}),r,1),t&&t.set(r,e),e))(typeof WeakMap!="undefined"?new WeakMap:0);var Zt=it((E,T)=>{var pr=200,ut="__lodash_hash_undefined__",ft=9007199254740991,L="[object Arguments]",hr="[object Array]",lt="[object Boolean]",pt="[object Date]",dr="[object Error]",R="[object Function]",ht="[object GeneratorFunction]",P="[object Map]",dt="[object Number]",F="[object Object]",gt="[object Promise]",bt="[object RegExp]",D="[object Set]",_t="[object String]",yt="[object Symbol]",U="[object WeakMap]",vt="[object ArrayBuffer]",N="[object DataView]",Ot="[object Float32Array]",mt="[object Float64Array]",jt="[object Int8Array]",wt="[object Int16Array]",St="[object Int32Array]",Tt="[object Uint8Array]",xt="[object Uint8ClampedArray]",At="[object Uint16Array]",$t="[object Uint32Array]",gr=/[\\^$.*+?()[\]{}|]/g,br=/\w*$/,_r=/^\[object .+?Constructor\]$/,yr=/^(?:0|[1-9]\d*)$/,a={};a[L]=a[hr]=a[vt]=a[N]=a[lt]=a[pt]=a[Ot]=a[mt]=a[jt]=a[wt]=a[St]=a[P]=a[dt]=a[F]=a[bt]=a[D]=a[_t]=a[yt]=a[Tt]=a[xt]=a[At]=a[$t]=!0;a[dr]=a[R]=a[U]=!1;var vr=typeof global=="object"&&global&&global.Object===Object&&global,Or=typeof self=="object"&&self&&self.Object===Object&&self,h=vr||Or||Function("return this")(),Ct=typeof E=="object"&&E&&!E.nodeType&&E,Et=Ct&&typeof T=="object"&&T&&!T.nodeType&&T,mr=Et&&Et.exports===Ct;function jr(t,r){return t.set(r[0],r[1]),t}function wr(t,r){return t.add(r),t}function Sr(t,r){for(var e=-1,n=t?t.length:0;++e<n&&r(t[e],e,t)!==!1;);return t}function Tr(t,r){for(var e=-1,n=r.length,o=t.length;++e<n;)t[o+e]=r[e];return t}function It(t,r,e,n){var o=-1,c=t?t.length:0;for(n&&c&&(e=t[++o]);++o<c;)e=r(e,t[o],o,t);return e}function xr(t,r){for(var e=-1,n=Array(t);++e<t;)n[e]=r(e);return n}function Ar(t,r){return t==null?void 0:t[r]}function Pt(t){var r=!1;if(t!=null&&typeof t.toString!="function")try{r=!!(t+"")}catch(e){}return r}function Dt(t){var r=-1,e=Array(t.size);return t.forEach(function(n,o){e[++r]=[o,n]}),e}function J(t,r){return function(e){return t(r(e))}}function Nt(t){var r=-1,e=Array(t.size);return t.forEach(function(n){e[++r]=n}),e}var $r=Array.prototype,Cr=Function.prototype,M=Object.prototype,W=h["__core-js_shared__"],Mt=function(){var t=/[^.]+$/.exec(W&&W.keys&&W.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Vt=Cr.toString,b=M.hasOwnProperty,V=M.toString,Er=RegExp("^"+Vt.call(b).replace(gr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Gt=mr?h.Buffer:void 0,Bt=h.Symbol,Ht=h.Uint8Array,Ir=J(Object.getPrototypeOf,Object),Pr=Object.create,Dr=M.propertyIsEnumerable,Nr=$r.splice,Kt=Object.getOwnPropertySymbols,Mr=Gt?Gt.isBuffer:void 0,Vr=J(Object.keys,Object),q=S(h,"DataView"),$=S(h,"Map"),X=S(h,"Promise"),Y=S(h,"Set"),Z=S(h,"WeakMap"),C=S(Object,"create"),Gr=O(q),Br=O($),Hr=O(X),Kr=O(Y),Lr=O(Z),Lt=Bt?Bt.prototype:void 0,Rt=Lt?Lt.valueOf:void 0;function y(t){var r=-1,e=t?t.length:0;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}function Rr(){this.__data__=C?C(null):{}}function Fr(t){return this.has(t)&&delete this.__data__[t]}function Ur(t){var r=this.__data__;if(C){var e=r[t];return e===ut?void 0:e}return b.call(r,t)?r[t]:void 0}function Jr(t){var r=this.__data__;return C?r[t]!==void 0:b.call(r,t)}function Wr(t,r){var e=this.__data__;return e[t]=C&&r===void 0?ut:r,this}y.prototype.clear=Rr;y.prototype.delete=Fr;y.prototype.get=Ur;y.prototype.has=Jr;y.prototype.set=Wr;function d(t){var r=-1,e=t?t.length:0;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}function qr(){this.__data__=[]}function Xr(t){var r=this.__data__,e=G(r,t);if(e<0)return!1;var n=r.length-1;return e==n?r.pop():Nr.call(r,e,1),!0}function Yr(t){var r=this.__data__,e=G(r,t);return e<0?void 0:r[e][1]}function Zr(t){return G(this.__data__,t)>-1}function Qr(t,r){var e=this.__data__,n=G(e,t);return n<0?e.push([t,r]):e[n][1]=r,this}d.prototype.clear=qr;d.prototype.delete=Xr;d.prototype.get=Yr;d.prototype.has=Zr;d.prototype.set=Qr;function j(t){var r=-1,e=t?t.length:0;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}function zr(){this.__data__={hash:new y,map:new($||d),string:new y}}function kr(t){return B(this,t).delete(t)}function te(t){return B(this,t).get(t)}function re(t){return B(this,t).has(t)}function ee(t,r){return B(this,t).set(t,r),this}j.prototype.clear=zr;j.prototype.delete=kr;j.prototype.get=te;j.prototype.has=re;j.prototype.set=ee;function w(t){this.__data__=new d(t)}function ne(){this.__data__=new d}function oe(t){return this.__data__.delete(t)}function ae(t){return this.__data__.get(t)}function ie(t){return this.__data__.has(t)}function ce(t,r){var e=this.__data__;if(e instanceof d){var n=e.__data__;if(!$||n.length<pr-1)return n.push([t,r]),this;e=this.__data__=new j(n)}return e.set(t,r),this}w.prototype.clear=ne;w.prototype.delete=oe;w.prototype.get=ae;w.prototype.has=ie;w.prototype.set=ce;function se(t,r){var e=k(t)||Pe(t)?xr(t.length,String):[],n=e.length,o=!!n;for(var c in t)(r||b.call(t,c))&&!(o&&(c=="length"||$e(c,n)))&&e.push(c);return e}function Ft(t,r,e){var n=t[r];(!(b.call(t,r)&&qt(n,e))||e===void 0&&!(r in t))&&(t[r]=e)}function G(t,r){for(var e=t.length;e--;)if(qt(t[e][0],r))return e;return-1}function ue(t,r){return t&&Ut(r,tt(r),t)}function Q(t,r,e,n,o,c,l){var s;if(n&&(s=c?n(t,o,c,l):n(t)),s!==void 0)return s;if(!H(t))return t;var f=k(t);if(f){if(s=Te(t),!r)return je(t,s)}else{var p=v(t),u=p==R||p==ht;if(Ne(t))return ge(t,r);if(p==F||p==L||u&&!c){if(Pt(t))return c?t:{};if(s=xe(u?{}:t),!r)return we(t,ue(s,t))}else{if(!a[p])return c?t:{};s=Ae(t,p,Q,r)}}l||(l=new w);var i=l.get(t);if(i)return i;if(l.set(t,s),!f)var g=e?Se(t):tt(t);return Sr(g||t,function(_,I){g&&(I=_,_=t[I]),Ft(s,I,Q(_,r,e,n,I,t,l))}),s}function fe(t){return H(t)?Pr(t):{}}function le(t,r,e){var n=r(t);return k(t)?n:Tr(n,e(t))}function pe(t){return V.call(t)}function he(t){if(!H(t)||Ee(t))return!1;var r=Yt(t)||Pt(t)?Er:_r;return r.test(O(t))}function de(t){if(!Wt(t))return Vr(t);var r=[];for(var e in Object(t))b.call(t,e)&&e!="constructor"&&r.push(e);return r}function ge(t,r){if(r)return t.slice();var e=new t.constructor(t.length);return t.copy(e),e}function z(t){var r=new t.constructor(t.byteLength);return new Ht(r).set(new Ht(t)),r}function be(t,r){var e=r?z(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}function _e(t,r,e){var n=r?e(Dt(t),!0):Dt(t);return It(n,jr,new t.constructor)}function ye(t){var r=new t.constructor(t.source,br.exec(t));return r.lastIndex=t.lastIndex,r}function ve(t,r,e){var n=r?e(Nt(t),!0):Nt(t);return It(n,wr,new t.constructor)}function Oe(t){return Rt?Object(Rt.call(t)):{}}function me(t,r){var e=r?z(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}function je(t,r){var e=-1,n=t.length;for(r||(r=Array(n));++e<n;)r[e]=t[e];return r}function Ut(t,r,e,n){e||(e={});for(var o=-1,c=r.length;++o<c;){var l=r[o],s=n?n(e[l],t[l],l,e,t):void 0;Ft(e,l,s===void 0?t[l]:s)}return e}function we(t,r){return Ut(t,Jt(t),r)}function Se(t){return le(t,tt,Jt)}function B(t,r){var e=t.__data__;return Ce(r)?e[typeof r=="string"?"string":"hash"]:e.map}function S(t,r){var e=Ar(t,r);return he(e)?e:void 0}var Jt=Kt?J(Kt,Object):Ge,v=pe;(q&&v(new q(new ArrayBuffer(1)))!=N||$&&v(new $)!=P||X&&v(X.resolve())!=gt||Y&&v(new Y)!=D||Z&&v(new Z)!=U)&&(v=function(t){var r=V.call(t),e=r==F?t.constructor:void 0,n=e?O(e):void 0;if(n)switch(n){case Gr:return N;case Br:return P;case Hr:return gt;case Kr:return D;case Lr:return U}return r});function Te(t){var r=t.length,e=t.constructor(r);return r&&typeof t[0]=="string"&&b.call(t,"index")&&(e.index=t.index,e.input=t.input),e}function xe(t){return typeof t.constructor=="function"&&!Wt(t)?fe(Ir(t)):{}}function Ae(t,r,e,n){var o=t.constructor;switch(r){case vt:return z(t);case lt:case pt:return new o(+t);case N:return be(t,n);case Ot:case mt:case jt:case wt:case St:case Tt:case xt:case At:case $t:return me(t,n);case P:return _e(t,n,e);case dt:case _t:return new o(t);case bt:return ye(t);case D:return ve(t,n,e);case yt:return Oe(t)}}function $e(t,r){return r=r==null?ft:r,!!r&&(typeof t=="number"||yr.test(t))&&t>-1&&t%1==0&&t<r}function Ce(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}function Ee(t){return!!Mt&&Mt in t}function Wt(t){var r=t&&t.constructor,e=typeof r=="function"&&r.prototype||M;return t===e}function O(t){if(t!=null){try{return Vt.call(t)}catch(r){}try{return t+""}catch(r){}}return""}function Ie(t){return Q(t,!0,!0)}function qt(t,r){return t===r||t!==t&&r!==r}function Pe(t){return De(t)&&b.call(t,"callee")&&(!Dr.call(t,"callee")||V.call(t)==L)}var k=Array.isArray;function Xt(t){return t!=null&&Me(t.length)&&!Yt(t)}function De(t){return Ve(t)&&Xt(t)}var Ne=Mr||Be;function Yt(t){var r=H(t)?V.call(t):"";return r==R||r==ht}function Me(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=ft}function H(t){var r=typeof t;return!!t&&(r=="object"||r=="function")}function Ve(t){return!!t&&typeof t=="object"}function tt(t){return Xt(t)?se(t):de(t)}function Ge(){return[]}function Be(){return!1}T.exports=Ie});var tr=it((ke,kt)=>{var He="[object Object]";function Ke(t){var r=!1;if(t!=null&&typeof t.toString!="function")try{r=!!(t+"")}catch(e){}return r}function Le(t,r){return function(e){return t(r(e))}}var Re=Function.prototype,Qt=Object.prototype,zt=Re.toString,Fe=Qt.hasOwnProperty,Ue=zt.call(Object),Je=Qt.toString,We=Le(Object.getPrototypeOf,Object);function qe(t){return!!t&&typeof t=="object"}function Xe(t){if(!qe(t)||Je.call(t)!=He||Ke(t))return!1;var r=We(t);if(r===null)return!0;var e=Fe.call(r,"constructor")&&r.constructor;return typeof e=="function"&&e instanceof e&&zt.call(e)==Ue}kt.exports=Xe});var Qe={};fr(Qe,{empty:()=>Ze});var K=st(Zt(),1),rr=st(tr(),1);function Ye(t){if(t.includes(".")){let r=t.lastIndexOf(".");if(!t.slice(0,r).includes("."))return t.slice(0,r);for(let e=r-1;e--;)if(t[e]===".")return t.slice(e+1,r)}return null}var rt=Ye;function er(t,r){let e={now:!1};function n(o,c,l,s){let f=(0,K.default)(o),p,u=m({depth:-1,path:""},l);if(u.depth+=1,Array.isArray(f))for(let i=0,g=f.length;i<g&&!s.now;i++){let _=u.path?`${u.path}.${i}`:`${i}`;f[i]!==void 0?(u.parent=(0,K.default)(f),u.parentType="array",u.parentKey=rt(_),p=n(c(f[i],void 0,A(m({},u),{path:_}),s),c,A(m({},u),{path:_}),s),Number.isNaN(p)&&i<f.length?(f.splice(i,1),i-=1):f[i]=p):f.splice(i,1)}else if((0,rr.default)(f))for(let i in f){if(s.now&&i!=null)break;let g=u.path?`${u.path}.${i}`:i;u.depth===0&&i!=null&&(u.topmostKey=i),u.parent=(0,K.default)(f),u.parentType="object",u.parentKey=rt(g),p=n(c(i,f[i],A(m({},u),{path:g}),s),c,A(m({},u),{path:g}),s),Number.isNaN(p)?delete f[i]:f[i]=p}return f}return n(t,r,{},e)}function Ze(t){if(typeof t=="string")return!t.trim();if(!["object","string"].includes(typeof t)||!t)return!1;let r=!0;return t=er(t,(e,n,o,c)=>{let l=n!==void 0?n:e;return typeof l=="string"&&l.trim()&&(r=!1,c.now=!0),l}),r}return lr(Qe);})();
/**
* @name ast-monkey-traverse
* @fileoverview Utility library to traverse AST
* @version 3.0.11
* @version 3.0.12
* @author Roy Revelt, Codsen Ltd

@@ -23,3 +23,3 @@ * @license MIT

* @fileoverview Utility library of AST helper functions
* @version 2.0.11
* @version 2.0.12
* @author Roy Revelt, Codsen Ltd

@@ -26,0 +26,0 @@ * @license MIT

{
"name": "ast-contains-only-empty-space",
"version": "3.0.11",
"version": "3.0.12",
"description": "Does AST contain only empty space?",

@@ -42,5 +42,6 @@ "keywords": [

"dev": "DEV=true node '../../ops/scripts/esbuild.js' && yarn run dts",
"devtest": "c8 yarn run unit && yarn run examples && yarn run lint",
"dts": "rollup -c && yarn run prettier 'types/index.d.ts' --write",
"examples": "node '../../ops/scripts/run-examples.js'",
"lect": "node '../../ops/lect/lect.js'",
"lect": "node '../../ops/lect/lect.js' && yarn run prettier 'README.md' '.all-contributorsrc' 'rollup.config.js' --write",
"letspublish": "yarn publish || :",

@@ -53,3 +54,3 @@ "lint": "eslint . --fix",

"pretest": "yarn run lect && yarn run build",
"test": "c8 yarn run unit && yarn run examples && yarn run lint",
"test": "yarn run devtest",
"unit": "uvu test"

@@ -75,4 +76,4 @@ },

"dependencies": {
"ast-monkey-traverse": "^3.0.11"
"ast-monkey-traverse": "^3.0.12"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc