@3846masa/axios-cookiejar-support
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -55,2 +55,3 @@ 'use strict'; | ||
config.maxRedirects = local.redirectCount; | ||
return instance.request(config); | ||
@@ -57,0 +58,0 @@ }) |
{ | ||
"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, { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27194
550
+ Addedaxios@0.16.2(transitive)
+ Addedfollow-redirects@1.15.9(transitive)
+ Addedis-buffer@1.1.6(transitive)
+ Addedpunycode@1.4.1(transitive)
+ Addedtough-cookie@2.3.2(transitive)
- Removedaxios@0.14.0(transitive)
- Removeddebug@2.6.9(transitive)
- Removedfollow-redirects@0.0.7(transitive)
- Removedms@2.0.0(transitive)
- Removedstream-consume@0.1.1(transitive)
- Removedtough-cookie@2.3.1(transitive)
Updatedtough-cookie@2.3.2