stream-log-stats
Advanced tools
Comparing version 1.1.2 to 1.1.3
'use strict' | ||
var Clf = require('common-log-format') | ||
var f = require('function-tools') | ||
var view = require('./view') | ||
@@ -8,2 +7,3 @@ var stats = require('./stats') | ||
var streamVia = require('stream-via') | ||
var throttle = require('lodash.throttle') | ||
@@ -13,3 +13,4 @@ module.exports = streamLogStats | ||
function streamLogStats (options) { | ||
var throttledRender = f.throttle(view.render, { restPeriod: options.refreshRate || 500 }) | ||
options = options || {} | ||
var throttledRender = throttle(view.render, options.refreshRate || 500) | ||
@@ -16,0 +17,0 @@ function renderLogObject (logObject) { |
{ | ||
"name": "stream-log-stats", | ||
"author": "Lloyd Brookes <75pound@gmail.com>", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "Prints statistics from the incoming web log stream to the console", | ||
@@ -27,14 +27,14 @@ "repository": "https://github.com/75lb/stream-log-stats.git", | ||
"devDependencies": { | ||
"tape": "^4.2.2" | ||
"tape": "^4.4.0" | ||
}, | ||
"dependencies": { | ||
"JSONStream": "^1.0.6", | ||
"ansi-escape-sequences": "^2.2.1", | ||
"JSONStream": "^1.0.7", | ||
"ansi-escape-sequences": "^2.2.2", | ||
"byte-size": "^2", | ||
"column-layout": "^2", | ||
"common-log-format": "~0.1.3", | ||
"function-tools": "~0.1.0", | ||
"lodash.throttle": "^4.0.1", | ||
"object-tools": "^2.0.5", | ||
"stream-via": "^0.1.0" | ||
"stream-via": "^1.0.1" | ||
} | ||
} |
@@ -74,2 +74,2 @@ [![view on npm](http://img.shields.io/npm/v/stream-log-stats.svg)](https://www.npmjs.org/package/stream-log-stats) | ||
© 2015 Lloyd Brookes \<75pound@gmail.com\>. | ||
© 2015-16 Lloyd Brookes \<75pound@gmail.com\>. |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10381
10
177
+ Addedlodash.throttle@^4.0.1
+ Addedlodash.throttle@4.1.1(transitive)
- Removedfunction-tools@~0.1.0
- Removedfunction-tools@0.1.2(transitive)
UpdatedJSONStream@^1.0.7
Updatedansi-escape-sequences@^2.2.2
Updatedstream-via@^1.0.1