pino-std-serializers
Advanced tools
Comparing version 3.0.0 to 3.1.0
@@ -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
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
25753