axios-cache-interceptor
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -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, ''); |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
108914
1431