From fe8307089a9c826ca381bdd8791868fffc323ca8 Mon Sep 17 00:00:00 2001 From: Arthur Fiorette Date: Sat, 30 Sep 2023 15:44:45 -0300 Subject: [PATCH] style: formatted code --- docs/.vitepress/config.mts | 7 ++++--- docs/.vitepress/theme/custom.css | 4 ++-- docs/src/guide/request-id.md | 4 ++-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index fd74327..3938299 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -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'; diff --git a/docs/.vitepress/theme/custom.css b/docs/.vitepress/theme/custom.css index 93fd850..18d6e93 100644 --- a/docs/.vitepress/theme/custom.css +++ b/docs/.vitepress/theme/custom.css @@ -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%); diff --git a/docs/src/guide/request-id.md b/docs/src/guide/request-id.md index 70c3127..5fc4577 100644 --- a/docs/src/guide/request-id.md +++ b/docs/src/guide/request-id.md @@ -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`