Comparing version 1.4.0 to 1.4.1
@@ -7,6 +7,6 @@ 'use strict'; | ||
function table (result, urls) { | ||
function table (result, headings) { | ||
let head, rows; | ||
if (!urls || urls.length === 1) { | ||
headings = headings || []; | ||
if (result.length === 1) { | ||
head = ['metric', 'mean', 'min', 'max']; | ||
@@ -20,5 +20,5 @@ rows = Object.keys(result[0]) | ||
]); | ||
} else if (urls.length === 2) { | ||
} else if (result.length === 2) { | ||
head = ['metric']; | ||
urls.forEach(url => head.push(url)); | ||
result.forEach((r, i) => head.push(headings[i] || i)); | ||
head.push('p < 0.05'); | ||
@@ -25,0 +25,0 @@ rows = Object.keys(result[0]) |
{ | ||
"name": "timeliner", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "Network Timeline Analyser", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -152,1 +152,3 @@ # timeliner | ||
``` | ||
See [./examples/image-count.js](a full worked example of using custom metrics in code). |
25013
23
450
154