This package has been deprecated

Author message:

foca-axios-enhancer has been moved to foca-axios

foca-axios-enhancer
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

foca-axios-enhancer

针对 axios 请求库的增强型适配器。

License GitHub Workflow Status (branch) Codecov npm

特性

  • 合并相同的并发请求
  • 失败重试
  • 缓存响应成功的数据
  • 优化 axios 返回值

安装

yarn add axios foca-axios-enhancer

使用

// File: http.ts
import axios from 'axios';
import { enhanceAxios } from 'foca-axios-enhancer';

const instance = axios.create();
export const http = enhanceAxios(instance); // http === instance

Readme

Keywords

none

Package Sidebar

Install

npm i foca-axios-enhancer

Weekly Downloads

92

Version

0.3.0

License

MIT

Unpacked Size

52.6 kB

Total Files

50

Last publish

Collaborators

  • fwh1990