@gem-mine/request
TypeScript icon, indicating that this package has built-in type declarations

2.0.2 • Public • Published
  • temp changelog
    • 将代码拆分,以提高可读性
    • 添加众多测试用例,同时保留 1.x 用例
    • 限流时,shouldLimit 切面仍然执行,以便于灵活开关
    • before 返回 false 时,内部返回 Promise.reject()
    • 添加 interceptors 切面
    • request 函数 重构为 Request 类,并增加 instance 实例属性
    • Action 构造器中无意义的 Object.assign 处理
    • 简化 Request 中原型方法写法(get/post/put...),改用为实例方法,并防止 this 被变更带来的错误(1.x 的测试用例中会改变 this)

Readme

Keywords

none

Package Sidebar

Install

npm i @gem-mine/request

Weekly Downloads

1

Version

2.0.2

License

none

Unpacked Size

182 kB

Total Files

47

Last publish

Collaborators

  • caolvchong
  • wengzp
  • guoyh
  • mraiguo
  • amazebird
  • githoniel
  • janya
  • gylllll