data-engine
Advanced tools
Comparing version 2.0.0-rc.4 to 2.0.0-rc.5
@@ -1,2 +0,2 @@ | ||
/** @license Data-Engine v2.0.0-rc.4 | ||
/** @license Data-Engine v2.0.0-rc.5 | ||
* data-engine.development.js | ||
@@ -1019,3 +1019,2 @@ * | ||
this.data = data; | ||
this.sortEngine = new dataSort$1(data, primaryKey, sortFunction); | ||
@@ -1182,3 +1181,3 @@ this.filterEngine = new dataFilter$1(data, this.sortEngine); | ||
this.getData = function () { | ||
return _this.data; | ||
return _this.FilterEngine.FilteredData; | ||
}; | ||
@@ -1185,0 +1184,0 @@ }; |
@@ -1,2 +0,2 @@ | ||
/** @license Data-Engine v2.0.0-rc.4 | ||
/** @license Data-Engine v2.0.0-rc.5 | ||
* data-engine.production.min.js | ||
@@ -32,5 +32,5 @@ * | ||
function(){return a.updateFce()};this.filterWOSort=function(){return a.filtered};this.filterWSort=function(){return a.SortEngine.setData(a.filtered)};this.getFilter=function(b){return a.filters[b]?a.filters[b]:null}} | ||
var B=Object.freeze({default:A}),C=B&&A||B,D=C.default?C.default:C,F=function(){function a(){var b=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,e=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;k(this,a);E.call(this);this.data=b;this.sortEngine=new y(b,c,e);this.filterEngine=new D(b,this.sortEngine)}l(a,[{key:"FilterEngine",get:function(){return this.filterEngine}},{key:"SortEngine",get:function(){return this.sortEngine}}, | ||
var B=Object.freeze({default:A}),C=B&&A||B,D=C.default?C.default:C,F=function(){function a(){var b=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,e=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;k(this,a);E.call(this);this.sortEngine=new y(b,c,e);this.filterEngine=new D(b,this.sortEngine)}l(a,[{key:"FilterEngine",get:function(){return this.filterEngine}},{key:"SortEngine",get:function(){return this.sortEngine}}, | ||
{key:"Data",get:function(){return this.getData()}}]);return a}();F.Filter=D;F.Sort=y;F.FilterValue=t; | ||
function E(){var a=this;this.setData=function(b){return a.FilterEngine.setData(b)};this.updateFilters=function(){var b;return(b=a.FilterEngine).update.apply(b,arguments)};this.removeFilters=function(){var b;return(b=a.FilterEngine).removeFilters.apply(b,arguments)};this.clearFilters=function(){return a.FilterEngine.clearFilters()};this.setSortFunction=function(b){return a.SortEngine.setSortFunction(b)};this.setPrimaryKey=function(b){return a.SortEngine.setPrimaryKey(b)};this.removePrimaryKey=function(){return a.SortEngine.removePrimaryKey()}; | ||
this.setDefaultSort=function(){return a.SortEngine.setDefaultSort()};this.sortBy=function(b){return a.SortEngine.sortBy(b)};this.sortData=function(){return a.SortEngine.sortData()};this.reverseData=function(){return a.SortEngine.reverseData()};this.getData=function(){return a.data}}var G=Object.freeze({default:F,FilterValue:t,Filter:D,Sort:y}),H=G&&F||G;module.exports=H.default?H.default:H; | ||
this.setDefaultSort=function(){return a.SortEngine.setDefaultSort()};this.sortBy=function(b){return a.SortEngine.sortBy(b)};this.sortData=function(){return a.SortEngine.sortData()};this.reverseData=function(){return a.SortEngine.reverseData()};this.getData=function(){return a.FilterEngine.FilteredData}}var G=Object.freeze({default:F,FilterValue:t,Filter:D,Sort:y}),H=G&&F||G;module.exports=H.default?H.default:H; |
{ | ||
"name": "data-engine", | ||
"description": "Data engine is small data management lib for some sort and filter.", | ||
"version": "2.0.0-rc.4", | ||
"version": "2.0.0-rc.5", | ||
"keywords": [ | ||
@@ -50,5 +50,5 @@ "Data", | ||
"loose-envify": "^1.1.0", | ||
"filter-value": "^2.0.0-rc.3", | ||
"data-filter": "^2.0.0-rc.3", | ||
"data-sort": "^2.0.0-rc.3" | ||
"filter-value": "^2.0.0-rc.5", | ||
"data-filter": "^2.0.0-rc.5", | ||
"data-sort": "^2.0.0-rc.5" | ||
}, | ||
@@ -55,0 +55,0 @@ "browserify": { |
@@ -1,2 +0,2 @@ | ||
/** @license Engine v2.0.0-rc.4 | ||
/** @license Engine v2.0.0-rc.5 | ||
* data-engine.development.js | ||
@@ -1021,3 +1021,2 @@ * | ||
this.data = data; | ||
this.sortEngine = new dataSort$1(data, primaryKey, sortFunction); | ||
@@ -1184,3 +1183,3 @@ this.filterEngine = new dataFilter$1(data, this.sortEngine); | ||
this.getData = function () { | ||
return _this.data; | ||
return _this.FilterEngine.FilteredData; | ||
}; | ||
@@ -1187,0 +1186,0 @@ }; |
@@ -1,2 +0,2 @@ | ||
/** @license Data-Engine v2.0.0-rc.4 | ||
/** @license Data-Engine v2.0.0-rc.5 | ||
* data-engine.production.min.js | ||
@@ -29,5 +29,5 @@ * | ||
function(){if(null===a.data)throw Error("Data are null and cannot be filtered!");a.filtered=a.data.filter(a.filterAll);return a.getFilteredData()};this.filterAll=function(b){return Object.keys(a.filters).every(function(c){return a.filters[c].compare(b[c])})};this.getFilteredData=function(){return a.updateFce()};this.filterWOSort=function(){return a.filtered};this.filterWSort=function(){return a.SortEngine.setData(a.filtered)};this.getFilter=function(b){return a.filters[b]?a.filters[b]:null}};d=(k= | ||
Object.freeze({default:d}))&&d||k;var n=d.default?d.default:d;d=function(){function a(){var b=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,d=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;g(this,a);u.call(this);this.data=b;this.sortEngine=new l(b,c,d);this.filterEngine=new n(b,this.sortEngine)}f(a,[{key:"FilterEngine",get:function(){return this.filterEngine}},{key:"SortEngine",get:function(){return this.sortEngine}}, | ||
{key:"Data",get:function(){return this.getData()}}]);return a}();d.Filter=n;d.Sort=l;d.FilterValue=m;var u=function(){var a=this;this.setData=function(b){return a.FilterEngine.setData(b)};this.updateFilters=function(){var b;return(b=a.FilterEngine).update.apply(b,arguments)};this.removeFilters=function(){var b;return(b=a.FilterEngine).removeFilters.apply(b,arguments)};this.clearFilters=function(){return a.FilterEngine.clearFilters()};this.setSortFunction=function(b){return a.SortEngine.setSortFunction(b)}; | ||
this.setPrimaryKey=function(b){return a.SortEngine.setPrimaryKey(b)};this.removePrimaryKey=function(){return a.SortEngine.removePrimaryKey()};this.setDefaultSort=function(){return a.SortEngine.setDefaultSort()};this.sortBy=function(b){return a.SortEngine.sortBy(b)};this.sortData=function(){return a.SortEngine.sortData()};this.reverseData=function(){return a.SortEngine.reverseData()};this.getData=function(){return a.data}};d=(k=Object.freeze({default:d,FilterValue:m,Filter:n,Sort:l}))&&d||k;return d.default? | ||
Object.freeze({default:d}))&&d||k;var n=d.default?d.default:d;d=function(){function a(){var b=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,d=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;g(this,a);u.call(this);this.sortEngine=new l(b,c,d);this.filterEngine=new n(b,this.sortEngine)}f(a,[{key:"FilterEngine",get:function(){return this.filterEngine}},{key:"SortEngine",get:function(){return this.sortEngine}},{key:"Data", | ||
get:function(){return this.getData()}}]);return a}();d.Filter=n;d.Sort=l;d.FilterValue=m;var u=function(){var a=this;this.setData=function(b){return a.FilterEngine.setData(b)};this.updateFilters=function(){var b;return(b=a.FilterEngine).update.apply(b,arguments)};this.removeFilters=function(){var b;return(b=a.FilterEngine).removeFilters.apply(b,arguments)};this.clearFilters=function(){return a.FilterEngine.clearFilters()};this.setSortFunction=function(b){return a.SortEngine.setSortFunction(b)};this.setPrimaryKey= | ||
function(b){return a.SortEngine.setPrimaryKey(b)};this.removePrimaryKey=function(){return a.SortEngine.removePrimaryKey()};this.setDefaultSort=function(){return a.SortEngine.setDefaultSort()};this.sortBy=function(b){return a.SortEngine.sortBy(b)};this.sortData=function(){return a.SortEngine.sortData()};this.reverseData=function(){return a.SortEngine.reverseData()};this.getData=function(){return a.FilterEngine.FilteredData}};d=(k=Object.freeze({default:d,FilterValue:m,Filter:n,Sort:l}))&&d||k;return d.default? | ||
d.default:d}); |
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
87911
2117
Updateddata-filter@^2.0.0-rc.5
Updateddata-sort@^2.0.0-rc.5
Updatedfilter-value@^2.0.0-rc.5