@jetthai/cuora 1.0.141-2 → 1.0.141

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,14 +2,6 @@
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.141-2](https://github.com/jetthai/cuora-module/compare/v1.0.141-1...v1.0.141-2) (2022-07-19)
6
-
7
- ### [1.0.141-1](https://github.com/jetthai/cuora-module/compare/v1.0.140-2...v1.0.141-1) (2022-07-17)
8
-
9
- ### [1.0.141](https://github.com/jetthai/cuora-module/compare/v1.0.140-1...v1.0.141) (2022-07-05)
10
-
11
- ### [1.0.140-1](https://github.com/jetthai/cuora-module/compare/v1.0.140...v1.0.140-1) (2022-07-04)
12
-
13
5
  ### [1.0.141](https://github.com/jetthai/cuora-module/compare/v1.0.140-1...v1.0.141) (2022-07-05)
14
6
 
15
7
  ### [1.0.140-1](https://github.com/jetthai/cuora-module/compare/v1.0.140...v1.0.140-1) (2022-07-04)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.0.141-2",
3
+ "version": "1.0.141",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "scripts": {
@@ -178,9 +178,6 @@ export default function (request) {
178
178
  LOGIN_3PARTY: {
179
179
  actions: 'redirectTo3Party',
180
180
  },
181
- SET_PLAY: {
182
- actions: 'setPlay',
183
- },
184
181
  },
185
182
  },
186
183
  {
@@ -205,7 +202,7 @@ export default function (request) {
205
202
  setReCaptchaToken: assign((context, event) => {
206
203
  const { reCaptchaToken } = event.data
207
204
  return {
208
- reCaptchaToken,
205
+ reCaptchaToken
209
206
  }
210
207
  }),
211
208
  setLoginPhone: assign((context, event) => {
@@ -291,14 +288,14 @@ export default function (request) {
291
288
  const redirectURL = urljoin(
292
289
  request.config.fullURL,
293
290
  'login?' +
294
- qs.stringify({
295
- provider,
296
- redirectURI: `${window.location.protocol}//${window.location.host}`,
297
- channel: cookies.get('channel') || channel || 'official',
298
- subchannel: cookies.get('subchannel') || subchannel || 'pwa',
299
- // dt,
300
- platform: 'pwa',
301
- })
291
+ qs.stringify({
292
+ provider,
293
+ redirectURI: `${window.location.protocol}//${window.location.host}`,
294
+ channel: cookies.get('channel') || channel || 'official',
295
+ subchannel: cookies.get('subchannel') || subchannel || 'pwa',
296
+ // dt,
297
+ platform: 'pwa',
298
+ })
302
299
  )
303
300
  window.location.href = redirectURL
304
301
  },
@@ -308,11 +305,6 @@ export default function (request) {
308
305
  userInfo: event.data,
309
306
  }
310
307
  }),
311
- setPlay: assign((context, event) => {
312
- return {
313
- isPlaying: event.data,
314
- }
315
- }),
316
308
  },
317
309
  services: {
318
310
  authenticate: async (context, event) => {
@@ -194,7 +194,6 @@ export default function (request) {
194
194
  }
195
195
  }),
196
196
  setBanks: assign((context, event) => {
197
- const banks = event.data
198
197
  const { playerBanks, houseBanks, selectedHouseBank } = context
199
198
 
200
199
  const formattedPlayerBanks = playerBanks.map((bank) => {
@@ -203,7 +202,7 @@ export default function (request) {
203
202
  return bank
204
203
  })
205
204
 
206
- const userBanks = [...formattedPlayerBanks, ...banks]
205
+ const banks = [...formattedPlayerBanks, ...event.data]
207
206
 
208
207
  const newHouseBanks = houseBanks.map((houseBank) => {
209
208
  return { ...houseBank, ...banks.find((bank) => houseBank.bankName === bank.bankCode) }
@@ -212,12 +211,12 @@ export default function (request) {
212
211
  const newSelectedHouseBank = { ...selectedHouseBank, ...banks.find((bank) => selectedHouseBank.bankName === bank.bankCode) }
213
212
 
214
213
  return {
215
- banks: userBanks,
214
+ banks,
216
215
  houseBanks: newHouseBanks,
217
216
  selectedHouseBank: newSelectedHouseBank,
218
- selectedUserBank: userBanks[0],
219
- userAccountNumber: userBanks[0].accountNumber,
220
- userAccountName: userBanks[0].holderName,
217
+ selectedUserBank: banks[0],
218
+ userAccountNumber: banks[0].accountNumber,
219
+ userAccountName: banks[0].holderName,
221
220
  }
222
221
  }),
223
222
  setHouseBank: assign((context, event) => {
@@ -15,7 +15,7 @@ export default function (request) {
15
15
  channel: null,
16
16
  subchannel: null,
17
17
  signUpData: {},
18
- reCaptchaToken: null,
18
+ reCaptchaToken: null
19
19
  },
20
20
  states: {
21
21
  idle: {
@@ -49,7 +49,7 @@ export default function (request) {
49
49
  setReCaptchaToken: assign((context, event) => {
50
50
  const { reCaptchaToken } = event.data
51
51
  return {
52
- reCaptchaToken,
52
+ reCaptchaToken
53
53
  }
54
54
  }),
55
55
  setSignUpPhone: assign((context, event) => {
@@ -89,7 +89,7 @@ export default function (request) {
89
89
  channel: cookies.get('channel') || channel,
90
90
  subchannel: cookies.get('subchannel') || subchannel,
91
91
  dt,
92
- reCaptchaToken: context.reCaptchaToken,
92
+ reCaptchaToken: context.reCaptchaToken
93
93
  })
94
94
  )
95
95
  },