waibu-rest-api 2.9.0 → 2.9.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.
- package/index.js +2 -0
- package/package.json +1 -1
- package/wiki/CHANGES.md +4 -0
package/index.js
CHANGED
|
@@ -60,6 +60,7 @@ async function factory (pkgName) {
|
|
|
60
60
|
statusCode: 'code',
|
|
61
61
|
error: 'error',
|
|
62
62
|
cached: 'cached',
|
|
63
|
+
hardCapped: 'hardCapped',
|
|
63
64
|
message: 'message',
|
|
64
65
|
warnings: 'warnings',
|
|
65
66
|
details: 'details'
|
|
@@ -105,6 +106,7 @@ async function factory (pkgName) {
|
|
|
105
106
|
|
|
106
107
|
transformResult = ({ data, req, reply, options = {} }) => {
|
|
107
108
|
const reformat = ({ data, req, reply, options = {} }) => {
|
|
109
|
+
// console.log(data)
|
|
108
110
|
const { forOwn, get } = this.app.lib._
|
|
109
111
|
const newData = {}
|
|
110
112
|
forOwn(data, (v, k) => {
|
package/package.json
CHANGED