@jetthai/cuora 1.1.247 → 1.1.249

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.1.249](https://github.com/jetthai/cuora-module/compare/v1.1.248...v1.1.249) (2024-04-15)
6
+
7
+ ### [1.1.248](https://github.com/jetthai/cuora-module/compare/v1.1.247...v1.1.248) (2024-04-12)
8
+
5
9
  ### [1.1.247](https://github.com/jetthai/cuora-module/compare/v1.1.246...v1.1.247) (2024-04-12)
6
10
 
7
11
  ### [1.1.246](https://github.com/jetthai/cuora-module/compare/v1.1.245...v1.1.246) (2024-04-12)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.247",
3
+ "version": "1.1.249",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -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
 
@@ -344,9 +344,9 @@ export default function (request) {
344
344
  const isCustomerReply = data[0]?.from === 'SYSTEM'
345
345
  let combindedContent = ''
346
346
  if (isCustomerReply) {
347
- combindedContent = '-\n-------------------------\n' + data[0].content + '\n-------------------------\n' + data[1].content
347
+ combindedContent = `${data[1].content}\n-------------------------\n${data[0].content}\n-------------------------\n-`
348
348
  } else {
349
- combindedContent = `-\n-------------------------\n${data[0].content}`
349
+ combindedContent = `${data[0].content}\n-------------------------\n-`
350
350
  }
351
351
  return {
352
352
  messageDetail: data,