elastic-apm-http-client
Advanced tools
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 @@ |
@@ -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", |
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
94076
1959