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

data-filter

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

data-filter - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

3

cjs/data-filter.development.js

@@ -1,2 +0,2 @@

/** @license Data-Engine v3.0.1
/** @license Data-Engine v3.0.2
* data-filter.development.js

@@ -64,2 +64,3 @@ *

this.updateFilter();
return;
}

@@ -66,0 +67,0 @@ this.data = [];

@@ -1,2 +0,2 @@

/** @license Data-Engine v3.0.1
/** @license Data-Engine v3.0.2
* data-filter.production.min.js

@@ -15,6 +15,6 @@ *

var g=require("filter-value"),h=require("data-sort"),k=function(){function a(a,d){for(var b=0;b<d.length;b++){var f=d[b];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(a,f.key,f)}}return function(b,d,e){d&&a(b.prototype,d);e&&a(b,e);return b}}(),m=function(){function a(){var b=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},d=b.data;b=b.sortEngine;if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");l.call(this);
this.filters={};this.SortEngine=b;this.Data=d;this.filtered=this.getData()}k(a,[{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 h?(this.sortEngine=a,this.updateFce=this.filterWSort):(this.sortEngine=null,this.updateFce=this.filterWOSort)},get:function(){return this.sortEngine}}]);return a}();
m.FilterValue=g;m.Sort=h;
this.filters={};this.SortEngine=b;this.Data=d;this.filtered=this.getData()}k(a,[{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 h?(this.sortEngine=a,this.updateFce=this.filterWSort):(this.sortEngine=null,this.updateFce=this.filterWOSort)},get:function(){return this.sortEngine}}]);
return a}();m.FilterValue=g;m.Sort=h;
function l(){var a=this;this.updateFce=this.filterWOSort;this.data=[];this.filtered=[];this.sortEngine=null;this.setData=function(b){a.Data=b};this.getData=function(){return a.data};this.createFilter=function(a,d,e){return new g(a,d,e)};this.addFilter=function(b,d,e){return a.update(a.createFilter(b,d,e))};this.update=function(){for(var b=arguments.length,d=Array(b),e=0;e<b;e++)d[e]=arguments[e];var f=a.getFilteredData;d.forEach(function(b){if(!(b instanceof g))throw new TypeError(b+" has to have filterValue instance");
a.filters[b.Name]=b;f=a.updateFilter});return f()};this.removeFilters=function(){for(var b=arguments.length,d=Array(b),e=0;e<b;e++)d[e]=arguments[e];var f=a.getFilteredData;d.forEach(function(b){b="string"===typeof b?b:b.Name;a.filters[b]&&(delete a.filters[b],f=a.updateFilter)});return f()};this.clearFilters=function(){a.filters={};a.updateFilter();return a.FilteredData};this.updateFilter=function(){a.filtered=a.updateFce(a.data.filter(a.filterAll));return a.FilteredData};this.filterAll=function(b){return Object.keys(a.filters).every(function(d){return a.filters[d].compare(b[d])})};
this.getFilteredData=function(){return a.filtered};this.filterWOSort=function(a){return a};this.filterWSort=function(b){return a.SortEngine.setData(b)};this.getFilter=function(b){return a.filters[b]?a.filters[b]:null}}var n=Object.freeze({default:m}),p=n&&m||n;module.exports=p["default"]?p["default"]:p;
{
"name": "data-filter",
"description": "Data engine is small data management lib for some sort and filter.",
"version": "3.0.1",
"version": "3.0.2",
"keywords": [

@@ -49,4 +49,4 @@ "Data",

"loose-envify": "^1.1.0",
"filter-value": "^3.0.1",
"data-sort": "^3.0.1"
"filter-value": "^3.0.2",
"data-sort": "^3.0.2"
},

@@ -53,0 +53,0 @@ "browserify": {

@@ -1,2 +0,2 @@

/** @license Engine v3.0.1
/** @license Engine v3.0.2
* data-filter.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-filter.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}};d=(k=Object.freeze({default:d}))&&d||k;var p=d["default"]?d["default"]:d,z=function(){function b(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1;d.configurable=!0;"value"in d&&(d.writable=!0);Object.defineProperty(a,d.key,d)}}return function(a,c,d){c&&b(a.prototype,
c);d&&b(a,d);return a}}();d=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");A.call(this);this.filters={};this.SortEngine=a;this.Data=c;this.filtered=this.getData()}z(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}}();d=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");A.call(this);this.filters={};this.SortEngine=a;this.Data=c;this.filtered=this.getData()}z(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 p?(this.sortEngine=a,this.updateFce=this.filterWSort):(this.sortEngine=null,this.updateFce=this.filterWOSort)},get:function(){return this.sortEngine}}]);return b}();d.FilterValue=m;d.Sort=p;var A=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 e=b.getFilteredData;c.forEach(function(a){if(!(a instanceof m))throw new TypeError(a+" has to have filterValue instance");b.filters[a.Name]=a;e=b.updateFilter});return e()};this.removeFilters=function(){for(var a=arguments.length,c=Array(a),d=0;d<a;d++)c[d]=arguments[d];var e=b.getFilteredData;c.forEach(function(a){a="string"===typeof a?a:a.Name;b.filters[a]&&

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