Skip to content

Commit

Permalink
chore(deps): update packages & move nyc to devDependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Richter committed Jul 31, 2020
1 parent 29a0449 commit bcceefb
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 22 deletions.
5 changes: 1 addition & 4 deletions lib/git/commits.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,7 @@ const PR_MERGE_PATTERN = /^Merge pull request #(\d+) from ([^\/]+)\/([\S]+)/;

function parseCommit(commit) {
const metaEndIdx = commit.indexOf('\n');
const meta = commit
.slice(0, metaEndIdx)
.trim()
.split(' ');
const meta = commit.slice(0, metaEndIdx).trim().split(' ');
const message = commit.slice(metaEndIdx + 1);
const sha = meta.shift();
const parentSha = meta.shift() || null;
Expand Down
4 changes: 2 additions & 2 deletions lib/license/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ const fs = require('fs');

const path = require('path');

const debug = require('debug')('nlm:license');
const { promisify } = require('util');

const promisify = require('util.promisify');
const debug = require('debug')('nlm:license');

const globAsync = promisify(require('glob'));

Expand Down
25 changes: 12 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,26 +35,25 @@
}
},
"dependencies": {
"conventional-commits-parser": "^3.0.8",
"conventional-commits-parser": "^3.1.0",
"debug": "^4.1.1",
"glob": "^7.1.6",
"gofer": "^5.0.1",
"minimist": "^1.2.5",
"nyc": "^15.0.0",
"rc": "^1.2.8",
"semver": "^7.1.3",
"util.promisify": "^1.0.1"
"semver": "^7.3.2"
},
"devDependencies": {
"assertive": "^5.0.0",
"eslint": "^6.8.0",
"eslint-config-groupon": "^8.1.1",
"eslint-plugin-import": "^2.20.1",
"eslint-plugin-mocha": "^6.3.0",
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-prettier": "^3.1.2",
"mocha": "^7.1.1",
"prettier": "^1.19.1"
"assertive": "^5.0.1",
"eslint": "^7.3.1",
"eslint-config-groupon": "^10.0.0",
"eslint-plugin-import": "^2.21.2",
"eslint-plugin-mocha": "^7.0.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^3.1.4",
"mocha": "^8.0.1",
"nyc": "^15.1.0",
"prettier": "^2.0.5"
},
"author": {
"name": "Groupon",
Expand Down
6 changes: 3 additions & 3 deletions test/steps/publish-to-npm.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ describe('publishToNpm', () => {
describe('with NPM_USERNAME etc.', () => {
const dirname = withFixture('released');
const httpCalls = withFakeRegistry();
it('sends basic auth headers', function() {
it('sends basic auth headers', function () {
this.timeout(4000);
return publishToNpm(dirname, require(`${dirname}/package.json`), {
currentBranch: 'master',
Expand Down Expand Up @@ -124,7 +124,7 @@ describe('publishToNpm', () => {
describe('with NPM_TOKEN etc.', () => {
const dirname = withFixture('released');
const httpCalls = withFakeRegistry();
it('uses a bearer token', function() {
it('uses a bearer token', function () {
this.timeout(4000);

const pkg = require(`${dirname}/package.json`);
Expand All @@ -146,7 +146,7 @@ describe('publishToNpm', () => {
describe('with nlm.deprecated set', () => {
const dirname = withFixture('released');
const httpCalls = withFakeRegistry();
it('tries to deprecate', function() {
it('tries to deprecate', function () {
this.timeout(4000);

const pkg = require(`${dirname}/package.json`);
Expand Down

0 comments on commit bcceefb

Please sign in to comment.