Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Nov 30, 2019
1 parent 000ddcf commit 7d7900a
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 19 deletions.
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@
],
"dependencies": {
"@samverschueren/stream-to-observable": "^0.3.0",
"any-observable": "^0.4.0",
"any-observable": "^0.5.0",
"async-exit-hook": "^2.0.1",
"chalk": "^2.3.0",
"chalk": "^3.0.0",
"cosmiconfig": "^5.2.1",
"del": "^4.1.0",
"escape-string-regexp": "^2.0.0",
"execa": "^2.0.1",
"execa": "^3.4.0",
"github-url-from-git": "^1.5.0",
"has-yarn": "^2.1.0",
"hosted-git-info": "^3.0.0",
Expand All @@ -45,17 +45,17 @@
"is-scoped": "^2.1.0",
"issue-regex": "^2.0.0",
"listr": "^0.14.3",
"listr-input": "^0.1.3",
"listr-input": "^0.2.0",
"log-symbols": "^3.0.0",
"meow": "^5.0.0",
"npm-name": "^5.4.0",
"onetime": "^5.1.0",
"open": "^6.1.0",
"ow": "^0.13.2",
"open": "^7.0.0",
"ow": "^0.15.0",
"p-memoize": "^3.1.0",
"p-timeout": "^3.1.0",
"pkg-dir": "^4.1.0",
"read-pkg-up": "^6.0.0",
"read-pkg-up": "^7.0.0",
"rxjs": "^6.3.3",
"semver": "^6.1.2",
"split": "^1.0.0",
Expand All @@ -67,6 +67,6 @@
"ava": "^2.3.0",
"proxyquire": "^2.1.0",
"sinon": "^7.3.2",
"xo": "^0.24.0"
"xo": "^0.25.3"
}
}
3 changes: 2 additions & 1 deletion source/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const exec = (cmd, args) => {
).pipe(filter(Boolean));
};

// eslint-disable-next-line default-param-last
module.exports = async (input = 'patch', options) => {
options = {
cleanup: true,
Expand Down Expand Up @@ -239,6 +240,6 @@ module.exports = async (input = 'patch', options) => {

await tasks.run();

const {package: newPkg} = await readPkgUp();
const {packageJson: newPkg} = await readPkgUp();
return newPkg;
};
12 changes: 6 additions & 6 deletions source/pretty-version-diff.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ module.exports = (oldVersion, inc) => {
let firstVersionChange = false;
const output = [];

for (let i = 0; i < newVersion.length; i++) {
if ((newVersion[i] !== oldVersion[i] && !firstVersionChange)) {
output.push(`${chalk.dim.cyan(newVersion[i])}`);
for (const [i, element] of newVersion.entries()) {
if ((element !== oldVersion[i] && !firstVersionChange)) {
output.push(`${chalk.dim.cyan(element)}`);
firstVersionChange = true;
} else if (newVersion[i].indexOf('-') >= 1) {
} else if (element.indexOf('-') >= 1) {
let preVersion = [];
preVersion = newVersion[i].split('-');
preVersion = element.split('-');
output.push(`${chalk.dim.cyan(`${preVersion[0]}-${preVersion[1]}`)}`);
} else {
output.push(chalk.reset.dim(newVersion[i]));
output.push(chalk.reset.dim(element));
}
}

Expand Down
2 changes: 1 addition & 1 deletion source/release-task-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ module.exports = async (options, pkg) => {
isPrerelease: version(options.version).isPrerelease()
});

await open(url);
await open(url, {url: true});
};
6 changes: 3 additions & 3 deletions source/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ const pMemoize = require('p-memoize');
const ow = require('ow');

exports.readPkg = () => {
const {package: pkg} = readPkgUp.sync();
const {packageJson} = readPkgUp.sync();

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

return pkg;
return packageJson;
};

exports.linkifyIssues = (url, message) => {
Expand Down

0 comments on commit 7d7900a

Please sign in to comment.