Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

配置request.interceptors.response.use后,errorHandler失效 #53

Open
wants to merge 107 commits into
base: use/umi-lint
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
107 commits
Select commit Hold shift + click to select a range
a056cc1
doc: add doc vs axios and english readme.
clock157 Feb 16, 2019
3a43d65
refactor: use umi-plugin-library to bundle
clock157 Feb 16, 2019
032ed6e
refactor: use umi-plugin-library to bundle (#22)
sorrycc Feb 17, 2019
c3cc27a
feat: use umi-lint
clock157 Feb 23, 2019
8f22cf4
fix error type
yesmeck Feb 27, 2019
cdd12e1
Merge pull request #26 from umijs/fix-error-type
clock157 Feb 27, 2019
3346cd3
Merge pull request #21 from umijs/doc/vs_axios
sorrycc Mar 14, 2019
df647e9
Update defaultInterceptor.js
saturnism Mar 25, 2019
b36dd7d
Merge pull request #32 from saturnism/http-patch
clock157 Mar 25, 2019
b7ddc5f
publish
clock157 Mar 25, 2019
fba794e
add credentials desc.
zven21 Apr 1, 2019
66caba3
Update index.d.ts
xiaohuoni Apr 2, 2019
683065f
Merge pull request #38 from umijs/xiaohuoni-patch-1
xiaohuoni Apr 2, 2019
362f8f1
Merge pull request #37 from zven21/feature/add-credentials-desc
clock157 Apr 2, 2019
e3c9f3c
fix: index.d.ts 缺少 patch 方法定义
handycode Apr 10, 2019
7c4f882
Merge pull request #42 from handycode/master
clock157 Apr 11, 2019
14e12e4
publish 1.0.6
clock157 Apr 11, 2019
d08636a
feat: Send data using delete
xchunzhao Apr 17, 2019
c85c29d
test: Add delete method test case
xchunzhao Apr 18, 2019
e9e4332
Merge pull request #45 from xchunzhao/master
clock157 Apr 20, 2019
8a11497
Merge branch 'master' into use/umi-lint-new
clock157 Apr 20, 2019
7c0e92b
refactor: use umi-lint format code
clock157 Apr 20, 2019
c10a9b5
Merge pull request #24 from umijs/use/umi-lint-new
clock157 Apr 24, 2019
0cc6caf
publish: 1.0.7
clock157 Apr 24, 2019
2c6e690
type support async
chenshuai2144 May 7, 2019
8e674fc
Merge pull request #51 from umijs/fix-type
chenshuai2144 May 7, 2019
7f72580
chore: update README.md
sorrycc May 8, 2019
a4b5caf
Update README.md
clock157 May 15, 2019
9382bed
Update README_zh-CN.md
clock157 May 15, 2019
b0cceb6
chore: use np for publish
sorrycc Jun 12, 2019
75ffc14
v1.0.8
sorrycc Jun 12, 2019
6709011
doc: upload file example code (#54)
clock157 Jul 3, 2019
194e5fa
refactor: revise response data processing (#55)
Jul 7, 2019
aaf0bde
feat: support promised request interceptor (#57)
clock157 Jul 10, 2019
832118f
publish: 1.1.0
clock157 Jul 10, 2019
1f77c34
feat: support middleware
chenjsh36 Jul 16, 2019
74fb55b
test: add test case to code coverage rate
Jul 19, 2019
c68a407
feat: support middleware (#59)
sorrycc Jul 19, 2019
a841cab
Update README.md (#58)
ycjcl868 Jul 19, 2019
b0dadc2
1.1.1
Jul 19, 2019
789e8a7
Add missing properties `credentials` in interface `RequestOptionsInit…
ForeverArt Jul 22, 2019
ff9f83e
fix: support fetch (#61)
chenjsh36 Jul 31, 2019
5aeef72
1.2.0
chenjsh36 Jul 31, 2019
db38fdb
fix: remove properties in interface (#62)
chenjsh36 Jul 31, 2019
39d0557
1.2.1
chenjsh36 Jul 31, 2019
d1cb5c0
fix: update properties 'next' in interface 'OnionMiddleware' (#63)
chenjsh36 Aug 3, 2019
010a56a
1.2.2
chenjsh36 Aug 5, 2019
aec901b
Feat/support cancel request (#64)
chenjsh36 Aug 22, 2019
9ac6750
1.2.3
chenjsh36 Aug 22, 2019
4d12e47
Feat/support node http (#65)
chenjsh36 Aug 29, 2019
827b7d7
1.2.4
chenjsh36 Aug 29, 2019
3811530
feat: middleware support global type and instance type (#66)
chenjsh36 Sep 9, 2019
d01dada
1.2.5
chenjsh36 Sep 9, 2019
a95c802
feat: add request and response in error object; update readme doc (#67)
chenjsh36 Sep 23, 2019
3ef4c73
1.2.6
chenjsh36 Sep 23, 2019
e21a3c7
Fix/credentials default value (#68)
chenjsh36 Oct 10, 2019
86c1b7d
1.2.7
chenjsh36 Oct 10, 2019
56daaea
Update README.md
chenjsh36 Oct 10, 2019
8ebf824
fix: params serialize fail when keyvalue is 'null'. (#70)
chenjsh36 Oct 13, 2019
af4c10c
1.2.8
chenjsh36 Oct 13, 2019
2853dc8
Update utils.js (#69)
ourfeel Oct 16, 2019
84b2955
feat: add instance Interceptors (#71)
zouxiaomingya Nov 9, 2019
051f4d6
update:replace symbol (#72)
Nov 9, 2019
9f5d40e
1.2.9
chenjsh36 Nov 9, 2019
2bc3113
Feat/qs cache (#74)
chenjsh36 Nov 20, 2019
3a1e787
1.2.10
chenjsh36 Nov 20, 2019
e0bb007
fix: qs stringify problem (#75)
chenjsh36 Nov 21, 2019
eb7ed77
1.2.11
chenjsh36 Nov 21, 2019
b9b76a2
feat: provide 'extendOptions()' (#80)
chenjsh36 Dec 5, 2019
8131592
1.2.12
chenjsh36 Dec 5, 2019
8b38e1c
1.2.13
chenjsh36 Dec 9, 2019
b519983
fix: 'Cannot clone a disturbed Response' bug in ios 10 (#82)
chenjsh36 Dec 9, 2019
d6a064e
fix: multiple clone response on ios.10 will throw error (#83)
chenjsh36 Dec 9, 2019
6374e47
1.2.14
chenjsh36 Dec 9, 2019
93377bc
fix: update type of interceptors (#89)
DiamondYuan Dec 12, 2019
b52f2ea
1.2.15
chenjsh36 Dec 12, 2019
fb0137d
Fix/catch reject from fetch (#95)
chenjsh36 Dec 24, 2019
5db96ac
1.2.16
chenjsh36 Dec 24, 2019
ed430f8
fix: extendOptions fail on method (#97)
chenjsh36 Dec 26, 2019
2fe1f9b
1.2.17
chenjsh36 Dec 26, 2019
e825313
feat: add defaultInstance option for middlewares (#102)
chenjsh36 Jan 20, 2020
192b5a5
1.2.18
chenjsh36 Jan 20, 2020
75bed1b
fix: overwrite the error object (#108)
chenjsh36 Feb 18, 2020
d9eb129
1.2.19
chenjsh36 Feb 18, 2020
4522b07
feat: 添加abort controller 取消请求 (#90)
suxin2017 May 21, 2020
6a424cf
Feat: add abort request polyfill and update types (#148)
chenjsh36 May 22, 2020
a7db8c0
1.3.0
chenjsh36 May 22, 2020
60917c1
fix: add AbortController polyfill (#150)
chenjsh36 May 25, 2020
0232e30
1.3.2
chenjsh36 May 25, 2020
eaca25e
1.3.4
chenjsh36 Jun 17, 2020
5882668
[typo] fix typo (#155)
Wzb3422 Sep 14, 2020
7d2f452
fix: 修复 Oinon 拼写错误 (#153)
xiabaiyang Sep 14, 2020
6773ef1
Fix typo (#151)
AhmadMayo Sep 14, 2020
318ba2d
feat: store origin request url in options (#244)
ttys026 May 19, 2021
b8eb5f3
1.3.6
ttys026 May 25, 2021
0f65468
chore: switch build tool to father (#248)
focus7eleven May 25, 2021
6fe176a
1.3.7
ttys026 May 25, 2021
ce6c73f
fix: missing package main entry (#250)
ttys026 May 25, 2021
f86c873
1.3.8
ttys026 May 25, 2021
17867b5
chore: remove abort controller polyfill (#251)
ttys026 May 25, 2021
9146ebc
1.3.9
ttys026 May 26, 2021
d0f3a45
Merge branch 'master' of https://github.com/umijs/umi-request
ttys026 May 26, 2021
99c3281
feature: 增加 timeoutMessage 配置 (#267)
WynterDing Sep 14, 2021
7ac65e0
v1.4.0
chenshuai2144 Sep 14, 2021
7856e98
修改文档上传文件示例问题 (#265)
jiangkaifree Sep 14, 2021
48a074f
Update README_zh-CN.md (#256)
wood3n Sep 14, 2021
50197be
Update cancel.js (#234)
weishaodaren Sep 14, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions .babelrc

This file was deleted.

3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"no-param-reassign": 0,
"max-len": 0,
"no-else-return": 0,
"no-underscore-dangle": 0
"no-underscore-dangle": 0,
"linebreak-style": [0, "error", "windows"],
},
"env": {
"browser": true
Expand Down
4 changes: 4 additions & 0 deletions .fatherrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export default {
esm: 'rollup',
cjs: 'rollup',
};
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ coverage
.git
.vscode
.DS_Store
/yarn.lock

5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"printWidth": 120,
"trailingComma": "es5",
"singleQuote": true
}
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
language: node_js

node_js:
- "8"
- "10"

before_script:
Expand Down
17 changes: 17 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
## 1.1.0
* refactor: #55 revise response data processing @atzcl
* feat: #57 support promised request interceptor @clock157

## 1.0.7
* feat: Send data using delete
* feat: use umi-lint

## 1.0.6
* fix: index.d.ts 缺少 patch 方法定义 @handycode

## 1.0.5
* feat: #32 send data for patch

## 1.0.4
* fix: #25 error type

## 1.0.3
* fix: #7 throw error when method is undefined

Expand Down
Loading