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

@elastic/ecs-helpers

Package Overview
Dependencies
Maintainers
57
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@elastic/ecs-helpers - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

8

lib/http-formatters.js

@@ -48,3 +48,2 @@ // Licensed to Elasticsearch B.V. under one or more contributor

method,
url,
headers,

@@ -61,2 +60,8 @@ hostname,

// Express can strip leading parts of `req.url` during routing, so we must use
// https://expressjs.com/en/4x/api.html#req.originalUrl if available.
// Fastify docs (https://fastify.dev/docs/latest/Reference/Request/) imply
// that it might mutate `req.url` during routing as well.
const url = req.originalUrl || req.url
ecs.url = ecs.url || {}

@@ -83,2 +88,3 @@ ecs.url.full = (socket && socket.encrypted ? 'https://' : 'http://') + headers.host + url

ecs.url.domain = host
// istanbul ignore next
if (port) {

@@ -85,0 +91,0 @@ ecs.url.port = Number(port)

2

package.json
{
"name": "@elastic/ecs-helpers",
"version": "2.1.0",
"version": "2.1.1",
"description": "ecs-logging-nodejs helpers",

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

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