duckylib 0.1.8 → 0.1.9

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.
@@ -12,7 +12,7 @@
12
12
 
13
13
  </script>
14
14
 
15
- <button onclick={async () => await onlogin}>
15
+ <button onclick={async () => {if(onlogin) await onlogin()}}>
16
16
  {#if withIcon}<Symbol name="account_circle" inheritColor={true} sizePx={20} hoverEffect={false} />{/if}
17
17
  <p class="font-bold">{label}</p>
18
18
  </button>
@@ -70,7 +70,7 @@
70
70
  <contextentry
71
71
  data-disabled="false"
72
72
  id="log-out"
73
- onclick={async () => await onlogout}
73
+ onclick={async () => {if(onlogout) await onlogout()}}
74
74
  >
75
75
  <span class="material-symbols-outlined">logout</span>
76
76
  <red>Log Out</red>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "duckylib",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run prepack",