fingerprintjs / fingerprintjs-pro-react

Fingerprint Pro Wrapper for React Single Page Applications (SPA)
MIT License
52 stars 8 forks source link

Update SPA package with fallback for `localStorage` and `sessionStorage` #105

Closed ilfa closed 1 year ago

ilfa commented 1 year ago

Fix behavior for Brave's aggressive mode

github-actions[bot] commented 1 year ago

Coverage report

St.:grey_question:
Category Percentage Covered / Total
🟒 Statements 90.73% 186/205
🟒 Branches 81.03% 47/58
🟑 Functions 76% 38/50
🟒 Lines 90.66% 165/182

Test suite run success

16 tests passing in 5 suites.

Report generated by πŸ§ͺjest coverage report action from 2f61ba839cb38583db50abf1d7c82e022c3689f3

Show full coverage report St|File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s --|-----------------------|---------|----------|---------|---------|--------------------- 🟒|All files | 90.73 | 81.03 | 76 | 90.65 | 🟒| src| 92.23 | 88.57 | 66.66 | 91.2 | πŸ”΄|  [agent-server-mock.ts](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/c688e823f303544267b98110bda880b1798809db/src/agent-server-mock.ts)| 0 | 100 | 0 | 0 |[3-5](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/c688e823f303544267b98110bda880b1798809db/src/agent-server-mock.ts#L3-L5) 🟒|  [detect-env.ts](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/c688e823f303544267b98110bda880b1798809db/src/detect-env.ts)| 92.3 | 86.66 | 100 | 91.3 |[15](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/c688e823f303544267b98110bda880b1798809db/src/detect-env.ts#L15),[85](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/c688e823f303544267b98110bda880b1798809db/src/detect-env.ts#L85) 🟒|  [env.ts](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/c688e823f303544267b98110bda880b1798809db/src/env.ts)| 100 | 100 | 100 | 100 | 🟒|  [env.types.ts](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/c688e823f303544267b98110bda880b1798809db/src/env.types.ts)| 100 | 100 | 100 | 100 | 🟑|  [fpjs-context.ts](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/c688e823f303544267b98110bda880b1798809db/src/fpjs-context.ts)| 80 | 100 | 0 | 80 |[38](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/c688e823f303544267b98110bda880b1798809db/src/fpjs-context.ts#L38) 🟑|  [get-env.ts](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/c688e823f303544267b98110bda880b1798809db/src/get-env.ts)| 75 | 0 | 100 | 75 |[9-10](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/c688e823f303544267b98110bda880b1798809db/src/get-env.ts#L9-L10) 🟒|  [index.ts](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/c688e823f303544267b98110bda880b1798809db/src/index.ts)| 100 | 100 | 0 | 100 | 🟒|  [ssr.ts](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/c688e823f303544267b98110bda880b1798809db/src/ssr.ts)| 100 | 100 | 100 | 100 | 🟒|  [use-visitor-data.ts](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/c688e823f303544267b98110bda880b1798809db/src/use-visitor-data.ts)| 97.67 | 93.33 | 87.5 | 97.22 |[77](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/c688e823f303544267b98110bda880b1798809db/src/use-visitor-data.ts#L77) 🟒| src/components| 90.54 | 75 | 86.66 | 92.64 | 🟒|  [fpjs-provider.tsx](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/c688e823f303544267b98110bda880b1798809db/src/components/fpjs-provider.tsx)| 88.33 | 69.23 | 83.33 | 91.07 |[106](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/c688e823f303544267b98110bda880b1798809db/src/components/fpjs-provider.tsx#L106),[112-117](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/c688e823f303544267b98110bda880b1798809db/src/components/fpjs-provider.tsx#L112-L117),[136-138](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/c688e823f303544267b98110bda880b1798809db/src/components/fpjs-provider.tsx#L136-L138) 🟒|  [with-environment.tsx](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/c688e823f303544267b98110bda880b1798809db/src/components/with-environment.tsx)| 100 | 100 | 100 | 100 | 🟒| src/utils| 85.71 | 57.14 | 87.5 | 82.6 | 🟑|  [assert-is-truthy.ts](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/c688e823f303544267b98110bda880b1798809db/src/utils/assert-is-truthy.ts)| 66.66 | 0 | 100 | 66.66 |[3](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/c688e823f303544267b98110bda880b1798809db/src/utils/assert-is-truthy.ts#L3) 🟑|  [to-error.ts](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/c688e823f303544267b98110bda880b1798809db/src/utils/to-error.ts)| 75 | 100 | 100 | 75 |[6](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/c688e823f303544267b98110bda880b1798809db/src/utils/to-error.ts#L6) 🟒|  [use-previous.ts](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/c688e823f303544267b98110bda880b1798809db/src/utils/use-previous.ts)| 100 | 100 | 100 | 100 | 🟒|  [wait-until.ts](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/c688e823f303544267b98110bda880b1798809db/src/utils/wait-until.ts)| 86.66 | 60 | 75 | 80 |[10-12](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/c688e823f303544267b98110bda880b1798809db/src/utils/wait-until.ts#L10-L12)
ilfa commented 1 year ago

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

The release is available on:

Your semantic-release bot :package::rocket: