@nano-app/plugins 0.3.0 → 0.4.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/build/health/routes/index.route.js +2 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ createNanoApp({ plugins: [health()] });
|
|
|
19
19
|
|
|
20
20
|
| Plugin | Import | Endpoints | Options |
|
|
21
21
|
|---|---|---|---|
|
|
22
|
-
| `health` | `import health from '@nano-app/plugins/health'` | `GET /health` → `{ status: "ok" }` | `basePath` (default `"/health"`) |
|
|
22
|
+
| `health` | `import health from '@nano-app/plugins/health'` | `GET /health` → `{ success: true, result: { status: "ok" } }` | `basePath` (default `"/health"`) |
|
|
23
23
|
|
|
24
24
|
## Layout
|
|
25
25
|
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { createRoute } from "@nano-app/backend";
|
|
2
2
|
//#region health/routes/index.route.ts
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
result: { status: "ok" }
|
|
6
|
-
}) });
|
|
3
|
+
/** Answers that the server is up */
|
|
4
|
+
var index_route_default = createRoute({ GET: async () => ({ result: { status: "ok" } }) });
|
|
7
5
|
//#endregion
|
|
8
6
|
export { index_route_default as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nano-app/plugins",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "Official plugins for @nano-app/backend",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
36
|
"engines": {
|
|
37
|
-
"node": ">=
|
|
37
|
+
"node": "^22.23.4 || ^24.22.1 || >=26.12.1"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"@nano-app/backend": ">=0.9.0"
|