@elysiajs/eden 0.5.4 → 0.5.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elysiajs/eden",
3
- "version": "0.5.4",
3
+ "version": "0.5.5",
4
4
  "description": "Fully type-safe Elysia client",
5
5
  "author": {
6
6
  "name": "saltyAom",
@@ -51,12 +51,6 @@
51
51
  },
52
52
  "bugs": "https://github.com/elysiajs/elysia-eden/issues",
53
53
  "license": "MIT",
54
- "scripts": {
55
- "dev": "bun run --hot example/index.ts",
56
- "test": "bun wiptest",
57
- "build": "vite build && tsc",
58
- "release": "npm run build && npm run test && npm publish --access public"
59
- },
60
54
  "peerDependencies": {
61
55
  "@elysiajs/fn": ">= 0.5.0",
62
56
  "@sinclair/typebox": ">= 0.28.10",
@@ -69,7 +63,7 @@
69
63
  },
70
64
  "devDependencies": {
71
65
  "@elysiajs/cors": "0.5.0",
72
- "@elysiajs/fn": "0.5.0",
66
+ "@elysiajs/fn": "^0.5.2",
73
67
  "@sinclair/typebox": "^0.26.8",
74
68
  "@types/node": "^18.15.5",
75
69
  "bun-types": "^0.5.8",
@@ -82,5 +76,11 @@
82
76
  },
83
77
  "dependencies": {
84
78
  "superjson": "^1.12.2"
79
+ },
80
+ "scripts": {
81
+ "dev": "bun run --hot example/index.ts",
82
+ "test": "bun wiptest",
83
+ "build": "vite build && tsc",
84
+ "release": "npm run build && npm run test && npm publish --access public"
85
85
  }
86
- }
86
+ }
@@ -99,7 +99,7 @@ export namespace EdenTreaty {
99
99
  Blob | Blob[],
100
100
  File | FileList
101
101
  > & {
102
- $query?: Record<string, string>
102
+ $query?: Route['query']
103
103
  $fetch?: RequestInit
104
104
  }
105
105
  ) => Promise<
@@ -107,7 +107,7 @@ export namespace EdenTreaty {
107
107
  data: Route['response'] extends {
108
108
  200: infer ReturnedType
109
109
  }
110
- ? ReturnedType
110
+ ? Awaited<ReturnedType>
111
111
  : unknown
112
112
  error: null
113
113
  }
@@ -199,7 +199,7 @@ export namespace EdenTreaty {
199
199
  Blob | Blob[],
200
200
  File | FileList
201
201
  > & {
202
- $query?: Record<string, string>
202
+ $query?: Route['query']
203
203
  $fetch?: RequestInit
204
204
  }
205
205
  ) => Promise<
@@ -207,7 +207,7 @@ export namespace EdenTreaty {
207
207
  data: Route['response'] extends {
208
208
  200: infer ReturnedType
209
209
  }
210
- ? ReturnedType
210
+ ? Awaited<ReturnedType>
211
211
  : unknown
212
212
  error: null
213
213
  }