Skip to content

Commit 7d7900a

Browse files
committed
Update dependencies
1 parent 000ddcf commit 7d7900a

File tree

5 files changed

+20
-19
lines changed

5 files changed

+20
-19
lines changed

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@
3030
],
3131
"dependencies": {
3232
"@samverschueren/stream-to-observable": "^0.3.0",
33-
"any-observable": "^0.4.0",
33+
"any-observable": "^0.5.0",
3434
"async-exit-hook": "^2.0.1",
35-
"chalk": "^2.3.0",
35+
"chalk": "^3.0.0",
3636
"cosmiconfig": "^5.2.1",
3737
"del": "^4.1.0",
3838
"escape-string-regexp": "^2.0.0",
39-
"execa": "^2.0.1",
39+
"execa": "^3.4.0",
4040
"github-url-from-git": "^1.5.0",
4141
"has-yarn": "^2.1.0",
4242
"hosted-git-info": "^3.0.0",
@@ -45,17 +45,17 @@
4545
"is-scoped": "^2.1.0",
4646
"issue-regex": "^2.0.0",
4747
"listr": "^0.14.3",
48-
"listr-input": "^0.1.3",
48+
"listr-input": "^0.2.0",
4949
"log-symbols": "^3.0.0",
5050
"meow": "^5.0.0",
5151
"npm-name": "^5.4.0",
5252
"onetime": "^5.1.0",
53-
"open": "^6.1.0",
54-
"ow": "^0.13.2",
53+
"open": "^7.0.0",
54+
"ow": "^0.15.0",
5555
"p-memoize": "^3.1.0",
5656
"p-timeout": "^3.1.0",
5757
"pkg-dir": "^4.1.0",
58-
"read-pkg-up": "^6.0.0",
58+
"read-pkg-up": "^7.0.0",
5959
"rxjs": "^6.3.3",
6060
"semver": "^6.1.2",
6161
"split": "^1.0.0",
@@ -67,6 +67,6 @@
6767
"ava": "^2.3.0",
6868
"proxyquire": "^2.1.0",
6969
"sinon": "^7.3.2",
70-
"xo": "^0.24.0"
70+
"xo": "^0.25.3"
7171
}
7272
}

source/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ const exec = (cmd, args) => {
3535
).pipe(filter(Boolean));
3636
};
3737

38+
// eslint-disable-next-line default-param-last
3839
module.exports = async (input = 'patch', options) => {
3940
options = {
4041
cleanup: true,
@@ -239,6 +240,6 @@ module.exports = async (input = 'patch', options) => {
239240

240241
await tasks.run();
241242

242-
const {package: newPkg} = await readPkgUp();
243+
const {packageJson: newPkg} = await readPkgUp();
243244
return newPkg;
244245
};

source/pretty-version-diff.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ module.exports = (oldVersion, inc) => {
88
let firstVersionChange = false;
99
const output = [];
1010

11-
for (let i = 0; i < newVersion.length; i++) {
12-
if ((newVersion[i] !== oldVersion[i] && !firstVersionChange)) {
13-
output.push(`${chalk.dim.cyan(newVersion[i])}`);
11+
for (const [i, element] of newVersion.entries()) {
12+
if ((element !== oldVersion[i] && !firstVersionChange)) {
13+
output.push(`${chalk.dim.cyan(element)}`);
1414
firstVersionChange = true;
15-
} else if (newVersion[i].indexOf('-') >= 1) {
15+
} else if (element.indexOf('-') >= 1) {
1616
let preVersion = [];
17-
preVersion = newVersion[i].split('-');
17+
preVersion = element.split('-');
1818
output.push(`${chalk.dim.cyan(`${preVersion[0]}-${preVersion[1]}`)}`);
1919
} else {
20-
output.push(chalk.reset.dim(newVersion[i]));
20+
output.push(chalk.reset.dim(element));
2121
}
2222
}
2323

source/release-task-helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ module.exports = async (options, pkg) => {
1515
isPrerelease: version(options.version).isPrerelease()
1616
});
1717

18-
await open(url);
18+
await open(url, {url: true});
1919
};

source/util.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ const pMemoize = require('p-memoize');
77
const ow = require('ow');
88

99
exports.readPkg = () => {
10-
const {package: pkg} = readPkgUp.sync();
10+
const {packageJson} = readPkgUp.sync();
1111

12-
if (!pkg) {
12+
if (!packageJson) {
1313
throw new Error('No package.json found. Make sure you\'re in the correct project.');
1414
}
1515

16-
return pkg;
16+
return packageJson;
1717
};
1818

1919
exports.linkifyIssues = (url, message) => {

0 commit comments

Comments
 (0)