axios-cordova-adapter
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -25,3 +25,2 @@ "use strict"; | ||
let headers = Object.assign(config.auth ? cordova.plugin.http.getBasicAuthHeader(config.auth.username, config.auth.password) : {}, config.headers); | ||
console.log(config.data); | ||
if (config.data instanceof URLSearchParams) { | ||
@@ -71,4 +70,6 @@ serializer = 'utf8'; | ||
case 'patch': | ||
options.data = data; | ||
options.serializer = serializer; | ||
if (data) | ||
options.data = data; | ||
if (serializer) | ||
options.serializer = serializer; | ||
break; | ||
@@ -75,0 +76,0 @@ case 'get': |
{ | ||
"name": "axios-cordova-adapter", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "An axios adapter using cordova-plugin-advanced-http", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
8489
129