From d101478318d8d02d6cb490a727203752c6c2d483 Mon Sep 17 00:00:00 2001 From: Gajus Kuizinas Date: Tue, 11 Jun 2019 08:37:25 +0100 Subject: [PATCH] fix: update dependencies --- package.json | 23 +++++++++++------------ src/helpers/badge.js | 1 + src/helpers/filesize.js | 18 +++++++++--------- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/package.json b/package.json index 2b7c558..3aef824 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ }, "bin": "./dist/bin/index.js", "dependencies": { - "bluebird": "^3.5.4", + "bluebird": "^3.5.5", "deadlink": "^1.1.3", "eslint": "^5.16.0", "filesize": "^4.1.2", @@ -19,29 +19,28 @@ "marked": "^0.6.2", "moment": "^2.24.0", "stack-trace": "^0.0.10", - "yargs": "^13.2.2" + "yargs": "^13.2.4" }, "description": "Github markdown preprocessor.", "devDependencies": { "@babel/cli": "^7.4.4", - "@babel/core": "^7.4.4", - "@babel/node": "^7.2.2", + "@babel/core": "^7.4.5", + "@babel/node": "^7.4.5", "@babel/plugin-transform-flow-strip-types": "^7.4.4", - "@babel/preset-env": "^7.4.4", + "@babel/preset-env": "^7.4.5", "@babel/register": "^7.4.4", - "ava": "^1.4.1", "babel-plugin-istanbul": "^5.1.4", "chai": "^4.2.0", "chai-as-promised": "^7.1.1", - "coveralls": "^3.0.3", + "coveralls": "^3.0.4", "eslint": "^5.16.0", - "eslint-config-canonical": "^17.0.1", - "husky": "^2.2.0", + "eslint-config-canonical": "^17.1.0", + "husky": "^2.4.0", "mocha": "^6.1.4", "nock": "^10.0.6", - "nyc": "^14.1.0", + "nyc": "^14.1.1", "require-uncached": "^2", - "semantic-release": "^15.13.3", + "semantic-release": "^15.13.12", "sinon": "^7.3.2" }, "husky": { @@ -70,7 +69,7 @@ "build": "babel ./src --out-dir ./dist --copy-files", "create-readme": "babel-node ./src/bin/index.js ./.README/README.md --output-file ./README.md", "lint": "eslint ./src ./tests", - "test": "mocha ./tests/**/*.js --compilers js:@babel/register" + "test": "mocha ./tests/**/*.js --require @babel/register" }, "version": "2.5.2" } diff --git a/src/helpers/badge.js b/src/helpers/badge.js index d387c7f..b224dca 100644 --- a/src/helpers/badge.js +++ b/src/helpers/badge.js @@ -12,6 +12,7 @@ helper.compile = (config = {}, context) => { const badgeStyle = 'style=flat-square'; services['npm-version'] = () => { + // eslint-disable-next-line unicorn/prevent-abbreviations let pkg; pkg = context.locator.repositoryPath() + '/package.json'; diff --git a/src/helpers/filesize.js b/src/helpers/filesize.js index 62617a6..2356a7c 100644 --- a/src/helpers/filesize.js +++ b/src/helpers/filesize.js @@ -39,23 +39,23 @@ helper.file = (file, gzip) => { } if (gzip) { - fs.readFile(file, (err, buf) => { - if (err) { - throw new Error(err); + fs.readFile(file, (readFileError, buf) => { + if (readFileError) { + throw new Error(readFileError); } - zlib.gzip(buf, (zlibErr, data) => { - if (zlibErr) { - throw new Error(zlibErr); + zlib.gzip(buf, (zlibError, data) => { + if (zlibError) { + throw new Error(zlibError); } resolve(data.length); }); }); } else { - fs.stat(file, (err, data) => { - if (err) { - throw new Error(err); + fs.stat(file, (statError, data) => { + if (statError) { + throw new Error(statError); } resolve(data.size);