Socket
Socket
Sign inDemoInstall

http-cookie-agent

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-cookie-agent - npm Package Compare versions

Comparing version 5.0.3 to 5.0.4

12

dist/http/create_cookie_agent.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc