@alevnyacow/nzmt 0.27.0 → 0.27.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.
Files changed (2) hide show
  1. package/README.md +4 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -199,8 +199,8 @@ orderDetails: {
199
199
  ```ts
200
200
  // ...service metadata
201
201
  foo: {
202
- request: z.object({ requestString: z.string() }),
203
- response: z.object({ responseNumber: z.number() })
202
+ request: z.object({ str: z.string() }),
203
+ response: z.object({ num: z.number() })
204
204
  }
205
205
  // ...service metadata
206
206
  ```
@@ -209,10 +209,10 @@ foo: {
209
209
 
210
210
  ```ts
211
211
  // ...service class implementation
212
- foo = this.methods('foo', async ({ requestString }) => {
212
+ foo = this.methods('foo', async ({ str }) => {
213
213
  // 'foo' string is strongly-typed, don't worry
214
214
  // all input and output types are also infered
215
- return Number(requestString)
215
+ return { num: Number(requestString) }
216
216
  })
217
217
  // ..service class implementation
218
218
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alevnyacow/nzmt",
3
- "version": "0.27.0",
3
+ "version": "0.27.1",
4
4
  "description": "Next Zod Modules Toolkit",
5
5
  "keywords": ["next", "full-stack", "server", "backend", "cli", "scaffolding", "zod", "rest", "contract programming", "contract-first", "react-query", "ddd", "domain-driven"],
6
6
  "repository": {