Skip to content

Commit

Permalink
chore(deps): update dependency xo to v0.39.1 (#122)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
renovate[bot] authored Jul 25, 2022
1 parent 346b32e commit f8f920e
Show file tree
Hide file tree
Showing 10 changed files with 1,370 additions and 2,475 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ const {isNil} = require('lodash');
const parseJson = require('parse-json');
const debug = require('debug')('semantic-release:exec');
const SemanticReleaseError = require('@semantic-release/error');
const exec = require('./lib/exec');
const verifyConfig = require('./lib/verify-config');
const exec = require('./lib/exec.js');
const verifyConfig = require('./lib/verify-config.js');

async function verifyConditions(pluginConfig, context) {
if (!isNil(pluginConfig.verifyConditionsCmd) || !isNil(pluginConfig.cmd)) {
Expand Down
2 changes: 1 addition & 1 deletion lib/definitions/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const pkg = require('../../package.json');

const [homepage] = pkg.homepage.split('#');
const stringify = (object) =>
isString(object) ? object : inspect(object, {breakLength: Infinity, depth: 2, maxArrayLength: 5});
isString(object) ? object : inspect(object, {breakLength: Number.POSITIVE_INFINITY, depth: 2, maxArrayLength: 5});
const linkify = (file) => `${homepage}/blob/master/${file}`;

module.exports = {
Expand Down
2 changes: 1 addition & 1 deletion lib/get-error.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const SemanticReleaseError = require('@semantic-release/error');
const ERROR_DEFINITIONS = require('./definitions/errors');
const ERROR_DEFINITIONS = require('./definitions/errors.js');

module.exports = (code, ctx) => {
const {message, details} = ERROR_DEFINITIONS[code](ctx);
Expand Down
2 changes: 1 addition & 1 deletion lib/verify-config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const {isNil, isString} = require('lodash');
const AggregateError = require('aggregate-error');
const getError = require('./get-error');
const getError = require('./get-error.js');

const isNonEmptyString = (value) => isString(value) && value.trim();
const isOptional = (validator) => (value) => isNil(value) || validator(value);
Expand Down
Loading

0 comments on commit f8f920e

Please sign in to comment.