Socket
Socket
Sign inDemoInstall

feathers-query-filters

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

feathers-query-filters - npm Package Compare versions

Comparing version 1.4.0 to 1.5.0

17

lib/index.js

@@ -7,2 +7,3 @@ /**

*/
'use strict';

@@ -19,16 +20,9 @@

function getLimit(limit, paginate) {
if (paginate && paginate['default']) {
return Math.min(limit || paginate['default'], paginate.max || Number.MAX_VALUE);
}
return limit;
}
exports['default'] = function (query, paginate) {
exports['default'] = function (query) {
var filters = {
$sort: query.$sort,
$limit: getLimit(parse(query.$limit), paginate),
$limit: parse(query.$limit),
$skip: parse(query.$skip),
$select: query.$select
$select: query.$select,
$populate: query.$populate
};

@@ -41,2 +35,3 @@

delete query.$select;
delete query.$populate;

@@ -43,0 +38,0 @@ return filters;

{
"name": "feathers-query-filters",
"description": "Adds support for special query string params used for filtering data",
"version": "1.4.0",
"version": "1.5.0",
"license": "MIT",

@@ -6,0 +6,0 @@ "homepage": "https://github.com/feathersjs/feathers-query-filters",

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