@zodapi/client 0.2.0 → 0.2.2
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/package.json +8 -3
package/README.md
CHANGED
|
@@ -38,7 +38,7 @@ createClient(routes, {
|
|
|
38
38
|
fullResponse: false, // resolve with { data, status, headers } instead of the bare body
|
|
39
39
|
headers: () => ({ authorization: `Bearer ${token}` }), // static object or (async) function
|
|
40
40
|
adapter: fetchAdapter(), // transport seam
|
|
41
|
-
decoders: decodersFor(problemFlavor), // error decoders (default: zodapi's own 400)
|
|
41
|
+
decoders: decodersFor(problemFlavor), // error decoders (default: zodapi's own problem+json 400)
|
|
42
42
|
onError: ({ error, attempt }) => {}, // error hook; return 'retry' to re-run the request
|
|
43
43
|
})
|
|
44
44
|
```
|
package/package.json
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zodapi/client",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Typed fetch/axios client over zodapi route contracts with optional zod validation",
|
|
5
5
|
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/christensena/zodapi.git",
|
|
9
|
+
"directory": "packages/client"
|
|
10
|
+
},
|
|
6
11
|
"files": [
|
|
7
12
|
"dist"
|
|
8
13
|
],
|
|
@@ -21,12 +26,12 @@
|
|
|
21
26
|
}
|
|
22
27
|
},
|
|
23
28
|
"dependencies": {
|
|
24
|
-
"@zodapi/core": "0.
|
|
29
|
+
"@zodapi/core": "0.3.0"
|
|
25
30
|
},
|
|
26
31
|
"devDependencies": {
|
|
27
32
|
"@hono/node-server": "^2.1.1",
|
|
28
33
|
"@hono/zod-openapi": "^1.6.1",
|
|
29
|
-
"@zodapi/hono": "0.
|
|
34
|
+
"@zodapi/hono": "0.3.0",
|
|
30
35
|
"axios": "^1.20.0",
|
|
31
36
|
"hono": "^4.13.5",
|
|
32
37
|
"zod": "^4.4.3"
|