Skip to content

Commit

Permalink
style: formatted code
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurfiorette committed Sep 30, 2023
1 parent 286b2c0 commit fe83070
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
7 changes: 4 additions & 3 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
4 changes: 2 additions & 2 deletions docs/.vitepress/theme/custom.css
Original file line number Diff line number Diff line change
@@ -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%);
Expand Down
4 changes: 2 additions & 2 deletions docs/src/guide/request-id.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit fe83070

Please sign in to comment.