ivinwu
|
ed3f95c313
|
build: 1.2.15
|
2020-05-14 16:26:06 +08:00 |
|
mwindson
|
1140e87f1c
|
chore(typing): 更新typing路径和发布配置
|
2020-05-06 19:10:28 +08:00 |
|
ivinwu
|
8b890172f3
|
refactor(package.json): add npm publish scripts
|
2020-03-27 17:28:42 +08:00 |
|
ivinwu
|
856cb7e73f
|
fix(JSON): fix unescape U+2028 and U+2029
|
2020-03-27 17:26:25 +08:00 |
|
ivinwu
|
5fd6bac8bf
|
feat: 支持全局配置请求header
|
2020-03-09 12:11:10 +00:00 |
|
ivinwu
|
77813bb7f6
|
docs: update readme
|
2020-03-09 19:47:59 +08:00 |
|
Cong Min
|
9fd08ef19b
|
feat(errorRetryBtn): 新增配置显示错误弹窗重试按钮 (#38)
feat: 新增配置显示错误弹窗重试按钮
|
2020-03-09 19:38:57 +08:00 |
|
ivinwu
|
0a361742b4
|
fix: 修复js-error可能被掩盖的问题
|
2020-01-08 11:48:24 +08:00 |
|
ivinwu
|
a9f1864ca8
|
docs(README): fix demo
|
2019-12-24 17:30:11 +08:00 |
|
ivinwu
|
9c50c617fb
|
docs: update readme
|
2019-09-30 10:31:38 +08:00 |
|
TENCENT\ivinwu
|
426f7997e7
|
docs(1.2.10):
|
2019-07-04 17:58:12 +08:00 |
|
mwindson
|
1b36b32282
|
fix(requestHandler): 修改请求或网络异常时的处理逻辑,避免promise.then中的代码继续执行 (#30)
* fix(requestHandler): 修复请求或网络异常时处理后的response为undefined导致promise.then继续执行的问题
当请求未触发成功条件或statusCode不为200时,responseHandler返回的response为undefined,导致resolve返回并执行promise.then中的代码.
目前通过判断response是否为undefined决定是否resolve(response)来避免break change
* fix(request&&uploadFile): 修改responseHandler抛出异常的逻辑并增加捕获异常的处理luoji
|
2019-07-04 17:47:25 +08:00 |
|
TENCENT\ivinwu
|
c35f7ed7c6
|
fix: promise模式下,重登陆成功后没有返回
|
2019-04-12 21:07:21 +08:00 |
|
TENCENT\ivinwu
|
9f5034bb75
|
feat: 增加配置:doNotUseQueryString
默认情况下,POST请求,登陆态除了带在请求body中,也会带在queryString上,如果配置了这个为true,则登陆态不带在queryString中
|
2019-04-10 19:18:51 +08:00 |
|
TENCENT\ivinwu
|
8cab011162
|
fix: typing
|
2019-04-09 10:51:18 +08:00 |
|
Sail
|
c2ac6fa5be
|
fix: fixed typing (#24)
|
2019-04-09 10:46:41 +08:00 |
|
TENCENT\ivinwu
|
69fd371857
|
fix: successData is optional
|
2019-04-04 16:32:51 +08:00 |
|
TENCENT\ivinwu
|
2e05d4289e
|
fix: typing
|
2019-04-02 20:36:28 +08:00 |
|
TENCENT\ivinwu
|
de6f8aaa09
|
docs: update README
|
2019-04-01 18:05:43 +08:00 |
|
TENCENT\ivinwu
|
a9d823d457
|
Merge branch '1.2.0' of https://github.com/IvinWu/weRequest into 1.2.0
|
2019-04-01 17:59:55 +08:00 |
|
TENCENT\ivinwu
|
4a80ba43f0
|
Merge branch '1.2.0' of http://git.code.oa.com/Ivinwu/weRequest into 1.2.0
|
2019-04-01 17:55:03 +08:00 |
|
TENCENT\ivinwu
|
3610f6553a
|
docs: update example
|
2019-04-01 17:54:56 +08:00 |
|
Sail
|
0df7cb6bb3
|
feat: support version option (#23)
* feat: support version option
* docs(README): added version option
|
2019-04-01 17:47:17 +08:00 |
|
TENCENT\ivinwu
|
68927d274b
|
docs(README): update README
|
2019-03-26 20:14:46 +08:00 |
|
TENCENT\ivinwu
|
6998bf15e3
|
fix(mockManager): 修复mock成功后仍然发出请求的问题
|
2019-03-25 19:45:15 +08:00 |
|
TENCENT\ivinwu
|
9b195301cd
|
fix: checkSession返回失败后没有自动重新登录
|
2019-03-22 14:47:54 +08:00 |
|
TENCENT\ivinwu
|
b2e1787389
|
fix(1.2.2): fix: if(0) === false
|
2019-03-12 18:08:47 +08:00 |
|
TENCENT\ivinwu
|
d064d71352
|
refactor: rm renameJsFile.js
|
2019-03-12 15:20:48 +08:00 |
|
TENCENT\ivinwu
|
708f8d13ad
|
Merge branch '1.2.0' of https://github.com/IvinWu/weRequest into 1.2.0
|
2019-03-08 22:51:06 +08:00 |
|
TENCENT\ivinwu
|
c41ba656e3
|
fix: change some params to be not required
|
2019-03-08 22:50:32 +08:00 |
|
swen
|
f6415f927b
|
更新mock功能的示例 (#22)
* 更新mock功能的示例
* 更新mock功能的示例
|
2019-03-08 19:49:04 +08:00 |
|
ivinwu
|
399b465e9b
|
feat: 支持Promise方式调用
|
2019-01-24 10:30:36 +08:00 |
|
ivinwu
|
5f81071d00
|
refactor: promise改造中;移除sessionIsFresh、obj.count等概念
|
2019-01-11 22:27:54 +08:00 |
|
ivinwu
|
9808d4e416
|
fix: fix weRequest.init do not work well
|
2019-01-10 22:47:47 +08:00 |
|
ivinwu
|
739a8be9f7
|
refactor: 解耦code2Session,去掉请求的isLogin标识
|
2019-01-10 22:46:22 +08:00 |
|
godbasin
|
02b2c2fdb7
|
Merge pull request #16 from godbasin/1.1.0_ts
修复了一些tslint错误提示
|
2019-01-07 19:34:22 +08:00 |
|
godbasin
|
b181798fa6
|
修复了一些tslint错误提示
|
2019-01-07 19:32:53 +08:00 |
|
ivinwu
|
f13838e325
|
refactor: 解决残留的TODO类型
|
2019-01-04 18:42:59 +08:00 |
|
ivinwu
|
c3696bca51
|
refactor: 收归interface的定义到一个文件
|
2019-01-03 19:38:37 +08:00 |
|
ivinwu
|
9d0b49ea92
|
build(package.json): add commitizen to format commits
plz use "git cz" or "npm run commit" to commit your code
|
2018-12-29 15:49:03 +08:00 |
|
ivinwu
|
d5baa4687e
|
update README
|
2018-12-28 17:35:09 +08:00 |
|
ivinwu
|
e50950a4f2
|
promise化改造:checkSession、code2Session已完成
|
2018-12-28 17:33:30 +08:00 |
|
ivinwu
|
7267471c40
|
update README
|
2018-12-21 23:28:33 +08:00 |
|
ivinwu
|
d9127b1157
|
Merge branch '1.2.0' of https://github.com/IvinWu/weRequest into 1.2.0
# Conflicts:
# build/weRequest.js
# build/weRequest.min.js
# package.json
# src/module/errorHandler.ts
# src/module/requestHandler.ts
# src/module/responseHandler.ts
|
2018-12-21 23:27:25 +08:00 |
|
TENCENT\ivinwu
|
7ecc92fb5e
|
some bugfix
|
2018-12-21 20:37:41 +08:00 |
|
TENCENT\ivinwu
|
3a66825345
|
fixed some error
|
2018-12-21 19:12:10 +08:00 |
|
Ivin Wu
|
728de2d012
|
Merge pull request #10 from godbasin/1.1.0_ts
发布支持引入typing
|
2018-12-21 17:44:51 +08:00 |
|
godbasin
|
f444eb4620
|
发布支持引入typing
|
2018-12-21 17:28:46 +08:00 |
|
Ivin Wu
|
72c464bd82
|
Merge pull request #9 from godbasin/1.1.0_ts
1.1.0 ts
|
2018-12-20 21:29:18 +08:00 |
|
godbasin
|
b34aa667b6
|
简单跑起来了
|
2018-12-20 21:21:58 +08:00 |
|