Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

http-cookie-agent

Package Overview
Dependencies
Maintainers
1
Versions
27
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 4.0.1 to 4.0.2

dist/types/proxy.d.js

37

package.json
{
"name": "http-cookie-agent",
"version": "4.0.1",
"version": "4.0.2",
"description": "Allows cookies with every Node.js HTTP clients.",

@@ -69,7 +69,7 @@ "keywords": [

"devDependencies": {
"@3846masa/configs": "github:3846masa/configs#3dc2811f758895f36ab07ffa6bfee681f3f31807",
"@babel/cli": "^7.17.10",
"@babel/core": "7.17.10",
"@babel/preset-env": "^7.17.10",
"@babel/preset-typescript": "^7.17.12",
"@3846masa/configs": "github:3846masa/configs#8ae5f7cc4740f9fc2f9d773dcb91ec920a1e7fe2",
"@babel/cli": "^7.18.9",
"@babel/core": "7.18.9",
"@babel/preset-env": "^7.18.9",
"@babel/preset-typescript": "^7.18.6",
"@hapi/wreck": "18.0.0",

@@ -79,29 +79,28 @@ "@semantic-release/changelog": "6.0.1",

"@types/deasync": "0.1.2",
"@types/http-proxy": "1.17.9",
"@types/needle": "2.5.3",
"@types/node": "14.18.18",
"@types/node": "14.18.22",
"@types/request": "2.48.8",
"@types/semver": "^7.3.9",
"@types/semver": "^7.3.10",
"@types/superagent": "4.1.15",
"@types/tough-cookie": "4.0.2",
"agentkeepalive": "4.2.1",
"ava": "4.2.0",
"ava": "4.3.1",
"axios": "0.27.2",
"deasync": "0.1.26",
"got": "12.0.4",
"http-proxy": "1.18.1",
"deasync": "0.1.27",
"got": "12.1.0",
"http-proxy-agent": "5.0.0",
"needle": "3.1.0",
"node-fetch": "3.2.4",
"node-fetch": "3.2.9",
"npm-run-all": "4.1.5",
"phin": "3.6.1",
"proxy": "1.0.2",
"request": "2.88.2",
"rimraf": "^3.0.2",
"semantic-release": "19.0.2",
"semantic-release": "19.0.3",
"semver": "^7.3.7",
"superagent": "7.1.3",
"superagent": "8.0.0",
"tough-cookie": "4.0.0",
"typescript": "4.6.4",
"undici": "5.2.0",
"urllib": "2.38.0"
"typescript": "4.7.4",
"undici": "5.8.0",
"urllib": "3.0.4"
},

@@ -108,0 +107,0 @@ "peerDependencies": {

@@ -240,14 +240,11 @@ # HTTP Cookie Agent

```js
import urllib from 'urllib';
import { request, setGlobalDispatcher } from 'urllib';
import { CookieJar } from 'tough-cookie';
import { HttpCookieAgent, HttpsCookieAgent } from 'http-cookie-agent/http';
import { CookieClient } from 'http-cookie-agent/undici';
const jar = new CookieJar();
const agent = new CookieAgent({ cookies: { jar } });
setGlobalDispatcher(agent);
const client = urllib.create({
agent: new HttpCookieAgent({ cookies: { jar } }),
httpsAgent: new HttpsCookieAgent({ cookies: { jar } }),
});
await client.request('https://example.com');
await request('https://example.com');
```

@@ -254,0 +251,0 @@

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