From 7529be298c61fa5c806738cde69f3e765a3c6d5d Mon Sep 17 00:00:00 2001 From: John Henson Date: Sun, 5 Feb 2017 21:22:40 -0500 Subject: [PATCH 1/4] Fix typo - forEachMethodNoData forEachMehtodNoData => forEachMethodNoData --- lib/defaults.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/defaults.js b/lib/defaults.js index 674b7da..69fbad1 100644 --- a/lib/defaults.js +++ b/lib/defaults.js @@ -80,7 +80,7 @@ defaults.headers = { } }; -utils.forEach(['delete', 'get', 'head'], function forEachMehtodNoData(method) { +utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) { defaults.headers[method] = {}; }); From 4d357d15a3bd4552b22cd2ac5d5536013fc42f23 Mon Sep 17 00:00:00 2001 From: Jiri Spac Date: Tue, 14 Feb 2017 08:38:25 +0100 Subject: [PATCH 2/4] clarified proposal state --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5b3c913..0cc4a2e 100644 --- a/README.md +++ b/README.md @@ -473,7 +473,7 @@ axios.get('/user/12345', { You can cancel a request using a *cancel token*. -> The axios cancel token API is based on the [cancelable promises proposal](https://github.com/tc39/proposal-cancelable-promises), which is currently at Stage 1. +> The axios cancel token API is based on the withdrawn [cancelable promises proposal](https://github.com/tc39/proposal-cancelable-promises). You can create a cancel token using the `CancelToken.source` factory as shown below: From a8a4e0bdcd5a05ab4682567fa8dc584e2d47b191 Mon Sep 17 00:00:00 2001 From: Jacob Date: Mon, 27 Feb 2017 10:03:25 +1300 Subject: [PATCH 3/4] Add axios-method-override to ECOSYSTEM.md --- ECOSYSTEM.md | 1 + 1 file changed, 1 insertion(+) diff --git a/ECOSYSTEM.md b/ECOSYSTEM.md index e086aba..e17a101 100644 --- a/ECOSYSTEM.md +++ b/ECOSYSTEM.md @@ -10,3 +10,4 @@ This is a list of axios related libraries and resources. If you have a suggestio * [redux-axios-middleware](https://github.com/svrcekmichal/redux-axios-middleware) - Redux middleware for fetching data with axios HTTP client * [axios-vcr](https://github.com/nettofarah/axios-vcr) - 📼 Record and Replay Axios requests * [@3846masa/axios-cookiejar-support](https://github.com/3846masa/axios-cookiejar-support) - Add tough-cookie support to axios +* [axios-method-override](https://github.com/jacobbuck/axios-method-override) - Axios http request method override plugin From 36d97e525d4bd1468131ade87495fdc39d28c56d Mon Sep 17 00:00:00 2001 From: Nick Uraltsev Date: Wed, 1 Mar 2017 20:40:55 -0800 Subject: [PATCH 4/4] Fixing broken test --- test/specs/requests.spec.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/specs/requests.spec.js b/test/specs/requests.spec.js index f8cd032..0ae4726 100644 --- a/test/specs/requests.spec.js +++ b/test/specs/requests.spec.js @@ -51,6 +51,9 @@ describe('requests', function () { expect(reason.config.method).toBe('get'); expect(reason.config.url).toBe('http://thisisnotaserver'); + // re-enable jasmine.Ajax + jasmine.Ajax.install(); + done(); };