Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

axios-cache-interceptor

Package Overview
Dependencies
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

axios-cache-interceptor - npm Package Compare versions

Comparing version 0.4.1 to 0.5.0

6

package.json
{
"name": "axios-cache-interceptor",
"version": "0.4.1",
"version": "0.5.0",
"description": "Cache interceptor for axios",

@@ -52,3 +52,3 @@ "main": "./dist/index.js",

"auto-changelog": "^2.3.0",
"axios": "^0.23.0",
"axios": "^0.24.0",
"eslint": "^7.32.0",

@@ -65,4 +65,4 @@ "eslint-config-prettier": "^8.3.0",

"peerDependencies": {
"axios": "~0.23.0"
"axios": "~0.24.0"
}
}

@@ -131,4 +131,4 @@ <br />

Below you can check what version of this package is supported by your version of axios.
But that does not mean that won't work with any version. Most of "breaking changes" made
by axios was it's types.
But that does not mean that won't work with any version. **Most of "breaking changes" made
by axios was it's types.**

@@ -139,3 +139,4 @@ > **NOTE**: Below v0.3, axios was not configured as a peer dependency

| ----------------------------------------------------------------------------- | ------------------------------------------------ |
| `~v0.4` | `>= v0.32` |
| `~v0.5` | `>= v0.24` |
| `~v0.4` | `>= v0.23` |
| `~v0.3` | `>= v0.22` |

@@ -142,0 +143,0 @@ | `<= v0.2` | `v0.21` |

@@ -63,5 +63,3 @@ import type {

*/
<R = unknown, D = any>(config: CacheRequestConfig<D>): Promise<
CacheAxiosResponse<R, D>
>;
<R = any, D = any>(config: CacheRequestConfig<D>): Promise<CacheAxiosResponse<R, D>>;
/**

@@ -71,3 +69,3 @@ * @template R The type returned by this response

*/
<R = unknown, D = any>(url: string, config?: CacheRequestConfig<D>): Promise<
<R = any, D = any>(url: string, config?: CacheRequestConfig<D>): Promise<
CacheAxiosResponse<R, D>

@@ -94,3 +92,3 @@ >;

*/
request<R = unknown, D = any>(
request<R = any, D = any>(
config: CacheRequestConfig<D>

@@ -103,3 +101,3 @@ ): Promise<CacheAxiosResponse<R, D>>;

*/
get<R = unknown, D = any>(
get<R = any, D = any>(
url: string,

@@ -113,3 +111,3 @@ config?: CacheRequestConfig<D>

*/
delete<R = unknown, D = any>(
delete<R = any, D = any>(
url: string,

@@ -123,3 +121,3 @@ config?: CacheRequestConfig<D>

*/
head<R = unknown, D = any>(
head<R = any, D = any>(
url: string,

@@ -133,3 +131,3 @@ config?: CacheRequestConfig<D>

*/
options<R = unknown, D = any>(
options<R = any, D = any>(
url: string,

@@ -143,3 +141,3 @@ config?: CacheRequestConfig<D>

*/
post<R = unknown, D = any>(
post<R = any, D = any>(
url: string,

@@ -154,3 +152,3 @@ data?: D,

*/
put<R = unknown, D = any>(
put<R = any, D = any>(
url: string,

@@ -165,3 +163,3 @@ data?: D,

*/
patch<R = unknown, D = any>(
patch<R = any, D = any>(
url: string,

@@ -168,0 +166,0 @@ data?: D,

@@ -100,3 +100,3 @@ import type { Method } from 'axios';

*/
responseInterceptor: AxiosInterceptor<CacheAxiosResponse<unknown, any>>;
responseInterceptor: AxiosInterceptor<CacheAxiosResponse<any, any>>;
}

@@ -103,3 +103,3 @@ import { deferred } from 'typed-core/dist/promises/deferred';

*/
Promise.resolve<CacheAxiosResponse<unknown, D>>({
Promise.resolve<CacheAxiosResponse<any, D>>({
config: config,

@@ -106,0 +106,0 @@ data: cachedResponse.data,

@@ -52,3 +52,3 @@ import type { AxiosDefaults, AxiosInterceptorManager, AxiosRequestConfig, AxiosResponse } from 'axios';

*/
<R = unknown, D = any>(config: CacheRequestConfig<D>): Promise<CacheAxiosResponse<R, D>>;
<R = any, D = any>(config: CacheRequestConfig<D>): Promise<CacheAxiosResponse<R, D>>;
/**

@@ -58,3 +58,3 @@ * @template R The type returned by this response

*/
<R = unknown, D = any>(url: string, config?: CacheRequestConfig<D>): Promise<CacheAxiosResponse<R, D>>;
<R = any, D = any>(url: string, config?: CacheRequestConfig<D>): Promise<CacheAxiosResponse<R, D>>;
defaults: AxiosDefaults<any> & {

@@ -75,3 +75,3 @@ cache: CacheProperties;

*/
request<R = unknown, D = any>(config: CacheRequestConfig<D>): Promise<CacheAxiosResponse<R, D>>;
request<R = any, D = any>(config: CacheRequestConfig<D>): Promise<CacheAxiosResponse<R, D>>;
/**

@@ -81,3 +81,3 @@ * @template R The type returned by this response

*/
get<R = unknown, D = any>(url: string, config?: CacheRequestConfig<D>): Promise<CacheAxiosResponse<R, D>>;
get<R = any, D = any>(url: string, config?: CacheRequestConfig<D>): Promise<CacheAxiosResponse<R, D>>;
/**

@@ -87,3 +87,3 @@ * @template R The type returned by this response

*/
delete<R = unknown, D = any>(url: string, config?: CacheRequestConfig<D>): Promise<CacheAxiosResponse<R, D>>;
delete<R = any, D = any>(url: string, config?: CacheRequestConfig<D>): Promise<CacheAxiosResponse<R, D>>;
/**

@@ -93,3 +93,3 @@ * @template R The type returned by this response

*/
head<R = unknown, D = any>(url: string, config?: CacheRequestConfig<D>): Promise<CacheAxiosResponse<R, D>>;
head<R = any, D = any>(url: string, config?: CacheRequestConfig<D>): Promise<CacheAxiosResponse<R, D>>;
/**

@@ -99,3 +99,3 @@ * @template R The type returned by this response

*/
options<R = unknown, D = any>(url: string, config?: CacheRequestConfig<D>): Promise<CacheAxiosResponse<R, D>>;
options<R = any, D = any>(url: string, config?: CacheRequestConfig<D>): Promise<CacheAxiosResponse<R, D>>;
/**

@@ -105,3 +105,3 @@ * @template R The type returned by this response

*/
post<R = unknown, D = any>(url: string, data?: D, config?: CacheRequestConfig<D>): Promise<CacheAxiosResponse<R, D>>;
post<R = any, D = any>(url: string, data?: D, config?: CacheRequestConfig<D>): Promise<CacheAxiosResponse<R, D>>;
/**

@@ -111,3 +111,3 @@ * @template R The type returned by this response

*/
put<R = unknown, D = any>(url: string, data?: D, config?: CacheRequestConfig<D>): Promise<CacheAxiosResponse<R, D>>;
put<R = any, D = any>(url: string, data?: D, config?: CacheRequestConfig<D>): Promise<CacheAxiosResponse<R, D>>;
/**

@@ -117,4 +117,4 @@ * @template R The type returned by this response

*/
patch<R = unknown, D = any>(url: string, data?: D, config?: CacheRequestConfig<D>): Promise<CacheAxiosResponse<R, D>>;
patch<R = any, D = any>(url: string, data?: D, config?: CacheRequestConfig<D>): Promise<CacheAxiosResponse<R, D>>;
}
//# sourceMappingURL=axios.d.ts.map

@@ -89,4 +89,4 @@ import type { Method } from 'axios';

*/
responseInterceptor: AxiosInterceptor<CacheAxiosResponse<unknown, any>>;
responseInterceptor: AxiosInterceptor<CacheAxiosResponse<any, any>>;
}
//# sourceMappingURL=cache.d.ts.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc