anymal-protocol 1.0.17 → 1.0.19
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 -7
- package/dist/index.mjs +2 -7
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -63,7 +63,7 @@ declare function useUploadAnymalImage(): (imageFile: File, type: string, idToken
|
|
|
63
63
|
declare function useCreateUserAppData(): (appId: string, pid: string, dbAuthToken: string, endpoint: string) => Promise<{
|
|
64
64
|
success: boolean;
|
|
65
65
|
data: any;
|
|
66
|
-
}>;
|
|
66
|
+
} | undefined>;
|
|
67
67
|
|
|
68
68
|
declare function useFetchBalance(): (publicClient: any, walletAddress: string, kibbleTokenAddress: string) => Promise<number | undefined>;
|
|
69
69
|
|
package/dist/index.d.ts
CHANGED
|
@@ -63,7 +63,7 @@ declare function useUploadAnymalImage(): (imageFile: File, type: string, idToken
|
|
|
63
63
|
declare function useCreateUserAppData(): (appId: string, pid: string, dbAuthToken: string, endpoint: string) => Promise<{
|
|
64
64
|
success: boolean;
|
|
65
65
|
data: any;
|
|
66
|
-
}>;
|
|
66
|
+
} | undefined>;
|
|
67
67
|
|
|
68
68
|
declare function useFetchBalance(): (publicClient: any, walletAddress: string, kibbleTokenAddress: string) => Promise<number | undefined>;
|
|
69
69
|
|
package/dist/index.js
CHANGED
|
@@ -1242,11 +1242,7 @@ var import_uuid = require("uuid");
|
|
|
1242
1242
|
function useCreateUserAppData() {
|
|
1243
1243
|
return (0, import_react15.useCallback)(
|
|
1244
1244
|
async (appId, pid, dbAuthToken, endpoint) => {
|
|
1245
|
-
if (!dbAuthToken || !pid || !dbAuthToken || !endpoint)
|
|
1246
|
-
return {
|
|
1247
|
-
success: false,
|
|
1248
|
-
data: null
|
|
1249
|
-
};
|
|
1245
|
+
if (!dbAuthToken || !pid || !dbAuthToken || !endpoint) return;
|
|
1250
1246
|
const appValues = {
|
|
1251
1247
|
id: (0, import_uuid.v4)(),
|
|
1252
1248
|
userPid: pid,
|
|
@@ -1260,7 +1256,6 @@ function useCreateUserAppData() {
|
|
|
1260
1256
|
mutation Create_UserAppSettings($input: [UserAppSettingsMutationInputArg!]) {
|
|
1261
1257
|
create_UserAppSettings (input: $input) {
|
|
1262
1258
|
id
|
|
1263
|
-
userPid
|
|
1264
1259
|
appId
|
|
1265
1260
|
settings
|
|
1266
1261
|
}
|
|
@@ -1278,7 +1273,7 @@ function useCreateUserAppData() {
|
|
|
1278
1273
|
body: JSON.stringify({ query: mutation, variables })
|
|
1279
1274
|
});
|
|
1280
1275
|
if (!response.ok) {
|
|
1281
|
-
|
|
1276
|
+
return { success: false, data: null };
|
|
1282
1277
|
}
|
|
1283
1278
|
const { data, errors } = await response.json();
|
|
1284
1279
|
if (errors) {
|
package/dist/index.mjs
CHANGED
|
@@ -1201,11 +1201,7 @@ import { v4 as uuid } from "uuid";
|
|
|
1201
1201
|
function useCreateUserAppData() {
|
|
1202
1202
|
return useCallback15(
|
|
1203
1203
|
async (appId, pid, dbAuthToken, endpoint) => {
|
|
1204
|
-
if (!dbAuthToken || !pid || !dbAuthToken || !endpoint)
|
|
1205
|
-
return {
|
|
1206
|
-
success: false,
|
|
1207
|
-
data: null
|
|
1208
|
-
};
|
|
1204
|
+
if (!dbAuthToken || !pid || !dbAuthToken || !endpoint) return;
|
|
1209
1205
|
const appValues = {
|
|
1210
1206
|
id: uuid(),
|
|
1211
1207
|
userPid: pid,
|
|
@@ -1219,7 +1215,6 @@ function useCreateUserAppData() {
|
|
|
1219
1215
|
mutation Create_UserAppSettings($input: [UserAppSettingsMutationInputArg!]) {
|
|
1220
1216
|
create_UserAppSettings (input: $input) {
|
|
1221
1217
|
id
|
|
1222
|
-
userPid
|
|
1223
1218
|
appId
|
|
1224
1219
|
settings
|
|
1225
1220
|
}
|
|
@@ -1237,7 +1232,7 @@ function useCreateUserAppData() {
|
|
|
1237
1232
|
body: JSON.stringify({ query: mutation, variables })
|
|
1238
1233
|
});
|
|
1239
1234
|
if (!response.ok) {
|
|
1240
|
-
|
|
1235
|
+
return { success: false, data: null };
|
|
1241
1236
|
}
|
|
1242
1237
|
const { data, errors } = await response.json();
|
|
1243
1238
|
if (errors) {
|
package/package.json
CHANGED