Skip to content

Commit

Permalink
Update index and exported items
Browse files Browse the repository at this point in the history
  • Loading branch information
perry-mitchell committed Nov 5, 2018
1 parent 8e51bdf commit 743d63a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 15 deletions.
14 changes: 7 additions & 7 deletions source/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"use strict";
const { axios, setRequestMethod } = require("./request.js");
const { createClient } = require("./factory.js");

const setFetchMethod = require("./request.js").setFetchMethod;
const createClient = require("./factory.js").createClient;

createClient.setFetchMethod = setFetchMethod;

module.exports = createClient;
module.exports = {
axios,
createClient,
setRequestMethod
};
4 changes: 1 addition & 3 deletions source/response.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use strict";

function handleResponseCode(response) {
const status = parseInt(response.status, 10);
let err;
Expand All @@ -12,5 +10,5 @@ function handleResponseCode(response) {
}

module.exports = {
handleResponseCode: handleResponseCode
handleResponseCode
};
8 changes: 3 additions & 5 deletions source/url.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use strict";

const URL = require("url-parse");

function extractURLPath(fullURL) {
Expand Down Expand Up @@ -28,7 +26,7 @@ function normalisePath(pathStr) {
}

module.exports = {
extractURLPath: extractURLPath,
normaliseHREF: normaliseHREF,
normalisePath: normalisePath
extractURLPath,
normaliseHREF,
normalisePath
};

0 comments on commit 743d63a

Please sign in to comment.