hekireki 0.0.8 → 0.1.0
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
CHANGED
|
@@ -294,9 +294,9 @@ export type Like = v.InferInput<typeof LikeSchema>
|
|
|
294
294
|
|
|
295
295
|
```mermaid
|
|
296
296
|
erDiagram
|
|
297
|
-
User
|
|
298
|
-
Post
|
|
299
|
-
User
|
|
297
|
+
User ||--}| Post : "(id) - (userId)"
|
|
298
|
+
Post ||--}| Like : "(id) - (postId)"
|
|
299
|
+
User ||--}| Like : "(id) - (userId)"
|
|
300
300
|
User {
|
|
301
301
|
String id "Unique identifier for the user."
|
|
302
302
|
String username "Username of the user."
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import type { ReadonlyDeep } from '@prisma/generator-helper';
|
|
2
1
|
/**
|
|
3
2
|
* Is fields validation
|
|
4
3
|
* @param modelFields - The model fields
|
|
5
4
|
* @returns The fields validation
|
|
6
5
|
*/
|
|
7
6
|
export declare function isFieldsValidation(modelFields: {
|
|
8
|
-
documentation:
|
|
7
|
+
documentation: string | undefined;
|
|
9
8
|
modelName: string;
|
|
10
9
|
fieldName: string;
|
|
11
10
|
comment: string[];
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hekireki",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Hekireki is a tool that generates validation schemas for Zod and Valibot, as well as ER diagrams, from Prisma schemas annotated with comments.",
|
|
6
6
|
"keywords": [
|
|
@@ -40,17 +40,17 @@
|
|
|
40
40
|
"release": "npm pkg fix && pnpm build && npm publish"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@
|
|
44
|
-
"@
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"tsx": "^4.19.
|
|
48
|
-
"valibot": "1.
|
|
49
|
-
"vitest": "^3.
|
|
50
|
-
"zod": "^3.
|
|
43
|
+
"@prisma/client": "^6.8.2",
|
|
44
|
+
"@types/node": "^22.15.29",
|
|
45
|
+
"@vitest/coverage-v8": "^3.1.4",
|
|
46
|
+
"prisma": "^6.8.2",
|
|
47
|
+
"tsx": "^4.19.4",
|
|
48
|
+
"valibot": "1.1.0",
|
|
49
|
+
"vitest": "^3.1.4",
|
|
50
|
+
"zod": "^3.25.46"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@prisma/generator-helper": "^6.
|
|
53
|
+
"@prisma/generator-helper": "^6.8.2",
|
|
54
54
|
"prettier": "^3.5.3"
|
|
55
55
|
}
|
|
56
56
|
}
|