rekwest 4.5.1 → 4.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -123,7 +123,7 @@ console.log(res.body);
123
123
  * `baseURL` **{string | URL}** The base URL to use in cases where `url` is a relative URL
124
124
  * `body` **{string | Array | ArrayBuffer | ArrayBufferView | AsyncIterator | Blob | Buffer | DataView | File |
125
125
  FormData | Iterator | Object | Readable | SharedArrayBuffer | URLSearchParams}** The body to send with the request
126
- * `cookies` **{boolean | Array<[k, v]> | Array<string> | Cookies | Object | URLSearchParams}** `Default: true` The
126
+ * `cookies` **{boolean | Array<[k, v]> | Array<string\> | Cookies | Object | URLSearchParams}** `Default: true` The
127
127
  cookies to add to
128
128
  the request
129
129
  * `cookiesTTL` **{boolean}** `Default: false` Controls enablement of TTL for the cookies cache
package/dist/preflight.js CHANGED
@@ -45,6 +45,8 @@ const preflight = options => {
45
45
  cookie = new _cookies.Cookies(cookies, options);
46
46
  _cookies.Cookies.jar.set(url.origin, cookie);
47
47
  }
48
+ } else {
49
+ cookie = _cookies.Cookies.jar.get(url.origin);
48
50
  }
49
51
  options.headers = {
50
52
  ...(cookie && {
package/package.json CHANGED
@@ -31,6 +31,7 @@
31
31
  ],
32
32
  "homepage": "https://github.com/bricss/rekwest#readme",
33
33
  "keywords": [
34
+ "alpn",
34
35
  "backoff",
35
36
  "brotli",
36
37
  "cookie",
@@ -48,7 +49,8 @@
48
49
  "redirect",
49
50
  "retry",
50
51
  "retry-after",
51
- "stream"
52
+ "stream",
53
+ "upload"
52
54
  ],
53
55
  "license": "MIT",
54
56
  "name": "rekwest",
@@ -67,5 +69,5 @@
67
69
  "test:bail": "mocha --bail",
68
70
  "test:cover": "c8 --include=src --reporter=lcov --reporter=text npm test"
69
71
  },
70
- "version": "4.5.1"
72
+ "version": "4.5.3"
71
73
  }
package/src/preflight.mjs CHANGED
@@ -49,6 +49,8 @@ export const preflight = (options) => {
49
49
  cookie = new Cookies(cookies, options);
50
50
  Cookies.jar.set(url.origin, cookie);
51
51
  }
52
+ } else {
53
+ cookie = Cookies.jar.get(url.origin);
52
54
  }
53
55
 
54
56
  options.headers = {