New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

waterline-dirty

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

waterline-dirty - npm Package Compare versions

Comparing version 0.4.3 to 0.4.4

48

criteria.js

@@ -166,4 +166,17 @@ var _ = require('underscore');

if (key.toLowerCase() === 'not' || key === '!') {
if (key.toLowerCase() === 'equals' || key === '=' || key.toLowerCase() === 'equal') {
return matchLiteral(model,parentKey,criterion, function (a,b) {
if (_.isString(a) && _.isString(b)) {
a = a.toLowerCase();
b = b.toLowerCase();
}
return _.isEqual(a,b);
});
}
else if (key.toLowerCase() === 'not' || key === '!') {
return matchLiteral(model,parentKey,criterion, function (a,b) {
if (_.isString(a) && _.isString(b)) {
a = a.toLowerCase();
b = b.toLowerCase();
}
return !_.isEqual(a,b);

@@ -174,2 +187,6 @@ });

return matchLiteral(model,parentKey,criterion, function (a,b) {
if (_.isString(a) && _.isString(b)) {
a = a.toLowerCase();
b = b.toLowerCase();
}
return a > b;

@@ -180,2 +197,6 @@ });

return matchLiteral(model,parentKey,criterion, function (a,b) {
if (_.isString(a) && _.isString(b)) {
a = a.toLowerCase();
b = b.toLowerCase();
}
return a >= b;

@@ -186,2 +207,6 @@ });

return matchLiteral(model,parentKey,criterion, function (a,b) {
if (_.isString(a) && _.isString(b)) {
a = a.toLowerCase();
b = b.toLowerCase();
}
return a < b;

@@ -192,2 +217,6 @@ });

return matchLiteral(model,parentKey,criterion, function (a,b) {
if (_.isString(a) && _.isString(b)) {
a = a.toLowerCase();
b = b.toLowerCase();
}
return a <= b;

@@ -213,3 +242,10 @@ });

return _.any(criterion, function(val) {
return model[key] === val;
var a = model[key];
var b = val;
if (_.isString(a) && _.isString(b)) {
a = a.toLowerCase();
b = b.toLowerCase();
}
return _.isEqual(a,b);
});

@@ -225,3 +261,9 @@ }

// Otherwise, try a literal match
else return matchLiteral(model,key,criterion, _.isEqual);
else return matchLiteral(model,key,criterion, function (a,b) {
if (_.isString(a) && _.isString(b)) {
a = a.toLowerCase();
b = b.toLowerCase();
}
return _.isEqual(a,b);
});

@@ -228,0 +270,0 @@ }

2

package.json
{
"name": "waterline-dirty",
"version": "0.4.3",
"version": "0.4.4",
"description": "Waterline adapter for felixge's node-dirty",

@@ -5,0 +5,0 @@ "main": "DirtyAdapter.js",

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