data-engine
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -1,2 +0,2 @@ | ||
/** @license Data-Engine v3.0.1 | ||
/** @license Data-Engine v3.0.2 | ||
* data-engine.development.js | ||
@@ -3,0 +3,0 @@ * |
@@ -1,2 +0,2 @@ | ||
/** @license Data-Engine v3.0.1 | ||
/** @license Data-Engine v3.0.2 | ||
* data-engine.production.min.js | ||
@@ -3,0 +3,0 @@ * |
{ | ||
"name": "data-engine", | ||
"description": "Data engine is small data management lib for some sort and filter.", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"keywords": [ | ||
@@ -50,5 +50,5 @@ "Data", | ||
"loose-envify": "^1.1.0", | ||
"filter-value": "^3.0.1", | ||
"data-filter": "^3.0.1", | ||
"data-sort": "^3.0.1" | ||
"filter-value": "^3.0.2", | ||
"data-filter": "^3.0.2", | ||
"data-sort": "^3.0.2" | ||
}, | ||
@@ -55,0 +55,0 @@ "browserify": { |
@@ -1,2 +0,2 @@ | ||
/** @license Engine v3.0.1 | ||
/** @license Engine v3.0.2 | ||
* data-engine.development.js | ||
@@ -854,2 +854,3 @@ * | ||
this.updateFilter(); | ||
return; | ||
} | ||
@@ -856,0 +857,0 @@ this.data = []; |
@@ -1,2 +0,2 @@ | ||
/** @license Data-Engine v3.0.1 | ||
/** @license Data-Engine v3.0.2 | ||
* data-engine.production.min.js | ||
@@ -27,3 +27,3 @@ * | ||
c){return b.compare(a,c)};this.sortData=function(){b.currentName&&(b.data=b.data.sort(b.sortFunc));return b.data};this.reverseData=function(){b.data=b.data.reverse();return b.data};this.getData=function(){return b.Data}};c=(k=Object.freeze({default:c}))&&c||k;var n=c["default"]?c["default"]:c,A=function(){function b(a,b){for(var c=0;c<b.length;c++){var e=b[c];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(a,e.key,e)}}return function(a,c,d){c&&b(a.prototype, | ||
c);d&&b(a,d);return a}}();c=function(){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},c=a.data;a=a.sortEngine;if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");B.call(this);this.filters={};this.SortEngine=a;this.Data=c;this.filtered=this.getData()}A(b,[{key:"Data",set:function(a){a&&Array.isArray(a)&&(this.data=a,this.updateFilter());this.data=[];this.filtered=[]},get:function(){return this.getData()}},{key:"FilteredData",get:function(){return this.getFilteredData()}}, | ||
c);d&&b(a,d);return a}}();c=function(){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},c=a.data;a=a.sortEngine;if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");B.call(this);this.filters={};this.SortEngine=a;this.Data=c;this.filtered=this.getData()}A(b,[{key:"Data",set:function(a){a&&Array.isArray(a)?(this.data=a,this.updateFilter()):(this.data=[],this.filtered=[])},get:function(){return this.getData()}},{key:"FilteredData",get:function(){return this.getFilteredData()}}, | ||
{key:"SortEngine",set:function(a){a instanceof n?(this.sortEngine=a,this.updateFce=this.filterWSort):(this.sortEngine=null,this.updateFce=this.filterWOSort)},get:function(){return this.sortEngine}}]);return b}();c.FilterValue=m;c.Sort=n;var B=function(){var b=this;this.updateFce=this.filterWOSort;this.data=[];this.filtered=[];this.sortEngine=null;this.setData=function(a){b.Data=a};this.getData=function(){return b.data};this.createFilter=function(a,b,c){return new m(a,b,c)};this.addFilter=function(a, | ||
@@ -30,0 +30,0 @@ c,d){return b.update(b.createFilter(a,c,d))};this.update=function(){for(var a=arguments.length,c=Array(a),d=0;d<a;d++)c[d]=arguments[d];var f=b.getFilteredData;c.forEach(function(a){if(!(a instanceof m))throw new TypeError(a+" has to have filterValue instance");b.filters[a.Name]=a;f=b.updateFilter});return f()};this.removeFilters=function(){for(var a=arguments.length,c=Array(a),d=0;d<a;d++)c[d]=arguments[d];var f=b.getFilteredData;c.forEach(function(a){a="string"===typeof a?a:a.Name;b.filters[a]&& |
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
57034
1349
Updateddata-filter@^3.0.2
Updateddata-sort@^3.0.2
Updatedfilter-value@^3.0.2