Closed nickeng closed 2 years ago
Thanks for catching this, I had no idea!
I've taken it for a spin in my own fork, and it failed immediately due to headers
being undefined
. I ended up making the following change:
- let [method, url, headers, body] = [...args]
+ let [method, url, headers = {}, body] = [...args]
sorry about that 😅 updated to handle undefined/null headers
Can this PR be merged please?
Unfortunately, I believe this repo is no longer maintained. Although there are a couple good PRs here.
Why was this PR closed, that was a very good and simple change. In fact currently the package breaks in projects that don't already include lodash, so it should be removed or added to package.json.
In this instance lodash does not simplify the code and leads to a ~70kb increase in minified bundle size. The lodash dependency already does not exist in package.json so there is no need to update the file after removing its usage.