@axium/server 0.4.3 → 0.4.5

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/io.js CHANGED
@@ -176,8 +176,10 @@ export function someWarnings(output, ...allowList) {
176
176
  return (error) => {
177
177
  error = typeof error == 'object' && 'message' in error ? error.message : error;
178
178
  for (const [pattern, message = error] of allowList) {
179
- if (pattern.test(error))
180
- output('warn', message);
179
+ if (!pattern.test(error))
180
+ continue;
181
+ output('warn', message);
182
+ return;
181
183
  }
182
184
  throw error;
183
185
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axium/server",
3
- "version": "0.4.3",
3
+ "version": "0.4.5",
4
4
  "author": "James Prevett <axium@jamespre.dev> (https://jamespre.dev)",
5
5
  "funding": {
6
6
  "type": "individual",
@@ -1,9 +1,9 @@
1
1
  <script lang="ts">
2
2
  import { onMount } from 'svelte';
3
3
 
4
- const { id } = $props();
4
+ const { i } = $props();
5
5
 
6
- const withStyle = id.includes('/') ? id : 'solid/' + id;
6
+ const withStyle = i.includes('/') ? i : 'solid/' + i;
7
7
  const href = `https://site-assets.fontawesome.com/releases/v6.7.2/svgs/${withStyle}.svg`;
8
8
 
9
9
  let content = $state('');
@@ -25,15 +25,15 @@
25
25
  <div class="account-item">
26
26
  <p class="subtle">Name</p>
27
27
  <p>{user.name}</p>
28
- <a class="change" href="{data.prefix}/name"><Icon id="chevron-right" /></a>
28
+ <a class="change" href="{data.prefix}/name"><Icon i="chevron-right" /></a>
29
29
  </div>
30
30
  <div class="account-item">
31
31
  <p class="subtle">Email</p>
32
32
  <p>{user.email}</p>
33
- <a class="change" href="{data.prefix}/email"><Icon id="chevron-right" /></a>
33
+ <a class="change" href="{data.prefix}/email"><Icon i="chevron-right" /></a>
34
34
  </div>
35
35
  <div class="account-item">
36
- <p class="subtle">User ID <dfn title="This is your UUID."><Icon id="regular/circle-info" /></dfn></p>
36
+ <p class="subtle">User ID <dfn title="This is your UUID."><Icon i="regular/circle-info" /></dfn></p>
37
37
  <p>{user.id}</p>
38
38
  </div>
39
39
  <a class="signout" href="/auth/signout"><button>Sign out</button></a>