Jonathan Sharpe
77f0ae4f61
Fix merging of params ( #2656 )
...
* Name function to avoid ESLint func-names warning
* Switch params config to merge list and update tests
* Restore testing of both false and null
* Restore test cases for keys without defaults
* Include test for non-object values that aren't false-y.
2020-02-15 13:36:52 +08:00
Felipe Martins
097948698a
Revert "Update Webpack + deps, remove now unnecessary polyfills" ( #2479 )
...
* Revert "Update Webpack + deps, remove now unnecessary polyfills (#2410 )"
This reverts commit 189b34c45a .
* Fix build (#2496 )
* Change syntax to see if build passes
* Test commit
* Test with node 10
* Test adding all browsers in travis
* remove other browsers when running on travis
2019-10-25 11:34:47 -03:00
Avindra Goolcharan
189b34c45a
Update Webpack + deps, remove now unnecessary polyfills ( #2410 )
...
* Update deps
* handles webpack 1 -> 4 migration
* remove promise helpers from dev files
assume `Promise` is available, or polyfilled by
the consumer
* Remove isArray util. `isArray` has good coverage, even
in IE9. So lets remove the custom polyfill.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray
also resolves a few lint issues
* Remove trim util
String.protoype.trim has good coverage (including IE9)
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/Trim
Also, the http adapter already uses the native method.
2019-10-21 15:56:29 -03:00
Ayush Gupta
b681e919c4
Adding isAxiosError flag to errors thrown by axios ( #1419 )
2018-08-20 11:02:23 +02:00
Tim Johns
6b44e80ade
Added toJSON to decorated Axios errors to faciliate serialization ( #1625 )
2018-08-06 23:33:55 -06:00
Martin Joiner
1beb245f3a
Fixing typo in comment blocks of createError() and enhanceError() functions ( #857 )
2017-05-28 22:03:40 +02:00
Rubén Norte
22ce6db383
Adding request to error objects when it is available
2017-04-08 21:44:15 +02:00
Nick Uraltsev
6f2186d863
Modify createError and enhanceError functions to accept response as parameter
2016-06-13 18:58:55 -07:00
Nick Uraltsev
91dae3c4ad
Improve error handling
2016-06-13 13:56:08 -07:00