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

foliage

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

foliage - npm Package Compare versions

Comparing version 0.22.0 to 0.24.0

2

foliage.build.js

@@ -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){i(this),this._path=c,this._root=this,this.state=a,this.commit(t)}var i=e(6),u=e(5),o=e(4),s=e(1),a={},c=[];r.prototype={getPath:function(t){return this._path.concat(t).filter(function(t){return void 0!==t})},getRoot:function(){return this._root},commit:function(){var t=void 0===arguments[0]?this.state:arguments[0],n=this.getRoot(),e=n.state;null==t&&(t=a),e!==t&&(n.state=t,this.volley(n.state))},clear:function(){this.commit(null)},get:function(t,n){return s(this.state,this.getPath(t),n)},set:function(t,n){1===arguments.length&&(n=arguments[0],t=void 0),this.commit(u(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(o(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 s(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 f=["sort","map","reduce","filter","forEach","some","every","join","indexOf"];f.forEach(function(t){r.prototype[t]=function(){var n;return(n=this.values())[t].apply(n,arguments)}}),t.exports=r},function(t,n,e){var r=e(2);t.exports=function(t,n,e){n=r(n);for(var i=0;i<n.length;i++){if(void 0===t)return e;t=t[n[i]]}return void 0===t?e:t}},function(t,n,e){t.exports=function(t){return Array.isArray(t)?t:[t]}},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={},i=e(3),u=e(1),o=e(2);t.exports=function s(t,n){if(void 0===u(t,n))return t;n=o(n);var e=n[0],a=n.slice(1),c=i(t);return a.length?(c[e]=s(u(t,e,r),a),0===Object.keys(u(c,e,r)).length&&delete c[e]):delete c[e],c}},function(t,n,e){var r=e(3),i=e(1),u=e(2);t.exports=function o(t,n,e){if(i(t,n)===e)return t;n=u(n);var s=n[0],a=n.slice(1);if(n.length){var c=r(t);return a.length?c[s]=o(i(c,s,{}),a,e):c[s]=e,c}return e}},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}]);
module.exports=function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=n(6),i=n(5),u=n(4),s=n(1),a={},c=[],f=function(){function t(e){r(this,t),o(this),this._path=c,this._root=this,this.state=a,this.commit(e)}return t.prototype.getPath=function(t){return this._path.concat(t).filter(function(t){return void 0!==t})},t.prototype.getRoot=function(){return this._root},t.prototype.commit=function(){var t=void 0===arguments[0]?this.state:arguments[0],e=this.getRoot(),n=e.state;null==t&&(t=a),n!==t&&(e.state=t,this.volley(e.state))},t.prototype.clear=function(){this.commit(null)},t.prototype.get=function(t,e){return s(this.state,this.getPath(t),e)},t.prototype.set=function(t,e){1===arguments.length&&(e=arguments[0],t=void 0),this.commit(i(this.state,this.getPath(t),e))},t.prototype.update=function(t,e){1===arguments.length&&(e=arguments[0],t=void 0);for(var n in e)this.set([t,n],e[n])},t.prototype.remove=function(t){this.commit(u(this.state,this.getPath(t)))},t.prototype.refine=function(t){return Object.create(this,{_path:{value:this.getPath(t)}})},t.prototype.keys=function(){return Object.keys(this.valueOf()||{})},t.prototype.values=function(){return this.keys().map(function(t){return this.get(t)},this)},t.prototype.valueOf=function(){return s(this.state,this.getPath())},t.prototype.toJSON=function(){return this.valueOf()},t.prototype.is=function(t){return t.valueOf()==this.valueOf()},t.prototype.find=function(t,e){return this.filter(t,e)[0]},t.prototype.includes=function(t){return this.indexOf(t)>-1},t.prototype.first=function(){return this.values().shift()},t.prototype.last=function(){return this.values().pop()},t.prototype.size=function(){return this.values().length},t}(),p=["sort","map","reduce","filter","forEach","some","every","join","indexOf"];p.forEach(function(t){f.prototype[t]=function(){var e;return(e=this.values())[t].apply(e,arguments)}}),t.exports=f},function(t,e,n){var r=n(2);t.exports=function(t,e,n){e=r(e);for(var o=0;o<e.length;o++){if(void 0===t)return n;t=t[e[o]]}return void 0===t?n:t}},function(t,e,n){t.exports=function(t){return Array.isArray(t)?t:[t]}},function(t,e,n){t.exports=function(t){if(Array.isArray(t))return t.slice();var e={};for(var n in t)e[n]=t[n];return e}},function(t,e,n){var r={},o=n(3),i=n(1),u=n(2);t.exports=function s(t,e){if(void 0===i(t,e))return t;e=u(e);var n=e[0],a=e.slice(1),c=o(t);return a.length?(c[n]=s(i(t,n,r),a),0===Object.keys(i(c,n,r)).length&&delete c[n]):delete c[n],c}},function(t,e,n){var r=n(3),o=n(1),i=n(2);t.exports=function u(t,e,n){if(o(t,e)===n)return t;e=i(e);var s=e[0],a=e.slice(1);if(e.length){var c=r(t);return a.length?c[s]=u(o(c,s,{}),a,n):c[s]=n,c}return n}},function(t,e,n){function r(t){var e=[],n=t,o=null;t=this instanceof r?this:t||{};var i=function(n){for(var r=0;r<e.length;r++)e[r].apply(t,n)},u=function(){var t=+new Date;o&&10>t-o?cancelAnimationFrame(n):o=t};return t.listen=t.subscribe=function(n){return e=e.concat(n),t},t.ignore=t.unsubscribe=function(n){return e=e.filter(function(t){return t!==n}),t},t.emit=t.publish=function(){return i(arguments),t},t.volley=function(){return e.length>0&&(u(),n=requestAnimationFrame(i.bind(void 0,arguments))),t},t}var o=1e3/120;t.exports=r(r),t.exports.decorate=r,t.exports.FRAMES=o}]);
//# sourceMappingURL=foliage.build.js.map
{
"name": "foliage",
"version": "0.22.0",
"version": "0.24.0",
"description": "A cursor like tree data structure.",

@@ -5,0 +5,0 @@ "main": "src/Foliage.js",

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

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }
/**

@@ -16,25 +18,26 @@ * A tree data structure that spawns branches pointing to

function Foliage(state) {
Diode(this);
var Foliage = (function () {
function Foliage(state) {
_classCallCheck(this, Foliage);
this._path = PATH;
this._root = this;
this.state = EMPTY;
Diode(this);
this.commit(state);
}
this._path = PATH;
this._root = this;
this.state = EMPTY;
Foliage.prototype = {
this.commit(state);
}
getPath: function getPath(key) {
Foliage.prototype.getPath = function getPath(key) {
return this._path.concat(key).filter(function (i) {
return i !== void 0;
});
},
};
getRoot: function getRoot() {
Foliage.prototype.getRoot = function getRoot() {
return this._root;
},
};
commit: function commit() {
Foliage.prototype.commit = function commit() {
var next = arguments[0] === void 0 ? this.state : arguments[0];

@@ -53,13 +56,13 @@

}
},
};
clear: function clear() {
Foliage.prototype.clear = function clear() {
this.commit(null);
},
};
get: function get(key, fallback) {
Foliage.prototype.get = function get(key, fallback) {
return getIn(this.state, this.getPath(key), fallback);
},
};
set: function set(key, value) {
Foliage.prototype.set = function set(key, value) {
if (arguments.length === 1) {

@@ -71,5 +74,5 @@ value = arguments[0];

this.commit(setIn(this.state, this.getPath(key), value));
},
};
update: function update(key, obj) {
Foliage.prototype.update = function update(key, obj) {
if (arguments.length === 1) {

@@ -83,19 +86,19 @@ obj = arguments[0];

}
},
};
remove: function remove(key) {
Foliage.prototype.remove = function remove(key) {
this.commit(removeIn(this.state, this.getPath(key)));
},
};
refine: function refine(key) {
Foliage.prototype.refine = function refine(key) {
return Object.create(this, {
_path: { value: this.getPath(key) }
});
},
};
keys: function keys() {
Foliage.prototype.keys = function keys() {
return Object.keys(this.valueOf() || {});
},
};
values: function values() {
Foliage.prototype.values = function values() {
// An anonymous function is used here instead of

@@ -107,37 +110,38 @@ // calling `this.get` directly because we have no

}, this);
},
};
valueOf: function valueOf() {
Foliage.prototype.valueOf = function valueOf() {
return getIn(this.state, this.getPath());
},
};
toJSON: function toJSON() {
Foliage.prototype.toJSON = function toJSON() {
return this.valueOf();
},
};
is: function is(branch) {
Foliage.prototype.is = function is(branch) {
return branch.valueOf() == this.valueOf();
},
};
find: function find(fn, scope) {
Foliage.prototype.find = function find(fn, scope) {
return this.filter(fn, scope)[0];
},
};
includes: function includes(value) {
Foliage.prototype.includes = function includes(value) {
return this.indexOf(value) > -1;
},
};
first: function first() {
Foliage.prototype.first = function first() {
return this.values().shift();
},
};
last: function last() {
Foliage.prototype.last = function last() {
return this.values().pop();
},
};
size: function size() {
Foliage.prototype.size = function size() {
return this.values().length;
}
};
};
return Foliage;
})();

@@ -156,2 +160,2 @@ // Add collection methods

module.exports = Foliage;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9Gb2xpYWdlLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFPQSxJQUFJLEtBQUssR0FBTSxPQUFP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nc29ydCcsICdtYXAnLCAncmVkdWNlJywgJ2ZpbHRlcicsICdmb3JFYWNoJywgJ3NvbWUnLCAnZXZlcnknLCAnam9pbicsICdpbmRleE9mJyBdXG5cbm1ldGhvZHMuZm9yRWFjaChmdW5jdGlvbihuYW1lKSB7XG4gIEZvbGlhZ2UucHJvdG90eXBlW25hbWVdID0gZnVuY3Rpb24oKSB7XG4gICAgcmV0dXJuIHRoaXMudmFsdWVzKClbbmFtZV0oLi4uYXJndW1lbnRzKVxuICB9XG59KVxuXG5tb2R1bGUuZXhwb3J0cyA9IEZvbGlhZ2VcbiJdfQ==

Sorry, the diff of this file is not supported yet

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