aberlaas 1.25.0 → 1.26.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.
@@ -1,5 +1,6 @@
1
1
  const got = require('golgoth/got');
2
2
  const _ = require('golgoth/lodash');
3
+ const firostError = require('firost/error');
3
4
  module.exports = {
4
5
  /**
5
6
  * Returns the CircleCI token saved in ENV
@@ -28,8 +29,15 @@ module.exports = {
28
29
  responseType: 'json',
29
30
  };
30
31
  const gotOptions = _.merge({}, defaultGotOptions, userGotOptions);
31
- const response = await this.__got(apiUrl, gotOptions);
32
- return response.body;
32
+ try {
33
+ const response = await this.__got(apiUrl, gotOptions);
34
+ return response.body;
35
+ } catch (error) {
36
+ throw firostError(
37
+ 'ERROR_CIRCLECI',
38
+ "Can't connect to CircleCI API. Check that you have a valid CIRCLECI_TOKEN"
39
+ );
40
+ }
33
41
  },
34
42
  __got: got,
35
43
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "aberlaas",
3
3
  "description": "Scaffold your JavaScript projects with tests, lint and release scripts",
4
- "version": "1.25.0",
4
+ "version": "1.26.0",
5
5
  "repository": "pixelastic/aberlaas",
6
6
  "homepage": "https://projects.pixelastic.com/aberlaas/",
7
7
  "author": "Tim Carry (@pixelastic)",
@@ -28,33 +28,33 @@
28
28
  "aberlas": "bin/aberlaas"
29
29
  },
30
30
  "dependencies": {
31
- "@octokit/rest": "18.6.7",
32
- "ci-info": "3.2.0",
33
- "dedent": "0.7.0",
34
- "eslint": "7.31.0",
35
- "eslint-config-prettier": "8.3.0",
36
- "eslint-plugin-jest": "24.3.6",
37
- "eslint-plugin-jsdoc": "36.0.6",
31
+ "@octokit/rest": "18.12.0",
32
+ "ci-info": "3.9.0",
33
+ "dedent": "1.5.1",
34
+ "eslint": "7.32.0",
35
+ "eslint-config-prettier": "8.10.0",
36
+ "eslint-plugin-jest": "24.7.0",
37
+ "eslint-plugin-jsdoc": "46.9.0",
38
38
  "eslint-plugin-node": "11.1.0",
39
- "eslint-plugin-prettier": "3.4.0",
39
+ "eslint-plugin-prettier": "3.4.1",
40
40
  "find-up": "5.0.0",
41
- "firost": "2.16.2",
41
+ "firost": "2.17.0",
42
42
  "front-matter": "4.0.2",
43
- "golgoth": "2.0.0",
43
+ "golgoth": "2.1.0",
44
44
  "husky": "4.3.8",
45
- "jest": "27.0.6",
46
- "jest-environment-node": "27.0.6",
47
- "jest-expect-message": "1.0.2",
45
+ "jest": "27.5.1",
46
+ "jest-environment-node": "27.5.1",
47
+ "jest-expect-message": "1.1.3",
48
48
  "jest-extended": "0.11.5",
49
- "lint-staged": "11.0.1",
50
- "minimist": "1.2.5",
51
- "np": "7.5.0",
49
+ "lint-staged": "11.2.6",
50
+ "minimist": "1.2.8",
51
+ "np": "7.7.0",
52
52
  "parse-github-repo-url": "1.4.1",
53
- "prettier": "2.3.2",
53
+ "prettier": "2.8.8",
54
54
  "std-mocks": "1.0.1",
55
- "strip-ansi": "6.0.0",
55
+ "strip-ansi": "6.0.1",
56
56
  "stylelint": "13.13.1",
57
- "yaml-lint": "1.2.4"
57
+ "yaml-lint": "1.7.0"
58
58
  },
59
59
  "engines": {
60
60
  "node": ">=14.17.0"
@@ -69,5 +69,5 @@
69
69
  "test": "../scripts/lib/test",
70
70
  "test:watch": "../scripts/lib/test-watch"
71
71
  },
72
- "gitHead": "05fce8abf108493891319b5f93a31776f1f8c493"
72
+ "gitHead": "1865b914dd65de67f74a2652567957503001ab36"
73
73
  }