axios-cookiejar-support
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -38,7 +38,11 @@ "use strict"; | ||
cookies.forEach(function (cookie) { | ||
setCookiePromiseList.push(setCookie(cookie, config.url)); | ||
setCookiePromiseList.push(setCookie(cookie, config.url, { | ||
ignoreError: config.ignoreCookieErrors | ||
})); | ||
}); | ||
} else { | ||
const cookie = headers['set-cookie']; | ||
setCookiePromiseList.push(setCookie(cookie, config.url)); | ||
setCookiePromiseList.push(setCookie(cookie, config.url, { | ||
ignoreError: config.ignoreCookieErrors | ||
})); | ||
} | ||
@@ -45,0 +49,0 @@ |
@@ -14,3 +14,3 @@ { | ||
}, | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"main": "./lib/index", | ||
@@ -42,5 +42,5 @@ "browser": { | ||
"devDependencies": { | ||
"@babel/cli": "7.8.4", | ||
"@babel/core": "7.9.0", | ||
"@babel/plugin-transform-modules-commonjs": "7.9.0", | ||
"@babel/cli": "7.12.1", | ||
"@babel/core": "7.12.3", | ||
"@babel/plugin-transform-modules-commonjs": "7.12.1", | ||
"@types/tough-cookie": "^4.0.0", | ||
@@ -51,7 +51,7 @@ "axios--0.16.x": "./axios/0.16.x", | ||
"axios--0.19.x": "./axios/0.19.x", | ||
"cookie": "^0.4.0", | ||
"decache": "^4.5.1", | ||
"cookie": "^0.4.1", | ||
"decache": "^4.6.0", | ||
"intelli-espower-loader": "^1.0.1", | ||
"mocha": "^7.1.1", | ||
"nock": "^12.0.3", | ||
"mocha": "^8.2.0", | ||
"nock": "^13.0.4", | ||
"power-assert": "^1.6.1", | ||
@@ -58,0 +58,0 @@ "rimraf": "3.0.2", |
@@ -104,2 +104,6 @@ # axios-cookiejar-support | ||
// Silently ignore things like parse cookie errors and invalid domains. | ||
// See also https://github.com/salesforce/tough-cookie | ||
ignoreCookieErrors: false // default | ||
// **IMPORTANT** | ||
@@ -106,0 +110,0 @@ // If false, axios DONOT send cookies from cookiejar. |
Sorry, the diff of this file is not supported yet
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
24427
467
144