Comparing version 0.4.0 to 0.4.1
@@ -5,3 +5,3 @@ var middleware = module.exports = { | ||
reuqest.baucis.conditions = JSON.parse(request.query.conditions); | ||
request.baucis.conditions = JSON.parse(request.query.conditions); | ||
next(); | ||
@@ -20,2 +20,3 @@ }, | ||
if (request.query.sort) query.sort(request.query.sort); | ||
if (request.query.skip) query.skip(request.query.skip); | ||
@@ -22,0 +23,0 @@ if (request.query.limit) query.limit(request.query.limit); |
{ | ||
"name": "baucis", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -1,3 +0,3 @@ | ||
baucis v0.4.0 | ||
============= | ||
baucis v0.4.1 | ||
=============== | ||
@@ -115,3 +115,3 @@ Baucis is Express middleware that creates configurable REST APIs using Mongoose schemata. | ||
Object.keys(options).forEach(function (key) { | ||
data[key] = JSON.stringify(options[key]) | ||
data[key] = JSON.stringify(options[key]); | ||
}); | ||
@@ -164,2 +164,8 @@ | ||
Also, `sort`: | ||
vegetables.baucis({ | ||
sort: 'foo -bar' | ||
}); | ||
`bacuis.rest` | ||
@@ -166,0 +172,0 @@ ------------- |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
272941
1032
255
18