From ea237e343c0081bbf5725b96f8c3d8cea9b495cd Mon Sep 17 00:00:00 2001 From: Matteo Collina Date: Tue, 28 Mar 2017 11:51:15 +0200 Subject: [PATCH] Updated dependencies. --- lib/progressTracker.js | 7 ++++--- package.json | 8 ++++---- test/format.test.js | 1 - 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/progressTracker.js b/lib/progressTracker.js index 9a957dac..0e676903 100644 --- a/lib/progressTracker.js +++ b/lib/progressTracker.js @@ -1,7 +1,8 @@ 'use strict' const ProgressBar = require('progress') -const table = require('table') +const table = require('table').table +const getBorderCharacters = require('table').getBorderCharacters const Chalk = require('chalk') const testColorSupport = require('color-support') const prettyBytes = require('pretty-bytes') @@ -73,13 +74,13 @@ function track (instance, opts) { // if the user doesn't want to render the table, we can just return early if (!opts.renderResultsTable) return - const out = table.default([ + const out = table([ asColor(chalk.cyan, ['Stat', 'Avg', 'Stdev', 'Max']), asRow(chalk.bold('Latency (ms)'), result.latency), asRow(chalk.bold('Req/Sec'), result.requests), asRow(chalk.bold('Bytes/Sec'), asBytes(result.throughput)) ], { - border: table.getBorderCharacters('void'), + border: getBorderCharacters('void'), columnDefault: { paddingLeft: 0, paddingRight: 1 diff --git a/package.json b/package.json index d08c33aa..7c64fa3a 100644 --- a/package.json +++ b/package.json @@ -39,8 +39,8 @@ "bl": "^1.1.2", "pre-commit": "^1.1.2", "split2": "^2.1.0", - "standard": "^6.0.8", - "tap": "^5.7.0" + "standard": "^9.0.0", + "tap": "^10.3.0" }, "dependencies": { "chalk": "^1.1.3", @@ -51,11 +51,11 @@ "hyperid": "^1.1.0", "minimist": "^1.2.0", "native-hdr-histogram": "^0.4.0", - "pretty-bytes": "^3.0.1", + "pretty-bytes": "^4.0.2", "progress": "^1.1.8", "reinterval": "^1.1.0", "retimer": "^1.0.1", - "table": "^3.7.8", + "table": "^4.0.1", "timestring": "^3.0.1", "xtend": "^4.0.1" } diff --git a/test/format.test.js b/test/format.test.js index 34308112..2f631fb9 100644 --- a/test/format.test.js +++ b/test/format.test.js @@ -17,4 +17,3 @@ Object.keys(pairs).forEach((expected) => { t.end() }) }) -