waibu-rest-api 2.8.1 → 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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waibu-rest-api",
3
- "version": "2.8.1",
3
+ "version": "2.9.1",
4
4
  "description": "REST API for Waibu",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wiki/CHANGES.md CHANGED
@@ -1,9 +1,17 @@
1
1
  # Changes
2
2
 
3
+ ## 2026-04-02
4
+
5
+ - [2.9.1] Add missing ```hardCapped``` key
6
+
3
7
  ## 2026-03-30
4
8
 
5
9
  - [2.8.0] Add inter site module support
6
10
  - [2.8.1] Bug fix in ```options.limit```, removed due to use ```findAllRecords()```
11
+ - [2.9.0] Add support to show warnings through headers ```X-Warnings```
12
+ - [2.9.0] Add support for ```dobo.hardCap``` when ```count``` is requested
13
+ - [2.9.0] By default now ALWAYS request ```count``` which can be turned off with through headers ```X-NoCount```
14
+
7
15
 
8
16
  ## 2026-03-22
9
17