avo 3.2.8 → 3.2.9-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli.js +4 -1
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -176,7 +176,10 @@ function _request(options) {
|
|
|
176
176
|
if (response.statusCode >= 400) {
|
|
177
177
|
return reject(responseToError(response));
|
|
178
178
|
}
|
|
179
|
-
|
|
179
|
+
if (response && response.body) {
|
|
180
|
+
return resolve(JSON.parse(response.body));
|
|
181
|
+
}
|
|
182
|
+
return reject(responseToError(response));
|
|
180
183
|
})
|
|
181
184
|
.catch((err) => {
|
|
182
185
|
report.error(`${responseToError(err.response)}\n`);
|