avo 3.2.9-beta.0 → 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 +2 -4
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -176,12 +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
180
|
return resolve(JSON.parse(response.body));
|
|
181
181
|
}
|
|
182
|
-
|
|
183
|
-
return reject(responseToError(response));
|
|
184
|
-
}
|
|
182
|
+
return reject(responseToError(response));
|
|
185
183
|
})
|
|
186
184
|
.catch((err) => {
|
|
187
185
|
report.error(`${responseToError(err.response)}\n`);
|