anymal-protocol 1.0.104 → 1.0.105
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.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -10,7 +10,7 @@ declare function useVerifyWeb3AuthSession(): (idToken: string, publicKey: string
|
|
|
10
10
|
|
|
11
11
|
declare function useCreateWeb3Account(): (idToken: string, publicKey: string, userPid: string, authServiceBaseUrl: string) => Promise<any>;
|
|
12
12
|
|
|
13
|
-
declare function useFetchUserData(): (dbAuthToken: string, endpoint: string,
|
|
13
|
+
declare function useFetchUserData(): (dbAuthToken: string, endpoint: string, pid: string) => Promise<any>;
|
|
14
14
|
|
|
15
15
|
declare function useUpdateUserEmail(): (dbAuthToken: string, docID: string, email: string, endpoint: string) => Promise<void>;
|
|
16
16
|
|
package/dist/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ declare function useVerifyWeb3AuthSession(): (idToken: string, publicKey: string
|
|
|
10
10
|
|
|
11
11
|
declare function useCreateWeb3Account(): (idToken: string, publicKey: string, userPid: string, authServiceBaseUrl: string) => Promise<any>;
|
|
12
12
|
|
|
13
|
-
declare function useFetchUserData(): (dbAuthToken: string, endpoint: string,
|
|
13
|
+
declare function useFetchUserData(): (dbAuthToken: string, endpoint: string, pid: string) => Promise<any>;
|
|
14
14
|
|
|
15
15
|
declare function useUpdateUserEmail(): (dbAuthToken: string, docID: string, email: string, endpoint: string) => Promise<void>;
|
|
16
16
|
|
package/dist/index.js
CHANGED
|
@@ -146,7 +146,7 @@ function useCreateWeb3Account() {
|
|
|
146
146
|
var import_react4 = require("react");
|
|
147
147
|
function useFetchUserData() {
|
|
148
148
|
return (0, import_react4.useCallback)(
|
|
149
|
-
async (dbAuthToken, endpoint,
|
|
149
|
+
async (dbAuthToken, endpoint, pid) => {
|
|
150
150
|
try {
|
|
151
151
|
const query = `
|
|
152
152
|
query User($filter: UserFilterArg) {
|
|
@@ -164,7 +164,7 @@ function useFetchUserData() {
|
|
|
164
164
|
`;
|
|
165
165
|
const variables = {
|
|
166
166
|
filter: {
|
|
167
|
-
|
|
167
|
+
pid: { _eq: pid }
|
|
168
168
|
}
|
|
169
169
|
};
|
|
170
170
|
const response = await fetch(endpoint, {
|
package/dist/index.mjs
CHANGED
|
@@ -83,7 +83,7 @@ function useCreateWeb3Account() {
|
|
|
83
83
|
import { useCallback as useCallback4 } from "react";
|
|
84
84
|
function useFetchUserData() {
|
|
85
85
|
return useCallback4(
|
|
86
|
-
async (dbAuthToken, endpoint,
|
|
86
|
+
async (dbAuthToken, endpoint, pid) => {
|
|
87
87
|
try {
|
|
88
88
|
const query = `
|
|
89
89
|
query User($filter: UserFilterArg) {
|
|
@@ -101,7 +101,7 @@ function useFetchUserData() {
|
|
|
101
101
|
`;
|
|
102
102
|
const variables = {
|
|
103
103
|
filter: {
|
|
104
|
-
|
|
104
|
+
pid: { _eq: pid }
|
|
105
105
|
}
|
|
106
106
|
};
|
|
107
107
|
const response = await fetch(endpoint, {
|
package/package.json
CHANGED