ctimmerm / axios-mock-adapter

Axios adapter that allows to easily mock requests
MIT License
3.45k stars 244 forks source link

feat: add optional error codes to `networkError` #384

Open GerkinDev opened 5 months ago

GerkinDev commented 5 months ago

Closes #365

The expected bundle size seems very constraining, and I did not find a way to reduce it below 3Kb without impacting readability or doing deeper reconf/refactoring.

Also, I had issues installing the dev dependencies since I'm using node 20 and bundlesize relies on brotli-size@0.1.0 which in turn relies on iltorb@^2.4.3 that is deprecated and using legacy node-gyp headers. Somehow, I fixed it locally, but specifying the node version you use either in the readme or in an .nvmrc file would have helped.