Apparently tough-cookie changed the way the findCookies method works slightly. It now allows allowSpecialUseDomain to be passed, which messes up file-cookie-store when you try to use it since it expects the third argument to be a callback function, causing it to throw an error on any use.
I've actually just copied this new code from tough-cookie's own memstore.js file. I don't know if this robustly adds tough-cookie 4.0.0 support since I haven't tested it, but I hope it's a start at least.
Apparently tough-cookie changed the way the
findCookies
method works slightly. It now allowsallowSpecialUseDomain
to be passed, which messes up file-cookie-store when you try to use it since it expects the third argument to be a callback function, causing it to throw an error on any use.I've actually just copied this new code from tough-cookie's own memstore.js file. I don't know if this robustly adds tough-cookie 4.0.0 support since I haven't tested it, but I hope it's a start at least.