@jetthai/cuora 1.0.48 → 1.0.50

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/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.0.50](https://github.com/jetthai/cuora-module/compare/v1.0.49...v1.0.50) (2021-12-01)
6
+
7
+ ### [1.0.49](https://github.com/jetthai/cuora-module/compare/v1.0.48...v1.0.49) (2021-12-01)
8
+
5
9
  ### [1.0.48](https://github.com/jetthai/cuora-module/compare/v1.0.47...v1.0.48) (2021-12-01)
6
10
 
7
11
  ### [1.0.47](https://github.com/jetthai/cuora-module/compare/v1.0.46...v1.0.47) (2021-11-24)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.0.48",
3
+ "version": "1.0.50",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "scripts": {
@@ -11,15 +11,11 @@ export default function (request) {
11
11
  id: null,
12
12
  name: 'SYSTEM_TOP_GAME',
13
13
  list: [],
14
- games: [],
15
- length: 10,
16
14
  },
17
15
  new: {
18
16
  id: null,
19
17
  name: 'SYSTEM_NEW_GAME',
20
18
  list: [],
21
- games: [],
22
- length: 10,
23
19
  },
24
20
  },
25
21
  states: {
@@ -59,8 +55,8 @@ export default function (request) {
59
55
  setGames: assign((context, event) => {
60
56
  const { games } = event.data
61
57
  return {
62
- hot: { ...context.hot, list: games.hot, games: games.hot.slice(0, context.hot.length) },
63
- new: { ...context.new, list: games.new, games: games.new.slice(0, context.new.length) },
58
+ hot: { ...context.hot, list: games.hot },
59
+ new: { ...context.new, list: games.new },
64
60
  }
65
61
  }),
66
62
  },
@@ -75,16 +75,6 @@ export default function (request) {
75
75
  states: {
76
76
  operation: {
77
77
  on: {
78
- SET_NETWORK: {
79
- actions: 'setNetwork',
80
- },
81
- SET_ADDRESS: {
82
- actions: 'setAddress',
83
- },
84
- CALCULATE: {
85
- target: 'calculating',
86
- cond: 'isCalculable',
87
- },
88
78
  SUBMIT: {
89
79
  target: '#withdraw.free.converting',
90
80
  },
@@ -104,6 +94,18 @@ export default function (request) {
104
94
  },
105
95
  },
106
96
  },
97
+ on: {
98
+ SET_NETWORK: {
99
+ actions: 'setNetwork',
100
+ },
101
+ SET_ADDRESS: {
102
+ actions: 'setAddress',
103
+ },
104
+ CALCULATE: {
105
+ target: '.calculating',
106
+ cond: 'isCalculable',
107
+ },
108
+ },
107
109
  },
108
110
  converting: {
109
111
  invoke: {
@@ -138,16 +140,6 @@ export default function (request) {
138
140
  states: {
139
141
  operation: {
140
142
  on: {
141
- SET_NETWORK: {
142
- actions: 'setNetwork',
143
- },
144
- SET_ADDRESS: {
145
- actions: 'setAddress',
146
- },
147
- CALCULATE: {
148
- target: 'calculating',
149
- cond: 'isCalculable',
150
- },
151
143
  SUBMIT: {
152
144
  target: '#withdraw.cash.transferring',
153
145
  },
@@ -167,6 +159,18 @@ export default function (request) {
167
159
  },
168
160
  },
169
161
  },
162
+ on: {
163
+ SET_NETWORK: {
164
+ actions: 'setNetwork',
165
+ },
166
+ SET_ADDRESS: {
167
+ actions: 'setAddress',
168
+ },
169
+ CALCULATE: {
170
+ target: '.calculating',
171
+ cond: 'isCalculable',
172
+ },
173
+ },
170
174
  },
171
175
  transferring: {
172
176
  invoke: {