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

elastic-apm-node

Package Overview
Dependencies
Maintainers
2
Versions
162
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elastic-apm-node - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

4

CHANGELOG.md

@@ -0,1 +1,5 @@

# 2.0.2 - 2018/12/4
* fix: use randomFillSync polyfill on Node.js <6.13.0 ([#702](https://github.com/elastic/apm-agent-nodejs/pull/702))
* fix(hapi): ignore internal events channel ([#700](https://github.com/elastic/apm-agent-nodejs/pull/700))
# 2.0.1 - 2018/11/26

@@ -2,0 +6,0 @@ * fix: log APM Server API errors correctly ([#692](https://github.com/elastic/apm-agent-nodejs/pull/692))

4

lib/instrumentation/modules/hapi.js

@@ -87,3 +87,5 @@ 'use strict'

function captureError (type, req, event, tags) {
if (!event || !tags.error) return
if (!event || !tags.error || event.channel === 'internal') {
return
}

@@ -90,0 +92,0 @@ // TODO: Find better location to put this than custom

'use strict'
const crypto = require('crypto')
const { randomFillSync } = require('random-poly-fill') // TODO: Remove when Node.js 6 is no longer supported

@@ -69,3 +69,3 @@ const SIZES = {

// Generate new id
crypto.randomFillSync(buffer, OFFSETS.id, SIZES.id)
randomFillSync(buffer, OFFSETS.id, SIZES.id)

@@ -96,3 +96,3 @@ return new TraceContext(buffer)

// Generate new ids
crypto.randomFillSync(buffer, OFFSETS.traceId, SIZES.ids)
randomFillSync(buffer, OFFSETS.traceId, SIZES.ids)

@@ -144,3 +144,3 @@ // Apply reported and requested flags

if (!id) {
crypto.randomFillSync(this[bufferSymbol], OFFSETS.parentId, SIZES.id)
randomFillSync(this[bufferSymbol], OFFSETS.parentId, SIZES.id)
id = this.parentId

@@ -147,0 +147,0 @@ }

{
"name": "elastic-apm-node",
"version": "2.0.1",
"version": "2.0.2",
"description": "The official Elastic APM agent for Node.js",

@@ -82,2 +82,3 @@ "main": "index.js",

"original-url": "^1.2.2",
"random-poly-fill": "^1.0.0",
"read-pkg-up": "^4.0.0",

@@ -164,5 +165,5 @@ "redact-secrets": "^1.0.0",

"coordinates": [
55.753271,
37.5679821
55.6773705,
12.5614183
]
}
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