@ffflorian/api-client
Advanced tools
Comparing version 1.0.1 to 1.0.3
@@ -6,2 +6,18 @@ # Change Log | ||
## [1.0.3](https://github.com/ffflorian/api-clients/tree/master/packages/api-client/compare/@ffflorian/api-client@1.0.2...@ffflorian/api-client@1.0.3) (2019-12-18) | ||
**Note:** Version bump only for package @ffflorian/api-client | ||
## [1.0.2](https://github.com/ffflorian/api-clients/tree/master/packages/api-client/compare/@ffflorian/api-client@1.0.1...@ffflorian/api-client@1.0.2) (2019-09-11) | ||
**Note:** Version bump only for package @ffflorian/api-client | ||
## [1.0.1](https://github.com/ffflorian/api-clients/tree/master/packages/api-client/compare/@ffflorian/api-client@1.0.0...@ffflorian/api-client@1.0.1) (2019-09-01) | ||
@@ -8,0 +24,0 @@ |
@@ -45,4 +45,5 @@ "use strict"; | ||
function ExceptionMapper(error) { | ||
if (error.response && error.response.status) { | ||
const serverMessage = error.response.data ? error.response.data.message : undefined; | ||
var _a, _b; | ||
if ((_a = error.response) === null || _a === void 0 ? void 0 : _a.status) { | ||
const serverMessage = ((_b = error.response.data) === null || _b === void 0 ? void 0 : _b.message) || undefined; | ||
switch (error.response.status) { | ||
@@ -49,0 +50,0 @@ case HTTP_STATUS.FORBIDDEN: |
@@ -138,6 +138,3 @@ "use strict"; | ||
} | ||
if (typeof options !== 'undefined') { | ||
return Object.assign(Object.assign({}, baseConfig), (!!options && options)); | ||
} | ||
return baseConfig; | ||
return Object.assign(Object.assign({}, baseConfig), options); | ||
}); | ||
@@ -144,0 +141,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"axios": "0.19.0", | ||
"http-status-codes": "1.3.2" | ||
"http-status-codes": "1.4.0" | ||
}, | ||
@@ -12,4 +12,4 @@ "description": "A generic API client", | ||
"rimraf": "3.0.0", | ||
"typedoc": "0.15.0", | ||
"typescript": "3.6.2" | ||
"typedoc": "0.15.5", | ||
"typescript": "3.7.3" | ||
}, | ||
@@ -26,3 +26,3 @@ "engines": { | ||
], | ||
"license": "MIT", | ||
"license": "GPL-3.0", | ||
"main": "dist/index.js", | ||
@@ -38,4 +38,4 @@ "name": "@ffflorian/api-client", | ||
}, | ||
"version": "1.0.1", | ||
"gitHead": "e39d15d0699fc660a7748c09462005cf997ab6b2" | ||
"version": "1.0.3", | ||
"gitHead": "8bc5d29129d9a06df90b76fedf939346478612eb" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
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
62195
2
70
318
+ Addedhttp-status-codes@1.4.0(transitive)
- Removedhttp-status-codes@1.3.2(transitive)
Updatedhttp-status-codes@1.4.0