wKovacs64 / hibp

An unofficial TypeScript SDK for the 'Have I been pwned?' service.
https://wkovacs64.github.io/hibp
MIT License
115 stars 5 forks source link

Fix consumption from Next.js client components #464

Closed wKovacs64 closed 7 months ago

wKovacs64 commented 7 months ago

Apparently, process exists but .versions.node does not. Next.js may be doing something weird with process so we'll just be more cautious when testing for Node.js v18 in the fetch polyfill.

Fixes #463

changeset-bot[bot] commented 7 months ago

🦋 Changeset detected

Latest commit: eda2c27afae33ddaedd884d901ac73621a7090f1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ---- | ----- | | hibp | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

codecov[bot] commented 7 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (b2901eb) to head (eda2c27).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #464 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 15 15 Lines 1194 1195 +1 Branches 31 31 ========================================= + Hits 1194 1195 +1 ``` | [Files](https://app.codecov.io/gh/wKovacs64/hibp/pull/464?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Justin+Hall) | Coverage Δ | | |---|---|---| | [src/api/fetch-polyfill.ts](https://app.codecov.io/gh/wKovacs64/hibp/pull/464?src=pr&el=tree&filepath=src%2Fapi%2Ffetch-polyfill.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Justin+Hall#diff-c3JjL2FwaS9mZXRjaC1wb2x5ZmlsbC50cw==) | `100.00% <100.00%> (ø)` | |