Skip to content

Commit

Permalink
fix: explicitly update all dependencies (fixes #96)
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Jul 16, 2019
1 parent 80a9f38 commit 1d531af
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
44 changes: 22 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,36 +5,36 @@
"url": "http://gajus.com"
},
"dependencies": {
"ajv": "^6.9.1",
"lodash": "^4.17.11",
"ajv": "^6.10.2",
"lodash": "^4.17.14",
"slice-ansi": "^2.1.0",
"string-width": "^3.0.0"
"string-width": "^4.1.0"
},
"description": "Formats data into a string table.",
"devDependencies": {
"@babel/cli": "^7.2.3",
"@babel/core": "^7.2.2",
"@babel/node": "^7.2.2",
"@babel/plugin-transform-flow-strip-types": "^7.2.3",
"@babel/preset-env": "^7.3.1",
"@babel/register": "^7.0.0",
"@babel/cli": "^7.5.0",
"@babel/core": "^7.5.4",
"@babel/node": "^7.5.0",
"@babel/plugin-transform-flow-strip-types": "^7.4.4",
"@babel/preset-env": "^7.5.4",
"@babel/register": "^7.4.4",
"ajv-cli": "^3.0.0",
"ajv-keywords": "^3.4.0",
"babel-plugin-istanbul": "^5.1.0",
"ajv-keywords": "^3.4.1",
"babel-plugin-istanbul": "^5.1.4",
"babel-plugin-transform-export-default-name": "^2.0.4",
"chai": "^4.2.0",
"chalk": "^2.4.2",
"coveralls": "^3.0.2",
"eslint": "^5.13.0",
"eslint-config-canonical": "^16.1.0",
"flow-bin": "^0.92.1",
"flow-copy-source": "^2.0.2",
"gitdown": "^2.5.7",
"husky": "^1.3.1",
"mocha": "^5.2.0",
"nyc": "^13.2.0",
"semantic-release": "^15.13.3",
"sinon": "^7.2.3"
"coveralls": "^3.0.5",
"eslint": "^6.0.1",
"eslint-config-canonical": "^17.1.4",
"flow-bin": "^0.102.0",
"flow-copy-source": "^2.0.7",
"gitdown": "^3.1.1",
"husky": "^3.0.0",
"mocha": "^6.1.4",
"nyc": "^14.1.1",
"semantic-release": "^15.13.18",
"sinon": "^7.3.2"
},
"engines": {
"node": ">=6.0.0"
Expand Down
2 changes: 1 addition & 1 deletion src/alignString.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default (subject, containerWidth, alignment) => {
throw new TypeError('Alignment parameter value must be a string.');
}

if (alignments.indexOf(alignment) === -1) {
if (!alignments.includes(alignment)) {
throw new Error('Alignment parameter value must be a known alignment parameter value (left, right, center).');
}

Expand Down

0 comments on commit 1d531af

Please sign in to comment.