Socket
Socket
Sign inDemoInstall

@elastic/ecs-helpers

Package Overview
Dependencies
Maintainers
65
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 0.2.0 to 0.2.1

6

CHANGELOG.md
# Changelog
## v0.2.1
- Fix `url.full` field - [#16](https://github.com/elastic/ecs-logging-js/pull/16)
## v0.2.0
- Export ECS version - [#12](https://github.com/elastic/ecs-logging-js/pull/12)
## v0.1.0
Initial release.

5

http-formatters.js

@@ -16,3 +16,4 @@ // Licensed to Elasticsearch B.V under one or more agreements.

hostname,
httpVersion
httpVersion,
socket
} = req

@@ -31,3 +32,3 @@

ecs.url = ecs.url || {}
ecs.url.full = url
ecs.url.full = (socket.encrypted ? 'https://' : 'http://') + headers.host + url
var hasQuery = url.indexOf('?')

@@ -34,0 +35,0 @@ var hasAnchor = url.indexOf('#')

2

package.json
{
"name": "@elastic/ecs-helpers",
"version": "0.2.0",
"version": "0.2.1",
"description": "ECS loggers helpers",

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

@@ -67,3 +67,3 @@ // Licensed to Elasticsearch B.V under one or more agreements.

method: 'POST',
url: `http://localhost:${server.address().port}?foo=bar`,
url: `http://localhost:${server.address().port}/hello/world?foo=bar`,
body,

@@ -109,5 +109,5 @@ headers: {

t.deepEqual(line.url, {
path: '/',
path: '/hello/world',
query: 'foo=bar',
full: '/?foo=bar#anchor',
full: `http://localhost:${server.address().port}/hello/world?foo=bar#anchor`,
fragment: 'anchor'

@@ -114,0 +114,0 @@ })

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