15 Commits

Author SHA1 Message Date
Etienne Prothon
389d5fd426 return the last result 2020-06-15 14:48:22 +02:00
Etienne Prothon
4406b16455 transmit cookies on redirect 2020-06-15 14:18:58 +02:00
ba2f52ae08
fix TypeError when passing a CookieJar without the "r" flag to fetch
bump patch version to 1.3.5
2020-02-14 10:03:30 +01:00
425067e759
cookie-jar,cookie,index: consistent spacing
errors: fix paramError function
2019-11-25 23:14:34 +01:00
2271c2e055
index: export CookieParseError
readme: add short description of CookieParseError
error: add semicolons
2019-11-25 18:48:49 +01:00
5c6ccbd3e8
improve performance by using a Set instead of array filtering in fetch and CookieJar.cookiesValidForRequest()
use fsPromises API instead of the synchronous one
move cookie loading to seperate async CookieJar.load() function
make cookie saving async (CookieJar.save())
add helper function for creating type errors to error.mjs
move CookieParseError to error.mjs
change readme according to changes
bump minor version to 1.3.0
this version requires at least nodejs 11.14.0
2019-11-25 06:30:12 +01:00
d9e3f4154a
fix import statements for nodejs 12.x.x ES module specifier resolution
exclude unnecessary files from tarball
2019-09-07 21:35:09 +02:00
f902fa6379
add CookieParseError class
catch CookieParseErrors when adding to jar, log a warning
add option to delete session cookies to CookieJar.deleteExpired()
cookie path may be uri encoded. decode it when comparing
check cookie domain attribute validity when parsing
minor version bump
2019-08-15 13:32:49 +02:00
9f498864bb
bugfixes 2019-08-14 23:35:55 +02:00
f613a8c32e
filter cookies with same names before sending
duplicate names may occur if we store cookies with the same name for example.com with subdomains and for sub.example.com
2019-08-14 00:38:11 +02:00
14a874f208
generators are awesome
rewrite internal cookie storage
fix incorrect splitting of key value pairs when parsing serialized cookies
minor version bump
2019-08-13 22:19:25 +02:00
83a640e9fb
allow cookieJars to be null in fetch wrapper
version bump
2019-07-22 13:52:54 +02:00
d2e88e3b1a
add a proper documentation
featuring an actually working usage example!

also: change exports in index.mjs for easier import
2019-06-16 00:06:28 +02:00
f6c3ba8a61
fixes to get it working 2019-01-14 04:30:38 +01:00
d92f8d3564
initial commit 2019-01-13 23:30:17 +01:00