avo 3.2.11-alpha.0 → 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 (3) hide show
  1. package/README.md +1 -1
  2. package/cli.js +11 -6
  3. package/package.json +3 -3
package/README.md CHANGED
@@ -49,4 +49,4 @@ For more documentation, visit [https://www.avo.app/docs/implementation/cli](http
49
49
  1. Verify that the changes in the _Unreleased_ section in CHANGELOG.md are accurate, create a new heading with the correct semantic version then move the content from the _Unreleased_ section there
50
50
  2. Update the semantic version in `package.json` to match the one you just created in the changelog
51
51
  3. Commit with the message `Release <version>` and push the changes
52
- 4. Publish the package to npm (you'll need to be a maintainer of the avo project in npm): `npm publish`
52
+ 4. Publish the package to npm (you'll need to be a maintainer of the avo project in npm): `npm publish`. To publish a pre-release, use `npm publish --tag next` (or `--tag beta`)
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,12 +1,12 @@
1
1
  {
2
2
  "name": "avo",
3
- "version": "3.2.11-alpha.0",
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)",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "https://github.com/avohq/avo.git"
9
+ "url": "git+https://github.com/avohq/avo.git"
10
10
  },
11
11
  "license": "MIT",
12
12
  "homepage": "https://github.com/avohq/avo",
@@ -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
  }