react-memory-optimization 0.0.76 → 0.0.77

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.
@@ -38,13 +38,14 @@ const adaptedCasinoTournament = (result) => {
38
38
  Object.values(result.tournaments).forEach(({ tournament }) => {
39
39
  const { startDate, endDate,
40
40
  // @ts-ignore
41
- players = [], amount, status, id, } = tournament;
41
+ players = [], amount, status, id, position, } = tournament;
42
42
  const data = {
43
43
  id,
44
44
  status,
45
45
  startDate: startDate * 1000,
46
46
  endDate: endDate * 1000,
47
47
  amount: amount / 100,
48
+ position,
48
49
  };
49
50
  const adaptedPlayers = players.map((p) => (Object.assign(Object.assign({}, p), { rolled: p.rolled / 100, payout: p.payout / 100, payoutBonus: p.payoutBonus / 100 })));
50
51
  const tournamentInfo = Object.assign(Object.assign({}, data), { players: adaptedPlayers, playerLength: adaptedPlayers.length });
@@ -10,6 +10,7 @@ export type TournamentInfo = {
10
10
  players: TournamentPlayer[];
11
11
  startDate: number;
12
12
  status: ECasinoTournamentStatus;
13
+ position: number;
13
14
  };
14
15
  export type TournamentPlayer = {
15
16
  id: number;
@@ -60,6 +61,7 @@ export type ResponseProviderTournament = {
60
61
  };
61
62
  startDate: string;
62
63
  endDate: string;
64
+ position: number;
63
65
  rules: {
64
66
  [key: string]: string[];
65
67
  };
@@ -67,6 +69,7 @@ export type ResponseProviderTournament = {
67
69
  export type ProviderTournament = Omit<ResponseProviderTournament, 'startDate' | 'endDate'> & {
68
70
  startDate: number;
69
71
  endDate: number;
72
+ position: number;
70
73
  };
71
74
  export type RequestCommands = {
72
75
  socket: boolean;
@@ -156,6 +159,7 @@ export type NewFormatProviderTournamentEntity = {
156
159
  rules: {
157
160
  [en: string]: string[];
158
161
  };
162
+ position: number;
159
163
  };
160
164
  export type NewFormatStore = {
161
165
  active: NewFormatProviderTournamentEntity[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-memory-optimization",
3
- "version": "0.0.76",
3
+ "version": "0.0.77",
4
4
  "description": "react memory optimization library",
5
5
  "sideEffects": false,
6
6
  "files": [