Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: check manifest candidate type against Response (#34)
Fix a regression on node v18.18.2 and v21.0.0 introduced by 630fcd6. In particular, in v18.18.2 and v21.0.0, the Response constructor's name property is `_Response`, not `Response`. I originally added the stringly-typed check to allow for alternative `fetch()` implementations, so I've retained the string check but now additionally check to see whether the candidate is `instanceof Response`. Fixes #33
- Loading branch information