@alevnyacow/nzmt 0.1.11 → 0.1.13

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 +5 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -64,8 +64,6 @@ export class MathService {
64
64
  // created generator
65
65
  private methods = mathServiceMethods
66
66
 
67
- public DIVIDED_BY_ZERO = 'DIVIDED_BY_ZERO'
68
-
69
67
  public basicOperation = this.methods(
70
68
  // Method name, working TS intellisense
71
69
  'basicOperation',
@@ -95,7 +93,7 @@ export class MathService {
95
93
  * metadata like method name, zod module name
96
94
  * or payload will present in this error object.
97
95
  */
98
- throw methodError(DIVIDED_BY_ZERO)
96
+ throw methodError('DIVIDED_BY_ZERO')
99
97
  }
100
98
  return { result: lhs / rhs }
101
99
  }
@@ -118,6 +116,10 @@ const { result } = mathService.basicOperation({
118
116
  })
119
117
  ```
120
118
 
119
+ ### Metadata
120
+
121
+ Desribes module metadata. Metadata is used as an argument in `methods`.
122
+
121
123
  ## <a id='controller'></a>Controller
122
124
 
123
125
  ## <a id='store'></a>Store
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alevnyacow/nzmt",
3
- "version": "0.1.11",
3
+ "version": "0.1.13",
4
4
  "description": "Next Zod Modules Toolkit",
5
5
  "repository": {
6
6
  "type": "git",