@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 +2 -2
- package/build/index.cjs +2 -2
- package/build/index.js +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
package/build/index.cjs
CHANGED
|
@@ -453,8 +453,8 @@ var getUserProfile = async (address) => {
|
|
|
453
453
|
addresses: [address]
|
|
454
454
|
})
|
|
455
455
|
});
|
|
456
|
-
const
|
|
457
|
-
return
|
|
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
|
|
410
|
-
return
|
|
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.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"homepage": "https://docs.worldcoin.org/mini-apps",
|
|
5
|
-
"description": "
|
|
5
|
+
"description": "minikit-js is our SDK for building mini-apps.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"private": false,
|
|
8
8
|
"type": "module",
|