mlegenhausen / fetch-intercept

Interceptor library for the native fetch command inspired by angular http intercepts.
MIT License
405 stars 52 forks source link

Depend on the error #32

Open XueMary opened 5 years ago

XueMary commented 5 years ago

Fetch -intercept depends on whatwg-fetch, but in dependencies there is no whatwg-fetch, and this will be an error if the user does not have whatwg-fetch locally

"* whatwg-fetch in ./node_modules/fetch-intercept/lib/browser.js

To install it, you can run: npm install --save whatwg-fetch"

Meanwhile, I hope the author can try to upgrade the whatwg-fetch

XueMary commented 5 years ago

fetch-intercept does not require whatwg-fetch.The whatwg-fetch should be added by the user.fetch-intercept only changes the fetch. If there is no fetch, it does not need to be changed