Skip to content

Commit 97a3d1c

Browse files
greenkeeper[bot]pvdlg
authored andcommitted
chore(package): update xo to version 0.23.0
1 parent 4bf6ad5 commit 97a3d1c

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

index.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ async function verifyConditions(pluginConfig, context) {
99

1010
try {
1111
await execScript(pluginConfig, context);
12-
} catch (err) {
13-
throw new SemanticReleaseError(err.stdout, 'EVERIFYCONDITIONS');
12+
} catch (error) {
13+
throw new SemanticReleaseError(error.stdout, 'EVERIFYCONDITIONS');
1414
}
1515
}
1616

@@ -26,15 +26,16 @@ async function verifyRelease(pluginConfig, context) {
2626

2727
try {
2828
await execScript(pluginConfig, context);
29-
} catch (err) {
30-
throw new SemanticReleaseError(err.stdout, 'EVERIFYRELEASE');
29+
} catch (error) {
30+
throw new SemanticReleaseError(error.stdout, 'EVERIFYRELEASE');
3131
}
3232
}
3333

3434
async function generateNotes(pluginConfig, context) {
3535
verifyConfig(pluginConfig);
3636

37-
return execScript(pluginConfig, context);
37+
const stdout = await execScript(pluginConfig, context);
38+
return stdout;
3839
}
3940

4041
async function prepare(pluginConfig, context) {
@@ -50,9 +51,9 @@ async function publish(pluginConfig, context) {
5051

5152
try {
5253
return stdout ? parseJson(stdout) : undefined;
53-
} catch (err) {
54+
} catch (error) {
5455
debug(stdout);
55-
debug(err);
56+
debug(error);
5657
context.logger.log(
5758
`The command ${pluginConfig.cmd} wrote invalid JSON to stdout. The stdout content will be ignored.`
5859
);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"semantic-release": "^15.0.0",
3232
"sinon": "^6.0.0",
3333
"stream-buffers": "^3.0.2",
34-
"xo": "^0.22.0"
34+
"xo": "^0.23.0"
3535
},
3636
"engines": {
3737
"node": ">=8.3"

0 commit comments

Comments
 (0)