@jetthai/cuora 1.0.141 → 1.0.142

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,8 @@
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.142](https://github.com/jetthai/cuora-module/compare/v1.0.141...v1.0.142) (2022-07-13)
6
+
5
7
  ### [1.0.141](https://github.com/jetthai/cuora-module/compare/v1.0.140-1...v1.0.141) (2022-07-05)
6
8
 
7
9
  ### [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",
3
+ "version": "1.0.142",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "scripts": {
@@ -19,7 +19,7 @@ export default function (request) {
19
19
  initial: 'idle',
20
20
  context: {
21
21
  token: null,
22
- tick: 2000,
22
+ tick: 6000,
23
23
  isPlaying: false,
24
24
  loginData: {
25
25
  provider: '',
@@ -202,7 +202,7 @@ export default function (request) {
202
202
  setReCaptchaToken: assign((context, event) => {
203
203
  const { reCaptchaToken } = event.data
204
204
  return {
205
- reCaptchaToken
205
+ reCaptchaToken,
206
206
  }
207
207
  }),
208
208
  setLoginPhone: assign((context, event) => {
@@ -288,14 +288,14 @@ export default function (request) {
288
288
  const redirectURL = urljoin(
289
289
  request.config.fullURL,
290
290
  'login?' +
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
- })
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
+ })
299
299
  )
300
300
  window.location.href = redirectURL
301
301
  },
@@ -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
  },