@jetthai/cuora 1.1.192 → 1.1.193

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.193](https://github.com/jetthai/cuora-module/compare/v1.1.192...v1.1.193) (2023-10-19)
6
+
5
7
  ### [1.1.192](https://github.com/jetthai/cuora-module/compare/v1.1.191...v1.1.192) (2023-10-18)
6
8
 
7
9
  ### [1.1.188-branchCode-2](https://github.com/jetthai/cuora-module/compare/v1.1.189...v1.1.188-branchCode-2) (2023-10-17)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.192",
3
+ "version": "1.1.193",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -54,7 +54,7 @@ export default function (request) {
54
54
  },
55
55
  },
56
56
  fetching: {
57
- entry: ['setUA', 'setAgent', 'setPixel'],
57
+ entry: ['setUA', 'setAgent', 'setPixel', 'setKPixel'],
58
58
  invoke: {
59
59
  src: 'fetchSiteConfig',
60
60
  onDone: {
@@ -185,6 +185,19 @@ export default function (request) {
185
185
  pix,
186
186
  }
187
187
  }),
188
+ setKPixel: assign(() => {
189
+ let urlParams = new URLSearchParams(window.location.search)
190
+ const kpix = urlParams.get('kpix') || storage.get('kpix') || ''
191
+ if (kpix !== '') {
192
+ storage.set('kpix', kpix, {
193
+ path: '/',
194
+ maxAge: 60 * 60 * 24 * 7,
195
+ })
196
+ }
197
+ return {
198
+ kpix,
199
+ }
200
+ }),
188
201
  setAgent: assign((context, event) => {
189
202
  if (window.CC_JSB === true) {
190
203
  // is cocos native app