ExodusMovement / fetch

MIT License
0 stars 0 forks source link

feat: don't store bound global fetch #23

Closed ChALkeR closed 3 months ago

ChALkeR commented 3 months ago

This way it will pick up global fetch changes instead of caching the value

> const f = require('@exodus/fetch').fetch
undefined
> globalThis.fetch = () => 40
[Function (anonymous)]
> f()
40

This makes it overridable globally instead of having to assign to each instance (which might be many, as this isn't a singleton and was never intended to be)

github-actions[bot] commented 3 months ago

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

The release is available on:

Your semantic-release bot :package::rocket: