avo 3.2.8 → 3.2.9-beta.0

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.
Files changed (2) hide show
  1. package/cli.js +6 -1
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -176,7 +176,12 @@ function _request(options) {
176
176
  if (response.statusCode >= 400) {
177
177
  return reject(responseToError(response));
178
178
  }
179
- return resolve(JSON.parse(response.body));
179
+ else if (response) {
180
+ return resolve(JSON.parse(response.body));
181
+ }
182
+ else {
183
+ return reject(responseToError(response));
184
+ }
180
185
  })
181
186
  .catch((err) => {
182
187
  report.error(`${responseToError(err.response)}\n`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "avo",
3
- "version": "3.2.8",
3
+ "version": "3.2.9-beta.0",
4
4
  "type": "module",
5
5
  "description": "The command-line interface for Avo",
6
6
  "author": "Avo (https://www.avo.app)",