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

elastic-apm-http-client

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elastic-apm-http-client - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

2

index.js

@@ -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
]
}

@@ -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

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