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

waterline-criteria

Package Overview
Dependencies
Maintainers
2
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

waterline-criteria - npm Package Compare versions

Comparing version 0.10.0 to 0.10.1

20

lib/filters/where.js

@@ -10,3 +10,3 @@ /**

* Apply a(nother) `where` filter to `data`
*
*
* @param { Object[] } data

@@ -32,3 +32,3 @@ * @param { Object } where

/// \/
///
///
//////////////////////////

@@ -89,2 +89,16 @@

else if (key === 'not' || key === '!') {
// Check for Not In
if(Array.isArray(criterion)) {
var match = false;
criterion.forEach(function(val) {
if(compare['='](model[parentKey], val)) {
match = true;
}
});
return match ? false : true;
}
return matchLiteral(model,parentKey,criterion, compare['!']);

@@ -179,3 +193,3 @@ }

}
// Stringify for comparisons- except for numbers, null, and undefined

@@ -182,0 +196,0 @@ if (!_.isNumber(a)) {

2

package.json
{
"name": "waterline-criteria",
"version": "0.10.0",
"version": "0.10.1",
"description": "Utility library for use in Sails adapters where you need to filter a list of output using a criteria object",

@@ -5,0 +5,0 @@ "main": "index.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