@elastic/ecs-helpers
Advanced tools
Comparing version 0.2.0 to 0.2.1
# 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. |
@@ -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('#') |
{ | ||
"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
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
23057
319