Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

stream-log-stats

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stream-log-stats - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

12

lib/stats.js

@@ -52,7 +52,7 @@ 'use strict'

const resource = stats.resource[key]
const { value, unit } = byteSize(resource.bytes, { units: 'iec', precision: 2 })
const bytes = byteSize(resource.bytes, { units: 'iec', precision: 2 })
stats.topResources.push({
resource: key,
requests: resource.requests,
bytes: `${value} ${unit}`
bytes: `${bytes.value} ${bytes.unit}`
})

@@ -62,7 +62,7 @@ })

const type = stats.type[key]
const { value, unit } = byteSize(type.bytes, { units: 'iec', precision: 2 })
const bytes = byteSize(type.bytes, { units: 'iec', precision: 2 })
stats.topTypes.push({
type: key,
requests: type.requests,
bytes: `${value} ${unit}`
bytes: `${bytes.value} ${bytes.unit}`
})

@@ -80,4 +80,4 @@ })

this.bytes += bytes
const { value, unit } = byteSize(this.bytes, { units: 'iec', precision: 2 })
this.transferred = `${value} ${unit}`
const b = byteSize(this.bytes, { units: 'iec', precision: 2 })
this.transferred = `${b.value} ${b.unit}`
}
{
"name": "stream-log-stats",
"author": "Lloyd Brookes <75pound@gmail.com>",
"version": "2.0.1",
"version": "2.0.2",
"description": "Prints statistics from the incoming web log stream to the console",

@@ -6,0 +6,0 @@ "repository": "https://github.com/75lb/stream-log-stats.git",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc