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.1.1 to 0.1.2

5

dist/util/key-generator.js

@@ -8,5 +8,4 @@ "use strict";

const defaultKeyGenerator = ({ baseURL = '', url = '', method: nullableMethod, params, id }) => {
if (id) {
return `id::${String(id)}`;
}
if (id)
return String(id);
// Remove trailing slashes

@@ -13,0 +12,0 @@ baseURL = baseURL.replace(SLASHES_REGEX, '');

2

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

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -16,5 +16,3 @@ import { CacheRequestConfig } from '../axios/types';

}) => {
if (id) {
return `id::${String(id)}`;
}
if (id) return String(id);

@@ -21,0 +19,0 @@ // Remove trailing slashes

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