@sorajpradhan/medium-common 1.1.3 → 1.2.4
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 +7 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import z from "zod";
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
export declare const signupInput: z.ZodObject<{
|
|
3
|
-
email: z.
|
|
3
|
+
email: z.ZodEmail;
|
|
4
4
|
name: z.ZodOptional<z.ZodString>;
|
|
5
5
|
password: z.ZodString;
|
|
6
|
-
}, z.
|
|
6
|
+
}, z.core.$strip>;
|
|
7
7
|
export declare const createBlogInput: z.ZodObject<{
|
|
8
8
|
title: z.ZodString;
|
|
9
9
|
content: z.ZodString;
|
|
10
|
-
}, z.
|
|
10
|
+
}, z.core.$strip>;
|
|
11
11
|
export declare const updateBlogInput: z.ZodObject<{
|
|
12
12
|
title: z.ZodString;
|
|
13
13
|
content: z.ZodString;
|
|
14
14
|
id: z.ZodNumber;
|
|
15
|
-
}, z.
|
|
15
|
+
}, z.core.$strip>;
|
|
16
16
|
export declare const signinInput: z.ZodObject<{
|
|
17
|
-
email: z.
|
|
17
|
+
email: z.ZodEmail;
|
|
18
18
|
password: z.ZodString;
|
|
19
|
-
}, z.
|
|
19
|
+
}, z.core.$strip>;
|
|
20
20
|
export type SignupInput = z.infer<typeof signupInput>;
|
|
21
21
|
export type SigninInput = z.infer<typeof signinInput>;
|
|
22
22
|
export type CreateBlogInput = z.infer<typeof createBlogInput>;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,WAAW;;;;iBAItB,CAAC;AACH,eAAO,MAAM,eAAe;;;iBAG1B,CAAC;AACH,eAAO,MAAM,eAAe;;;;iBAI1B,CAAC;AAEH,eAAO,MAAM,WAAW;;;iBAGtB,CAAC;AAGH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AACtD,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AACtD,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAC9D,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import z from "zod";
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
//export signup schema and type
|
|
3
3
|
export const signupInput = z.object({
|
|
4
|
-
email: z.
|
|
4
|
+
email: z.email(),
|
|
5
5
|
name: z.string().optional(),
|
|
6
6
|
password: z.string().min(6),
|
|
7
7
|
});
|
|
@@ -15,7 +15,7 @@ export const updateBlogInput = z.object({
|
|
|
15
15
|
id: z.number(),
|
|
16
16
|
});
|
|
17
17
|
export const signinInput = z.object({
|
|
18
|
-
email: z.
|
|
18
|
+
email: z.email(),
|
|
19
19
|
password: z.string(),
|
|
20
20
|
});
|
|
21
21
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,+BAA+B;AAC/B,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE;IAChB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAC5B,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;CACf,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE;IAChB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;CACrB,CAAC,CAAC"}
|