Skip to content
This repository was archived by the owner on Jan 20, 2023. It is now read-only.

Commit 79904ea

Browse files
renovate[bot]renovate-botUziTech
authored
chore(deps): update dependency xo to v0.45.0 (#76)
Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Tony Brix <[email protected]>
1 parent 1f00512 commit 79904ea

File tree

12 files changed

+23700
-3800
lines changed

12 files changed

+23700
-3800
lines changed

index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/* eslint require-atomic-updates: off */
22

33
const AggregateError = require('aggregate-error');
4-
const getPkg = require('./lib/get-pkg');
5-
const verifyApm = require('./lib/verify');
6-
const prepareApm = require('./lib/prepare');
7-
const publishApm = require('./lib/publish');
4+
const getPkg = require('./lib/get-pkg.js');
5+
const verifyApm = require('./lib/verify.js');
6+
const prepareApm = require('./lib/prepare.js');
7+
const publishApm = require('./lib/publish.js');
88

99
let verified;
1010
let prepared;

lib/definitions/errors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const pkg = require('../../package.json');
22

33
const [homepage] = pkg.homepage.split('#');
4-
const linkify = file => `${homepage}/blob/master/${file}`;
4+
const linkify = (file) => `${homepage}/blob/master/${file}`;
55

66
module.exports = {
77
ENOAPMTOKEN: () => ({

lib/get-error.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const SemanticReleaseError = require('@semantic-release/error');
2-
const ERROR_DEFINITIONS = require('./definitions/errors');
2+
const ERROR_DEFINITIONS = require('./definitions/errors.js');
33

44
module.exports = (code, ctx = {}) => {
55
const {message, details} = ERROR_DEFINITIONS[code](ctx);

lib/get-pkg.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const readPkg = require('read-pkg');
22
const AggregateError = require('aggregate-error');
3-
const getError = require('./get-error');
3+
const getError = require('./get-error.js');
44

55
module.exports = async (pluginConfig, {cwd}) => {
66
try {
@@ -12,10 +12,7 @@ module.exports = async (pluginConfig, {cwd}) => {
1212

1313
return pkg;
1414
} catch (error) {
15-
if (error.code === 'ENOENT') {
16-
throw new AggregateError([getError('ENOPKG')]);
17-
} else {
18-
throw new AggregateError([error]);
19-
}
15+
const error_ = error.code === 'ENOENT' ? new AggregateError([getError('ENOPKG')]) : new AggregateError([error]);
16+
throw error_;
2017
}
2118
};

lib/verify.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const execa = require('execa');
2-
const resolveConfig = require('./resolve-config');
3-
const getError = require('./get-error');
2+
const resolveConfig = require('./resolve-config.js');
3+
const getError = require('./get-error.js');
44

55
module.exports = async (pluginConfig, context) => {
66
const {cwd, env} = context;

0 commit comments

Comments
 (0)