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

@3846masa/axios-cookiejar-support

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@3846masa/axios-cookiejar-support - npm Package Compare versions

Comparing version 3.0.0 to 4.0.0

2

dist/index.d.ts

@@ -1,2 +0,2 @@

import type { AxiosStatic, AxiosInstance } from 'axios';
import type { AxiosInstance, AxiosStatic } from 'axios';
import type { CookieJar } from 'tough-cookie';

@@ -3,0 +3,0 @@ declare module 'axios' {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.wrapper = void 0;
const http_cookie_agent_1 = require("http-cookie-agent");
const node_http_1 = require("http-cookie-agent/node:http");
function requestInterceptor(config) {

@@ -9,3 +9,3 @@ if (!config.jar) {

}
// @ts-expect-error
// @ts-expect-error ...
if (config.jar === true) {

@@ -17,4 +17,4 @@ throw new Error('config.jar does not accept boolean since axios-cookiejar-support@2.0.0.');

}
config.httpAgent = new http_cookie_agent_1.HttpCookieAgent({ jar: config.jar });
config.httpsAgent = new http_cookie_agent_1.HttpsCookieAgent({ jar: config.jar });
config.httpAgent = new node_http_1.HttpCookieAgent({ cookies: { jar: config.jar } });
config.httpsAgent = new node_http_1.HttpsCookieAgent({ cookies: { jar: config.jar } });
return config;

@@ -21,0 +21,0 @@ }

{
"name": "@3846masa/axios-cookiejar-support",
"version": "3.0.0",
"version": "4.0.0",
"description": "Add tough-cookie support to axios.",
"license": "MIT",
"author": "3846masa <3846masahiro+git@gmail.com>",
"keywords": [
"axios",
"cookie",
"cookiejar",
"cookies",
"tough-cookie"
],
"homepage": "https://github.com/3846masa/axios-cookiejar-support#readme",
"bugs": {
"url": "https://github.com/3846masa/axios-cookiejar-support/issues"
},
"repository": {

@@ -12,7 +20,7 @@ "type": "git",

},
"bugs": {
"url": "https://github.com/3846masa/axios-cookiejar-support/issues"
},
"license": "MIT",
"author": "3846masa <3846masahiro+git@gmail.com>",
"main": "dist/index.js",
"browser": "noop.js",
"types": "dist/index.d.ts",
"files": [

@@ -26,2 +34,9 @@ "dist",

"build": "tsc",
"format": "npm-run-all format:*",
"format:eslint": "eslint --fix --ext .js,.ts,.mjs,.mts .",
"format:prettier": "prettier --write .",
"lint": "npm-run-all lint:*",
"lint:eslint": "eslint --ext .js,.ts,.mjs,.mts .",
"lint:prettier": "prettier --check .",
"lint:tsc": "tsc --noEmit",
"semantic-release": "semantic-release",

@@ -31,15 +46,22 @@ "pretest": "npm run build",

},
"types": "dist/index.d.ts",
"ava": {
"files": [
"**/__tests__/*.spec.ts"
],
"typescript": {
"rewritePaths": {
"src/": "dist/"
},
"compile": false
}
},
"dependencies": {
"http-cookie-agent": "^2.0.0"
"http-cookie-agent": "^3.0.0"
},
"peerDependencies": {
"axios": ">=0.20.0",
"tough-cookie": ">=4.0.0"
},
"devDependencies": {
"@3846masa/configs": "github:3846masa/configs#a45bbd3e20a59f0c83aef18648144d8f04884f9b",
"@ava/typescript": "3.0.1",
"@semantic-release/changelog": "5.0.1",
"@semantic-release/exec": "5.0.0",
"@semantic-release/git": "9.0.1",
"@semantic-release/changelog": "6.0.1",
"@semantic-release/exec": "6.0.3",
"@semantic-release/git": "10.0.1",
"@types/node": "14.18.16",

@@ -49,13 +71,11 @@ "@types/tough-cookie": "4.0.2",

"axios": "0.27.2",
"semantic-release": "17.4.7",
"npm-run-all": "4.1.5",
"semantic-release": "19.0.2",
"tough-cookie": "4.0.0",
"typescript": "4.6.4"
},
"keywords": [
"axios",
"cookie",
"cookiejar",
"cookies",
"tough-cookie"
],
"peerDependencies": {
"axios": ">=0.20.0",
"tough-cookie": ">=4.0.0"
},
"engines": {

@@ -66,14 +86,3 @@ "node": ">=14.18.0 <15.0.0 || >=16.0.0"

"access": "public"
},
"ava": {
"files": [
"**/__tests__/*.spec.ts"
],
"typescript": {
"rewritePaths": {
"src/": "dist/"
},
"compile": false
}
}
}
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