Skip to content

Commit 1d531af

Browse files
committed
fix: explicitly update all dependencies (fixes #96)
1 parent 80a9f38 commit 1d531af

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

package.json

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,36 +5,36 @@
55
"url": "http://gajus.com"
66
},
77
"dependencies": {
8-
"ajv": "^6.9.1",
9-
"lodash": "^4.17.11",
8+
"ajv": "^6.10.2",
9+
"lodash": "^4.17.14",
1010
"slice-ansi": "^2.1.0",
11-
"string-width": "^3.0.0"
11+
"string-width": "^4.1.0"
1212
},
1313
"description": "Formats data into a string table.",
1414
"devDependencies": {
15-
"@babel/cli": "^7.2.3",
16-
"@babel/core": "^7.2.2",
17-
"@babel/node": "^7.2.2",
18-
"@babel/plugin-transform-flow-strip-types": "^7.2.3",
19-
"@babel/preset-env": "^7.3.1",
20-
"@babel/register": "^7.0.0",
15+
"@babel/cli": "^7.5.0",
16+
"@babel/core": "^7.5.4",
17+
"@babel/node": "^7.5.0",
18+
"@babel/plugin-transform-flow-strip-types": "^7.4.4",
19+
"@babel/preset-env": "^7.5.4",
20+
"@babel/register": "^7.4.4",
2121
"ajv-cli": "^3.0.0",
22-
"ajv-keywords": "^3.4.0",
23-
"babel-plugin-istanbul": "^5.1.0",
22+
"ajv-keywords": "^3.4.1",
23+
"babel-plugin-istanbul": "^5.1.4",
2424
"babel-plugin-transform-export-default-name": "^2.0.4",
2525
"chai": "^4.2.0",
2626
"chalk": "^2.4.2",
27-
"coveralls": "^3.0.2",
28-
"eslint": "^5.13.0",
29-
"eslint-config-canonical": "^16.1.0",
30-
"flow-bin": "^0.92.1",
31-
"flow-copy-source": "^2.0.2",
32-
"gitdown": "^2.5.7",
33-
"husky": "^1.3.1",
34-
"mocha": "^5.2.0",
35-
"nyc": "^13.2.0",
36-
"semantic-release": "^15.13.3",
37-
"sinon": "^7.2.3"
27+
"coveralls": "^3.0.5",
28+
"eslint": "^6.0.1",
29+
"eslint-config-canonical": "^17.1.4",
30+
"flow-bin": "^0.102.0",
31+
"flow-copy-source": "^2.0.7",
32+
"gitdown": "^3.1.1",
33+
"husky": "^3.0.0",
34+
"mocha": "^6.1.4",
35+
"nyc": "^14.1.1",
36+
"semantic-release": "^15.13.18",
37+
"sinon": "^7.3.2"
3838
},
3939
"engines": {
4040
"node": ">=6.0.0"

src/alignString.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export default (subject, containerWidth, alignment) => {
7474
throw new TypeError('Alignment parameter value must be a string.');
7575
}
7676

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

0 commit comments

Comments
 (0)