From 1f884e9de54aae06d64fa8359bbc0b562799ffb6 Mon Sep 17 00:00:00 2001 From: arthurfiorette Date: Fri, 4 Feb 2022 07:53:48 -0300 Subject: [PATCH] style: formatted code --- docs/pages/_comparison-benchmark.md | 19 ++++--------------- docs/pages/usage-examples.md | 4 +++- examples/node/index.js | 2 +- examples/react/axios-context.js | 4 +--- 4 files changed, 9 insertions(+), 20 deletions(-) diff --git a/docs/pages/_comparison-benchmark.md b/docs/pages/_comparison-benchmark.md index 31fb5c4..af2f7fd 100644 --- a/docs/pages/_comparison-benchmark.md +++ b/docs/pages/_comparison-benchmark.md @@ -1,20 +1,9 @@ # Result -Run at Tue, 01 Feb 2022 16:36:36 GMT -Commit: 27b9a4972cb3bd56f1246db5b5e15136b7bd07e9 +Run at Tue, 01 Feb 2022 16:36:36 GMT Commit: 27b9a4972cb3bd56f1246db5b5e15136b7bd07e9 +CACHE INTERCEPTOR Operations: 42851/s Network requests: 1 of 211656 Performance: 100% -CACHE INTERCEPTOR -Operations: 42851/s -Network requests: 1 of 211656 -Performance: 100% +CACHE ADAPTER Operations: 37717/s Network requests: 2 of 183672 Performance: 88% -CACHE ADAPTER -Operations: 37717/s -Network requests: 2 of 183672 -Performance: 88% - -AXIOS -Operations: 1591/s -Network requests: 7976 of 7976 -Performance: 4% +AXIOS Operations: 1591/s Network requests: 7976 of 7976 Performance: 4% diff --git a/docs/pages/usage-examples.md b/docs/pages/usage-examples.md index 74642aa..7de63e3 100644 --- a/docs/pages/usage-examples.md +++ b/docs/pages/usage-examples.md @@ -1,6 +1,8 @@ # Usage and Examples -There are some other examples in the [examples]([https://](https://github.com/arthurfiorette/axios-cache-interceptor/tree/main/examples), check them out! You can also make a PR to add some more. +There are some other examples in the +[examples]([https://](https://github.com/arthurfiorette/axios-cache-interceptor/tree/main/examples), +check them out! You can also make a PR to add some more. ## Applying diff --git a/examples/node/index.js b/examples/node/index.js index 0ee25c3..ae1b5f3 100644 --- a/examples/node/index.js +++ b/examples/node/index.js @@ -46,4 +46,4 @@ app.get('/cache/:id/get', async (req, res) => { res.json(cache); }); -app.listen(3000); \ No newline at end of file +app.listen(3000); diff --git a/examples/react/axios-context.js b/examples/react/axios-context.js index 886b2cf..e49235a 100644 --- a/examples/react/axios-context.js +++ b/examples/react/axios-context.js @@ -8,9 +8,7 @@ import Axios from 'axios'; import { createContext, useContext, useState } from 'react'; import { setupCache } from '../../src'; // axios-cache-interceptor -/** - * @type {import('react').Context} - */ +/** @type {import('react').Context} */ const AxiosContext = createContext(null); export const useAxios = () => useContext(AxiosContext);