Skip to content

Commit

Permalink
style: formatted code
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurfiorette committed Feb 4, 2022
1 parent ab68a9f commit 1f884e9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 20 deletions.
19 changes: 4 additions & 15 deletions docs/pages/_comparison-benchmark.md
Original file line number Diff line number Diff line change
@@ -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%
4 changes: 3 additions & 1 deletion docs/pages/usage-examples.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion examples/node/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ app.get('/cache/:id/get', async (req, res) => {
res.json(cache);
});

app.listen(3000);
app.listen(3000);
4 changes: 1 addition & 3 deletions examples/react/axios-context.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<import('../../src').AxiosCacheInstance>}
*/
/** @type {import('react').Context<import('../../src').AxiosCacheInstance>} */
const AxiosContext = createContext(null);

export const useAxios = () => useContext(AxiosContext);
Expand Down

1 comment on commit 1f884e9

@arthurfiorette
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code coverage 75%? tf

Please sign in to comment.