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

koa-logger

Package Overview
Dependencies
Maintainers
9
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-logger - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

5

History.md
3.0.1 / 2017-06-30
==================
* Fixes error 'chalk[color] does not return function' when using custom (#61)
3.0.0 / 2017-05-16

@@ -3,0 +8,0 @@ ==================

7

index.js

@@ -22,2 +22,3 @@ /**

const colorCodes = {
7: 'magenta',
5: 'red',

@@ -38,3 +39,3 @@ 4: 'yellow',

// request
const start = new Date()
const start = Date.now()
console.log(' ' + chalk.gray('<--') +

@@ -96,3 +97,3 @@ ' ' + chalk.bold('%s') +

const s = status / 100 | 0
const color = colorCodes[s]
const color = colorCodes.hasOwnProperty(s) ? colorCodes[s] : 0

@@ -133,3 +134,3 @@ // get the human readable response length

function time (start) {
const delta = new Date() - start
const delta = Date.now() - start
return humanize(delta < 10000

@@ -136,0 +137,0 @@ ? delta + 'ms'

@@ -5,3 +5,3 @@ {

"repository": "koajs/logger",
"version": "3.0.0",
"version": "3.0.1",
"keywords": [

@@ -8,0 +8,0 @@ "koa",

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