@jetthai/cuora 1.0.105 → 1.0.107

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.0.107](https://github.com/jetthai/cuora-module/compare/v1.0.106...v1.0.107) (2022-03-23)
6
+
7
+ ### [1.0.106](https://github.com/jetthai/cuora-module/compare/v1.0.105...v1.0.106) (2022-03-22)
8
+
5
9
  ### [1.0.105](https://github.com/jetthai/cuora-module/compare/v1.0.104...v1.0.105) (2022-03-22)
6
10
 
7
11
  ### [1.0.104](https://github.com/jetthai/cuora-module/compare/v1.0.103...v1.0.104) (2022-03-21)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.0.105",
3
+ "version": "1.0.107",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "scripts": {
@@ -17,7 +17,7 @@
17
17
  "standard-version": "^9.3.1"
18
18
  },
19
19
  "dependencies": {
20
- "@fingerprintjs/fingerprintjs-pro": "^3.5.5",
20
+ "@fingerprintjs/fingerprintjs-pro": "^3.5.7",
21
21
  "lodash": "^4.17.21",
22
22
  "qs": "^6.10.1",
23
23
  "ua-parser-js": "^0.7.28",
@@ -113,6 +113,7 @@ export default function (request) {
113
113
  },
114
114
  on: {
115
115
  RESET_BROADCAST: {
116
+ target: '.idle',
116
117
  actions: 'resetBroadcast',
117
118
  },
118
119
  },
@@ -177,6 +178,7 @@ export default function (request) {
177
178
  }),
178
179
  resetBroadcast: assign((context, event) => {
179
180
  return {
181
+ currentBroadcast: null,
180
182
  sentBroadcastList: [],
181
183
  }
182
184
  }),
@@ -6,8 +6,8 @@ const getDeviceToken = async ({ fpToken, sentry, apiURL }) => {
6
6
  let dt, endpoint
7
7
  try {
8
8
  endpoint = apiURL.replace(reg, 'fp')
9
- const fp = await FingerprintJS.load({ token: fpToken, endpoint })
10
- const result = await fp.get()
9
+ const fp = await FingerprintJS.load({ apiKey: fpToken, endpoint })
10
+ const result = await fp.get({ timeout: 30000 })
11
11
  dt = result.visitorId
12
12
 
13
13
  if (!dt) {