@jetthai/cuora 1.1.84-cash → 1.1.85-cash

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.1.85-cash](https://github.com/jetthai/cuora-module/compare/v1.1.85...v1.1.85-cash) (2023-04-26)
6
+
5
7
  ### [1.1.84-cash](https://github.com/jetthai/cuora-module/compare/v1.1.84...v1.1.84-cash) (2023-04-26)
6
8
 
7
9
  ### [1.1.83-cash](https://github.com/jetthai/cuora-module/compare/v1.1.83...v1.1.83-cash) (2023-04-26)
@@ -24,6 +26,8 @@ All notable changes to this project will be documented in this file. See [standa
24
26
 
25
27
  ### [1.1.68-cash](https://github.com/jetthai/cuora-module/compare/v1.1.68...v1.1.68-cash) (2023-04-06)
26
28
 
29
+ ### [1.1.85](https://github.com/jetthai/cuora-module/compare/v1.1.84...v1.1.85) (2023-04-26)
30
+
27
31
  ### [1.1.84](https://github.com/jetthai/cuora-module/compare/v1.1.83...v1.1.84) (2023-04-26)
28
32
 
29
33
  ### [1.1.83](https://github.com/jetthai/cuora-module/compare/v1.1.82...v1.1.83) (2023-04-24)
package/dist/bundle.mjs CHANGED
@@ -15762,7 +15762,7 @@ function auth (request) {
15762
15762
  });
15763
15763
  sentry.setTag('dt', dt);
15764
15764
 
15765
- const ac = storage.get('ac');
15765
+ const affiliateCode = storage.get('ac');
15766
15766
  const messages = {
15767
15767
  url: window.location.href,
15768
15768
  channelOrders: [
@@ -15770,13 +15770,13 @@ function auth (request) {
15770
15770
  { channel: defaultChannel, subchannel: defaultSubchannel },
15771
15771
  { channel: channel, subchannel: subchannel },
15772
15772
  ],
15773
- ac,
15773
+ affiliateCode,
15774
15774
  };
15775
15775
  sentry.captureMessage(JSON.stringify(messages));
15776
15776
 
15777
15777
  const referralObj = {};
15778
- if (![undefined, 'undefined', null, 'null'].includes(ac)) {
15779
- referralObj.ac = ac;
15778
+ if (![undefined, 'undefined', null, 'null'].includes(affiliateCode)) {
15779
+ referralObj.ac = affiliateCode;
15780
15780
  } else {
15781
15781
  (referralObj.channel = storage.get('channel') || defaultChannel || channel),
15782
15782
  (referralObj.subchannel = storage.get('subchannel') || defaultSubchannel || subchannel);
@@ -17011,7 +17011,7 @@ function common (request) {
17011
17011
  let urlParams = new URLSearchParams(window.location.search);
17012
17012
  const channel = urlParams.get('channel') || storage.get('channel') || defaultChannel || 'official';
17013
17013
  const subchannel = urlParams.get('subchannel') || storage.get('subchannel') || defaultSubchannel || 'pwa';
17014
- const ac = urlParams.get('ac') || urlParams.get('referralCode') || storage.get('ac') || storage.get('referralCode');
17014
+ const affiliateCode = urlParams.get('ac') || urlParams.get('referralCode') || storage.get('ac') || storage.get('referralCode');
17015
17015
 
17016
17016
  storage.set('channel', channel, {
17017
17017
  path: '/',
@@ -17021,7 +17021,7 @@ function common (request) {
17021
17021
  path: '/',
17022
17022
  maxAge: 60 * 60 * 24 * 7,
17023
17023
  });
17024
- storage.set('ac', ac, {
17024
+ storage.set('ac', affiliateCode, {
17025
17025
  path: '/',
17026
17026
  maxAge: 60 * 60 * 24 * 7,
17027
17027
  });
@@ -17029,7 +17029,7 @@ function common (request) {
17029
17029
  return {
17030
17030
  channel,
17031
17031
  subchannel,
17032
- ac,
17032
+ affiliateCode,
17033
17033
  }
17034
17034
  }
17035
17035
  }),
@@ -19658,7 +19658,7 @@ function user_sign_up (request) {
19658
19658
  const dt = await getDeviceToken({ fpToken, sentry, hosts: request.hosts });
19659
19659
  sentry.setTag('dt', dt);
19660
19660
 
19661
- const ac = storage.get('ac');
19661
+ const affiliateCode = storage.get('ac');
19662
19662
  const messages = {
19663
19663
  url: window.location.href,
19664
19664
  channelOrders: [
@@ -19666,13 +19666,13 @@ function user_sign_up (request) {
19666
19666
  { channel: defaultChannel, subchannel: defaultSubchannel },
19667
19667
  { channel: channel, subchannel: subchannel },
19668
19668
  ],
19669
- ac,
19669
+ affiliateCode,
19670
19670
  };
19671
19671
  sentry.captureMessage(JSON.stringify(messages));
19672
19672
 
19673
19673
  const referralObj = {};
19674
- if (![undefined, 'undefined', null, 'null'].includes(ac)) {
19675
- referralObj.ac = ac;
19674
+ if (![undefined, 'undefined', null, 'null'].includes(affiliateCode)) {
19675
+ referralObj.ac = affiliateCode;
19676
19676
  } else {
19677
19677
  (referralObj.channel = storage.get('channel') || defaultChannel || channel),
19678
19678
  (referralObj.subchannel = storage.get('subchannel') || defaultSubchannel || subchannel);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.84-cash",
3
+ "version": "1.1.85-cash",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -330,7 +330,7 @@ export default function (request) {
330
330
  })
331
331
  sentry.setTag('dt', dt)
332
332
 
333
- const ac = storage.get('ac')
333
+ const affiliateCode = storage.get('ac')
334
334
  const messages = {
335
335
  url: window.location.href,
336
336
  channelOrders: [
@@ -338,13 +338,13 @@ export default function (request) {
338
338
  { channel: defaultChannel, subchannel: defaultSubchannel },
339
339
  { channel: channel, subchannel: subchannel },
340
340
  ],
341
- ac,
341
+ affiliateCode,
342
342
  }
343
343
  sentry.captureMessage(JSON.stringify(messages))
344
344
 
345
345
  const referralObj = {}
346
- if (![undefined, 'undefined', null, 'null'].includes(ac)) {
347
- referralObj.ac = ac
346
+ if (![undefined, 'undefined', null, 'null'].includes(affiliateCode)) {
347
+ referralObj.ac = affiliateCode
348
348
  } else {
349
349
  ;(referralObj.channel = storage.get('channel') || defaultChannel || channel),
350
350
  (referralObj.subchannel = storage.get('subchannel') || defaultSubchannel || subchannel)
@@ -160,7 +160,7 @@ export default function (request, context) {
160
160
  let urlParams = new URLSearchParams(window.location.search)
161
161
  const channel = urlParams.get('channel') || storage.get('channel') || defaultChannel || 'official'
162
162
  const subchannel = urlParams.get('subchannel') || storage.get('subchannel') || defaultSubchannel || 'pwa'
163
- const ac = urlParams.get('ac') || urlParams.get('referralCode') || storage.get('ac') || storage.get('referralCode')
163
+ const affiliateCode = urlParams.get('ac') || urlParams.get('referralCode') || storage.get('ac') || storage.get('referralCode')
164
164
  const friendCode = urlParams.get('fc') || urlParams.get('affiliate') || storage.get('fc') || storage.get(`${context.site}_affiliate`)
165
165
 
166
166
  storage.set('channel', channel, {
@@ -171,7 +171,7 @@ export default function (request, context) {
171
171
  path: '/',
172
172
  maxAge: 60 * 60 * 24 * 7,
173
173
  })
174
- storage.set('ac', ac, {
174
+ storage.set('ac', affiliateCode, {
175
175
  path: '/',
176
176
  maxAge: 60 * 60 * 24 * 7,
177
177
  })
@@ -183,7 +183,7 @@ export default function (request, context) {
183
183
  return {
184
184
  channel,
185
185
  subchannel,
186
- ac,
186
+ affiliateCode,
187
187
  friendCode,
188
188
  }
189
189
  }
@@ -112,7 +112,7 @@ export default function (request) {
112
112
  const dt = await getDeviceToken({ fpToken, sentry, hosts: request.hosts })
113
113
  sentry.setTag('dt', dt)
114
114
 
115
- const ac = storage.get('ac')
115
+ const affiliateCode = storage.get('ac')
116
116
  const messages = {
117
117
  url: window.location.href,
118
118
  channelOrders: [
@@ -120,13 +120,13 @@ export default function (request) {
120
120
  { channel: defaultChannel, subchannel: defaultSubchannel },
121
121
  { channel: channel, subchannel: subchannel },
122
122
  ],
123
- ac,
123
+ affiliateCode,
124
124
  }
125
125
  sentry.captureMessage(JSON.stringify(messages))
126
126
 
127
127
  const referralObj = {}
128
- if (![undefined, 'undefined', null, 'null'].includes(ac)) {
129
- referralObj.ac = ac
128
+ if (![undefined, 'undefined', null, 'null'].includes(affiliateCode)) {
129
+ referralObj.ac = affiliateCode
130
130
  } else {
131
131
  ;(referralObj.channel = storage.get('channel') || defaultChannel || channel),
132
132
  (referralObj.subchannel = storage.get('subchannel') || defaultSubchannel || subchannel)