@api-encrypt/sdk
Advanced tools
Comparing version 0.0.13 to 0.0.14
{ | ||
"name": "@api-encrypt/sdk", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"type": "commonjs", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
@@ -93,6 +93,6 @@ "use strict"; | ||
}); | ||
const { data: responseDataString, message: responseMessage } = yield response.json(); | ||
if (response.status !== 200) { | ||
throw Error(response.statusText); | ||
throw Error(response.statusText || responseMessage); | ||
} | ||
const { data: responseDataString, message: responseMessage } = yield response.json(); | ||
const responseDecoded = atob(responseDataString); | ||
@@ -99,0 +99,0 @@ const responseJson = JSON.parse(responseDecoded); |
Sorry, the diff of this file is not supported yet
12704