Skip to content

Commit

Permalink
fix: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Jun 11, 2019
1 parent e4409a3 commit d101478
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
23 changes: 11 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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": {
Expand Down Expand Up @@ -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"
}
1 change: 1 addition & 0 deletions src/helpers/badge.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
18 changes: 9 additions & 9 deletions src/helpers/filesize.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d101478

Please sign in to comment.