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

can-query-logic

Package Overview
Dependencies
Maintainers
3
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

can-query-logic - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

2

package.json
{
"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)) {

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