@liberfi.io/react-predict 0.1.47 → 0.1.49
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 +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -3
- package/dist/index.mjs.map +1 -1
- package/dist/{server-D-WAydlX.d.mts → server-rYuNULuJ.d.mts} +11 -1
- package/dist/{server-D-WAydlX.d.ts → server-rYuNULuJ.d.ts} +11 -1
- package/dist/server.d.mts +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +5 -3
- package/dist/server.js.map +1 -1
- package/dist/server.mjs +5 -3
- package/dist/server.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -925,7 +925,7 @@ function useEvents(params, queryOptions = {}) {
|
|
|
925
925
|
}
|
|
926
926
|
|
|
927
927
|
// src/hooks/predict/events.params.ts
|
|
928
|
-
var DEFAULT_PAGE_SIZE =
|
|
928
|
+
var DEFAULT_PAGE_SIZE = 24;
|
|
929
929
|
function resolveTagSlug(selection) {
|
|
930
930
|
if (!selection) return void 0;
|
|
931
931
|
return selection.tagSlug ?? selection.categorySlug ?? void 0;
|
|
@@ -946,7 +946,8 @@ function resolveEventsParams(input = {}) {
|
|
|
946
946
|
sort_asc,
|
|
947
947
|
minVolume,
|
|
948
948
|
minLiquidity,
|
|
949
|
-
timeRemaining
|
|
949
|
+
timeRemaining,
|
|
950
|
+
markets_limit = 3
|
|
950
951
|
} = input;
|
|
951
952
|
const tag_slug = resolveTagSlug(tagSlugSelection);
|
|
952
953
|
const min_volume = minVolume !== void 0 && minVolume !== "" ? Number(minVolume) : void 0;
|
|
@@ -962,7 +963,8 @@ function resolveEventsParams(input = {}) {
|
|
|
962
963
|
...sort_asc !== void 0 ? { sort_asc } : {},
|
|
963
964
|
...min_volume !== void 0 && !isNaN(min_volume) ? { min_volume } : {},
|
|
964
965
|
...min_liquidity !== void 0 && !isNaN(min_liquidity) ? { min_liquidity } : {},
|
|
965
|
-
...end_before ? { end_before } : {}
|
|
966
|
+
...end_before ? { end_before } : {},
|
|
967
|
+
...markets_limit ? { markets_limit } : {}
|
|
966
968
|
};
|
|
967
969
|
}
|
|
968
970
|
function infiniteEventsQueryKey(params) {
|