@axium/core 0.4.0 → 0.4.2

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/user.d.ts CHANGED
@@ -18,11 +18,11 @@ export declare const User: z.ZodObject<{
18
18
  export interface User extends z.infer<typeof User> {
19
19
  preferences: Preferences;
20
20
  }
21
- export declare const userPublicFields: ["id", "image", "name", "registeredAt"];
21
+ export declare const userPublicFields: ["id", "image", "name", "registeredAt", "roles"];
22
22
  type UserPublicField = (typeof userPublicFields)[number];
23
23
  export interface UserPublic extends Pick<User, UserPublicField> {
24
24
  }
25
- export declare const userProtectedFields: ["email", "emailVerified", "preferences", "roles"];
25
+ export declare const userProtectedFields: ["email", "emailVerified", "preferences"];
26
26
  export declare const UserChangeable: z.ZodObject<{
27
27
  email: z.ZodOptional<z.ZodEmail>;
28
28
  name: z.ZodOptional<z.ZodString>;
package/dist/user.js CHANGED
@@ -9,8 +9,8 @@ export const User = z.object({
9
9
  roles: z.array(z.string()),
10
10
  registeredAt: z.date(),
11
11
  });
12
- export const userPublicFields = ['id', 'image', 'name', 'registeredAt'];
13
- export const userProtectedFields = ['email', 'emailVerified', 'preferences', 'roles'];
12
+ export const userPublicFields = ['id', 'image', 'name', 'registeredAt', 'roles'];
13
+ export const userProtectedFields = ['email', 'emailVerified', 'preferences'];
14
14
  export const UserChangeable = User.pick({
15
15
  name: true,
16
16
  email: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axium/core",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "author": "James Prevett <axium@jamespre.dev> (https://jamespre.dev)",
5
5
  "funding": {
6
6
  "type": "individual",
@@ -28,7 +28,7 @@
28
28
  "build": "tsc"
29
29
  },
30
30
  "peerDependencies": {
31
- "zod": "^3.25.61"
31
+ "zod": "^3.25.76"
32
32
  },
33
33
  "dependencies": {
34
34
  "@simplewebauthn/types": "^12.0.0"