Socket
Socket
Sign inDemoInstall

mongo-query-builder-chain

Package Overview
Dependencies
0
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.3 to 1.0.4

1

demo.js

@@ -26,3 +26,4 @@ const mongoQBModule = require('./module');

.sort("field4", -1)
.$searchRemove()
.getValue()
);

8

module.js

@@ -274,6 +274,8 @@ var helpers = require('./helpers');

$searchRemove() {
delete this.body.query.$text.$search;
if (this.body.query.$text) {
delete this.body.query.$text.$search;
if (!Object.keys(this.body.query.$text).length) {
delete this.body.query.$text;
if (!Object.keys(this.body.query.$text).length) {
delete this.body.query.$text;
}
}

@@ -280,0 +282,0 @@

@@ -20,3 +20,3 @@ {

"type": "module",
"version": "1.0.3"
"version": "1.0.4"
}
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