@volcanicminds/backend 3.0.0 → 3.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.
- package/README.md +1 -1
- package/lib/loader/router.ts +5 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -698,7 +698,7 @@ Install its optional **peer dependencies** in your app (only if you use the data
|
|
|
698
698
|
npm install typeorm bcrypt pluralize reflect-metadata pg
|
|
699
699
|
```
|
|
700
700
|
|
|
701
|
-
For the full options and environment variables see `docs/
|
|
701
|
+
For the full options and environment variables see `docs/CONFIGURATION.md`; `llms.txt` (Part 3) is the exhaustive
|
|
702
702
|
reference. The essentials you need day-to-day are below.
|
|
703
703
|
|
|
704
704
|
### Core features
|
package/lib/loader/router.ts
CHANGED
|
@@ -53,10 +53,13 @@ async function loadMiddleware(base: string, middleware: string = '') {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
async function loadMiddlewares(base: string, middlewares: string[] = []) {
|
|
56
|
-
const midds = {}
|
|
56
|
+
const midds: { [key: string]: any[] } = {}
|
|
57
57
|
for (const m of middlewares) {
|
|
58
58
|
const middleware = await loadMiddleware(base, m)
|
|
59
|
-
|
|
59
|
+
for (const name in middleware) {
|
|
60
|
+
if (!midds[name]) midds[name] = []
|
|
61
|
+
midds[name].push(middleware[name])
|
|
62
|
+
}
|
|
60
63
|
}
|
|
61
64
|
return midds
|
|
62
65
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volcanicminds/backend",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"codename": "rome",
|
|
6
6
|
"license": "MIT",
|
|
@@ -135,8 +135,8 @@
|
|
|
135
135
|
"eslint": "^9.39.2",
|
|
136
136
|
"expect": "^30.2.0",
|
|
137
137
|
"globals": "^16.5.0",
|
|
138
|
-
"mocha": "^
|
|
139
|
-
"npm-upgrade": "^3.
|
|
138
|
+
"mocha": "^8.1.3",
|
|
139
|
+
"npm-upgrade": "^0.3.0",
|
|
140
140
|
"pg": "^8.13.0",
|
|
141
141
|
"pluralize": "^8.0.0",
|
|
142
142
|
"reflect-metadata": "^0.2.2",
|