fingerprintjs / fingerprintjs-pro-server-api-node-sdk

Node.js wrapper for FingerprintJS Server API
https://dev.fingerprintjs.com/docs/server-api
MIT License
18 stars 3 forks source link

fix: provide raw HTTP response in errors that supports body related m… #109

Closed TheUnderScorer closed 1 month ago

TheUnderScorer commented 1 month ago

…ethods, such as response.json()

github-actions[bot] commented 1 month ago

Coverage report

St.:grey_question:
Category Percentage Covered / Total
🟒 Statements
97.11% (+0.05% πŸ”Ό)
168/173
🟒 Branches 88.14% 104/118
🟒 Functions 100% 40/40
🟒 Lines
97.09% (+0.05% πŸ”Ό)
167/172
Show new covered files 🐣
|
St.:grey_question:
| File | Statements | Branches | Functions | Lines | | :-: | :- | :- | :- | :- | :- | | 🟒 | responseUtils.ts | 100% | 100% | 100% | 100% |

Test suite run success

82 tests passing in 10 suites.

Report generated by πŸ§ͺjest coverage report action from 6c72a09903073018a22d957040957123d2b1219c

Show full coverage report St|File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s --|---------------------|---------|----------|---------|---------|------------------- 🟒|All files | 97.1 | 88.13 | 100 | 97.09 | 🟒| src| 96.83 | 88.03 | 100 | 96.83 | 🟒|  [index.ts](https://github.com/fingerprintjs/fingerprintjs-pro-server-api-node-sdk/blob/a82a4238bebcabde8294cf25c7cb9e74a93e955c/src/index.ts)| 100 | 100 | 100 | 100 | 🟒|  [responseUtils.ts](https://github.com/fingerprintjs/fingerprintjs-pro-server-api-node-sdk/blob/a82a4238bebcabde8294cf25c7cb9e74a93e955c/src/responseUtils.ts)| 100 | 100 | 100 | 100 | 🟒|  [sealedResults.ts](https://github.com/fingerprintjs/fingerprintjs-pro-server-api-node-sdk/blob/a82a4238bebcabde8294cf25c7cb9e74a93e955c/src/sealedResults.ts)| 100 | 100 | 100 | 100 | 🟒|  [serverApiClient.ts](https://github.com/fingerprintjs/fingerprintjs-pro-server-api-node-sdk/blob/a82a4238bebcabde8294cf25c7cb9e74a93e955c/src/serverApiClient.ts)| 92.45 | 80 | 100 | 92.45 |[35](https://github.com/fingerprintjs/fingerprintjs-pro-server-api-node-sdk/blob/a82a4238bebcabde8294cf25c7cb9e74a93e955c/src/serverApiClient.ts#L35),[69](https://github.com/fingerprintjs/fingerprintjs-pro-server-api-node-sdk/blob/a82a4238bebcabde8294cf25c7cb9e74a93e955c/src/serverApiClient.ts#L69),[129](https://github.com/fingerprintjs/fingerprintjs-pro-server-api-node-sdk/blob/a82a4238bebcabde8294cf25c7cb9e74a93e955c/src/serverApiClient.ts#L129),[197](https://github.com/fingerprintjs/fingerprintjs-pro-server-api-node-sdk/blob/a82a4238bebcabde8294cf25c7cb9e74a93e955c/src/serverApiClient.ts#L197) 🟒|  [types.ts](https://github.com/fingerprintjs/fingerprintjs-pro-server-api-node-sdk/blob/a82a4238bebcabde8294cf25c7cb9e74a93e955c/src/types.ts)| 100 | 90.47 | 100 | 100 |[78-90](https://github.com/fingerprintjs/fingerprintjs-pro-server-api-node-sdk/blob/a82a4238bebcabde8294cf25c7cb9e74a93e955c/src/types.ts#L78-L90),[117](https://github.com/fingerprintjs/fingerprintjs-pro-server-api-node-sdk/blob/a82a4238bebcabde8294cf25c7cb9e74a93e955c/src/types.ts#L117),[120](https://github.com/fingerprintjs/fingerprintjs-pro-server-api-node-sdk/blob/a82a4238bebcabde8294cf25c7cb9e74a93e955c/src/types.ts#L120) 🟒|  [urlUtils.ts](https://github.com/fingerprintjs/fingerprintjs-pro-server-api-node-sdk/blob/a82a4238bebcabde8294cf25c7cb9e74a93e955c/src/urlUtils.ts)| 97.14 | 85.71 | 100 | 97.14 |[41](https://github.com/fingerprintjs/fingerprintjs-pro-server-api-node-sdk/blob/a82a4238bebcabde8294cf25c7cb9e74a93e955c/src/urlUtils.ts#L41) 🟒|  [webhook.ts](https://github.com/fingerprintjs/fingerprintjs-pro-server-api-node-sdk/blob/a82a4238bebcabde8294cf25c7cb9e74a93e955c/src/webhook.ts)| 100 | 100 | 100 | 100 | 🟒| src/errors| 100 | 100 | 100 | 100 | 🟒|  [unsealError.ts](https://github.com/fingerprintjs/fingerprintjs-pro-server-api-node-sdk/blob/a82a4238bebcabde8294cf25c7cb9e74a93e955c/src/errors/unsealError.ts)| 100 | 100 | 100 | 100 |
github-actions[bot] commented 1 month ago

This PR will create a patch release :rocket:

4.1.1 (2024-06-21)

Bug Fixes

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

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

The release is available on:

Your semantic-release bot :package::rocket: