diff --git a/README.md b/README.md index 0378152..910f71c 100644 --- a/README.md +++ b/README.md @@ -148,7 +148,7 @@ Returns whether the cookie is valid for a request to `url`. This change has been introduced to simplify the usage of this library, since `rw` is used for `flags` in most cases anyways. - `CookieJar.addFromFile(file)` has been renamed to the async function `async CookieJar.load([file = this.file])`, which uses the fsPromises API for non-blocking cookie loading. The default value for `file` is the file passed to the constructor. -- `CookieJar.save(file)` was moved to `async CookieJar.save([file = this.file]) now also uses the fsPromises API. +- `CookieJar.save(file)` was moved to `async CookieJar.save([file = this.file])` now also uses the fsPromises API. - `new CookieJar()` now doesn't load cookies from the specified file anymore. To do so, call `await CookieJar.load()` after creating the CookieJar. **NOTE: `CookieJar.load()` will throw an error if the cookie jar doesn't exist or doesn't contain valid JSON!** diff --git a/package-lock.json b/package-lock.json index 0d26942..226798e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "node-fetch-cookies", - "version": "1.3.1", + "version": "1.3.2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 20cf5fd..723d99f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-fetch-cookies", - "version": "1.3.1", + "version": "1.3.2", "description": "node-fetch wrapper that adds support for cookie-jars", "main": "src/index.mjs", "engines": {