fingerprintjs / fingerprintjs-pro-react-native

Official React Native client for Fingerprint PRO. 100% accurate device identification for fraud detection.
https://fingerprint.com
MIT License
56 stars 4 forks source link

Add endpoint fallback support #123

Closed ilfa closed 1 month ago

github-actions[bot] commented 1 month ago

Coverage report

St.:grey_question:
Category Percentage Covered / Total
πŸ”΄ Statements 42.4% 53/125
πŸ”΄ Branches
24.32% (+2.1% πŸ”Ό)
9/37
πŸ”΄ Functions 42.5% 17/40
πŸ”΄ Lines 40.5% 49/121

Test suite run success

11 tests passing in 3 suites.

Report generated by πŸ§ͺjest coverage report action from 5b95511af46cbba441969e7af2930ce1c0244cfe

Show full coverage report St|File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s --|------------------------------|---------|----------|---------|---------|----------------------------------------- πŸ”΄|All files | 42.4 | 24.32 | 42.5 | 40.49 | 🟑| [FingerprintJsProAgent.ts](https://github.com/fingerprintjs/fingerprintjs-pro-react-native/blob/a7d7b92a6f9bfcb2a041e7d393f8d42aff4bf7e3/src/FingerprintJsProAgent.ts)| 50 | 50 | 66.66 | 50 |[35-52](https://github.com/fingerprintjs/fingerprintjs-pro-react-native/blob/a7d7b92a6f9bfcb2a041e7d393f8d42aff4bf7e3/src/FingerprintJsProAgent.ts#L35-L52),[82](https://github.com/fingerprintjs/fingerprintjs-pro-react-native/blob/a7d7b92a6f9bfcb2a041e7d393f8d42aff4bf7e3/src/FingerprintJsProAgent.ts#L82) 🟑| [FingerprintJsProContext.ts](https://github.com/fingerprintjs/fingerprintjs-pro-react-native/blob/a7d7b92a6f9bfcb2a041e7d393f8d42aff4bf7e3/src/FingerprintJsProContext.ts)| 75 | 100 | 0 | 75 |[5](https://github.com/fingerprintjs/fingerprintjs-pro-react-native/blob/a7d7b92a6f9bfcb2a041e7d393f8d42aff4bf7e3/src/FingerprintJsProContext.ts#L5) 🟒| [FingerprintJsProProvider.tsx](https://github.com/fingerprintjs/fingerprintjs-pro-react-native/blob/a7d7b92a6f9bfcb2a041e7d393f8d42aff4bf7e3/src/FingerprintJsProProvider.tsx)| 93.33 | 50 | 100 | 93.33 |[43](https://github.com/fingerprintjs/fingerprintjs-pro-react-native/blob/a7d7b92a6f9bfcb2a041e7d393f8d42aff4bf7e3/src/FingerprintJsProProvider.tsx#L43) πŸ”΄| [errors.ts](https://github.com/fingerprintjs/fingerprintjs-pro-react-native/blob/a7d7b92a6f9bfcb2a041e7d393f8d42aff4bf7e3/src/errors.ts)| 16 | 11.11 | 16 | 16 |[8-33](https://github.com/fingerprintjs/fingerprintjs-pro-react-native/blob/a7d7b92a6f9bfcb2a041e7d393f8d42aff4bf7e3/src/errors.ts#L8-L33),[56-249](https://github.com/fingerprintjs/fingerprintjs-pro-react-native/blob/a7d7b92a6f9bfcb2a041e7d393f8d42aff4bf7e3/src/errors.ts#L56-L249),[272-273](https://github.com/fingerprintjs/fingerprintjs-pro-react-native/blob/a7d7b92a6f9bfcb2a041e7d393f8d42aff4bf7e3/src/errors.ts#L272-L273),[319-323](https://github.com/fingerprintjs/fingerprintjs-pro-react-native/blob/a7d7b92a6f9bfcb2a041e7d393f8d42aff4bf7e3/src/errors.ts#L319-L323),[330-364](https://github.com/fingerprintjs/fingerprintjs-pro-react-native/blob/a7d7b92a6f9bfcb2a041e7d393f8d42aff4bf7e3/src/errors.ts#L330-L364),[368](https://github.com/fingerprintjs/fingerprintjs-pro-react-native/blob/a7d7b92a6f9bfcb2a041e7d393f8d42aff4bf7e3/src/errors.ts#L368) πŸ”΄| [index.ts](https://github.com/fingerprintjs/fingerprintjs-pro-react-native/blob/a7d7b92a6f9bfcb2a041e7d393f8d42aff4bf7e3/src/index.ts)| 0 | 0 | 0 | 0 | πŸ”΄| [types.ts](https://github.com/fingerprintjs/fingerprintjs-pro-react-native/blob/a7d7b92a6f9bfcb2a041e7d393f8d42aff4bf7e3/src/types.ts)| 0 | 0 | 0 | 0 | 🟒| [useVisitorData.ts](https://github.com/fingerprintjs/fingerprintjs-pro-react-native/blob/a7d7b92a6f9bfcb2a041e7d393f8d42aff4bf7e3/src/useVisitorData.ts)| 100 | 100 | 100 | 100 |
necipallef commented 1 month ago

Do we expose the default endpoint in the SDK? If not, I'd like to see it exposed in this PR as well. @ilfa

ilfa commented 1 month ago

Do we expose the default endpoint in the SDK? If not, I'd like to see it exposed in this PR as well. @ilfa

As I understand, we don't. @Alexey-Verkhovsky you should know better.

github-actions[bot] commented 1 month ago

This PR will create a minor release :rocket:

3.1.0 (2024-08-20)

Features

Documentation

ilfa commented 1 month ago

@mgutski thank you for the review! Fixed.

fingerprint-dx-team[bot] commented 1 month ago

:tada: This PR is included in version 3.1.0-test.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

fingerprint-dx-team[bot] commented 1 month ago

:tada: This PR is included in version 3.1.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: