@stakekit/api-hooks
Advanced tools
Comparing version 0.0.77 to 0.0.78
@@ -1,2 +0,2 @@ | ||
export { ActionStatus, ActionTypes, BalanceTypes, DailyCumulativeStakeDtoStatus, DailyCumulativeStakeDtoType, EvmEIP1559GasArgsDtoType, EvmLegacyGasArgsDtoType, GasMode, GeolocationErrorTagsItem, GeolocationErrorType, KeyCategory, MasterBannedRegionDtoTagsItem, Networks, RequiredArgumentWithNetworkDtoNetwork, RewardClaiming, RewardSchedule, RewardTypes, Role, TeamCategory, TokenGetTokensNetwork, TransactionStatus, TransactionType, TronResourceType, UpdatePayoutAddressDtoNetwork, ValidatorStatusTypes, WebhookSubscriptionEventDtoEvent, YieldGetMyYieldsNetwork, YieldGetMyYieldsSortBy, YieldGetMyYieldsType, YieldProviders, YieldType, YieldYieldsNetwork, YieldYieldsRevenueOption, YieldYieldsSortBy, YieldYieldsType } from './chunk-6WGTFAQI.js'; | ||
export { ActionStatus, ActionTypes, BalanceTypes, DailyCumulativeStakeDtoStatus, DailyCumulativeStakeDtoType, EvmEIP1559GasArgsDtoType, EvmLegacyGasArgsDtoType, GasMode, GeolocationErrorTagsItem, GeolocationErrorType, KeyCategory, MasterBannedRegionDtoTagsItem, Networks, RequiredArgumentWithNetworkDtoNetwork, RewardClaiming, RewardSchedule, RewardTypes, Role, TeamCategory, TokenGetTokensNetwork, TransactionStatus, TransactionType, TronResourceType, UpdatePayoutAddressDtoNetwork, ValidatorStatusTypes, WebhookSubscriptionEventDtoEvent, YieldGetMyYieldsNetwork, YieldGetMyYieldsSortBy, YieldGetMyYieldsType, YieldProviders, YieldType, YieldYieldsNetwork, YieldYieldsRevenueOption, YieldYieldsSortBy, YieldYieldsType } from './chunk-J3OF7GWQ.js'; | ||
import { useQuery, useMutation } from '@tanstack/react-query'; | ||
@@ -28,3 +28,12 @@ import { createContext, useContext } from 'react'; | ||
url.pathname = path; | ||
url.search = new URLSearchParams(params).toString(); | ||
if (params) { | ||
const urlSearchParams = new URLSearchParams(); | ||
Object.keys(params).forEach((key) => { | ||
const val = params[key]; | ||
if (val === void 0 || val === null || val === "") | ||
return; | ||
urlSearchParams.append(key, params[key]); | ||
}); | ||
url.search = urlSearchParams.toString(); | ||
} | ||
return url.toString(); | ||
@@ -31,0 +40,0 @@ }; |
import * as msw from 'msw'; | ||
import { b as ActionDto, G as GasEstimateDto, c as TransactionDto, S as SubmitResponseDto, d as TransactionStatusResponseDto, e as GasForNetworkResponseDto, f as TransactionVerificationMessageDto, g as TokenWithAvailableYieldsDto, P as PriceResponseDto, B as BalanceResponseDto, h as TokenBalanceScanResponseDto, i as YieldYields200, k as YieldBalancesWithIntegrationIdDto, l as YieldGetMyYields200, V as ValidatorSearchResultDto, n as YieldDto, o as ValidatorDto, p as YieldBalanceDto } from '../yieldYields200-GW9RJQjz.js'; | ||
import { b as ActionDto, G as GasEstimateDto, c as TransactionDto, S as SubmitResponseDto, d as TransactionStatusResponseDto, e as GasForNetworkResponseDto, f as TransactionVerificationMessageDto, g as TokenWithAvailableYieldsDto, P as PriceResponseDto, B as BalanceResponseDto, h as TokenBalanceScanResponseDto, i as YieldYields200, k as YieldBalancesWithIntegrationIdDto, l as YieldGetMyYields200, V as ValidatorSearchResultDto, n as YieldDto, o as ValidatorDto, p as YieldBalanceDto } from '../yieldYields200-EBSnkjZz.js'; | ||
@@ -4,0 +4,0 @@ declare const getActionControllerGetActionResponseMock: (overrideResponse?: any) => ActionDto; |
{ | ||
"name": "@stakekit/api-hooks", | ||
"description": "React hooks for StakeKit API", | ||
"version": "0.0.77", | ||
"version": "0.0.78", | ||
"type": "module", | ||
@@ -44,3 +44,3 @@ "types": "./dist/index.d.ts", | ||
"@faker-js/faker": "^8", | ||
"@tanstack/react-query": "^5", | ||
"@tanstack/react-query": ">=4", | ||
"msw": "^2", | ||
@@ -47,0 +47,0 @@ "react": ">=18" |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
540590
6326