@worldcoin/minikit-js 1.1.1 → 1.2.0

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/README.md CHANGED
@@ -1,8 +1,8 @@
1
- # Minikit-JS
1
+ # minikit-js
2
2
 
3
3
  ## 🚀 Getting Started
4
4
 
5
- Minikit is currently available on npm. To install, run:
5
+ MiniKit is currently available on npm. To install, run:
6
6
  `pnpm i @worldcoin/minikit-js`
7
7
 
8
8
  or use the CDN:
package/build/index.cjs CHANGED
@@ -453,8 +453,8 @@ var getUserProfile = async (address) => {
453
453
  addresses: [address]
454
454
  })
455
455
  });
456
- const data = await res.json();
457
- return data.usernames[0] ?? { username: null, profilePictureUrl: null };
456
+ const usernames = await res.json();
457
+ return usernames[0] ?? { username: null, profilePictureUrl: null };
458
458
  };
459
459
 
460
460
  // minikit.ts
package/build/index.js CHANGED
@@ -406,8 +406,8 @@ var getUserProfile = async (address) => {
406
406
  addresses: [address]
407
407
  })
408
408
  });
409
- const data = await res.json();
410
- return data.usernames[0] ?? { username: null, profilePictureUrl: null };
409
+ const usernames = await res.json();
410
+ return usernames[0] ?? { username: null, profilePictureUrl: null };
411
411
  };
412
412
 
413
413
  // minikit.ts
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@worldcoin/minikit-js",
3
- "version": "1.1.1",
3
+ "version": "1.2.0",
4
4
  "homepage": "https://docs.worldcoin.org/mini-apps",
5
- "description": "Minikit-js is our SDK for building mini-apps.",
5
+ "description": "minikit-js is our SDK for building mini-apps.",
6
6
  "license": "MIT",
7
7
  "private": false,
8
8
  "type": "module",