@jetthai/cuora 1.0.152-1 → 1.0.152

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,8 +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.152-1](https://github.com/jetthai/cuora-module/compare/v1.0.152...v1.0.152-1) (2022-08-02)
6
-
7
5
  ### [1.0.152](https://github.com/jetthai/cuora-module/compare/v1.0.151...v1.0.152) (2022-07-27)
8
6
 
9
7
  ### [1.0.151](https://github.com/jetthai/cuora-module/compare/v1.0.150...v1.0.151) (2022-07-27)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.0.152-1",
3
+ "version": "1.0.152",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "scripts": {
package/src/api/auth.js CHANGED
@@ -11,10 +11,10 @@ export default {
11
11
  isPublic: true,
12
12
  headers: { 'x-access-captcha': reCaptchaToken },
13
13
  }),
14
- register: ({ channel = 'official', subchannel = 'pwa', reCaptchaToken, dt, ...rest }) => ({
14
+ register: ({ channel = 'official', subchannel = 'pwa', reCaptchaToken, ...rest }) => ({
15
15
  url: `register?channel=${channel}&subchannel=${subchannel}`,
16
16
  method: 'post',
17
- params: { dt, ...rest },
17
+ params: rest,
18
18
  isPublic: true,
19
19
  headers: { 'x-access-captcha': reCaptchaToken },
20
20
  }),
@@ -4,10 +4,9 @@ import qs from 'qs'
4
4
  import { assign, createMachine } from 'xstate'
5
5
  import auth from '../api/auth'
6
6
  import user from '../api/user'
7
- import { getDeviceToken } from '../util/deviceToken'
8
7
 
9
8
  export default function (request) {
10
- const { clientId, fpToken, sentry, defaultChannel, defaultSubchannel } = request.config
9
+ const { clientId, sentry, defaultChannel, defaultSubchannel } = request.config
11
10
  const tokenKey = `cuora_${clientId}`
12
11
  const userKey = `cuora_tempuser`
13
12
  const accountPhoneKey = 'account_phone'
@@ -289,17 +288,6 @@ export default function (request) {
289
288
  }),
290
289
  redirectTo3Party: async (context, event) => {
291
290
  const { provider, channel, subchannel } = event.data
292
-
293
- const dt = await getDeviceToken({ fpToken, sentry, apiURL: request.config.apiURL })
294
- sentry.setTag('dt', dt)
295
- const messages = [
296
- { channel: cookies.get('channel'), subchannel: cookies.get('subchannel') },
297
- { channel: defaultChannel, subchannel: defaultSubchannel },
298
- { channel: channel, subchannel: subchannel },
299
- { url: window.location.href },
300
- ]
301
- sentry.captureMessage(JSON.stringify(messages))
302
-
303
291
  const redirectURL = urljoin(
304
292
  request.config.fullURL,
305
293
  'login?' +
@@ -104,15 +104,6 @@ export default function (request) {
104
104
  const { channel, subchannel, signUpData } = context
105
105
  const dt = await getDeviceToken({ fpToken, sentry, apiURL: request.config.apiURL })
106
106
 
107
- sentry.setTag('dt', dt)
108
- const messages = [
109
- { channel: cookies.get('channel'), subchannel: cookies.get('subchannel') },
110
- { channel: defaultChannel, subchannel: defaultSubchannel },
111
- { channel: channel, subchannel: subchannel },
112
- { url: window.location.href },
113
- ]
114
- sentry.captureMessage(JSON.stringify(messages))
115
-
116
107
  return await request.send(
117
108
  auth.register({
118
109
  ...signUpData,