ask-sdk-model
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -143,3 +143,8 @@ "use strict"; | ||
if (BaseServiceClient.isCodeSuccessful(response.statusCode)) { | ||
return [2 /*return*/, response.body]; | ||
try { | ||
return [2 /*return*/, JSON.parse(response.body)]; | ||
} | ||
catch (err) { | ||
throw new SyntaxError("Failed trying to parse the response body: " + response.body); | ||
} | ||
} | ||
@@ -146,0 +151,0 @@ e = new Error('Unknown error'); |
{ | ||
"name": "ask-sdk-model", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "ASK SDK models", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
117080
2294