Socket
Socket
Sign inDemoInstall

ast-monkey-traverse

Package Overview
Dependencies
Maintainers
1
Versions
152
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ast-monkey-traverse - npm Package Compare versions

Comparing version 1.3.2 to 1.3.3

2

dist/ast-monkey-traverse.umd.js

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.astMonkeyTraverse=e()}(this,function(){"use strict";var Qt="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var t,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},p=(function(t,e){var n="__lodash_hash_undefined__",r=9007199254740991,m="[object Arguments]",w="[object Boolean]",S="[object Date]",A="[object Function]",x="[object GeneratorFunction]",P="[object Map]",$="[object Number]",k="[object Object]",o="[object Promise]",E="[object RegExp]",F="[object Set]",I="[object String]",N="[object Symbol]",c="[object WeakMap]",B="[object ArrayBuffer]",M="[object DataView]",U="[object Float32Array]",T="[object Float64Array]",D="[object Int8Array]",R="[object Int16Array]",z="[object Int32Array]",C="[object Uint8Array]",L="[object Uint8ClampedArray]",V="[object Uint16Array]",W="[object Uint32Array]",G=/\w*$/,a=/^\[object .+?Constructor\]$/,i=/^(?:0|[1-9]\d*)$/,K={};K[m]=K["[object Array]"]=K[B]=K[M]=K[w]=K[S]=K[U]=K[T]=K[D]=K[R]=K[z]=K[P]=K[$]=K[k]=K[E]=K[F]=K[I]=K[N]=K[C]=K[L]=K[V]=K[W]=!0,K["[object Error]"]=K[A]=K[c]=!1;var u="object"==Xt(Qt)&&Qt&&Qt.Object===Object&&Qt,f="object"==("undefined"==typeof self?"undefined":Xt(self))&&self&&self.Object===Object&&self,s=u||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,c=t?t.length:0;for(n&&c&&(r=t[++o]);++o<c;)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 h,v=Array.prototype,b=Function.prototype,_=Object.prototype,j=s["__core-js_shared__"],g=(h=/[^.]+$/.exec(j&&j.keys&&j.keys.IE_PROTO||""))?"Symbol(src)_1."+h:"",O=b.toString,Z=_.hasOwnProperty,tt=_.toString,et=RegExp("^"+O.call(Z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),rt=y?s.Buffer:void 0,nt=s.Symbol,ot=s.Uint8Array,ct=d(Object.getPrototypeOf,Object),at=Object.create,it=_.propertyIsEnumerable,ut=v.splice,ft=Object.getOwnPropertySymbols,st=rt?rt.isBuffer:void 0,lt=d(Object.keys,Object),pt=Tt(s,"DataView"),yt=Tt(s,"Map"),dt=Tt(s,"Promise"),ht=Tt(s,"Set"),vt=Tt(s,"WeakMap"),bt=Tt(Object,"create"),_t=Lt(pt),jt=Lt(yt),gt=Lt(dt),Ot=Lt(ht),mt=Lt(vt),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 Pt(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 $t(t){this.__data__=new xt(t)}function kt(t,e){var r,n,o,c=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)==m)?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],a=c.length,i=!!a;for(var u in t)!e&&!Z.call(t,u)||i&&("length"==u||zt(u,a))||c.push(u);return c}function Et(t,e,r){var n=t[e];Z.call(t,e)&&Vt(n,r)&&(void 0!==r||e in t)||(t[e]=r)}function Ft(t,e){for(var r=t.length;r--;)if(Vt(t[r][0],e))return r;return-1}function It(r,n,o,c,t,e,a){var i;if(c&&(i=e?c(r,t,e,a):c(r)),void 0!==i)return i;if(!Ht(r))return r;var u,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 h=Rt(r),v=h==A||h==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(h==k||h==m||v&&!e){if(Q(r))return e?r:{};if(i="function"!=typeof(p=v?{}:r).constructor||Ct(p)?{}:Ht(y=ct(p))?at(y):{},!n)return l=u=r,f=(s=i)&&Mt(l,Jt(l),s),Mt(u,Dt(u),f)}else{if(!K[h])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 M:return d=t,h=n?Bt(d.buffer):d.buffer,new d.constructor(h,d.byteOffset,d.byteLength);case U:case T:case D:case R:case z:case C: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 P:return s=t,l=r,J(n?l(X(s),!0):X(s),q,new s.constructor);case $:case I:return new o(t);case E:return(f=new(u=t).constructor(u.source,G.exec(u))).lastIndex=u.lastIndex,f;case F:return a=t,i=r,J(n?i(Y(a),!0):Y(a),H,new a.constructor);case N:return c=t,St?Object(St.call(c)):{}}var c;var a,i;var u,f;var s,l;var p,y;var d,h}(r,h,It,n)}}a||(a=new $t);var b,_,j,g=a.get(r);if(g)return g;if(a.set(r,i),!d)var O=o?(_=Dt,j=Jt(b=r),Wt(b)?j:function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}(j,_(b))):Jt(r);return function(t,e){for(var r=-1,n=t?t.length:0;++r<n&&!1!==e(t[r],r,t););}(O||r,function(t,e){O&&(t=r[e=t]),Et(i,e,It(t,n,o,c,e,r,a))}),i}function Nt(t){return!(!Ht(t)||(e=t,g&&g in e))&&(qt(t)||Q(t)?et:a).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 Mt(t,e,r,n){r||(r={});for(var o=-1,c=e.length;++o<c;){var a=e[o],i=n?n(r[a],t[a],a,r,t):void 0;Et(r,a,void 0===i?t[a]: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 Tt(t,e){var r,n,o=(n=e,null==(r=t)?void 0:r[n]);return Nt(o)?o:void 0}At.prototype.clear=function(){this.__data__=bt?bt(null):{}},At.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},At.prototype.get=function(t){var e=this.__data__;if(bt){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 bt?void 0!==e[t]:Z.call(e,t)},At.prototype.set=function(t,e){return this.__data__[t]=bt&&void 0===e?n:e,this},xt.prototype.clear=function(){this.__data__=[]},xt.prototype.delete=function(t){var e=this.__data__,r=Ft(e,t);return!(r<0||(r==e.length-1?e.pop():ut.call(e,r,1),0))},xt.prototype.get=function(t){var e=this.__data__,r=Ft(e,t);return r<0?void 0:e[r][1]},xt.prototype.has=function(t){return-1<Ft(this.__data__,t)},xt.prototype.set=function(t,e){var r=this.__data__,n=Ft(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},Pt.prototype.clear=function(){this.__data__={hash:new At,map:new(yt||xt),string:new At}},Pt.prototype.delete=function(t){return Ut(this,t).delete(t)},Pt.prototype.get=function(t){return Ut(this,t).get(t)},Pt.prototype.has=function(t){return Ut(this,t).has(t)},Pt.prototype.set=function(t,e){return Ut(this,t).set(t,e),this},$t.prototype.clear=function(){this.__data__=new xt},$t.prototype.delete=function(t){return this.__data__.delete(t)},$t.prototype.get=function(t){return this.__data__.get(t)},$t.prototype.has=function(t){return this.__data__.has(t)},$t.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 Pt(n)}return r.set(t,e),this};var Dt=ft?d(ft,Object):function(){return[]},Rt=function(t){return tt.call(t)};function zt(t,e){return!!(e=null==e?r:e)&&("number"==typeof t||i.test(t))&&-1<t&&t%1==0&&t<e}function Ct(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||_)}function Lt(t){if(null!=t){try{return O.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Vt(t,e){return t===e||t!=t&&e!=e}(pt&&Rt(new pt(new ArrayBuffer(1)))!=M||yt&&Rt(new yt)!=P||dt&&Rt(dt.resolve())!=o||ht&&Rt(new ht)!=F||vt&&Rt(new vt)!=c)&&(Rt=function(t){var e=tt.call(t),r=e==k?t.constructor:void 0,n=r?Lt(r):void 0;if(n)switch(n){case _t:return M;case jt:return P;case gt:return o;case Ot:return F;case mt:return c}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)?kt(t):function(t){if(!Ct(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 It(t,!0,!0)}}(t={exports:{}},t.exports),t.exports),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};var e,r,n=Function.prototype,c=Object.prototype,a=n.toString,i=c.hasOwnProperty,u=a.call(Object),f=c.toString,s=(e=Object.getPrototypeOf,r=Object,function(t){return e(r(t))});var y=function(t){if(!(e=t)||"object"!=(void 0===e?"undefined":o(e))||"[object Object]"!=f.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=s(t);if(null===r)return!0;var n=i.call(r,"constructor")&&r.constructor;return"function"==typeof n&&n instanceof n&&a.call(n)==u},d=Array.isArray;function h(t){return"string"==typeof t&&0<t.length&&"."===t[0]?t.slice(1):t}return function(t,e){return function t(e,r,n){var o=p(e),c=void 0,a=void 0,i=void 0,u=void 0,f=void 0;if((n=Object.assign({depth:-1,path:""},n)).depth+=1,d(o))for(c=0,a=o.length;c<a;c++){var s=n.path+"."+c;void 0!==o[c]?(n.parent=p(o),i=t(r(o[c],void 0,Object.assign({},n,{path:h(s)})),r,Object.assign({},n,{path:h(s)})),Number.isNaN(i)&&c<o.length?(o.splice(c,1),c-=1):o[c]=i):o.splice(c,1)}else if(y(o))for(c=0,a=(u=Object.keys(o)).length;c<a;c++){f=u[c];var l=n.path+"."+f;0===n.depth&&null!=f&&(n.topmostKey=f),n.parent=p(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,e,{})}});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.astMonkeyTraverse=e()}(this,function(){"use strict";var St="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var t,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},p=(function(t,e){var r="__lodash_hash_undefined__",n=9007199254740991,m="[object Arguments]",w="[object Function]",S="[object GeneratorFunction]",o="[object Map]",x="[object Object]",i="[object Promise]",u="[object Set]",c="[object WeakMap]",a="[object DataView]",f=/^\[object .+?Constructor\]$/,s=/^(?:0|[1-9]\d*)$/,l="object"==xt(St)&&St&&St.Object===Object&&St,p="object"==("undefined"==typeof self?"undefined":xt(self))&&self&&self.Object===Object&&self,y=l||p||Function("return this")(),_=e&&!e.nodeType&&e,d=_&&t&&!t.nodeType&&t,h=d&&d.exports===_;function A(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function v(e,n){return function(t){return e(n(t))}}var b,g=Array.prototype,j=Function.prototype,O=Object.prototype,P=y["__core-js_shared__"],k=(b=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||""))?"Symbol(src)_1."+b:"",$=j.toString,N=O.hasOwnProperty,F=O.toString,M=RegExp("^"+$.call(N).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),T=h?y.Buffer:void 0,B=y.Symbol,E=(y.Uint8Array,v(Object.getPrototypeOf,Object)),D=Object.create,I=O.propertyIsEnumerable,R=g.splice,V=Object.getOwnPropertySymbols,W=T?T.isBuffer:void 0,C=v(Object.keys,Object),G=lt(y,"DataView"),K=lt(y,"Map"),U=lt(y,"Promise"),q=lt(y,"Set"),z=lt(y,"WeakMap"),H=lt(Object,"create"),J=ht(G),L=ht(K),Q=ht(U),X=ht(q),Y=ht(z),Z=B?B.prototype:void 0;Z&&Z.valueOf;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,i=bt(t)||(o=r=n=t)&&"object"==(void 0===o?"undefined":xt(o))&&gt(r)&&N.call(n,"callee")&&(!I.call(n,"callee")||F.call(n)==m)?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],u=i.length,c=!!u;for(var a in t)!e&&!N.call(t,a)||c&&("length"==a||_t(a,u))||i.push(a);return i}function it(t,e,n){var r=t[e];N.call(t,e)&&vt(r,n)&&(void 0!==n||e in t)||(t[e]=n)}function ut(t,e){for(var n=t.length;n--;)if(vt(t[n][0],e))return n;return-1}function ct(n,r,o,i,t,e,u){var c;if(i&&(c=e?i(n,t,e,u):i(n)),void 0!==c)return c;if(!mt(n))return n;var a,f,s,l,p,y,_=bt(n);if(_){if(c=function(t){var e=t.length,n=t.constructor(e);e&&"string"==typeof t[0]&&N.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,c)}else{var d=yt(n),h=d==w||d==S;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(d!=x&&d!=m&&(!h||e))return e?n:{};if(A(n))return e?n:{};if(c="function"!=typeof(p=h?{}:n).constructor||dt(p)?{}:mt(y=E(p))?D(y):{},!r)return l=a=n,f=(s=c)&&ft(l,wt(l),s),ft(a,pt(a),f)}u||(u=new rt);var v,b,g,j=u.get(n);if(j)return j;if(u.set(n,c),!_)var O=o?(b=pt,g=wt(v=n),bt(v)?g:function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}(g,b(v))):wt(n);return function(t,e){for(var n=-1,r=t?t.length:0;++n<r&&!1!==e(t[n],n,t););}(O||n,function(t,e){O&&(t=n[e=t]),it(c,e,ct(t,r,o,i,e,n,u))}),c}function at(t){return!(!mt(t)||(e=t,k&&k in e))&&(Ot(t)||A(t)?M:f).test(ht(t));var e}function ft(t,e,n,r){n||(n={});for(var o=-1,i=e.length;++o<i;){var u=e[o],c=r?r(n[u],t[u],u,n,t):void 0;it(n,u,void 0===c?t[u]:c)}return n}function st(t,e){var n,r,o=t.__data__;return("string"==(r=void 0===(n=e)?"undefined":xt(n))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function lt(t,e){var n,r,o=(r=e,null==(n=t)?void 0:n[r]);return at(o)?o:void 0}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?void 0:n}return N.call(e,t)?e[t]:void 0},tt.prototype.has=function(t){var e=this.__data__;return H?void 0!==e[t]:N.call(e,t)},tt.prototype.set=function(t,e){return this.__data__[t]=H&&void 0===e?r:e,this},et.prototype.clear=function(){this.__data__=[]},et.prototype.delete=function(t){var e=this.__data__,n=ut(e,t);return!(n<0||(n==e.length-1?e.pop():R.call(e,n,1),0))},et.prototype.get=function(t){var e=this.__data__,n=ut(e,t);return n<0?void 0:e[n][1]},et.prototype.has=function(t){return-1<ut(this.__data__,t)},et.prototype.set=function(t,e){var n=this.__data__,r=ut(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 st(this,t).delete(t)},nt.prototype.get=function(t){return st(this,t).get(t)},nt.prototype.has=function(t){return st(this,t).has(t)},nt.prototype.set=function(t,e){return st(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=V?v(V,Object):function(){return[]},yt=function(t){return F.call(t)};function _t(t,e){return!!(e=null==e?n:e)&&("number"==typeof t||s.test(t))&&-1<t&&t%1==0&&t<e}function dt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||O)}function ht(t){if(null!=t){try{return $.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function vt(t,e){return t===e||t!=t&&e!=e}(G&&yt(new G(new ArrayBuffer(1)))!=a||K&&yt(new K)!=o||U&&yt(U.resolve())!=i||q&&yt(new q)!=u||z&&yt(new z)!=c)&&(yt=function(t){var e=F.call(t),n=e==x?t.constructor:void 0,r=n?ht(n):void 0;if(r)switch(r){case J:return a;case L:return o;case Q:return i;case X:return u;case Y:return c}return e});var bt=Array.isArray;function gt(t){return null!=t&&("number"==typeof(e=t.length)&&-1<e&&e%1==0&&e<=n)&&!Ot(t);var e}var jt=W||function(){return!1};function Ot(t){var e=mt(t)?F.call(t):"";return e==w||e==S}function mt(t){var e=void 0===t?"undefined":xt(t);return!!t&&("object"==e||"function"==e)}function wt(t){return gt(t)?ot(t):function(t){if(!dt(t))return C(t);var e=[];for(var n in Object(t))N.call(t,n)&&"constructor"!=n&&e.push(n);return e}(t)}t.exports=function(t){return ct(t,!0,!0)}}(t={exports:{}},t.exports),t.exports),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};var e,n,r=Function.prototype,i=Object.prototype,u=r.toString,c=i.hasOwnProperty,a=u.call(Object),f=i.toString,s=(e=Object.getPrototypeOf,n=Object,function(t){return e(n(t))});var y=function(t){if(!(e=t)||"object"!=(void 0===e?"undefined":o(e))||"[object Object]"!=f.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=s(t);if(null===n)return!0;var r=c.call(n,"constructor")&&n.constructor;return"function"==typeof r&&r instanceof r&&u.call(r)==a},_=Array.isArray;function d(t){return"string"==typeof t&&0<t.length&&"."===t[0]?t.slice(1):t}return function(t,e){return function t(e,n,r){var o=p(e),i=void 0,u=void 0,c=void 0,a=void 0,f=void 0;if((r=Object.assign({depth:-1,path:""},r)).depth+=1,_(o))for(i=0,u=o.length;i<u;i++){var s=r.path+"."+i;void 0!==o[i]?(r.parent=p(o),c=t(n(o[i],void 0,Object.assign({},r,{path:d(s)})),n,Object.assign({},r,{path:d(s)})),Number.isNaN(c)&&i<o.length?(o.splice(i,1),i-=1):o[i]=c):o.splice(i,1)}else if(y(o))for(i=0,u=(a=Object.keys(o)).length;i<u;i++){f=a[i];var l=r.path+"."+f;0===r.depth&&null!=f&&(r.topmostKey=f),r.parent=p(o),c=t(n(f,o[f],Object.assign({},r,{path:d(l)})),n,Object.assign({},r,{path:d(l)})),Number.isNaN(c)?delete o[f]:o[f]=c}return o}(t,e,{})}});
{
"name": "ast-monkey-traverse",
"version": "1.3.2",
"version": "1.3.3",
"description": "Utility library to traverse parsed HTML (AST's) or anything nested (plain objects within arrays within plain objects)",

@@ -187,3 +187,3 @@ "license": "MIT",

"rollup": "latest",
"rollup-plugin-babel": "^3.0.4",
"rollup-plugin-babel": "^3.0.5",
"rollup-plugin-commonjs": "^9.1.3",

@@ -190,0 +190,0 @@ "rollup-plugin-node-resolve": "^3.3.0",

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