@hadoku/prefs-client 1.1.26 → 1.1.27

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.
Files changed (2) hide show
  1. package/dist/avatar.js +1 -2
  2. package/package.json +2 -2
package/dist/avatar.js CHANGED
@@ -151,8 +151,7 @@ async function fetchCharacter(opts = {}) {
151
151
  }
152
152
  }
153
153
  function onAvatarChange(onChange) {
154
- if (typeof window === "undefined") return () => {
155
- };
154
+ if (typeof window === "undefined") return () => void 0;
156
155
  const listener = (e) => {
157
156
  const settings = e.detail;
158
157
  if (settings) onChange(characterOf(settings), settings);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hadoku/prefs-client",
3
- "version": "1.1.26",
4
- "gitHead": "595d6bff486fa432d50957c2d0e17ce517267e37",
3
+ "version": "1.1.27",
4
+ "gitHead": "821671a109034b78ce04c52eb9cf9456eea8be22",
5
5
  "description": "Client SDK for the hadoku unified preferences store. Wraps /prefs/api/v1/* with localStorage caching, debounced writes, Zod-validated reads, and a usePrefs() React hook, plus match history, ratings and leaderboards for every game (./games), the one resolved avatar per user (./avatar), and the avatar cosmetics renderer (./cosmetics).",
6
6
  "type": "module",
7
7
  "main": "./dist/index.js",