elastic-apm-http-client
Advanced tools
Comparing version 5.0.0 to 5.1.0
@@ -27,3 +27,3 @@ 'use strict' | ||
transport: url.protocol === 'https:' ? require('https') : http, | ||
path: '/v1/', | ||
path: url.path === '/' ? '/v1/' : url.path + '/v1/', | ||
rejectUnauthorized: opts.rejectUnauthorized !== false | ||
@@ -30,0 +30,0 @@ } |
{ | ||
"name": "elastic-apm-http-client", | ||
"version": "5.0.0", | ||
"version": "5.1.0", | ||
"description": "A low-level HTTP client for communicating with the Elastic APM intake API", | ||
@@ -40,5 +40,5 @@ "main": "index.js", | ||
"coordinates": [ | ||
55.777343, | ||
12.5900855 | ||
55.777531, | ||
12.589865 | ||
] | ||
} |
13
test.js
@@ -187,3 +187,16 @@ 'use strict' | ||
}) | ||
t.test('serverUrl contains path', function (t) { | ||
var client = Client({userAgent: 'foo', serverUrl: 'http://localhost:8200/sub'}) | ||
var scope = nock('http://localhost:8200') | ||
.post('/sub/v1/endpoint') | ||
.reply() | ||
client.request('endpoint', body, function (err, res, body) { | ||
t.error(err) | ||
scope.done() | ||
t.end() | ||
}) | ||
}) | ||
}) | ||
}) |
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
12816
227