can-query-logic
Advanced tools
Comparing version 1.1.3 to 1.1.4
{ | ||
"name": "can-query-logic", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "query data", | ||
@@ -5,0 +5,0 @@ "homepage": "", |
var canReflect = require("can-reflect"); | ||
var Serializer = function(entries){ | ||
this.serializers = new Map(entries || []); | ||
var serializers = this.serializers = new Map(); | ||
if (entries) { | ||
entries.forEach(function(entry) { | ||
var key = entry[0], value = entry[1]; | ||
serializers.set(key, value); | ||
}); | ||
} | ||
this.serialize = this.serialize.bind(this); | ||
@@ -6,0 +12,0 @@ }; |
@@ -10,3 +10,3 @@ var QueryLogic = require("../can-query-logic"); | ||
var todoQueryLogic = new QueryLogic({}, { | ||
toQuery(params){ | ||
toQuery: function(params){ | ||
var where = params.where; | ||
@@ -17,3 +17,3 @@ delete params.where; | ||
}, | ||
toParams(query){ | ||
toParams: function(query){ | ||
var where = query.filter; | ||
@@ -57,3 +57,3 @@ delete query.filter; | ||
QueryLogic.defineComparison(SearchableStringSet,SearchableStringSet,{ | ||
union(searchA, searchB){ | ||
union: function(searchA, searchB){ | ||
if(searchA.value.includes(searchB.value)) { | ||
@@ -68,3 +68,3 @@ return searchB; | ||
// a aa | ||
intersection(searchA, searchB){ | ||
intersection: function(searchA, searchB){ | ||
if(searchA.value.includes(searchB.value)) { | ||
@@ -78,3 +78,3 @@ return searchA; | ||
}, | ||
difference(searchA, searchB){ | ||
difference: function(searchA, searchB){ | ||
// if a is a subset | ||
@@ -81,0 +81,0 @@ if(searchA.value.includes(searchB.value)) { |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
389301
10553