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 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, walletAddress: string) => Promise<any>;
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, walletAddress: string) => Promise<any>;
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, walletAddress) => {
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
- baseWalletAddress: { _eq: walletAddress }
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, walletAddress) => {
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
- baseWalletAddress: { _eq: walletAddress }
104
+ pid: { _eq: pid }
105
105
  }
106
106
  };
107
107
  const response = await fetch(endpoint, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anymal-protocol",
3
- "version": "1.0.104",
3
+ "version": "1.0.105",
4
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
  "bin": {