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

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.4.1 to 1.4.2

LICENSE

25

changelog.md
# Change Log
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
## 1.4.2 (2018-12-26)
## [1.4.0] - 2018-10-13
**Note:** Version bump only for package ast-monkey-traverse
## 1.4.0 (2018-10-13)
- ✨ Updated all dependencies and restored coverage tracking both via terminal when testing and through coveralls.io
## [1.3.0] - 2018-06-11
## 1.3.0 (2018-06-11)

@@ -20,3 +26,3 @@ GitHub sold us out. In the meantime, we:

## [1.2.0] - 2018-05-02
## 1.2.0 (2018-05-02)

@@ -27,13 +33,8 @@ - ✨ Set up [Prettier](https://prettier.io)

## [1.1.0] - 2018-01-03
## 1.1.0 (2018-01-03)
- ✨ New key in the `innerObj` callback - `innerObj.path`. It's interoperable with [object-path](https://www.npmjs.com/package/object-path).
## 1.0.1 - 2017-12-22
## 1.0.1 (2017-12-22)
- ✨ First public release.
[1.1.0]: https://bitbucket.org/codsen/ast-monkey-traverse/branches/compare/v1.1.0%0Dv1.0.4#diff
[1.2.0]: https://bitbucket.org/codsen/ast-monkey-traverse/branches/compare/v1.2.0%0Dv1.1.3#diff
[1.3.0]: https://bitbucket.org/codsen/ast-monkey-traverse/branches/compare/v1.3.0%0Dv1.2.1#diff
[1.4.0]: https://bitbucket.org/codsen/ast-monkey-traverse/branches/compare/v1.4.0%0Dv1.3.3#diff

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

@@ -11,7 +11,4 @@ "license": "MIT",

},
"repository": {
"type": "git",
"url": "https://bitbucket.org/codsen/ast-monkey-traverse.git"
},
"homepage": "https://bitbucket.org/codsen/ast-monkey-traverse/",
"repository": "https://bitbucket.org/codsen/codsen/src/master/packages/ast-monkey-traverse",
"homepage": "https://bitbucket.org/codsen/codsen/src/master/packages/ast-monkey-traverse",
"author": {

@@ -178,33 +175,34 @@ "email": "roy@codsen.com",

"dependencies": {
"lodash.clonedeep": "*",
"lodash.isplainobject": "*"
"lodash.clonedeep": "^4.5.0",
"lodash.isplainobject": "^4.0.6"
},
"devDependencies": {
"@babel/core": "^7.1.2",
"@babel/preset-env": "^7.1.0",
"@babel/core": "^7.2.2",
"@babel/preset-env": "^7.2.3",
"@babel/register": "^7.0.0",
"ava": "1.0.0-rc.1",
"ava": "^1.0.1",
"babel-plugin-istanbul": "^5.1.0",
"coveralls": "latest",
"eslint": "latest",
"eslint-config-prettier": "latest",
"eslint-plugin-ava": "latest",
"eslint-plugin-import": "latest",
"eslint-plugin-no-unsanitized": "latest",
"eslint-plugin-no-wildcard-postmessage": "latest",
"eslint-plugin-prettier": "latest",
"eslint-plugin-scanjs-rules": "latest",
"husky": "^1.1.2",
"lodash.isequal": "latest",
"nyc": "latest",
"object-path": "latest",
"prettier": "latest",
"rollup": "latest",
"rollup-plugin-babel": "^4.0.3",
"coveralls": "^3.0.2",
"eslint": "^5.11.0",
"eslint-config-prettier": "^3.3.0",
"eslint-plugin-ava": "^5.1.1",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-no-unsanitized": "^3.0.2",
"eslint-plugin-no-wildcard-postmessage": "^0.1.3",
"eslint-plugin-prettier": "^3.0.0",
"eslint-plugin-scanjs-rules": "^0.2.1",
"husky": "^1.2.1",
"lodash.isequal": "^4.5.0",
"nyc": "^13.1.0",
"object-path": "^0.11.4",
"prettier": "^1.15.3",
"rollup": "^0.68.2",
"rollup-plugin-babel": "^4.1.0",
"rollup-plugin-cleanup": "^3.0.0",
"rollup-plugin-commonjs": "^9.2.0",
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-node-resolve": "^4.0.0",
"rollup-plugin-strip": "^1.2.0",
"rollup-plugin-terser": "^3.0.0"
}
},
"gitHead": "7101106bf752c185421f50798c6d845ec34f67c5"
}
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