bump version
This commit is contained in:
parent
6459ef1d33
commit
3914d35b82
@ -6,7 +6,7 @@ The first request will result in an HTTP request and any subsequent requests wit
|
|||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
Use it the same way you would use fetch.
|
Require it with a path to cache in, and then use it the same way you would use fetch.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
const fetch = require('node-fetch-cache')('./path/to/cache/dir');
|
const fetch = require('node-fetch-cache')('./path/to/cache/dir');
|
||||||
@ -22,7 +22,7 @@ Note that this is not the full fetch API. Headers and some other things are not
|
|||||||
|
|
||||||
### async fetch(resource [, init])
|
### async fetch(resource [, init])
|
||||||
|
|
||||||
Same calling conventions as [browser fetch](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch).
|
Same arguments as [browser fetch](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch).
|
||||||
|
|
||||||
Returns a **CachedResponse**.
|
Returns a **CachedResponse**.
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "node-fetch-cache",
|
"name": "node-fetch-cache",
|
||||||
"version": "1.0.1",
|
"version": "1.0.2",
|
||||||
"description": "node-fetch with a persistent cache.",
|
"description": "node-fetch with a persistent cache.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
Reference in New Issue
Block a user