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

pino-std-serializers

Package Overview
Dependencies
Maintainers
4
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pino-std-serializers - npm Package Compare versions

Comparing version 3.0.0 to 3.1.0

2

lib/req.js

@@ -57,3 +57,3 @@ 'use strict'

// req.info is for hapi compat.
const connection = req.info || req.connection
const connection = req.info || req.socket
const _req = Object.create(pinoReqProto)

@@ -60,0 +60,0 @@ _req.id = (typeof req.id === 'function' ? req.id() : (req.id || (req.info ? req.info.id : undefined)))

{
"name": "pino-std-serializers",
"version": "3.0.0",
"version": "3.1.0",
"description": "A collection of standard object serializers for Pino",

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

@@ -1,2 +0,2 @@

# pino-std-serializers  [![Build Status](https://travis-ci.org/pinojs/pino-std-serializers.svg)](https://travis-ci.org/pinojs/pino-std-serializers)
# pino-std-serializers  [![CI](https://github.com/pinojs/pino-std-serializers/workflows/CI/badge.svg)](https://github.com/pinojs/pino-std-serializers/actions?query=workflow%3ACI)

@@ -3,0 +3,0 @@ This module provides a set of standard object serializers for the

@@ -280,3 +280,3 @@ 'use strict'

test('req.remoteAddress will be obtained from request connect.remoteAddress as fallback', function (t) {
test('req.remoteAddress will be obtained from request socket.remoteAddress as fallback', function (t) {
t.plan(1)

@@ -293,3 +293,3 @@

function handler (req, res) {
req.connection = { remoteAddress: 'http://localhost' }
req.socket = { remoteAddress: 'http://localhost' }
const serialized = serializers.reqSerializer(req)

@@ -320,3 +320,3 @@ t.is(serialized.remoteAddress, 'http://localhost')

test('req.remotePort will be obtained from request connect.remotePort as fallback', function (t) {
test('req.remotePort will be obtained from request socket.remotePort as fallback', function (t) {
t.plan(1)

@@ -333,3 +333,3 @@

function handler (req, res) {
req.connection = { remotePort: 3000 }
req.socket = { remotePort: 3000 }
const serialized = serializers.reqSerializer(req)

@@ -336,0 +336,0 @@ t.is(serialized.remotePort, 3000)

Sorry, the diff of this file is not supported yet

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