@codingwith/common 1.0.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/dist/index.d.ts +25 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +21 -0
- package/dist/index.js.map +1 -0
- package/package.json +21 -0
- package/tsconfig.json +44 -0
- package/tsconfig.tsbuildinfo +1 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
declare const check: z.ZodObject<{
|
|
3
|
+
email: z.ZodString;
|
|
4
|
+
password: z.ZodString;
|
|
5
|
+
name: z.ZodOptional<z.ZodString>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const postcheck: z.ZodObject<{
|
|
8
|
+
email: z.ZodString;
|
|
9
|
+
password: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const blogcheck: z.ZodObject<{
|
|
12
|
+
title: z.ZodString;
|
|
13
|
+
content: z.ZodString;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const postblog: z.ZodObject<{
|
|
16
|
+
tilte: z.ZodString;
|
|
17
|
+
content: z.ZodString;
|
|
18
|
+
id: z.ZodNumber;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
export { check, postcheck, blogcheck, postblog };
|
|
21
|
+
export type Check = z.infer<typeof check>;
|
|
22
|
+
export type Postcheck = z.infer<typeof postcheck>;
|
|
23
|
+
export type Blogcheck = z.infer<typeof blogcheck>;
|
|
24
|
+
export type Postblog = z.infer<typeof postblog>;
|
|
25
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,QAAA,MAAO,KAAK;;;;iBAIV,CAAA;AAEF,QAAA,MAAM,SAAS;;;iBAGb,CAAA;AAEF,QAAA,MAAM,SAAS;;;iBAGb,CAAA;AACF,QAAA,MAAM,QAAQ;;;;iBAIZ,CAAA;AAEF,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC;AAEjD,MAAM,MAAM,KAAK,GAAC,CAAC,CAAC,KAAK,CAAC,OAAO,KAAK,CAAC,CAAA;AACvC,MAAM,MAAM,SAAS,GAAC,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAA;AAC/C,MAAM,MAAM,SAAS,GAAC,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAA;AAC/C,MAAM,MAAM,QAAQ,GAAC,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAA"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
const check = z.object({
|
|
3
|
+
email: z.string().email(),
|
|
4
|
+
password: z.string().min(6),
|
|
5
|
+
name: z.string().optional()
|
|
6
|
+
});
|
|
7
|
+
const postcheck = z.object({
|
|
8
|
+
email: z.string().email(),
|
|
9
|
+
password: z.string().min(6)
|
|
10
|
+
});
|
|
11
|
+
const blogcheck = z.object({
|
|
12
|
+
title: z.string(),
|
|
13
|
+
content: z.string()
|
|
14
|
+
});
|
|
15
|
+
const postblog = z.object({
|
|
16
|
+
tilte: z.string(),
|
|
17
|
+
content: z.string(),
|
|
18
|
+
id: z.number()
|
|
19
|
+
});
|
|
20
|
+
export { check, postcheck, blogcheck, postblog };
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,MAAO,KAAK,GAAC,CAAC,CAAC,MAAM,CAAC;IACpB,KAAK,EAAC,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE;IACxB,QAAQ,EAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC1B,IAAI,EAAC,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC3B,CAAC,CAAA;AAEF,MAAM,SAAS,GAAC,CAAC,CAAC,MAAM,CAAC;IACrB,KAAK,EAAC,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE;IACxB,QAAQ,EAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAC7B,CAAC,CAAA;AAEF,MAAM,SAAS,GAAC,CAAC,CAAC,MAAM,CAAC;IACrB,KAAK,EAAC,CAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAC,CAAC,CAAC,MAAM,EAAE;CACrB,CAAC,CAAA;AACF,MAAM,QAAQ,GAAC,CAAC,CAAC,MAAM,CAAC;IACpB,KAAK,EAAC,CAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAC,CAAC,CAAC,MAAM,EAAE;IAClB,EAAE,EAAC,CAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAA;AAEF,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@codingwith/common",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
+
},
|
|
9
|
+
"keywords": [],
|
|
10
|
+
"author": "",
|
|
11
|
+
"license": "ISC",
|
|
12
|
+
"description": "",
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"@types/node": "^25.5.0",
|
|
15
|
+
"ts-node": "^10.9.2",
|
|
16
|
+
"zod": "^4.3.6"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"typescript": "^6.0.2"
|
|
20
|
+
}
|
|
21
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
// Visit https://aka.ms/tsconfig to read more about this file
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
// File Layout
|
|
5
|
+
"rootDir": "./src",
|
|
6
|
+
"outDir": "./dist",
|
|
7
|
+
|
|
8
|
+
// Environment Settings
|
|
9
|
+
// See also https://aka.ms/tsconfig/module
|
|
10
|
+
"module": "nodenext",
|
|
11
|
+
"target": "esnext",
|
|
12
|
+
"types": [],
|
|
13
|
+
// For nodejs:
|
|
14
|
+
// "lib": ["esnext"],
|
|
15
|
+
// "types": ["node"],
|
|
16
|
+
// and npm install -D @types/node
|
|
17
|
+
|
|
18
|
+
// Other Outputs
|
|
19
|
+
"sourceMap": true,
|
|
20
|
+
"declaration": true,
|
|
21
|
+
"declarationMap": true,
|
|
22
|
+
|
|
23
|
+
// Stricter Typechecking Options
|
|
24
|
+
"noUncheckedIndexedAccess": true,
|
|
25
|
+
"exactOptionalPropertyTypes": true,
|
|
26
|
+
|
|
27
|
+
// Style Options
|
|
28
|
+
// "noImplicitReturns": true,
|
|
29
|
+
// "noImplicitOverride": true,
|
|
30
|
+
// "noUnusedLocals": true,
|
|
31
|
+
// "noUnusedParameters": true,
|
|
32
|
+
// "noFallthroughCasesInSwitch": true,
|
|
33
|
+
// "noPropertyAccessFromIndexSignature": true,
|
|
34
|
+
|
|
35
|
+
// Recommended Options
|
|
36
|
+
"strict": true,
|
|
37
|
+
"jsx": "react-jsx",
|
|
38
|
+
"verbatimModuleSyntax": true,
|
|
39
|
+
"isolatedModules": true,
|
|
40
|
+
"noUncheckedSideEffectImports": true,
|
|
41
|
+
"moduleDetection": "force",
|
|
42
|
+
"skipLibCheck": true,
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"root":["./src/index.ts"],"version":"5.9.3"}
|