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
3
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 11.0.2 to 11.0.3

10

index.js

@@ -1470,4 +1470,10 @@ 'use strict'

const header = res.headers['cache-control']
const match = header && header.match(/max-age=(\d+)/i)
return parseInt(match && match[1], 10)
if (!header) {
return undefined
}
const match = header.match(/max-age=(\d+)/i)
if (!match) {
return undefined
}
return parseInt(match[1], 10)
}

@@ -1474,0 +1480,0 @@

2

lib/central-config.js

@@ -22,3 +22,3 @@ 'use strict'

function getCentralConfigIntervalS (seconds) {
if (typeof seconds !== 'number' || seconds <= 0) {
if (typeof seconds !== 'number' || isNaN(seconds) || seconds <= 0) {
return INTERVAL_DEFAULT_S

@@ -25,0 +25,0 @@ }

{
"name": "elastic-apm-http-client",
"version": "11.0.2",
"version": "11.0.3",
"description": "A low-level HTTP client for communicating with the Elastic APM intake API",

@@ -5,0 +5,0 @@ "main": "index.js",

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