@jetthai/cuora 1.0.113 → 1.0.114-1

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.114-1](https://github.com/jetthai/cuora-module/compare/v1.0.114...v1.0.114-1) (2022-05-19)
6
+
7
+ ### [1.0.114](https://github.com/jetthai/cuora-module/compare/v1.0.113...v1.0.114) (2022-04-27)
8
+
5
9
  ### [1.0.113](https://github.com/jetthai/cuora-module/compare/v1.0.112...v1.0.113) (2022-04-26)
6
10
 
7
11
  ### [1.0.112](https://github.com/jetthai/cuora-module/compare/v1.0.111...v1.0.112) (2022-04-25)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.0.113",
3
+ "version": "1.0.114-1",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "scripts": {
@@ -268,18 +268,19 @@ export default function (request) {
268
268
  const redirectURL = urljoin(
269
269
  request.config.fullURL,
270
270
  'login?' +
271
- qs.stringify({
272
- provider,
273
- redirectURI: `${window.location.protocol}//${window.location.host}`,
274
- channel: cookies.get('channel') || channel || 'official',
275
- subchannel: cookies.get('subchannel') || subchannel || 'pwa',
276
- // dt,
277
- platform: 'pwa',
278
- })
271
+ qs.stringify({
272
+ provider,
273
+ redirectURI: `${window.location.protocol}//${window.location.host}`,
274
+ channel: cookies.get('channel') || channel || 'official',
275
+ subchannel: cookies.get('subchannel') || subchannel || 'pwa',
276
+ // dt,
277
+ platform: 'pwa',
278
+ })
279
279
  )
280
280
  window.location.href = redirectURL
281
281
  },
282
282
  setUserInfo: assign((context, event) => {
283
+ sentry.setUser({ id: event.data.uid_site })
283
284
  return {
284
285
  userInfo: event.data,
285
286
  }
@@ -35,7 +35,7 @@ export default function (request) {
35
35
  emergencyBroadcast: null,
36
36
  normalBroadcast: null,
37
37
  sentEmergencyBroadcastList: [],
38
- sentNormalBroadcastList: []
38
+ sentNormalBroadcastList: [],
39
39
  },
40
40
  states: {
41
41
  config: {
@@ -187,7 +187,7 @@ export default function (request) {
187
187
  emergencyBroadcast: nextEmergencyBroadcast,
188
188
  sentEmergencyBroadcastList: sentEmergencyList,
189
189
  normalBroadcast: nextNormalBroadcast,
190
- sentNormalBroadcastList: sentNormalList
190
+ sentNormalBroadcastList: sentNormalList,
191
191
  }
192
192
  }),
193
193
  resetBroadcast: assign((context, event) => {
@@ -195,7 +195,7 @@ export default function (request) {
195
195
  emergencyBroadcast: null,
196
196
  sentEmergencyBroadcastList: [],
197
197
  normalBroadcast: null,
198
- sentNormalBroadcastList: []
198
+ sentNormalBroadcastList: [],
199
199
  }
200
200
  }),
201
201
  },
@@ -182,7 +182,7 @@ export default function (request) {
182
182
  }),
183
183
  setList: assign((context, event) => {
184
184
  const { statusMap, optionMap } = context
185
- const { list } = event.data
185
+ const { list = [] } = event.data
186
186
  const gameList = list
187
187
  .map((item) => {
188
188
  if (item.id) {