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 21, 2022
1 parent 59d40c9 commit 71fbfab
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
14 changes: 7 additions & 7 deletions docs/js/runkit.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@

function createTemporaryCodeblock(textCode) {
const element = document.createElement('pre');
element.setAttribute('v-pre', true);
element.setAttribute('data-lang', 'js');
element.setAttribute('v-pre', true);
element.setAttribute('data-lang', 'js');

const code = document.createElement('code');
code.classList.add('lang-js');
code.textContent = textCode;
const code = document.createElement('code');
code.classList.add('lang-js');
code.textContent = textCode;

element.appendChild(code);
element.appendChild(code);

return element;
return element;
}

loadScript('https://embed.runkit.com', function () {
Expand Down
8 changes: 4 additions & 4 deletions docs/pages/global-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ const axios = setupCache(axios, {

## `storage`

The storage used to save the cache. Defaults to a simple in-memory storage. [See more about storages](pages/storages).
The storage used to save the cache. Defaults to a simple in-memory storage.
[See more about storages](pages/storages).

## `generateKey`

Expand Down Expand Up @@ -64,9 +65,8 @@ const myHeaderInterpreter: HeaderInterpreter = (headers) => {

## `request` and `response` Interceptors

These functions intercepts and modify the axios logic and objects. If you are using
some sort of custom implementation, it is not guaranteed to any other documented thing
work.
These functions intercepts and modify the axios logic and objects. If you are using some
sort of custom implementation, it is not guaranteed to any other documented thing work.

At this moment, you can see their code for more information
[here](https://github.com/arthurfiorette/axios-cache-interceptor/tree/main/src/interceptors).
7 changes: 4 additions & 3 deletions docs/pages/installing.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,11 @@ import { setupCache } from 'https://cdn.jsdelivr.net/npm/axios-cache-interceptor

Below you can check what version of this package is supported by your version of axios.
**But that does not mean that it won't work.**. Axios had many "breaking changes" made
with type declarations. But remember, new features and bug fixes only comes with
newer versions. Please keep your dependencies up to date <3.
with type declarations. But remember, new features and bug fixes only comes with newer
versions. Please keep your dependencies up to date <3.

> **Note**: Axios is not defined as a `peerDependency`, because it has a non-stable semver version (0.x.y).
> **Note**: Axios is not defined as a `peerDependency`, because it has a non-stable semver
> version (0.x.y).
> [See #145 (Comment)](https://github.com/arthurfiorette/axios-cache-interceptor/issues/145#issuecomment-1042710481)
| [Axios Cache Interceptor](https://github.com/arthurfiorette/axios-cache-interceptor/releases) | [Axios](https://github.com/axios/axios/releases) |
Expand Down

0 comments on commit 71fbfab

Please sign in to comment.