@jetthai/cuora 1.1.247 → 1.1.248
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 +2 -0
- package/package.json +1 -1
- package/src/machine/auth.js +6 -0
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.248](https://github.com/jetthai/cuora-module/compare/v1.1.247...v1.1.248) (2024-04-12)
|
|
6
|
+
|
|
5
7
|
### [1.1.247](https://github.com/jetthai/cuora-module/compare/v1.1.246...v1.1.247) (2024-04-12)
|
|
6
8
|
|
|
7
9
|
### [1.1.246](https://github.com/jetthai/cuora-module/compare/v1.1.245...v1.1.246) (2024-04-12)
|
package/package.json
CHANGED
package/src/machine/auth.js
CHANGED
|
@@ -386,6 +386,7 @@ export default function (request) {
|
|
|
386
386
|
})
|
|
387
387
|
|
|
388
388
|
const affiliateCode = storage.get('ac')
|
|
389
|
+
const nickname = storage.get('nk')
|
|
389
390
|
const messages = {
|
|
390
391
|
url: window.location.href,
|
|
391
392
|
channelOrders: [
|
|
@@ -394,6 +395,7 @@ export default function (request) {
|
|
|
394
395
|
{ channel: channel, subchannel: subchannel },
|
|
395
396
|
],
|
|
396
397
|
affiliateCode,
|
|
398
|
+
nickname,
|
|
397
399
|
}
|
|
398
400
|
sentry.captureMessage(JSON.stringify(messages))
|
|
399
401
|
|
|
@@ -402,6 +404,10 @@ export default function (request) {
|
|
|
402
404
|
referralObj.ac = affiliateCode
|
|
403
405
|
}
|
|
404
406
|
|
|
407
|
+
if (![undefined, 'undefined', null, 'null'].includes(nickname)) {
|
|
408
|
+
referralObj.nick_name = nickname
|
|
409
|
+
}
|
|
410
|
+
|
|
405
411
|
referralObj.channel = storage.get('channel') || defaultChannel || channel
|
|
406
412
|
referralObj.subchannel = storage.get('subchannel') || defaultSubchannel || subchannel
|
|
407
413
|
|