@jetthai/cuora 1.1.132 → 1.1.133

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.133](https://github.com/jetthai/cuora-module/compare/v1.1.132...v1.1.133) (2023-07-06)
6
+
5
7
  ### [1.1.132](https://github.com/jetthai/cuora-module/compare/v1.1.131...v1.1.132) (2023-07-05)
6
8
 
7
9
  ### [1.1.131](https://github.com/jetthai/cuora-module/compare/v1.1.130...v1.1.131) (2023-07-05)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.132",
3
+ "version": "1.1.133",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -42,6 +42,7 @@ export default function (request) {
42
42
  channel: null,
43
43
  subchannel: null,
44
44
  affiliateCode: null,
45
+ friendCode: null,
45
46
  },
46
47
  states: {
47
48
  config: {
@@ -171,6 +172,7 @@ export default function (request) {
171
172
  const channel = urlParams.get('channel') || storage.get('channel') || defaultChannel || 'official'
172
173
  const subchannel = urlParams.get('subchannel') || storage.get('subchannel') || defaultSubchannel || 'pwa'
173
174
  const affiliateCode = urlParams.get('ac') || urlParams.get('referralCode') || storage.get('ac') || storage.get('referralCode')
175
+ const friendCode = urlParams.get('fc') || urlParams.get('affiliate') || storage.get('fc') || storage.get('affiliate')
174
176
 
175
177
  storage.set('channel', channel, {
176
178
  path: '/',
@@ -184,11 +186,16 @@ export default function (request) {
184
186
  path: '/',
185
187
  maxAge: 60 * 60 * 24 * 7,
186
188
  })
189
+ storage.set('fc', friendCode, {
190
+ path: '/',
191
+ maxAge: 60 * 60 * 24 * 7,
192
+ })
187
193
 
188
194
  return {
189
195
  channel,
190
196
  subchannel,
191
197
  affiliateCode,
198
+ friendCode,
192
199
  }
193
200
  }
194
201
  }),