elastic-apm-http-client
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -24,3 +24,3 @@ 'use strict' | ||
transport: opts.apiHttps ? require('https') : http, | ||
path: '/' | ||
path: '/v1/' | ||
} | ||
@@ -27,0 +27,0 @@ } |
{ | ||
"name": "elastic-apm-http-client", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "A low-level HTTP client for communicating with the Elastic APM intake API", | ||
@@ -38,5 +38,5 @@ "main": "index.js", | ||
"coordinates": [ | ||
55.68104899999999, | ||
12.5644926 | ||
55.6810724, | ||
12.5644622 | ||
] | ||
} |
15
test.js
@@ -41,3 +41,3 @@ 'use strict' | ||
.matchHeader('User-Agent', 'foo elastic-apm-http-client/' + require('./package').version) | ||
.post('/endpoint', function (body) { | ||
.post('/v1/endpoint', function (body) { | ||
t.equal(body, buffer.toString('hex')) | ||
@@ -60,7 +60,8 @@ return true | ||
var scope = nock('http://localhost:8080') | ||
.post('/endpoint') | ||
.reply(function () { | ||
t.ok('content-encoding' in this.req.headers) | ||
t.notOk('authorization' in this.req.headers) | ||
.post('/v1/endpoint', function (body, a, b) { | ||
t.ok('content-encoding' in this.headers) | ||
t.notOk('authorization' in this.headers) | ||
return true | ||
}) | ||
.reply() | ||
@@ -77,3 +78,3 @@ client.request('endpoint', body, function (err, res, body) { | ||
var scope = nock('http://localhost:8080') | ||
.post('/endpoint', function (body) { | ||
.post('/v1/endpoint', function (body) { | ||
t.equal(body, buffer.toString('hex')) | ||
@@ -97,3 +98,3 @@ return true | ||
.matchHeader('X-Foo', 'bar') | ||
.post('/endpoint', function (body) { | ||
.post('/v1/endpoint', function (body) { | ||
t.equal(body, buffer.toString('hex')) | ||
@@ -100,0 +101,0 @@ return true |
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
166
10622