minimonolith 0.22.2 → 0.22.3

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 +3 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -115,13 +115,13 @@ This file validates the `get:id` method's input, ensuring that the provided `id`
115
115
 
116
116
  ```js
117
117
  // todo/get/valid.js
118
- import { z, DB_VALIDATION } from 'minimonolith';
118
+ import { z, zdb } from 'minimonolith';
119
119
 
120
120
  export default ({ MODELS }) => ({
121
121
  id: z.string()
122
- .superRefine(DB_VALIDATION.isSafeInt('id'))
122
+ .superRefine(zdb.isSafeInt('id'))
123
123
  .transform(id => parseInt(id))
124
- .superRefine(DB_VALIDATION.exists(MODELS.todo, 'id')),
124
+ .superRefine(zdb.exists(MODELS.todo, 'id')),
125
125
  })
126
126
  ```
127
127
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "minimonolith",
3
3
  "type": "module",
4
- "version": "0.22.2",
4
+ "version": "0.22.3",
5
5
  "main": "index.js",
6
6
  "license": "MIT",
7
7
  "scripts": {