mirror of
https://github.com/arthurfiorette/axios-cache-interceptor.git
synced 2025-12-08 17:36:16 +00:00
style: formatted code
This commit is contained in:
parent
be210b2924
commit
13eacedc02
@ -1,8 +1,8 @@
|
||||
import { AxiosInstance } from 'axios';
|
||||
import { applyRequestInterceptor } from '../interceptors/request';
|
||||
import { applyResponseInterceptor } from '../interceptors/response';
|
||||
import { MemoryStorage } from '../storage/memory';
|
||||
import { defaultKeyGenerator } from '../utils/key-generator';
|
||||
import { AxiosInstance } from 'axios';
|
||||
import { AxiosCacheInstance, CacheInstance, CacheRequestConfig } from './types';
|
||||
|
||||
type Options = CacheRequestConfig['cache'] & Partial<CacheInstance>;
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
import { CacheStorage } from '../storage/types';
|
||||
import type {
|
||||
AxiosInstance,
|
||||
AxiosInterceptorManager,
|
||||
@ -7,6 +6,7 @@ import type {
|
||||
AxiosResponse,
|
||||
Method
|
||||
} from 'axios';
|
||||
import { CacheStorage } from '../storage/types';
|
||||
|
||||
/**
|
||||
* Options that can be overridden per request
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { AxiosCacheInstance } from '../axios/types';
|
||||
import { parse } from '@tusbar/cache-control';
|
||||
import { AxiosCacheInstance } from '../axios/types';
|
||||
|
||||
export function applyResponseInterceptor(axios: AxiosCacheInstance) {
|
||||
axios.interceptors.response.use(async (response) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user