@jetthai/cuora 1.1.58 → 1.1.60
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 +4 -0
- package/dist/bundle.mjs +5978 -295
- package/package.json +2 -3
- package/src/lib/fingerprint.js +5779 -0
- package/src/machine/deposit/loadcard_vn.js +2 -1
- package/src/util/deviceToken.js +4 -2
|
@@ -105,7 +105,7 @@ export default function (request) {
|
|
|
105
105
|
invoke: {
|
|
106
106
|
src: 'fetchCalculation',
|
|
107
107
|
onDone: {
|
|
108
|
-
target: '
|
|
108
|
+
target: 'submitting',
|
|
109
109
|
actions: 'setCalculation',
|
|
110
110
|
},
|
|
111
111
|
onError: {
|
|
@@ -136,6 +136,7 @@ export default function (request) {
|
|
|
136
136
|
src: 'submitDeposit',
|
|
137
137
|
onDone: {
|
|
138
138
|
target: 'submitted',
|
|
139
|
+
actions: 'setResult',
|
|
139
140
|
},
|
|
140
141
|
onError: {
|
|
141
142
|
target: 'cardInfo',
|
package/src/util/deviceToken.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import FingerprintJS from '@fingerprintjs/fingerprintjs-pro'
|
|
1
|
+
// import FingerprintJS from '@fingerprintjs/fingerprintjs-pro'
|
|
2
2
|
import uniqBy from 'lodash/uniqBy'
|
|
3
|
+
import { load } from '../lib/fingerprint.js'
|
|
3
4
|
|
|
4
5
|
const reg = /fnapi\d*/
|
|
5
6
|
// const reg = /(?<=https:\/\/)\w+(?=(\.\w+\.\w+))/
|
|
@@ -11,7 +12,8 @@ const getDeviceToken = async ({ fpToken, sentry, hosts }) => {
|
|
|
11
12
|
hosts.map((host) => host.replace(reg, 'fp')),
|
|
12
13
|
(url) => url
|
|
13
14
|
)
|
|
14
|
-
const fp = await FingerprintJS.load({ apiKey: fpToken, endpoint: endpoints })
|
|
15
|
+
// const fp = await FingerprintJS.load({ apiKey: fpToken, endpoint: endpoints })
|
|
16
|
+
const fp = await load({ endpoint: endpoints })
|
|
15
17
|
const result = await fp.get({ timeout: 30000 })
|
|
16
18
|
dt = result.visitorId
|
|
17
19
|
|