Skip to content

Commit d101478

Browse files
committed
fix: update dependencies
1 parent e4409a3 commit d101478

File tree

3 files changed

+21
-21
lines changed

3 files changed

+21
-21
lines changed

package.json

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
},
77
"bin": "./dist/bin/index.js",
88
"dependencies": {
9-
"bluebird": "^3.5.4",
9+
"bluebird": "^3.5.5",
1010
"deadlink": "^1.1.3",
1111
"eslint": "^5.16.0",
1212
"filesize": "^4.1.2",
@@ -19,29 +19,28 @@
1919
"marked": "^0.6.2",
2020
"moment": "^2.24.0",
2121
"stack-trace": "^0.0.10",
22-
"yargs": "^13.2.2"
22+
"yargs": "^13.2.4"
2323
},
2424
"description": "Github markdown preprocessor.",
2525
"devDependencies": {
2626
"@babel/cli": "^7.4.4",
27-
"@babel/core": "^7.4.4",
28-
"@babel/node": "^7.2.2",
27+
"@babel/core": "^7.4.5",
28+
"@babel/node": "^7.4.5",
2929
"@babel/plugin-transform-flow-strip-types": "^7.4.4",
30-
"@babel/preset-env": "^7.4.4",
30+
"@babel/preset-env": "^7.4.5",
3131
"@babel/register": "^7.4.4",
32-
"ava": "^1.4.1",
3332
"babel-plugin-istanbul": "^5.1.4",
3433
"chai": "^4.2.0",
3534
"chai-as-promised": "^7.1.1",
36-
"coveralls": "^3.0.3",
35+
"coveralls": "^3.0.4",
3736
"eslint": "^5.16.0",
38-
"eslint-config-canonical": "^17.0.1",
39-
"husky": "^2.2.0",
37+
"eslint-config-canonical": "^17.1.0",
38+
"husky": "^2.4.0",
4039
"mocha": "^6.1.4",
4140
"nock": "^10.0.6",
42-
"nyc": "^14.1.0",
41+
"nyc": "^14.1.1",
4342
"require-uncached": "^2",
44-
"semantic-release": "^15.13.3",
43+
"semantic-release": "^15.13.12",
4544
"sinon": "^7.3.2"
4645
},
4746
"husky": {
@@ -70,7 +69,7 @@
7069
"build": "babel ./src --out-dir ./dist --copy-files",
7170
"create-readme": "babel-node ./src/bin/index.js ./.README/README.md --output-file ./README.md",
7271
"lint": "eslint ./src ./tests",
73-
"test": "mocha ./tests/**/*.js --compilers js:@babel/register"
72+
"test": "mocha ./tests/**/*.js --require @babel/register"
7473
},
7574
"version": "2.5.2"
7675
}

src/helpers/badge.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ helper.compile = (config = {}, context) => {
1212
const badgeStyle = 'style=flat-square';
1313

1414
services['npm-version'] = () => {
15+
// eslint-disable-next-line unicorn/prevent-abbreviations
1516
let pkg;
1617

1718
pkg = context.locator.repositoryPath() + '/package.json';

src/helpers/filesize.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,23 +39,23 @@ helper.file = (file, gzip) => {
3939
}
4040

4141
if (gzip) {
42-
fs.readFile(file, (err, buf) => {
43-
if (err) {
44-
throw new Error(err);
42+
fs.readFile(file, (readFileError, buf) => {
43+
if (readFileError) {
44+
throw new Error(readFileError);
4545
}
4646

47-
zlib.gzip(buf, (zlibErr, data) => {
48-
if (zlibErr) {
49-
throw new Error(zlibErr);
47+
zlib.gzip(buf, (zlibError, data) => {
48+
if (zlibError) {
49+
throw new Error(zlibError);
5050
}
5151

5252
resolve(data.length);
5353
});
5454
});
5555
} else {
56-
fs.stat(file, (err, data) => {
57-
if (err) {
58-
throw new Error(err);
56+
fs.stat(file, (statError, data) => {
57+
if (statError) {
58+
throw new Error(statError);
5959
}
6060

6161
resolve(data.size);

0 commit comments

Comments
 (0)