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

axios-cookiejar-support

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

axios-cookiejar-support - npm Package Compare versions

Comparing version 5.0.1 to 5.0.2

10

dist/index.js

@@ -10,8 +10,10 @@ "use strict";

}
// @ts-expect-error ...
// @ts-expect-error -- Legacy config allows to assign boolean as jar.
if (config.jar === true) {
throw new Error('config.jar does not accept boolean since axios-cookiejar-support@2.0.0.');
}
if ((config.httpAgent != null && config.httpAgent[AGENT_CREATED_BY_AXIOS_COOKIEJAR_SUPPORT] !== true) ||
(config.httpsAgent != null && config.httpsAgent[AGENT_CREATED_BY_AXIOS_COOKIEJAR_SUPPORT] !== true)) {
if ((config.httpAgent != null &&
config.httpAgent[AGENT_CREATED_BY_AXIOS_COOKIEJAR_SUPPORT] !== true) ||
(config.httpsAgent != null &&
config.httpsAgent[AGENT_CREATED_BY_AXIOS_COOKIEJAR_SUPPORT] !== true)) {
throw new Error('axios-cookiejar-support does not support for use with other http(s).Agent.');

@@ -42,3 +44,3 @@ }

if ('create' in axios) {
const create = axios.create;
const create = axios.create.bind(axios);
axios.create = (...args) => {

@@ -45,0 +47,0 @@ const instance = create.apply(axios, args);

4

noop.js
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
/**
* @param {import('axios').AxiosInstance} axios
* @returns {import('axios').AxiosInstance}
*/
function noop(axios) {

@@ -5,0 +9,0 @@ return axios;

{
"name": "axios-cookiejar-support",
"version": "5.0.1",
"version": "5.0.2",
"description": "Add tough-cookie support to axios.",

@@ -33,8 +33,9 @@ "keywords": [

"prebuild": "rimraf dist",
"build": "tsc",
"build": "tsc --project tsconfig.build.json",
"format": "pnpm run --sequential \"/^format:.*/\"",
"format:eslint": "eslint --fix --ext .js,.ts,.mjs,.mts .",
"format:eslint": "eslint --fix .",
"format:prettier": "prettier --write .",
"prelint": "pnpm run build",
"lint": "pnpm run \"/^lint:.*/\"",
"lint:eslint": "eslint --ext .js,.ts,.mjs,.mts .",
"lint:eslint": "eslint .",
"lint:prettier": "prettier --check .",

@@ -46,8 +47,8 @@ "lint:tsc": "tsc --noEmit",

"dependencies": {
"http-cookie-agent": "^6.0.3"
"http-cookie-agent": "^6.0.5"
},
"devDependencies": {
"@3846masa/configs": "github:3846masa/configs#fedac295a68699446f717a986911307401249924",
"@babel/plugin-proposal-explicit-resource-management": "7.24.1",
"@babel/preset-env": "7.24.4",
"@3846masa/configs": "github:3846masa/configs#2803a8a67c8207078cf40c97468f60a51a70d5c0",
"@babel/plugin-proposal-explicit-resource-management": "7.24.5",
"@babel/preset-env": "7.24.5",
"@babel/preset-typescript": "7.24.1",

@@ -58,3 +59,4 @@ "@jest/globals": "29.7.0",

"@semantic-release/git": "10.0.1",
"@types/node": "18.19.30",
"@types/eslint": "8.56.10",
"@types/node": "18.19.31",
"@types/tough-cookie": "4.0.5",

@@ -67,4 +69,4 @@ "axios": "1.6.8",

"semantic-release": "19.0.5",
"tough-cookie": "4.1.3",
"typescript": "5.4.3"
"tough-cookie": "4.1.4",
"typescript": "5.4.5"
},

@@ -75,3 +77,3 @@ "peerDependencies": {

},
"packageManager": "pnpm@8.15.6",
"packageManager": "pnpm@9.0.6",
"engines": {

@@ -78,0 +80,0 @@ "node": ">=18.0.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