From cb2e356315a57facb4b2ae01c57489c710cc1473 Mon Sep 17 00:00:00 2001 From: 38elements Date: Mon, 30 Jan 2017 15:35:41 +0900 Subject: [PATCH 1/2] Fixing document for adapter --- README.md | 2 +- lib/adapters/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5b3c913..701238d 100644 --- a/README.md +++ b/README.md @@ -248,7 +248,7 @@ These are the available config options for making requests. Only the `url` is re withCredentials: false, // default // `adapter` allows custom handling of requests which makes testing easier. - // Return a promise and supply a valid response (see [response docs](#response-api)). + // Return a promise and supply a valid response (see lib/adapters/README.md). adapter: function (config) { /* ... */ }, diff --git a/lib/adapters/README.md b/lib/adapters/README.md index f389ccd..68f1118 100644 --- a/lib/adapters/README.md +++ b/lib/adapters/README.md @@ -7,7 +7,7 @@ The modules under `adapters/` are modules that handle dispatching a request and ```js var settle = require('./../core/settle'); -module.exports myAdapter(config) { +module.exports = function myAdapter(config) { // At this point: // - config has been merged with defaults // - request transformers have already run From 75a64389ba003ab9e3e1358c2f020ebc79d43329 Mon Sep 17 00:00:00 2001 From: Nick Uraltsev Date: Wed, 1 Mar 2017 22:43:23 -0800 Subject: [PATCH 2/2] Adding link to adapters/README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 701238d..761c3bf 100644 --- a/README.md +++ b/README.md @@ -248,7 +248,7 @@ These are the available config options for making requests. Only the `url` is re withCredentials: false, // default // `adapter` allows custom handling of requests which makes testing easier. - // Return a promise and supply a valid response (see lib/adapters/README.md). + // Return a promise and supply a valid response (see [this](https://github.com/mzabriskie/axios/blob/master/lib/adapters/README.md) for details). adapter: function (config) { /* ... */ },