Socket
Socket
Sign inDemoInstall

advanced-results

Package Overview
Dependencies
289
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.8.0 to 0.9.0

3

dist/middleware/advancedResults.js

@@ -151,5 +151,5 @@ "use strict";

// In case all parametar is ?all=dsadas%20 ---> all = 'dsadas '. And when i do .split(' ') it makes 2 words the actual word which is dsadas and the empty space ---> ['dsadas', '']; This is bad so i need to trim the ends and beginning of that string
req.query.all = req.query.all.trim();
// In case query is all=Sth+sth
if (req.query.all) {
req.query.all = req.query.all.trim();
words = words.concat(req.query.all.split(' '));

@@ -160,2 +160,3 @@ wordsString = wordsString + req.query.all;

if (req.query.q) {
req.query.q = req.query.q.trim();
words = words.concat(req.query.q.split(' '));

@@ -162,0 +163,0 @@ wordsString = wordsString + req.query.q;

{
"name": "advanced-results",
"version": "0.8.0",
"version": "0.9.0",
"description": "Advanced query middleware for expressjs and mongoose",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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