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

express-bunyan-logger

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-bunyan-logger - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

4

index.js

@@ -21,2 +21,6 @@ var bunyan = require('bunyan'),

if (opts.logger) {
logger = opts.logger;
}
// default format

@@ -23,0 +27,0 @@ format = opts.format || ":remote-address :incoming :method :url HTTP/:http-version :status-code :res-headers[content-length] :referer :user-agent[family] :user-agent[major].:user-agent[minor] :user-agent[os] :response-time ms";

2

package.json
{
"name": "express-bunyan-logger",
"version": "0.2.0",
"version": "0.2.1",
"description": "a bunyan logger middleware for express",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -22,3 +22,2 @@ var express = require('express');

describe('bunyan-logger', function() {

@@ -143,8 +142,8 @@ it('test logger', function(done) {

.get('/')
.expect(function () {
.end(function () {
if (!middlewareCalled) {
throw new Error('middleware was not called');
}
})
.end(done);
done();
});
});

@@ -151,0 +150,0 @@ });

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