2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-21 13:24:11 +03:00
Commit Graph

797 Commits

Author SHA1 Message Date
Stephan Schneider 73cab975f0 typings: allow custom return types
response interceptor might change the type from AxiosResponse to anything they like
2018-06-18 10:48:29 +02:00
Tim Garthwaite 0b3db5d87a Fixing defaults to use httpAdapter if available (#1285)
* Fixing defaults to use httpAdapter if available
* Use a safer, cross-platform method to detect the Node environment
2018-04-11 09:23:38 -06:00
Martti Laine 961ecd129c Correctly catch exception in http test (#1475) 2018-04-11 09:23:01 -06:00
Nick Uraltsev ec97c686ef Merge pull request #1395 from codeclown/instance-options
Fixing #385 - Keep defaults local to instance
2018-04-10 15:28:12 -07:00
Martti Laine 4e8039ef65 Remember socketPath in mergeConfig 2018-04-10 22:29:02 +02:00
Shane Fitzpatrick dd16944ecf Adding better 'responseType' and 'method' type definitions by using a string literal union type of possible values (#1148) 2018-04-08 00:19:46 -07:00
Justin Beckwith 8e3b50c564 docs: es6ify the docs a little (#1461) 2018-04-08 00:18:56 -07:00
Justin Beckwith 7b11cc7181 docs: specify maxContentLength is in bytes (#1463) 2018-04-08 00:18:30 -07:00
Justin Beckwith ae1c2c3006 chore: update to latest version of a few dev dependencies 2018-04-07 15:16:14 -07:00
Justin Beckwith 4d90e231f0 chore: update to latest version of sinon 2018-04-07 15:16:14 -07:00
Justin Beckwith f620a0d4af chore: update to latest version of typescript 2018-04-07 15:16:14 -07:00
Justin Beckwith aa61bc85eb chore: update a few dev dependencies 2018-04-07 15:16:14 -07:00
Justin Beckwith 78926c308e chore: update runtime dependencies 2018-04-07 15:16:14 -07:00
Justin Beckwith aaed16ca3c Revert "fix: update a bunch of dependencies" (#1464)
This change broke the saucelabs tests for IE9.  Instead of updating all the things at once, I'm going to do one PR per dependency, making sure I don't break stuff along the way :) This reverts commit 152b063513.
2018-04-07 14:29:15 -07:00
Martti Laine 143bbbe1b9 Spec for mergeConfig, finalize logic 2018-04-07 15:54:56 +02:00
Martti Laine ff61caacb7 Slight refactor/namings/comment on mergeConfig 2018-04-07 13:40:21 +02:00
Nick Uraltsev 8c178233e1 Merge pull request #1460 from JustinBeckwith/linty
chore: upgrade eslint and add fix command
2018-04-06 22:13:53 -07:00
Justin Beckwith 22c2baf205 chore: upgrade eslint and add fix command 2018-04-06 21:50:26 -07:00
Nick Uraltsev 0d110da98c Merge pull request #1458 from JustinBeckwith/nopgklock
chore: ignore package-lock.json
2018-04-06 21:45:50 -07:00
Nick Uraltsev b2ce0de29e Merge pull request #1457 from JustinBeckwith/updatey
fix: update a bunch of dependencies
2018-04-06 21:44:03 -07:00
Justin Beckwith ecded5e58f chore: ignore package-lock.json 2018-04-06 21:21:45 -07:00
Justin Beckwith 152b063513 fix: update a bunch of dependencies 2018-04-06 21:19:49 -07:00
Lim Jing Rong cb89fae28f docs: Added ES6 example in README (#1091)
The alternative way I added is more common and requested, as seen from issues
#362 , #350. Should be helpful for the beginners ( I was personally stuck for a bit too )
2018-04-06 20:52:06 -07:00
Yutaro Miyazaki 524f5bf10a fix: Fix type error when socketPath option in AxiosRequestConfig 2018-04-06 20:44:20 -07:00
Justin Beckwith cb63021830 fix: capture errors on request data streams 2018-04-06 12:38:04 -07:00
Justin Beckwith e990a91c34 docs: clarify config order of precedence 2018-04-06 12:37:38 -07:00
Justin Beckwith 88c24d85ee docs: clarify config order of precedence 2018-04-06 11:38:58 -07:00
Martti Laine b1c378606f Prevent undefined values in mergeConfig 2018-04-03 22:29:15 +02:00
Martti Laine 506d4e8941 Unit tests for deepMerge 2018-04-03 22:19:38 +02:00
Martti Laine 6083d639c5 Rename mergeConfig arguments 2018-04-03 22:19:19 +02:00
Martti Laine 82030ae054 Use deepMerge in deepMerge 2018-04-03 21:53:17 +02:00
Martti Laine 72c66dfdec Refactor and introduce deepMerge 2018-03-23 20:21:02 +01:00
Justin Beckwith c65065ac0f capture errors on request data streams 2018-03-15 22:12:42 -07:00
Nick Uraltsev 9a6abd789f Merge pull request #869 from johntron/master
Adds option to specify character set in responses (with http adapter)
2018-03-10 09:13:04 -08:00
Martti Laine d1154eae3f Merge branch 'instance-options' of github.com:codeclown/axios into instance-options 2018-03-09 13:58:35 +02:00
Martti Laine d78204712a Clean up PR 2018-03-09 13:58:08 +02:00
Nick Uraltsev 4fbf084674 Merge pull request #1040 from pbarbiero/pbarbiero/improved-timeout-handling
Decorate resolve and reject to clear timeout in all cases
2018-03-08 09:35:58 -08:00
Nick Uraltsev b14cdd8425 Merge pull request #1401 from ascott18/patch-1
[Typescript] Fix missing type parameters on delete/head methods
2018-03-08 07:56:53 -08:00
Andrew Scott f9373e96f2 Added tests for additional type parameters 2018-03-07 22:17:44 -08:00
Andrew Scott fbb29e07cc Fixing missing type parameters on delete/head 2018-03-07 22:13:02 -08:00
Nick Uraltsev 0499a970d7 Merge pull request #1399 from mattridley/master
Fixing #537 Rejecting promise if request is cancelled by the browser
2018-03-07 11:50:16 -08:00
mattridley 980065dd28 Reverting committed dist changes 2018-03-05 16:26:44 +00:00
mattridley 762044e453 Fixing #537 Rejecting promise if request is cancelled by the browser 2018-03-05 16:11:55 +00:00
Martti Laine 0445d6c39e Merge branch 'master' into instance-options 2018-03-02 12:32:47 +02:00
Martti Laine 5bfd2ea9f6 Fixing #385 - Keep defaults local to instance 2018-03-02 12:31:15 +02:00
Emily Morehouse d4dc124f15 Merge pull request #1276 from dericcain/patch-1
Added a simple async/await example
2018-02-22 20:03:46 -07:00
Deric Cain 3ca049924e Actually added the Async example
Also, added notes about using Async/Await with caution
2018-02-21 08:46:48 -06:00
Emily Morehouse a105872c1e Merge pull request #1122 from Nilegfx/bugfix/allow-method-in-instance-config
Fixing default method for an instance always overwritten by get
2018-02-19 23:39:06 -07:00
Emily Morehouse b6920570c5 Merge branch 'master' into bugfix/allow-method-in-instance-config 2018-02-19 23:33:44 -07:00
Emily Morehouse d59c70fdfd Releasing v0.18.0 2018-02-19 16:23:58 -07:00