avo 3.2.11 → 3.2.12

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 +11 -6
  2. package/package.json +2 -2
package/cli.js CHANGED
@@ -182,11 +182,16 @@ function _request(options) {
182
182
  return resolve(JSON.parse(response.body));
183
183
  })
184
184
  .catch((err) => {
185
- report.error(`${responseToError(err.response, err)}\n`);
186
- reject(new AvoError(`Server Error. ${err.message}`, {
187
- original: err,
188
- exit: 2,
189
- }));
185
+ const responseError = responseToError(err.response, err);
186
+ if (responseError != null) {
187
+ reject(responseError);
188
+ }
189
+ else {
190
+ reject(new AvoError(`Server Error. ${err.message}`, {
191
+ original: err,
192
+ exit: 2,
193
+ }));
194
+ }
190
195
  });
191
196
  });
192
197
  }
@@ -973,7 +978,7 @@ function pull(sourceFilter, json) {
973
978
  ? [json.sources.find((source) => matchesSource(source, sourceFilter))]
974
979
  : json.sources;
975
980
  const sourceNames = sources.map((source) => source.name);
976
- wait(`Pulling ${sourceNames.join(', ')}`);
981
+ wait(`Pulling ${sourceNames.join(', ')}\n`);
977
982
  return getMasterStatus(json)
978
983
  .then((masterStatus) => {
979
984
  if (masterStatus === BranchStatus.BRANCH_NOT_UP_TO_DATE) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "avo",
3
- "version": "3.2.11",
3
+ "version": "3.2.12",
4
4
  "type": "module",
5
5
  "description": "The command-line interface for Avo",
6
6
  "author": "Avo (https://www.avo.app)",
@@ -64,7 +64,7 @@
64
64
  "eslint-config-airbnb-base": "^15.0.0",
65
65
  "eslint-config-prettier": "^9.0.0",
66
66
  "eslint-plugin-import": "^2.25.2",
67
- "prettier": "3.2.5",
67
+ "prettier": "3.3.3",
68
68
  "typescript": "^5.0.2"
69
69
  }
70
70
  }