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 0.0.3 to 0.0.4

1

lib/response-interceptor-wrapper.js

@@ -55,2 +55,3 @@ 'use strict';

config.maxRedirects = local.redirectCount;
return instance.request(config);

@@ -57,0 +58,0 @@ })

22

package.json
{
"name": "@3846masa/axios-cookiejar-support",
"description": "Add tough-cookie support to axios.",
"version": "0.0.3",
"version": "0.0.4",
"author": "3846masa",

@@ -13,17 +13,17 @@ "browser": {

"dependencies": {
"tough-cookie": "2.3.1"
"tough-cookie": "2.3.2"
},
"devDependencies": {
"axios": "0.14.0",
"axios": "0.16.0",
"cookie": "0.3.1",
"decache": "4.1.0",
"eslint": "3.4.0",
"eslint-config-standard": "6.0.0",
"eslint-plugin-promise": "2.0.1",
"eslint-plugin-standard": "2.0.0",
"eslint": "3.19.0",
"eslint-config-standard": "7.1.0",
"eslint-plugin-promise": "3.5.0",
"eslint-plugin-standard": "2.1.1",
"greenkeeper-postpublish": "1.0.1",
"intelli-espower-loader": "1.0.1",
"mocha": "3.0.2",
"nock": "8.0.0",
"power-assert": "1.4.1"
"mocha": "3.2.0",
"nock": "9.0.11",
"power-assert": "1.4.2"
},

@@ -45,3 +45,3 @@ "directories": {

"peerDependencies": {
"axios": "^0.14.0"
"axios": "^0.16.0"
},

@@ -48,0 +48,0 @@ "repository": {

@@ -14,3 +14,3 @@ 'use strict';

axios = require('axios');
axios.defaults.validateStatus = null;
axios.defaults.validateStatus = () => true;
});

@@ -84,2 +84,18 @@

it('should redirect many times 30X response', (done) => {
nockHost.post('/').reply(302, null, {
'Location': 'http://example.com/redirect/01'
});
nockHost.get('/redirect/01').reply(302, null, {
'Location': 'http://example.com/redirect/02'
});
nockHost.get('/redirect/02').reply(200);
axios.post('http://example.com')
.then((res) => {
assert.strictEqual(res.status, 200);
})
.then(done).catch(done);
});
it('should redirect 307 response', (done) => {

@@ -86,0 +102,0 @@ nockHost.post('/').reply(307, null, {

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