expressa 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -72,7 +72,6 @@ exports.get = async function (req) {
72
72
  }
73
73
 
74
74
  const fields = req.query.fields ? JSON.parse(req.query.fields) : null
75
- delete req.query.fields
76
75
 
77
76
  let data, query
78
77
  if (req.query.query) {
@@ -80,6 +79,7 @@ exports.get = async function (req) {
80
79
  }
81
80
  else {
82
81
  const { skip, offset, limit, page, pageitems, pagemetadisable, orderby, ...params } = req.query // eslint-disable-line no-unused-vars
82
+ delete params.fields
83
83
  query = queryStringParser.parse(params)
84
84
  }
85
85
  if (req.query.orderby) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expressa",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "API framework using JSON schemas",
5
5
  "main": "index.js",
6
6
  "repository": "https://github.com/thomas4019/expressa",