@nano-app/plugins 0.3.0 → 0.4.0

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 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,5 +1,6 @@
1
1
  import { createRoute } from "@nano-app/backend";
2
2
  //#region health/routes/index.route.ts
3
+ /** Answers that the server is up */
3
4
  var index_route_default = createRoute({ GET: async () => ({
4
5
  success: true,
5
6
  result: { status: "ok" }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nano-app/plugins",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
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": ">=22"
37
+ "node": "^22.23.4 || ^24.22.1 || >=26.12.1"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "@nano-app/backend": ">=0.9.0"