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
286b2c0296
commit
fe8307089a
@ -1,8 +1,9 @@
|
||||
import {readFileSync} from 'fs';
|
||||
import { readFileSync } from 'fs';
|
||||
import { resolve } from 'path';
|
||||
import { defineConfig } from 'vitepress';
|
||||
import {resolve} from 'path'
|
||||
|
||||
const read = (relative) => readFileSync(resolve(process.cwd(), 'docs', '.vitepress', relative), 'utf-8');
|
||||
const read = (relative) =>
|
||||
readFileSync(resolve(process.cwd(), 'docs', '.vitepress', relative), 'utf-8');
|
||||
|
||||
const isVersion = process.argv.indexOf('--base');
|
||||
const VERSION = isVersion > -1 ? process.argv[isVersion + 1].slice(1, -1) : 'Latest';
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
:root {
|
||||
--vp-c-brand-1: hsl(35, 78%, 53%);
|
||||
|
||||
|
||||
--vp-button-brand-bg: hsl(35, 78%, 53%);
|
||||
--vp-button-brand-active-bg: hsla(35, 78%, 53%, 36.5%);
|
||||
--vp-button-brand-active-bg: hsla(35, 78%, 53%, 36.5%);
|
||||
--vp-button-brand-hover-bg: hsl(35, 78%, 53%);
|
||||
|
||||
--vp-c-brand-light: hsla(35, 78%, 53%, 36.5%);
|
||||
|
||||
@ -50,8 +50,8 @@ any possible differences between them and share the same cache for both.
|
||||
If the default generator is not enough for your use case, you can provide your own custom
|
||||
generator with the `generateKey` option.
|
||||
|
||||
By default, it extracts `method`, `baseURL`, `query`, `params`, `data` and `url` properties from
|
||||
the request object and hashes it into a number with
|
||||
By default, it extracts `method`, `baseURL`, `query`, `params`, `data` and `url`
|
||||
properties from the request object and hashes it into a number with
|
||||
[`object-code`](https://www.npmjs.com/package/object-code).
|
||||
|
||||
Here's an example of a generator that only uses the `url` and `method` and `custom`
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user