From 1d531af5187bdc6e84f2ecfcfd30fb6ed28924b1 Mon Sep 17 00:00:00 2001 From: Gajus Kuizinas Date: Tue, 16 Jul 2019 09:43:38 +0100 Subject: [PATCH] fix: explicitly update all dependencies (fixes #96) --- package.json | 44 ++++++++++++++++++++++---------------------- src/alignString.js | 2 +- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/package.json b/package.json index 6d6f6a9..1121d68 100644 --- a/package.json +++ b/package.json @@ -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" diff --git a/src/alignString.js b/src/alignString.js index 16936a4..f0383ff 100644 --- a/src/alignString.js +++ b/src/alignString.js @@ -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).'); }