Socket
Socket
Sign inDemoInstall

mongoose-string-query

Package Overview
Dependencies
46
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.5-pre to 0.1.7

7

lib/mongoose-api-query.js

@@ -34,3 +34,2 @@ module.exports = exports = function apiQueryPlugin (schema) {

//changed
var searchParams = {}

@@ -80,4 +79,3 @@ , query

paramType = "ObjectId";
}//changed
else if (schema.paths[lcKey].constructor.name === "SchemaArray") {
} else if (schema.paths[lcKey].constructor.name === "SchemaArray") {
paramType = "Array";

@@ -108,3 +106,3 @@ }

addSearchParam(newParam);
} else {//changed
} else {
addSearchParam(parseInt(val));

@@ -157,3 +155,2 @@ }

addSearchParam(val);
console.log(lcKey )

@@ -160,0 +157,0 @@ }

{
"name": "mongoose-string-query",
"version": "0.1.5pre",
"version": "0.1.7",
"author": "Adam Hodara <hodaraadam@gmail.com>",

@@ -5,0 +5,0 @@ "description": "Updated Fork from original, Given a Mongoose model and an array of URI params, construct a query for use in a search API.",

## Overview
This is a fork and updated package to work with current versions of express and mongoose from the 4 year old deprecated and unresponsive mongoose-api-query package
This is a working and updated fork from the great mongoose-api-query package that is deprecated and hasn't been updated for 3 years.
If you use Mongoose to help serve results for API calls, you might be used to handling calls like:

@@ -38,4 +37,7 @@

const mongooseApiQuery = require('mongoose-query')
```
const mongooseApiQuery = require('mongoose-string-query')
```
`t`, `y`, and `1` are all aliases for `true`:

@@ -42,0 +44,0 @@

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