Socket
Socket
Sign inDemoInstall

build-query-as-object

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.1 to 0.0.2

6

lib/builder.js

@@ -20,6 +20,4 @@ const Query = require('./query');

if (entry.id === 'id') {
query.oneOf('id', entry.value);
} else if (entry.id === 'email') {
query.similar('email', entry.value);
if (entry.id === 'id' || entry.id === 'email') {
query.similar(entry.id, entry.value);
} else if (typeof entry.value === 'object' &&

@@ -26,0 +24,0 @@ (isNotUndefined(entry.value.startInterval) ||

{
"name": "build-query-as-object",
"version": "0.0.1",
"version": "0.0.2",
"description": "Build query as an object. Somewhat similar to mongodb query language or objection-find, but a bit different.",

@@ -5,0 +5,0 @@ "main": "lib/builder.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc