diff --git a/.editorconfig b/.editorconfig index e4f8114..903258f 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,16 +1,13 @@ - # EditorConfig helps developers define and maintain consistent # coding styles between different editors and IDEs # editorconfig.org root = true - [*] - # Change these settings to your own preference indent_style = space -indent_size = 4 +indent_size = 2 # We recommend you to keep these unchanged end_of_line = lf @@ -19,4 +16,4 @@ trim_trailing_whitespace = true insert_final_newline = true [*.md] -trim_trailing_whitespace = false \ No newline at end of file +trim_trailing_whitespace = false diff --git a/CHANGELOG.md b/CHANGELOG.md index 872f43d..bd6dd6d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## v1.9.0 + +- Feature #44: "getCookieString" method is exposed + ## v1.8.1 - Fixed #27: "uploadFile" method doesn't return data object on iOS (thanks Faisalali23 and laiyinjie) diff --git a/package.json b/package.json index d687bff..2808347 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cordova-plugin-advanced-http", - "version": "1.8.1", + "version": "1.9.0", "description": "Cordova / Phonegap plugin for communicating with HTTP servers using SSL pinning", "scripts": { "testandroid": "./scripts/build-test-app.sh --android --emulator && ./scripts/test-app.sh --android --emulator", diff --git a/www/advanced-http.js b/www/advanced-http.js index 37dfd84..65d5476 100644 --- a/www/advanced-http.js +++ b/www/advanced-http.js @@ -177,7 +177,10 @@ var http = { removeCookies: function (url, callback) { cookieHandler.removeCookies(url, callback); }, - setRequestTimeout: function(timeout) { + getCookieString: function (url) { + return cookieHandler.getCookieString(url); + }, + setRequestTimeout: function (timeout) { this.timeoutInSeconds = timeout; }, enableSSLPinning: function (enable, success, failure) { @@ -186,7 +189,7 @@ var http = { acceptAllCerts: function (allow, success, failure) { return exec(success, failure, 'CordovaHttpPlugin', 'acceptAllCerts', [allow]); }, - disableRedirect: function(disable, success, failure) { + disableRedirect: function (disable, success, failure) { return exec(success, failure, 'CordovaHttpPlugin', 'disableRedirect', [disable]); }, validateDomainName: function (validate, success, failure) {