Comparing version 0.19.1 to 0.20.0
@@ -1,2 +0,2 @@ | ||
module.exports=function(t){function n(r){if(e[r])return e[r].exports;var i=e[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}var e={};return n.m=t,n.c=e,n.p="",n(0)}([function(t,n,e){function r(t){s(this),this._path=[],this._root=this,this.commit(t)}var i=e(3),u=e(4),o=e(1),s=e(5);r.prototype={getPath:function(t){return this._path.concat(t).filter(function(t){return void 0!==t})},getRoot:function(){return this._root},commit:function(t){var n=this.getRoot(),e=n._state;e!==t&&(n._state=t,this.volley(n._state))},clear:function(){this.commit()},get:function(t,n){return o(this._state,this.getPath(t),n)},set:function(t,n){1===arguments.length&&(n=arguments[0],t=void 0),this.commit(i(this._state,this.getPath(t),n))},update:function(t,n){1===arguments.length&&(n=arguments[0],t=void 0);for(var e in n)this.set([t,e],n[e])},remove:function(t){this.commit(u(this._state,this.getPath(t)))},refine:function(t){return Object.create(this,{_path:{value:this.getPath(t)}})},keys:function(){return Object.keys(this.valueOf()||{})},values:function(){return this.keys().map(function(t){return this.get(t)},this)},valueOf:function(){return o(this._state,this.getPath())},toJSON:function(){return this.valueOf()},is:function(t){return t.valueOf()==this.valueOf()},find:function(t,n){return this.filter(t,n)[0]},includes:function(t){return this.indexOf(t)>-1},first:function(){return this.values().shift()},last:function(){return this.values().pop()},size:function(){return this.values().length}};var a=["sort","map","reduce","filter","forEach","some","every","join","indexOf"];a.forEach(function(t){r.prototype[t]=function(){var n;return(n=this.values())[t].apply(n,arguments)}}),t.exports=r},function(t,n,e){function r(t,n){return t?t[n]:void 0}t.exports=function(t,n,e){var i=n.reduce(r,t);return void 0===i?e:i}},function(t,n,e){t.exports=function(t){if(Array.isArray(t))return t.slice();var n={};for(var e in t)n[e]=t[e];return n}},function(t,n,e){var r=e(2),i=e(1);t.exports=function u(t,n,e){if(i(t,n)===e)return t;var o=n[0],s=n.slice(1),a=r(t);return n.length>1?a[o]=u(i(a,[o])||{},s,e):o?a[o]=e:a=e,a}},function(t,n,e){var r=e(2),i=e(1);t.exports=function u(t,n){if(void 0===i(t,n))return t;var e=n[0],o=n.slice(1),s=r(t);return o.length?(s[e]=u(t[e],o),0===Object.keys(s[e]).length&&delete s[e]):delete s[e],s}},function(t,n,e){function r(t){var n=[],e=t;t=this instanceof r?this:t||{};var i=function(){for(var e=0;e<n.length;e++)n[e].apply(t,arguments)};return t.listen=t.subscribe=function(e){return n=n.concat(e),t},t.ignore=t.unsubscribe=function(e){return n=n.filter(function(t){return t!==e}),t},t.emit=t.publish=function(){return i.apply(t,arguments),t},t.volley=function(){var r=arguments;return n.length>0&&(cancelAnimationFrame(e),e=requestAnimationFrame(function(){i.apply(t,r)})),t},t}t.exports=r(r),t.exports.decorate=r}]); | ||
module.exports=function(t){function n(r){if(e[r])return e[r].exports;var i=e[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}var e={};return n.m=t,n.c=e,n.p="",n(0)}([function(t,n,e){function r(t){s(this),this._path=[],this._root=this,this.commit(t)}var i=e(3),u=e(4),o=e(1),s=e(5);r.prototype={getPath:function(t){return this._path.concat(t).filter(function(t){return void 0!==t})},getRoot:function(){return this._root},commit:function(t){var n=this.getRoot(),e=n._state;e!==t&&(n._state=t,this.volley(n._state))},clear:function(){this.commit()},get:function(t,n){return o(this._state,this.getPath(t),n)},set:function(t,n){1===arguments.length&&(n=arguments[0],t=void 0),this.commit(i(this._state,this.getPath(t),n))},update:function(t,n){1===arguments.length&&(n=arguments[0],t=void 0);for(var e in n)this.set([t,e],n[e])},remove:function(t){this.commit(u(this._state,this.getPath(t)))},refine:function(t){return Object.create(this,{_path:{value:this.getPath(t)}})},keys:function(){return Object.keys(this.valueOf()||{})},values:function(){return this.keys().map(function(t){return this.get(t)},this)},valueOf:function(){return o(this._state,this.getPath())},toJSON:function(){return this.valueOf()},is:function(t){return t.valueOf()==this.valueOf()},find:function(t,n){return this.filter(t,n)[0]},includes:function(t){return this.indexOf(t)>-1},first:function(){return this.values().shift()},last:function(){return this.values().pop()},size:function(){return this.values().length}};var a=["sort","map","reduce","filter","forEach","some","every","join","indexOf"];a.forEach(function(t){r.prototype[t]=function(){var n;return(n=this.values())[t].apply(n,arguments)}}),t.exports=r},function(t,n,e){function r(t,n){return t?t[n]:void 0}t.exports=function(t,n,e){var i=n.reduce(r,t);return void 0===i?e:i}},function(t,n,e){t.exports=function(t){if(Array.isArray(t))return t.slice();var n={};for(var e in t)n[e]=t[e];return n}},function(t,n,e){var r=e(2),i=e(1);t.exports=function u(t,n,e){if(i(t,n)===e)return t;var o=n[0],s=n.slice(1),a=r(t);return n.length>1?a[o]=u(i(a,[o])||{},s,e):o?a[o]=e:a=e,a}},function(t,n,e){var r=e(2),i=e(1);t.exports=function u(t,n){if(void 0===i(t,n))return t;var e=n[0],o=n.slice(1),s=r(t);return o.length?(s[e]=u(t[e],o),0===Object.keys(s[e]).length&&delete s[e]):delete s[e],s}},function(t,n,e){function r(t){var n=[],e=t,i=null;t=this instanceof r?this:t||{};var u=function(e){for(var r=0;r<n.length;r++)n[r].apply(t,e)},o=function(){var t=+new Date;i&&10>t-i?cancelAnimationFrame(e):i=t};return t.listen=t.subscribe=function(e){return n=n.concat(e),t},t.ignore=t.unsubscribe=function(e){return n=n.filter(function(t){return t!==e}),t},t.emit=t.publish=function(){return u(arguments),t},t.volley=function(){return n.length>0&&(o(),e=requestAnimationFrame(u.bind(void 0,arguments))),t},t}var i=1e3/120;t.exports=r(r),t.exports.decorate=r,t.exports.FRAMES=i}]); | ||
//# sourceMappingURL=foliage.build.js.map |
{ | ||
"name": "foliage", | ||
"version": "0.19.1", | ||
"version": "0.20.0", | ||
"description": "A cursor like tree data structure.", | ||
@@ -19,4 +19,4 @@ "main": "src/Foliage.js", | ||
"dependencies": { | ||
"diode": "~4.3" | ||
"diode": "~4.4" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
87554
204
+ Addeddiode@4.4.0(transitive)
- Removeddiode@4.3.0(transitive)
Updateddiode@~4.4