@axium/server 0.43.0 → 0.43.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/auth.js CHANGED
@@ -181,7 +181,7 @@ export async function authSessionForItem(itemType, itemId, permissions, session,
181
181
  * This will fetch the item, ACLs, users, and the authenticating session.
182
182
  */
183
183
  export async function authRequestForItem(request, itemType, itemId, permissions, recursive = false) {
184
- let session = null;
184
+ let session;
185
185
  try {
186
186
  const token = getToken(request, false);
187
187
  if (!token)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axium/server",
3
- "version": "0.43.0",
3
+ "version": "0.43.1",
4
4
  "author": "James Prevett <axium@jamespre.dev>",
5
5
  "funding": {
6
6
  "type": "individual",
@@ -3,7 +3,7 @@
3
3
  import { ClipboardCopy, FormDialog, Icon, Logout, Popover, SessionList, UserPFP, ZodForm } from '@axium/client/components';
4
4
  import '@axium/client/styles/account';
5
5
  import { createPasskey, deletePasskey, deleteUser, sendVerificationEmail, updatePasskey, updateUser } from '@axium/client/user';
6
- import { preferenceLabels, Preferences } from '@axium/core/preferences';
6
+ import { Preferences } from '@axium/core/preferences';
7
7
  import type { PageProps } from './$types';
8
8
  import { toast, toastStatus } from '@axium/client/toast';
9
9
  import { contextMenu } from '@axium/client/attachments';
@@ -221,7 +221,6 @@
221
221
  bind:rootValue={user.preferences}
222
222
  idPrefix="preferences"
223
223
  schema={Preferences}
224
- labels={preferenceLabels}
225
224
  updateValue={(preferences: Preferences) => fetchAPI('PATCH', 'users/:id', { preferences }, user.id)}
226
225
  />
227
226
  </div>
@@ -3,7 +3,7 @@
3
3
  import { ClipboardCopy, FormDialog, Icon, SessionList, UserPFP, ZodForm, ZodInput } from '@axium/client/components';
4
4
  import { toast } from '@axium/client/toast';
5
5
  import '@axium/client/styles/account';
6
- import { preferenceLabels, Preferences, User } from '@axium/core';
6
+ import { Preferences, User } from '@axium/core';
7
7
  import { formatDateRange } from '@axium/core/format';
8
8
 
9
9
  const { data } = $props();
@@ -134,7 +134,6 @@
134
134
  <ZodForm
135
135
  bind:rootValue={user.preferences}
136
136
  schema={Preferences}
137
- labels={preferenceLabels}
138
137
  updateValue={(preferences: Preferences) => fetchAPI('PATCH', 'users/:id', { preferences }, user.id)}
139
138
  />
140
139
  </div>