@axium/client 0.16.5 → 0.16.6

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/user.js +3 -3
  2. package/package.json +1 -1
package/dist/user.js CHANGED
@@ -64,10 +64,10 @@ export async function userInfo(userId, noCache = false) {
64
64
  _checkId(userId);
65
65
  const cached = userCache.get(userId);
66
66
  if (!noCache && cached)
67
- return cached;
68
- const result = await fetchAPI('GET', 'users/:id', {}, userId);
67
+ return await cached;
68
+ const result = fetchAPI('GET', 'users/:id', {}, userId);
69
69
  userCache.set(userId, result);
70
- return result;
70
+ return await result;
71
71
  }
72
72
  export async function updateUser(userId, data) {
73
73
  _checkId(userId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axium/client",
3
- "version": "0.16.5",
3
+ "version": "0.16.6",
4
4
  "author": "James Prevett <jp@jamespre.dev>",
5
5
  "funding": {
6
6
  "type": "individual",