@axium/core 0.1.0 → 0.1.1

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/schemas.d.ts CHANGED
@@ -2,18 +2,18 @@ import * as z from 'zod';
2
2
  export declare const User: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  email: z.ZodString;
5
- name: z.ZodString;
6
- image: z.ZodString;
5
+ name: z.ZodNullable<z.ZodString>;
6
+ image: z.ZodNullable<z.ZodString>;
7
7
  }, "strip", z.ZodTypeAny, {
8
- name: string;
8
+ name: string | null;
9
9
  email: string;
10
10
  id: string;
11
- image: string;
11
+ image: string | null;
12
12
  }, {
13
- name: string;
13
+ name: string | null;
14
14
  email: string;
15
15
  id: string;
16
- image: string;
16
+ image: string | null;
17
17
  }>;
18
18
  export type User = z.infer<typeof User>;
19
19
  export declare const Login: z.ZodObject<{
package/dist/schemas.js CHANGED
@@ -2,8 +2,8 @@ import * as z from 'zod';
2
2
  export const User = z.object({
3
3
  id: z.string().uuid(),
4
4
  email: z.string().email(),
5
- name: z.string().min(1, 'Name is required').max(255, 'Name is too long'),
6
- image: z.string().url(),
5
+ name: z.string().min(1, 'Name is required').max(255, 'Name is too long').nullable(),
6
+ image: z.string().url().nullable(),
7
7
  });
8
8
  export const Login = z.object({
9
9
  email: z.string({ required_error: 'Email is required' }).min(1, 'Email is required').max(255, 'Email is too long').email('Invalid email'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axium/core",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "author": "James Prevett <axium@jamespre.dev> (https://jamespre.dev)",
5
5
  "funding": {
6
6
  "type": "individual",