http-cookie-agent
Advanced tools
Comparing version 5.0.3 to 5.0.4
@@ -19,7 +19,9 @@ "use strict"; | ||
class CookieAgent extends BaseAgentClass { | ||
constructor({ | ||
cookies: cookieOptions, | ||
...options | ||
} = {}, ...rest) { | ||
super(options, ...rest); | ||
constructor(...params) { | ||
const { | ||
cookies: cookieOptions | ||
} = params.find(opt => { | ||
return opt != null && typeof opt === 'object' && 'cookies' in opt; | ||
}) ?? {}; | ||
super(...params); | ||
if (cookieOptions) { | ||
@@ -26,0 +28,0 @@ (0, _validate_cookie_options.validateCookieOptions)(cookieOptions); |
{ | ||
"name": "http-cookie-agent", | ||
"version": "5.0.3", | ||
"version": "5.0.4", | ||
"description": "Allows cookies with every Node.js HTTP clients.", | ||
@@ -94,3 +94,3 @@ "keywords": [ | ||
"got": "12.6.1", | ||
"http-proxy-agent": "5.0.0", | ||
"http-proxy-agent": "7.0.0", | ||
"needle": "3.2.0", | ||
@@ -97,0 +97,0 @@ "node-fetch": "3.3.1", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32127
537