anymal-protocol 1.0.12 → 1.0.14
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/dist/index.js +9 -8
- package/dist/index.mjs +9 -8
- package/package.json +14 -4
- package/src/helpers/BlockchainAbiHelper.tsx +0 -922
- package/src/helpers/UploadImageHelper.tsx +0 -63
- package/src/index.ts +0 -20
- package/src/types/Anymal.ts +0 -8
- package/src/utils/account/useCreateWeb3Account.ts +0 -24
- package/src/utils/account/useFetchUserData.ts +0 -43
- package/src/utils/account/useUpdateUserAsVerified.ts +0 -52
- package/src/utils/account/useUpdateUserEmail.ts +0 -48
- package/src/utils/account/useUpdateUserName.ts +0 -55
- package/src/utils/account/useUpdateUserPid.ts +0 -48
- package/src/utils/account/useVerifyAccount.ts +0 -61
- package/src/utils/account/useVerifyWeb3AuthSession.ts +0 -24
- package/src/utils/anymals/useAddAnymalToDatabase.ts +0 -82
- package/src/utils/anymals/useDeleteAnymalFromDatabase.ts +0 -47
- package/src/utils/anymals/useMintAnymalNFT.ts +0 -63
- package/src/utils/anymals/useSaveAnymalMetadata.ts +0 -37
- package/src/utils/anymals/useUpdateAnymalWithNFT.ts +0 -59
- package/src/utils/anymals/useUploadAnymalImage.ts +0 -70
- package/src/utils/application/useCreateUserAppData.ts +0 -66
- package/src/utils/balance/useFetchBalance.ts +0 -26
- package/tsconfig.json +0 -17
package/dist/index.js
CHANGED
|
@@ -693,15 +693,16 @@ function useFetchUserData() {
|
|
|
693
693
|
return (0, import_react4.useCallback)(async (dbAuthToken, endpoint) => {
|
|
694
694
|
try {
|
|
695
695
|
const query = `
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
696
|
+
query User {
|
|
697
|
+
User {
|
|
698
|
+
_docID
|
|
699
|
+
pid
|
|
700
|
+
email
|
|
701
|
+
name
|
|
702
|
+
isVerified
|
|
703
|
+
accountType
|
|
704
|
+
}
|
|
703
705
|
}
|
|
704
|
-
}
|
|
705
706
|
`;
|
|
706
707
|
const response = await fetch(endpoint, {
|
|
707
708
|
method: "POST",
|
package/dist/index.mjs
CHANGED
|
@@ -652,15 +652,16 @@ function useFetchUserData() {
|
|
|
652
652
|
return useCallback4(async (dbAuthToken, endpoint) => {
|
|
653
653
|
try {
|
|
654
654
|
const query = `
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
655
|
+
query User {
|
|
656
|
+
User {
|
|
657
|
+
_docID
|
|
658
|
+
pid
|
|
659
|
+
email
|
|
660
|
+
name
|
|
661
|
+
isVerified
|
|
662
|
+
accountType
|
|
663
|
+
}
|
|
662
664
|
}
|
|
663
|
-
}
|
|
664
665
|
`;
|
|
665
666
|
const response = await fetch(endpoint, {
|
|
666
667
|
method: "POST",
|
package/package.json
CHANGED
|
@@ -1,15 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anymal-protocol",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "",
|
|
3
|
+
"version": "1.0.14",
|
|
4
|
+
"description": "A React/TypeScript-based utility library for reusable functions and hooks inside of the Anymal Ecosystem.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
|
-
"
|
|
6
|
+
"module": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
7
11
|
"scripts": {
|
|
8
12
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
9
13
|
"build": "tsup src/index.ts --format cjs,esm --dts",
|
|
10
14
|
"prepublishOnly": "npm run build"
|
|
11
15
|
},
|
|
12
|
-
"keywords": [
|
|
16
|
+
"keywords": [
|
|
17
|
+
"react",
|
|
18
|
+
"typescript",
|
|
19
|
+
"hooks",
|
|
20
|
+
"functions",
|
|
21
|
+
"utilities"
|
|
22
|
+
],
|
|
13
23
|
"author": "",
|
|
14
24
|
"license": "ISC",
|
|
15
25
|
"dependencies": {
|