From 1b0b8e64a1a3dd178fe03f3089a2f785d85e1196 Mon Sep 17 00:00:00 2001
From: zjx0905 <954270063@qq.com>
Date: Mon, 27 Jul 2020 11:32:59 +0800
Subject: [PATCH] 1.1.3
---
.babelrc | 2 +-
.editorconfig | 16 --------------
.eslintignore | 1 +
.eslintrc | 2 +-
.gitignore | 1 +
.idea/.gitignore | 8 -------
.idea/axios-miniprogram.iml | 9 --------
.idea/dictionaries/fluff.xml | 7 -------
.idea/google-java-format.xml | 6 ------
.idea/inspectionProfiles/Project_Default.xml | 6 ------
.idea/misc.xml | 9 --------
.idea/modules.xml | 8 -------
.idea/vcs.xml | 6 ------
.prettierrc | 2 +-
.vscode/launch.json | 21 -------------------
LICENSE | 2 +-
SECURITY.md | 2 +-
{test => __tests__}/.babelrc | 0
.../adaptive.spec.ts | 0
test/axios.test.ts => __tests__/axios.spec.ts | 0
.../cancel/Cancel.spec.ts | 0
.../cancel/CancelToken.spec.ts | 0
.../cancel/isCancel.spec.ts | 0
.../core/Axios.spec.ts | 0
.../core/InterceptorManager.spec.ts | 0
.../core/dispatchRequest.spec.ts | 0
.../core/flattenHeaders.spec.ts | 0
.../core/mergeConfig.spec.ts | 0
.../core/request.spec.ts | 0
.../core/transformData.spec.ts | 0
.../core/transformMethod.spec.ts | 0
.../core/transformRequest.spec.ts | 0
.../core/transformResponse.spec.ts | 0
.../helpers/buildURL.spec.ts | 0
.../helpers/combineURL.spec.ts | 0
.../helpers/isAbsoluteURL.spec.ts | 0
.../helpers/utils.spec.ts | 0
rollup.config.js | 2 +-
38 files changed, 8 insertions(+), 102 deletions(-)
delete mode 100755 .editorconfig
delete mode 100644 .idea/.gitignore
delete mode 100644 .idea/axios-miniprogram.iml
delete mode 100644 .idea/dictionaries/fluff.xml
delete mode 100644 .idea/google-java-format.xml
delete mode 100644 .idea/inspectionProfiles/Project_Default.xml
delete mode 100644 .idea/misc.xml
delete mode 100644 .idea/modules.xml
delete mode 100644 .idea/vcs.xml
delete mode 100644 .vscode/launch.json
rename {test => __tests__}/.babelrc (100%)
rename test/adaptive.test.ts => __tests__/adaptive.spec.ts (100%)
rename test/axios.test.ts => __tests__/axios.spec.ts (100%)
rename test/cancel/Cancel.test.ts => __tests__/cancel/Cancel.spec.ts (100%)
rename test/cancel/CancelToken.test.ts => __tests__/cancel/CancelToken.spec.ts (100%)
rename test/cancel/isCancel.test.ts => __tests__/cancel/isCancel.spec.ts (100%)
rename test/core/Axios.test.ts => __tests__/core/Axios.spec.ts (100%)
rename test/core/InterceptorManager.test.ts => __tests__/core/InterceptorManager.spec.ts (100%)
rename test/core/dispatchRequest.test.ts => __tests__/core/dispatchRequest.spec.ts (100%)
rename test/core/flattenHeaders.test.ts => __tests__/core/flattenHeaders.spec.ts (100%)
rename test/core/mergeConfig.test.ts => __tests__/core/mergeConfig.spec.ts (100%)
rename test/core/request.test.ts => __tests__/core/request.spec.ts (100%)
rename test/core/transformData.test.ts => __tests__/core/transformData.spec.ts (100%)
rename test/core/transformMethod.test.ts => __tests__/core/transformMethod.spec.ts (100%)
rename test/core/transformRequest.test.ts => __tests__/core/transformRequest.spec.ts (100%)
rename test/core/transformResponse.test.ts => __tests__/core/transformResponse.spec.ts (100%)
rename test/helpers/buildURL.test.ts => __tests__/helpers/buildURL.spec.ts (100%)
rename test/helpers/combineURL.test.ts => __tests__/helpers/combineURL.spec.ts (100%)
rename test/helpers/isAbsoluteURL.test.ts => __tests__/helpers/isAbsoluteURL.spec.ts (100%)
rename test/helpers/utils.test.ts => __tests__/helpers/utils.spec.ts (100%)
diff --git a/.babelrc b/.babelrc
index 149c6df..09a2853 100644
--- a/.babelrc
+++ b/.babelrc
@@ -15,6 +15,6 @@
]
],
"plugins": [
- "@babel/plugin-proposal-optional-chaining"
+ "@babel/plugin-proposal-optional-chaining",
]
}
\ No newline at end of file
diff --git a/.editorconfig b/.editorconfig
deleted file mode 100755
index 5caab47..0000000
--- a/.editorconfig
+++ /dev/null
@@ -1,16 +0,0 @@
-# http://editorconfig.org
-# root = true
-
-# [*]
-# indent_style = space
-# indent_size = 2
-# end_of_line = lf
-# charset = utf-8
-# trim_trailing_whitespace = true
-# insert_final_newline = true
-
-# [*.md]
-# trim_trailing_whitespace = false
-
-# [Makefile]
-# indent_style = tab
diff --git a/.eslintignore b/.eslintignore
index 4c22a13..1cd1507 100644
--- a/.eslintignore
+++ b/.eslintignore
@@ -2,4 +2,5 @@
/package
/types
/coverage
+
/rollup.config.js
\ No newline at end of file
diff --git a/.eslintrc b/.eslintrc
index 17c9824..6a2f288 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -22,6 +22,6 @@
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-function-return-type": "off",
- "@typescript-eslint/no-namespace": "off"
+ "@typescript-eslint/no-namespace": "off",
}
}
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
index dada443..f6a13c2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,4 +3,5 @@
/package.zip
/types
/coverage
+
/yarn-error.log
\ No newline at end of file
diff --git a/.idea/.gitignore b/.idea/.gitignore
deleted file mode 100644
index 73f69e0..0000000
--- a/.idea/.gitignore
+++ /dev/null
@@ -1,8 +0,0 @@
-# Default ignored files
-/shelf/
-/workspace.xml
-# Datasource local storage ignored files
-/dataSources/
-/dataSources.local.xml
-# Editor-based HTTP Client requests
-/httpRequests/
diff --git a/.idea/axios-miniprogram.iml b/.idea/axios-miniprogram.iml
deleted file mode 100644
index d6ebd48..0000000
--- a/.idea/axios-miniprogram.iml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/dictionaries/fluff.xml b/.idea/dictionaries/fluff.xml
deleted file mode 100644
index 883278d..0000000
--- a/.idea/dictionaries/fluff.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
- axios
-
-
-
\ No newline at end of file
diff --git a/.idea/google-java-format.xml b/.idea/google-java-format.xml
deleted file mode 100644
index 2aa056d..0000000
--- a/.idea/google-java-format.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml
deleted file mode 100644
index 03d9549..0000000
--- a/.idea/inspectionProfiles/Project_Default.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
deleted file mode 100644
index fff67ee..0000000
--- a/.idea/misc.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
deleted file mode 100644
index be0275a..0000000
--- a/.idea/modules.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
deleted file mode 100644
index 35eb1dd..0000000
--- a/.idea/vcs.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.prettierrc b/.prettierrc
index 4efa30b..65ea2a4 100644
--- a/.prettierrc
+++ b/.prettierrc
@@ -6,5 +6,5 @@
"trailingComma": "es5",
"bracketSpacing": true,
"arrowParens": "always",
- "parser": "typescript"
+ "parser": "typescript",
}
\ No newline at end of file
diff --git a/.vscode/launch.json b/.vscode/launch.json
deleted file mode 100644
index 1e7293e..0000000
--- a/.vscode/launch.json
+++ /dev/null
@@ -1,21 +0,0 @@
-{
- // 使用 IntelliSense 了解相关属性。
- // 悬停以查看现有属性的描述。
- // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
- "version": "0.2.0",
- "configurations": [
- {
- "type": "node",
- "name": "vscode-jest-tests",
- "request": "launch",
- "args": [
- "--runInBand"
- ],
- "cwd": "${workspaceFolder}",
- "console": "integratedTerminal",
- "internalConsoleOptions": "neverOpen",
- "disableOptimisticBPs": true,
- "program": "${workspaceFolder}/node_modules/jest/bin/jest"
- }
- ]
-}
\ No newline at end of file
diff --git a/LICENSE b/LICENSE
index bca0ddf..307ccd5 100644
--- a/LICENSE
+++ b/LICENSE
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
+SOFTWARE..
diff --git a/SECURITY.md b/SECURITY.md
index 034e848..5378407 100644
--- a/SECURITY.md
+++ b/SECURITY.md
@@ -18,4 +18,4 @@ Use this section to tell people how to report a vulnerability.
Tell them where to go, how often they can expect to get an update on a
reported vulnerability, what to expect if the vulnerability is accepted or
-declined, etc.
+declined, etc..
diff --git a/test/.babelrc b/__tests__/.babelrc
similarity index 100%
rename from test/.babelrc
rename to __tests__/.babelrc
diff --git a/test/adaptive.test.ts b/__tests__/adaptive.spec.ts
similarity index 100%
rename from test/adaptive.test.ts
rename to __tests__/adaptive.spec.ts
diff --git a/test/axios.test.ts b/__tests__/axios.spec.ts
similarity index 100%
rename from test/axios.test.ts
rename to __tests__/axios.spec.ts
diff --git a/test/cancel/Cancel.test.ts b/__tests__/cancel/Cancel.spec.ts
similarity index 100%
rename from test/cancel/Cancel.test.ts
rename to __tests__/cancel/Cancel.spec.ts
diff --git a/test/cancel/CancelToken.test.ts b/__tests__/cancel/CancelToken.spec.ts
similarity index 100%
rename from test/cancel/CancelToken.test.ts
rename to __tests__/cancel/CancelToken.spec.ts
diff --git a/test/cancel/isCancel.test.ts b/__tests__/cancel/isCancel.spec.ts
similarity index 100%
rename from test/cancel/isCancel.test.ts
rename to __tests__/cancel/isCancel.spec.ts
diff --git a/test/core/Axios.test.ts b/__tests__/core/Axios.spec.ts
similarity index 100%
rename from test/core/Axios.test.ts
rename to __tests__/core/Axios.spec.ts
diff --git a/test/core/InterceptorManager.test.ts b/__tests__/core/InterceptorManager.spec.ts
similarity index 100%
rename from test/core/InterceptorManager.test.ts
rename to __tests__/core/InterceptorManager.spec.ts
diff --git a/test/core/dispatchRequest.test.ts b/__tests__/core/dispatchRequest.spec.ts
similarity index 100%
rename from test/core/dispatchRequest.test.ts
rename to __tests__/core/dispatchRequest.spec.ts
diff --git a/test/core/flattenHeaders.test.ts b/__tests__/core/flattenHeaders.spec.ts
similarity index 100%
rename from test/core/flattenHeaders.test.ts
rename to __tests__/core/flattenHeaders.spec.ts
diff --git a/test/core/mergeConfig.test.ts b/__tests__/core/mergeConfig.spec.ts
similarity index 100%
rename from test/core/mergeConfig.test.ts
rename to __tests__/core/mergeConfig.spec.ts
diff --git a/test/core/request.test.ts b/__tests__/core/request.spec.ts
similarity index 100%
rename from test/core/request.test.ts
rename to __tests__/core/request.spec.ts
diff --git a/test/core/transformData.test.ts b/__tests__/core/transformData.spec.ts
similarity index 100%
rename from test/core/transformData.test.ts
rename to __tests__/core/transformData.spec.ts
diff --git a/test/core/transformMethod.test.ts b/__tests__/core/transformMethod.spec.ts
similarity index 100%
rename from test/core/transformMethod.test.ts
rename to __tests__/core/transformMethod.spec.ts
diff --git a/test/core/transformRequest.test.ts b/__tests__/core/transformRequest.spec.ts
similarity index 100%
rename from test/core/transformRequest.test.ts
rename to __tests__/core/transformRequest.spec.ts
diff --git a/test/core/transformResponse.test.ts b/__tests__/core/transformResponse.spec.ts
similarity index 100%
rename from test/core/transformResponse.test.ts
rename to __tests__/core/transformResponse.spec.ts
diff --git a/test/helpers/buildURL.test.ts b/__tests__/helpers/buildURL.spec.ts
similarity index 100%
rename from test/helpers/buildURL.test.ts
rename to __tests__/helpers/buildURL.spec.ts
diff --git a/test/helpers/combineURL.test.ts b/__tests__/helpers/combineURL.spec.ts
similarity index 100%
rename from test/helpers/combineURL.test.ts
rename to __tests__/helpers/combineURL.spec.ts
diff --git a/test/helpers/isAbsoluteURL.test.ts b/__tests__/helpers/isAbsoluteURL.spec.ts
similarity index 100%
rename from test/helpers/isAbsoluteURL.test.ts
rename to __tests__/helpers/isAbsoluteURL.spec.ts
diff --git a/test/helpers/utils.test.ts b/__tests__/helpers/utils.spec.ts
similarity index 100%
rename from test/helpers/utils.test.ts
rename to __tests__/helpers/utils.spec.ts
diff --git a/rollup.config.js b/rollup.config.js
index a83fc71..ef92397 100644
--- a/rollup.config.js
+++ b/rollup.config.js
@@ -16,7 +16,7 @@ function removeDir(name) {
fs.unlinkSync(name);
} else {
fs.readdirSync(name).forEach((dir) => removeDir(path.join(name, dir)));
- fs.rmdirSync(name);
+ fs.rmdirSync(name)
}
} catch (err) {}
}