From 642da3ad847f2595d488aa747bbec941016f69e2 Mon Sep 17 00:00:00 2001 From: Nash Date: Sat, 29 May 2021 23:09:04 -0700 Subject: [PATCH 1/2] Fixing README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 39984d4957..c7c737cdfc 100755 --- a/README.md +++ b/README.md @@ -456,20 +456,20 @@ These are the available config options for making requests. Only the `url` is re // automatically. If set to `true` will also remove the 'content-encoding' header // from the responses objects of all decompressed responses // - Node only (XHR cannot turn off decompression) - decompress: true // default + decompress: true, // default // transitional options for backward compatibility that may be removed in the newer versions transitional: { // silent JSON parsing mode // `true` - ignore JSON parsing errors and set response.data to null if parsing failed (old behaviour) // `false` - throw SyntaxError if JSON parsing failed (Note: responseType must be set to 'json') - silentJSONParsing: true; // default value for the current Axios version + silentJSONParsing: true, // default value for the current Axios version // try to parse the response string as JSON even if `resposeType` is not 'json' - forcedJSONParsing: true; + forcedJSONParsing: true, // throw ETIMEDOUT error instead of generic ECONNABORTED on request timeouts - clarifyTimeoutError: false; + clarifyTimeoutError: false } } ``` From cdf0540ac8ab174941412aacd10189a2e4df36fc Mon Sep 17 00:00:00 2001 From: Nash Date: Mon, 21 Jun 2021 00:24:57 -0700 Subject: [PATCH 2/2] Update README.md Co-authored-by: Asher Hwang --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c7c737cdfc..abffc7f2f4 100755 --- a/README.md +++ b/README.md @@ -469,7 +469,7 @@ These are the available config options for making requests. Only the `url` is re forcedJSONParsing: true, // throw ETIMEDOUT error instead of generic ECONNABORTED on request timeouts - clarifyTimeoutError: false + clarifyTimeoutError: false, } } ```