@applitools/eyes-sdk-core
Advanced tools
Comparing version 5.15.1 to 5.16.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [5.16.0](https://github.com/applitools/eyes.sdk.javascript1/compare/@applitools/eyes-sdk-core@5.15.1...@applitools/eyes-sdk-core@5.16.0) (2019-09-02) | ||
### Features | ||
* **eyes-sdk-core:** added response body for error requests ([8fd246f](https://github.com/applitools/eyes.sdk.javascript1/commit/8fd246f)) | ||
## [5.15.1](https://github.com/applitools/eyes.sdk.javascript1/compare/@applitools/eyes-sdk-core@5.15.0...@applitools/eyes-sdk-core@5.15.1) (2019-08-27) | ||
@@ -8,0 +19,0 @@ |
@@ -77,3 +77,3 @@ 'use strict'; | ||
// eslint-disable-next-line max-len | ||
self._logger.verbose(`ServerConnector.${name} will now post call to ${options.url} with params ${JSON.stringify(options.params)}`); | ||
self._logger.verbose(`ServerConnector.${name} will now call to ${options.url} with params ${JSON.stringify(options.params)}`); | ||
try { | ||
@@ -92,3 +92,4 @@ const response = await axios(options); | ||
// eslint-disable-next-line max-len | ||
self._logger.log(`ServerConnector.${name} - post failed on ${options.url}: ${reasonMsg} with params ${JSON.stringify(options.params).slice(0, 100)}`); | ||
self._logger.log(`ServerConnector.${name} - ${options.method} failed on ${options.url}: ${reasonMsg} with params ${JSON.stringify(options.params).slice(0, 100)} body:\n${err.response && err.response.data}`); | ||
self._logger.verbose(`ServerConnector.${name} - failure body:\n${err.response && err.response.data}`); | ||
@@ -95,0 +96,0 @@ if (retry > 0 && ((err.response && HTTP_FAILED_CODES.includes(err.response.status)) || REQUEST_FAILED_CODES.includes(err.code))) { |
{ | ||
"name": "@applitools/eyes-sdk-core", | ||
"version": "5.15.1", | ||
"version": "5.16.0", | ||
"description": "The core components of Eyes JavaScript SDK", | ||
@@ -34,3 +34,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@applitools/eyes-common": "^3.9.1", | ||
"@applitools/eyes-common": "^3.9.2", | ||
"axios": "^0.19.0", | ||
@@ -50,3 +50,3 @@ "es6-promise-pool": "^2.5.0" | ||
}, | ||
"gitHead": "3705a0afd8e0f4b9d10bbc5adde4a2585eb3c2c7" | ||
"gitHead": "7c27534890f398e9555e81e761d2a26c2f2404da" | ||
} |
376324
10704