rest-client-sdk
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -5,4 +5,8 @@ # Changelog | ||
## [1.3.1] - 2017-12-04 | ||
### Changed | ||
* add error message to AccessDeniedError in PasswordGenerator's refreshToken | ||
## [1.3.0] - 2017-11-29 | ||
@@ -9,0 +13,0 @@ |
{ | ||
"name": "rest-client-sdk", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "Rest Client SDK for API", | ||
@@ -39,3 +39,3 @@ "main": "dist/index.js", | ||
"husky": "^0.14.3", | ||
"lint-staged": "^5.0.0", | ||
"lint-staged": "^6.0.0", | ||
"mocha": "^4.0.1", | ||
@@ -42,0 +42,0 @@ "prettier": "^1.8.2", |
@@ -6,3 +6,7 @@ /* global fetch */ | ||
import { memoizePromise } from '../decorator'; | ||
import { AccessDeniedError, handleBadResponse, BadRequestError } from '../Error'; | ||
import { | ||
AccessDeniedError, | ||
handleBadResponse, | ||
BadRequestError, | ||
} from '../Error'; | ||
@@ -62,3 +66,3 @@ const ERROR_CONFIG_EMPTY = 'TokenGenerator config must be set'; | ||
if (err instanceof BadRequestError) { | ||
throw new AccessDeniedError(null, err.baseResponse); | ||
throw new AccessDeniedError(err.message, err.baseResponse); | ||
} | ||
@@ -65,0 +69,0 @@ throw err; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
742885
8047