@microcosmmoney/auth-react 1.5.0 → 1.5.1
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/hooks/use-api-query.d.ts +3 -2
- package/dist/hooks/use-api-query.js +1 -1
- package/dist/hooks/use-buyback-history.js +1 -0
- package/dist/hooks/use-fragment-holdings.d.ts +1 -1
- package/dist/hooks/use-fragment-holdings.js +1 -0
- package/dist/hooks/use-fragment-vaults.js +1 -0
- package/dist/hooks/use-lending-loans.d.ts +1 -1
- package/dist/hooks/use-lending-loans.js +1 -0
- package/dist/hooks/use-mcc-locks.js +1 -0
- package/dist/hooks/use-mcd-rewards.js +1 -0
- package/dist/hooks/use-mcd-transactions.js +1 -0
- package/dist/hooks/use-price-history.js +1 -0
- package/dist/hooks/use-territory-nfts.d.ts +1 -1
- package/dist/hooks/use-territory-nfts.js +1 -0
- package/dist/hooks/use-wallets.js +1 -0
- package/package.json +2 -2
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
interface UseApiQueryOptions {
|
|
1
|
+
interface UseApiQueryOptions<T = any> {
|
|
2
2
|
path: string;
|
|
3
3
|
requireAuth?: boolean;
|
|
4
4
|
refetchInterval?: number;
|
|
5
5
|
skip?: boolean;
|
|
6
|
+
select?: (raw: any) => T;
|
|
6
7
|
}
|
|
7
8
|
export interface UseApiQueryResult<T> {
|
|
8
9
|
data: T | null;
|
|
@@ -10,5 +11,5 @@ export interface UseApiQueryResult<T> {
|
|
|
10
11
|
error: Error | null;
|
|
11
12
|
refresh: () => Promise<void>;
|
|
12
13
|
}
|
|
13
|
-
export declare function useApiQuery<T = any>(options: UseApiQueryOptions): UseApiQueryResult<T>;
|
|
14
|
+
export declare function useApiQuery<T = any>(options: UseApiQueryOptions<T>): UseApiQueryResult<T>;
|
|
14
15
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microcosmmoney/auth-react",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"description": "Microcosm OAuth 2.0 React/Next.js adapter",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"react-dom": ">=18.0.0"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@microcosmmoney/auth-core": "^1.5.
|
|
27
|
+
"@microcosmmoney/auth-core": "^1.5.1"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/react": "^18.0.0",
|