ast-contains-only-empty-space
Advanced tools
Comparing version 1.3.1 to 1.3.2
@@ -1,1 +0,1 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.astContainsOnlyEmptySpace=e()}(this,function(){"use strict";var Qt="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u=1/0,c="[object Symbol]",i=/^\s+|\s+$/g,t="\\ud800-\\udfff",e="\\u0300-\\u036f\\ufe20-\\ufe23",r="\\u20d0-\\u20f0",n="\\ufe0e\\ufe0f",a="["+t+"]",f="["+e+r+"]",s="\\ud83c[\\udffb-\\udfff]",l="[^"+t+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",y="[\\ud800-\\udbff][\\udc00-\\udfff]",d="\\u200d",v="(?:"+f+"|"+s+")"+"?",b="["+n+"]?",h=b+v+("(?:"+d+"(?:"+[l,p,y].join("|")+")"+b+v+")*"),_="(?:"+[l+f+"?",f,p,y,a].join("|")+")",g=RegExp(s+"(?="+s+")|"+_+h,"g"),j=RegExp("["+d+t+e+r+n+"]"),m="object"==o(Qt)&&Qt&&Qt.Object===Object&&Qt,O="object"==("undefined"==typeof self?"undefined":o(self))&&self&&self.Object===Object&&self,w=m||O||Function("return this")();function S(t,e,r){if(e!=e)return function(t,e,r,n){for(var o=t.length,u=r+(n?1:-1);n?u--:++u<o;)if(e(t[u],u,t))return u;return-1}(t,A,r);for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}function A(t){return t!=t}function x(t){return e=t,j.test(e)?t.match(g)||[]:t.split("");var e}var E=Object.prototype.toString,P=w.Symbol,$=P?P.prototype:void 0,F=$?$.toString:void 0;function I(t){if("string"==typeof t)return t;if("symbol"==(void 0===(e=t)?"undefined":o(e))||(r=e)&&"object"==(void 0===r?"undefined":o(r))&&E.call(e)==c)return F?F.call(t):"";var e,r,n=t+"";return"0"==n&&1/t==-u?"-0":n}function N(t,e,r){var n=t.length;return r=void 0===r?n:r,!e&&n<=r?t:function(t,e,r){var n=-1,o=t.length;e<0&&(e=o<-e?0:o+e),(r=o<r?o:r)<0&&(r+=o),o=r<e?0:r-e>>>0,e>>>=0;for(var u=Array(o);++n<o;)u[n]=t[n+e];return u}(t,e,r)}var k=function(t,e,r){var n;if((t=null==(n=t)?"":I(n))&&(r||void 0===e))return t.replace(i,"");if(!t||!(e=I(e)))return t;var o=x(t),u=x(e);return N(o,function(t,e){for(var r=-1,n=t.length;++r<n&&-1<S(e,t[r],0););return r}(o,u),function(t,e){for(var r=t.length;r--&&-1<S(e,t[r],0););return r}(o,u)+1).join("")},B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};var R,U,M=Function.prototype,C=Object.prototype,D=M.toString,T=C.hasOwnProperty,z=D.call(Object),L=C.toString,V=(R=Object.getPrototypeOf,U=Object,function(t){return R(U(t))});var W,G=function(t){if(!(e=t)||"object"!=(void 0===e?"undefined":B(e))||"[object Object]"!=L.call(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t))return!1;var e,r=V(t);if(null===r)return!0;var n=T.call(r,"constructor")&&r.constructor;return"function"==typeof n&&n instanceof n&&D.call(n)==z},Xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},K=(function(t,e){var n="__lodash_hash_undefined__",r=9007199254740991,O="[object Arguments]",w="[object Boolean]",S="[object Date]",A="[object Function]",x="[object GeneratorFunction]",E="[object Map]",P="[object Number]",$="[object Object]",o="[object Promise]",F="[object RegExp]",I="[object Set]",N="[object String]",k="[object Symbol]",u="[object WeakMap]",B="[object ArrayBuffer]",R="[object DataView]",U="[object Float32Array]",M="[object Float64Array]",C="[object Int8Array]",D="[object Int16Array]",T="[object Int32Array]",z="[object Uint8Array]",L="[object Uint8ClampedArray]",V="[object Uint16Array]",W="[object Uint32Array]",G=/\w*$/,c=/^\[object .+?Constructor\]$/,i=/^(?:0|[1-9]\d*)$/,K={};K[O]=K["[object Array]"]=K[B]=K[R]=K[w]=K[S]=K[U]=K[M]=K[C]=K[D]=K[T]=K[E]=K[P]=K[$]=K[F]=K[I]=K[N]=K[k]=K[z]=K[L]=K[V]=K[W]=!0,K["[object Error]"]=K[A]=K[u]=!1;var a="object"==Xt(Qt)&&Qt&&Qt.Object===Object&&Qt,f="object"==("undefined"==typeof self?"undefined":Xt(self))&&self&&self.Object===Object&&self,s=a||f||Function("return this")(),l=e&&!e.nodeType&&e,p=l&&t&&!t.nodeType&&t,y=p&&p.exports===l;function q(t,e){return t.set(e[0],e[1]),t}function H(t,e){return t.add(e),t}function J(t,e,r,n){var o=-1,u=t?t.length:0;for(n&&u&&(r=t[++o]);++o<u;)r=e(r,t[o],o,t);return r}function Q(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function X(t){var r=-1,n=Array(t.size);return t.forEach(function(t,e){n[++r]=[e,t]}),n}function d(e,r){return function(t){return e(r(t))}}function Y(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}var v,b=Array.prototype,h=Function.prototype,_=Object.prototype,g=s["__core-js_shared__"],j=(v=/[^.]+$/.exec(g&&g.keys&&g.keys.IE_PROTO||""))?"Symbol(src)_1."+v:"",m=h.toString,Z=_.hasOwnProperty,tt=_.toString,et=RegExp("^"+m.call(Z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),rt=y?s.Buffer:void 0,nt=s.Symbol,ot=s.Uint8Array,ut=d(Object.getPrototypeOf,Object),ct=Object.create,it=_.propertyIsEnumerable,at=b.splice,ft=Object.getOwnPropertySymbols,st=rt?rt.isBuffer:void 0,lt=d(Object.keys,Object),pt=Mt(s,"DataView"),yt=Mt(s,"Map"),dt=Mt(s,"Promise"),vt=Mt(s,"Set"),bt=Mt(s,"WeakMap"),ht=Mt(Object,"create"),_t=Lt(pt),gt=Lt(yt),jt=Lt(dt),mt=Lt(vt),Ot=Lt(bt),wt=nt?nt.prototype:void 0,St=wt?wt.valueOf:void 0;function At(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 xt(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 Et(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 Pt(t){this.__data__=new xt(t)}function $t(t,e){var r,n,o,u=Wt(t)||(o=n=r=t)&&"object"==(void 0===o?"undefined":Xt(o))&&Gt(n)&&Z.call(r,"callee")&&(!it.call(r,"callee")||tt.call(r)==O)?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],c=u.length,i=!!c;for(var a in t)!e&&!Z.call(t,a)||i&&("length"==a||Tt(a,c))||u.push(a);return u}function Ft(t,e,r){var n=t[e];Z.call(t,e)&&Vt(n,r)&&(void 0!==r||e in t)||(t[e]=r)}function It(t,e){for(var r=t.length;r--;)if(Vt(t[r][0],e))return r;return-1}function Nt(r,n,o,u,t,e,c){var i;if(u&&(i=e?u(r,t,e,c):u(r)),void 0!==i)return i;if(!Ht(r))return r;var a,f,s,l,p,y,d=Wt(r);if(d){if(i=function(t){var e=t.length,r=t.constructor(e);e&&"string"==typeof t[0]&&Z.call(t,"index")&&(r.index=t.index,r.input=t.input);return r}(r),!n)return function(t,e){var r=-1,n=t.length;e||(e=Array(n));for(;++r<n;)e[r]=t[r];return e}(r,i)}else{var v=Dt(r),b=v==A||v==x;if(Kt(r))return function(t,e){if(e)return t.slice();var r=new t.constructor(t.length);return t.copy(r),r}(r,n);if(v==$||v==O||b&&!e){if(Q(r))return e?r:{};if(i="function"!=typeof(p=b?{}:r).constructor||zt(p)?{}:Ht(y=ut(p))?ct(y):{},!n)return l=a=r,f=(s=i)&&Rt(l,Jt(l),s),Rt(a,Ct(a),f)}else{if(!K[v])return e?r:{};i=function(t,e,r,n){var o=t.constructor;switch(e){case B:return Bt(t);case w:case S:return new o(+t);case R:return d=t,v=n?Bt(d.buffer):d.buffer,new d.constructor(v,d.byteOffset,d.byteLength);case U:case M:case C:case D:case T:case z:case L:case V:case W:return p=t,y=n?Bt(p.buffer):p.buffer,new p.constructor(y,p.byteOffset,p.length);case E:return s=t,l=r,J(n?l(X(s),!0):X(s),q,new s.constructor);case P:case N:return new o(t);case F:return(f=new(a=t).constructor(a.source,G.exec(a))).lastIndex=a.lastIndex,f;case I:return c=t,i=r,J(n?i(Y(c),!0):Y(c),H,new c.constructor);case k:return u=t,St?Object(St.call(u)):{}}var u;var c,i;var a,f;var s,l;var p,y;var d,v}(r,v,Nt,n)}}c||(c=new Pt);var h,_,g,j=c.get(r);if(j)return j;if(c.set(r,i),!d)var m=o?(_=Ct,g=Jt(h=r),Wt(h)?g:function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}(g,_(h))):Jt(r);return function(t,e){for(var r=-1,n=t?t.length:0;++r<n&&!1!==e(t[r],r,t););}(m||r,function(t,e){m&&(t=r[e=t]),Ft(i,e,Nt(t,n,o,u,e,r,c))}),i}function kt(t){return!(!Ht(t)||(e=t,j&&j in e))&&(qt(t)||Q(t)?et:c).test(Lt(t));var e}function Bt(t){var e=new t.constructor(t.byteLength);return new ot(e).set(new ot(t)),e}function Rt(t,e,r,n){r||(r={});for(var o=-1,u=e.length;++o<u;){var c=e[o],i=n?n(r[c],t[c],c,r,t):void 0;Ft(r,c,void 0===i?t[c]:i)}return r}function Ut(t,e){var r,n,o=t.__data__;return("string"==(n=void 0===(r=e)?"undefined":Xt(r))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function Mt(t,e){var r,n,o=(n=e,null==(r=t)?void 0:r[n]);return kt(o)?o:void 0}At.prototype.clear=function(){this.__data__=ht?ht(null):{}},At.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},At.prototype.get=function(t){var e=this.__data__;if(ht){var r=e[t];return r===n?void 0:r}return Z.call(e,t)?e[t]:void 0},At.prototype.has=function(t){var e=this.__data__;return ht?void 0!==e[t]:Z.call(e,t)},At.prototype.set=function(t,e){return this.__data__[t]=ht&&void 0===e?n:e,this},xt.prototype.clear=function(){this.__data__=[]},xt.prototype.delete=function(t){var e=this.__data__,r=It(e,t);return!(r<0||(r==e.length-1?e.pop():at.call(e,r,1),0))},xt.prototype.get=function(t){var e=this.__data__,r=It(e,t);return r<0?void 0:e[r][1]},xt.prototype.has=function(t){return-1<It(this.__data__,t)},xt.prototype.set=function(t,e){var r=this.__data__,n=It(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},Et.prototype.clear=function(){this.__data__={hash:new At,map:new(yt||xt),string:new At}},Et.prototype.delete=function(t){return Ut(this,t).delete(t)},Et.prototype.get=function(t){return Ut(this,t).get(t)},Et.prototype.has=function(t){return Ut(this,t).has(t)},Et.prototype.set=function(t,e){return Ut(this,t).set(t,e),this},Pt.prototype.clear=function(){this.__data__=new xt},Pt.prototype.delete=function(t){return this.__data__.delete(t)},Pt.prototype.get=function(t){return this.__data__.get(t)},Pt.prototype.has=function(t){return this.__data__.has(t)},Pt.prototype.set=function(t,e){var r=this.__data__;if(r instanceof xt){var n=r.__data__;if(!yt||n.length<199)return n.push([t,e]),this;r=this.__data__=new Et(n)}return r.set(t,e),this};var Ct=ft?d(ft,Object):function(){return[]},Dt=function(t){return tt.call(t)};function Tt(t,e){return!!(e=null==e?r:e)&&("number"==typeof t||i.test(t))&&-1<t&&t%1==0&&t<e}function zt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||_)}function Lt(t){if(null!=t){try{return m.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Vt(t,e){return t===e||t!=t&&e!=e}(pt&&Dt(new pt(new ArrayBuffer(1)))!=R||yt&&Dt(new yt)!=E||dt&&Dt(dt.resolve())!=o||vt&&Dt(new vt)!=I||bt&&Dt(new bt)!=u)&&(Dt=function(t){var e=tt.call(t),r=e==$?t.constructor:void 0,n=r?Lt(r):void 0;if(n)switch(n){case _t:return R;case gt:return E;case jt:return o;case mt:return I;case Ot:return u}return e});var Wt=Array.isArray;function Gt(t){return null!=t&&("number"==typeof(e=t.length)&&-1<e&&e%1==0&&e<=r)&&!qt(t);var e}var Kt=st||function(){return!1};function qt(t){var e=Ht(t)?tt.call(t):"";return e==A||e==x}function Ht(t){var e=void 0===t?"undefined":Xt(t);return!!t&&("object"==e||"function"==e)}function Jt(t){return Gt(t)?$t(t):function(t){if(!zt(t))return lt(t);var e=[];for(var r in Object(t))Z.call(t,r)&&"constructor"!=r&&e.push(r);return e}(t)}t.exports=function(t){return Nt(t,!0,!0)}}(W={exports:{}},W.exports),W.exports),q=Array.isArray;function H(t){return"string"==typeof t&&0<t.length&&"."===t[0]?t.slice(1):t}return function(t){function n(t){return"string"==typeof t}var e=Array.isArray,o=!0;return!!(e(t)||G(t)||n(t))&&(n(t)?0===k(t).length:(t=function t(e,r,n){var o=K(e),u=void 0,c=void 0,i=void 0,a=void 0,f=void 0;if((n=Object.assign({depth:-1,path:""},n)).depth+=1,q(o))for(u=0,c=o.length;u<c;u++){var s=n.path+"."+u;void 0!==o[u]?(n.parent=K(o),i=t(r(o[u],void 0,Object.assign({},n,{path:H(s)})),r,Object.assign({},n,{path:H(s)})),Number.isNaN(i)&&u<o.length?(o.splice(u,1),u-=1):o[u]=i):o.splice(u,1)}else if(G(o))for(u=0,c=(a=Object.keys(o)).length;u<c;u++){f=a[u];var l=n.path+"."+f;0===n.depth&&null!=f&&(n.topmostKey=f),n.parent=K(o),i=t(r(f,o[f],Object.assign({},n,{path:H(l)})),r,Object.assign({},n,{path:H(l)})),Number.isNaN(i)?delete o[f]:o[f]=i}return o}(t,function(t,e){var r=void 0!==e?e:t;return n(r)&&""!==k(r)&&(o=!1),r},{}),o))}}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.astContainsOnlyEmptySpace=e()}(this,function(){"use strict";var $t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u=1/0,i="[object Symbol]",f=/^\s+|\s+$/g,t="\\ud800-\\udfff",e="\\u0300-\\u036f\\ufe20-\\ufe23",n="\\u20d0-\\u20f0",r="\\ufe0e\\ufe0f",c="["+t+"]",a="["+e+n+"]",l="\\ud83c[\\udffb-\\udfff]",s="[^"+t+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",y="\\u200d",h="(?:"+a+"|"+l+")"+"?",_="["+r+"]?",b=_+h+("(?:"+y+"(?:"+[s,p,d].join("|")+")"+_+h+")*"),v="(?:"+[s+a+"?",a,p,d,c].join("|")+")",g=RegExp(l+"(?="+l+")|"+v+b,"g"),j=RegExp("["+y+t+e+n+r+"]"),m="object"==o($t)&&$t&&$t.Object===Object&&$t,O="object"==("undefined"==typeof self?"undefined":o(self))&&self&&self.Object===Object&&self,S=m||O||Function("return this")();function $(t,e,n){if(e!=e)return function(t,e,n,r){for(var o=t.length,u=n+(r?1:-1);r?u--:++u<o;)if(e(t[u],u,t))return u;return-1}(t,w,n);for(var r=n-1,o=t.length;++r<o;)if(t[r]===e)return r;return-1}function w(t){return t!=t}function x(t){return e=t,j.test(e)?t.match(g)||[]:t.split("");var e}var A=Object.prototype.toString,P=S.Symbol,k=P?P.prototype:undefined$1,E=k?k.toString:undefined$1;function F(t){if("string"==typeof t)return t;if("symbol"==(void 0===(e=t)?"undefined":o(e))||(n=e)&&"object"==(void 0===n?"undefined":o(n))&&A.call(e)==i)return E?E.call(t):"";var e,n,r=t+"";return"0"==r&&1/t==-u?"-0":r}function N(t,e,n){var r=t.length;return n=n===undefined$1?r:n,!e&&r<=n?t:function(t,e,n){var r=-1,o=t.length;e<0&&(e=o<-e?0:o+e),(n=o<n?o:n)<0&&(n+=o),o=n<e?0:n-e>>>0,e>>>=0;for(var u=Array(o);++r<o;)u[r]=t[r+e];return u}(t,e,n)}var M=function(t,e,n){var r;if((t=null==(r=t)?"":F(r))&&(n||e===undefined$1))return t.replace(f,"");if(!t||!(e=F(e)))return t;var o=x(t),u=x(e);return N(o,function(t,e){for(var n=-1,r=t.length;++n<r&&-1<$(e,t[n],0););return n}(o,u),function(t,e){for(var n=t.length;n--&&-1<$(e,t[n],0););return n}(o,u)+1).join("")},R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};var B,T,C=Function.prototype,D=Object.prototype,I=C.toString,V=D.hasOwnProperty,W=I.call(Object),G=D.toString,K=(B=Object.getPrototypeOf,T=Object,function(t){return B(T(t))});var U,q=function(t){if(!(e=t)||"object"!=(void 0===e?"undefined":R(e))||"[object Object]"!=G.call(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t))return!1;var e,n=K(t);if(null===n)return!0;var r=V.call(n,"constructor")&&n.constructor;return"function"==typeof r&&r instanceof r&&I.call(r)==W},wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},z=(function(t,e){var r="__lodash_hash_undefined__",n=9007199254740991,O="[object Arguments]",S="[object Function]",$="[object GeneratorFunction]",o="[object Map]",w="[object Object]",u="[object Promise]",i="[object Set]",f="[object WeakMap]",c="[object DataView]",a=/^\[object .+?Constructor\]$/,l=/^(?:0|[1-9]\d*)$/,s="object"==wt($t)&&$t&&$t.Object===Object&&$t,p="object"==("undefined"==typeof self?"undefined":wt(self))&&self&&self.Object===Object&&self,d=s||p||Function("return this")(),y=e&&!e.nodeType&&e,h=y&&t&&!t.nodeType&&t,_=h&&h.exports===y;function x(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function b(e,n){return function(t){return e(n(t))}}var v,g=Array.prototype,j=Function.prototype,m=Object.prototype,A=d["__core-js_shared__"],P=(v=/[^.]+$/.exec(A&&A.keys&&A.keys.IE_PROTO||""))?"Symbol(src)_1."+v:"",k=j.toString,E=m.hasOwnProperty,F=m.toString,N=RegExp("^"+k.call(E).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),M=_?d.Buffer:undefined$3,R=d.Symbol,B=(d.Uint8Array,b(Object.getPrototypeOf,Object)),T=Object.create,C=m.propertyIsEnumerable,D=g.splice,I=Object.getOwnPropertySymbols,V=M?M.isBuffer:undefined$3,W=b(Object.keys,Object),G=st(d,"DataView"),K=st(d,"Map"),U=st(d,"Promise"),q=st(d,"Set"),z=st(d,"WeakMap"),H=st(Object,"create"),J=_t(G),L=_t(K),Q=_t(U),X=_t(q),Y=_t(z),Z=R?R.prototype:undefined$3;Z?Z.valueOf:undefined$3;function tt(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function et(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function nt(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function rt(t){this.__data__=new et(t)}function ot(t,e){var n,r,o,u=vt(t)||(o=r=n=t)&&"object"==(void 0===o?"undefined":wt(o))&>(r)&&E.call(n,"callee")&&(!C.call(n,"callee")||F.call(n)==O)?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],i=u.length,f=!!i;for(var c in t)!e&&!E.call(t,c)||f&&yt(c,i)||u.push(c);return u}function ut(t,e,n){var r=t[e];E.call(t,e)&&bt(r,n)&&(n!==undefined$3||e in t)||(t[e]=n)}function it(t,e){for(var n=t.length;n--;)if(bt(t[n][0],e))return n;return-1}function ft(n,r,o,u,t,e,i){var f;if(u&&(f=e?u(n,t,e,i):u(n)),f!==undefined$3)return f;if(!Ot(n))return n;var c,a,l,s,p,d,y=vt(n);if(y){if(f=function(t){var e=t.length,n=t.constructor(e);e&&"string"==typeof t[0]&&E.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(n),!r)return function(t,e){var n=-1,r=t.length;e||(e=Array(r));for(;++n<r;)e[n]=t[n];return e}(n,f)}else{var h=dt(n),_=h==S||h==$;if(jt(n))return function(t,e){if(e)return t.slice();var n=new t.constructor(t.length);return t.copy(n),n}(n,r);if(h!=w&&h!=O&&(!_||e))return e?n:{};if(x(n))return e?n:{};if(f="function"!=typeof(p=_?{}:n).constructor||ht(p)?{}:Ot(d=B(p))?T(d):{},!r)return s=c=n,a=(l=f)&&at(s,St(s),l),at(c,pt(c),a)}i||(i=new rt);var b,v,g,j=i.get(n);if(j)return j;if(i.set(n,f),!y)var m=o?(v=pt,g=St(b=n),vt(b)?g:function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}(g,v(b))):St(n);return function(t,e){for(var n=-1,r=t?t.length:0;++n<r&&!1!==e(t[n],n,t););}(m||n,function(t,e){m&&(t=n[e=t]),ut(f,e,ft(t,r,o,u,e,n,i))}),f}function ct(t){return!(!Ot(t)||(e=t,P&&P in e))&&(mt(t)||x(t)?N:a).test(_t(t));var e}function at(t,e,n,r){n||(n={});for(var o=-1,u=e.length;++o<u;){var i=e[o],f=r?r(n[i],t[i],i,n,t):undefined$3;ut(n,i,f===undefined$3?t[i]:f)}return n}function lt(t,e){var n,r,o=t.__data__;return("string"==(r=void 0===(n=e)?"undefined":wt(n))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function st(t,e){var n,r,o=(r=e,null==(n=t)?undefined$3:n[r]);return ct(o)?o:undefined$3}tt.prototype.clear=function(){this.__data__=H?H(null):{}},tt.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},tt.prototype.get=function(t){var e=this.__data__;if(H){var n=e[t];return n===r?undefined$3:n}return E.call(e,t)?e[t]:undefined$3},tt.prototype.has=function(t){var e=this.__data__;return H?e[t]!==undefined$3:E.call(e,t)},tt.prototype.set=function(t,e){return this.__data__[t]=H&&e===undefined$3?r:e,this},et.prototype.clear=function(){this.__data__=[]},et.prototype.delete=function(t){var e=this.__data__,n=it(e,t);return!(n<0||(n==e.length-1?e.pop():D.call(e,n,1),0))},et.prototype.get=function(t){var e=this.__data__,n=it(e,t);return n<0?undefined$3:e[n][1]},et.prototype.has=function(t){return-1<it(this.__data__,t)},et.prototype.set=function(t,e){var n=this.__data__,r=it(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},nt.prototype.clear=function(){this.__data__={hash:new tt,map:new(K||et),string:new tt}},nt.prototype.delete=function(t){return lt(this,t).delete(t)},nt.prototype.get=function(t){return lt(this,t).get(t)},nt.prototype.has=function(t){return lt(this,t).has(t)},nt.prototype.set=function(t,e){return lt(this,t).set(t,e),this},rt.prototype.clear=function(){this.__data__=new et},rt.prototype.delete=function(t){return this.__data__.delete(t)},rt.prototype.get=function(t){return this.__data__.get(t)},rt.prototype.has=function(t){return this.__data__.has(t)},rt.prototype.set=function(t,e){var n=this.__data__;if(n instanceof et){var r=n.__data__;if(!K||r.length<199)return r.push([t,e]),this;n=this.__data__=new nt(r)}return n.set(t,e),this};var pt=I?b(I,Object):function(){return[]},dt=function(t){return F.call(t)};function yt(t,e){return!!(e=null==e?n:e)&&("number"==typeof t||l.test(t))&&-1<t&&t%1==0&&t<e}function ht(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||m)}function _t(t){if(null!=t){try{return k.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function bt(t,e){return t===e||t!=t&&e!=e}(G&&dt(new G(new ArrayBuffer(1)))!=c||K&&dt(new K)!=o||U&&dt(U.resolve())!=u||q&&dt(new q)!=i||z&&dt(new z)!=f)&&(dt=function(t){var e=F.call(t),n=e==w?t.constructor:undefined$3,r=n?_t(n):undefined$3;if(r)switch(r){case J:return c;case L:return o;case Q:return u;case X:return i;case Y:return f}return e});var vt=Array.isArray;function gt(t){return null!=t&&("number"==typeof(e=t.length)&&-1<e&&e%1==0&&e<=n)&&!mt(t);var e}var jt=V||function(){return!1};function mt(t){var e=Ot(t)?F.call(t):"";return e==S||e==$}function Ot(t){var e=void 0===t?"undefined":wt(t);return!!t&&("object"==e||"function"==e)}function St(t){return gt(t)?ot(t):function(t){if(!ht(t))return W(t);var e=[];for(var n in Object(t))E.call(t,n)&&"constructor"!=n&&e.push(n);return e}(t)}t.exports=function(t){return ft(t,!0,!0)}}(U={exports:{}},U.exports),U.exports),H=Array.isArray;function J(t){return"string"==typeof t&&0<t.length&&"."===t[0]?t.slice(1):t}return function(t){function r(t){return"string"==typeof t}var e=Array.isArray,o=!0;return!!(e(t)||q(t)||r(t))&&(r(t)?0===M(t).length:(t=function t(e,n,r){var o=z(e),u=void 0,i=void 0,f=void 0,c=void 0,a=void 0;if((r=Object.assign({depth:-1,path:""},r)).depth+=1,H(o))for(u=0,i=o.length;u<i;u++){var l=r.path+"."+u;o[u]!==undefined$4?(r.parent=z(o),f=t(n(o[u],undefined$4,Object.assign({},r,{path:J(l)})),n,Object.assign({},r,{path:J(l)})),Number.isNaN(f)&&u<o.length?(o.splice(u,1),u-=1):o[u]=f):o.splice(u,1)}else if(q(o))for(u=0,i=(c=Object.keys(o)).length;u<i;u++){a=c[u];var s=r.path+"."+a;0===r.depth&&null!=a&&(r.topmostKey=a),r.parent=z(o),f=t(n(a,o[a],Object.assign({},r,{path:J(s)})),n,Object.assign({},r,{path:J(s)})),Number.isNaN(f)?delete o[a]:o[a]=f}return o}(t,function(t,e){var n=e!==undefined$5?e:t;return r(n)&&""!==M(n)&&(o=!1),n},{}),o))}}); |
{ | ||
"name": "ast-contains-only-empty-space", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "Returns Boolean depending if passed AST contain only empty space", | ||
@@ -159,3 +159,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"ast-monkey-traverse": "^1.3.1", | ||
"ast-monkey-traverse": "^1.3.2", | ||
"lodash.isplainobject": "*", | ||
@@ -162,0 +162,0 @@ "lodash.trim": "*" |
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
25754
94
Updatedast-monkey-traverse@^1.3.2