waibu-rest-api 2.11.0 → 2.11.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
@@ -106,7 +106,6 @@ async function factory (pkgName) {
106
106
 
107
107
  transformResult = ({ data, req, reply, options = {} }) => {
108
108
  const reformat = ({ data, req, reply, options = {} }) => {
109
- // console.log(data)
110
109
  const { forOwn, get } = this.app.lib._
111
110
  const newData = {}
112
111
  forOwn(data, (v, k) => {
@@ -11,7 +11,7 @@ async function serveRoute ({ mod, ns, parent }) {
11
11
  mod.config.webApp = parent ?? ns
12
12
  mod.config.ns = ns
13
13
  mod.config.subNs = 'restapi'
14
- mod.config.interSite = mod.interSite
14
+ mod.config.xSite = mod.xSite
15
15
  mod.config.title = mod.title
16
16
  delete mod.title
17
17
  if (mod.method === 'PUT' && cfgWdb.dbModel.patchEnabled) mod.method = [mod.method, 'PATCH']
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waibu-rest-api",
3
- "version": "2.11.0",
3
+ "version": "2.11.1",
4
4
  "description": "REST API for Waibu",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wiki/CHANGES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changes
2
2
 
3
+ ## 2026-05-22
4
+
5
+ - [2.11.1] Bug fix in ```serve-route.js```
6
+
3
7
  ## 2026-04-25
4
8
 
5
9
  - [2.11.0] Change options to format value using the new key set by dobo