@contrast/agentify
Advanced tools
Comparing version 1.4.1 to 1.5.0
@@ -44,3 +44,2 @@ /* | ||
require('./sources')(core); | ||
require('./contrast-methods')(core); | ||
require('./function-hooks')(core); | ||
@@ -141,14 +140,8 @@ require('./rewrite-hooks')(core); | ||
logDiagnosticFiles() { | ||
const { agentName, agentVersion, config, getEffectiveConfig, getSystemInfo } = this.core; | ||
const { config, getEffectiveConfig, getSystemInfo } = this.core; | ||
if (config.agent.diagnostics.enable !== false) { | ||
const effectiveConfig = JSON.stringify(getEffectiveConfig(), null, 2).concat('\n\n'); | ||
const effectiveConfig = JSON.stringify(getEffectiveConfig(), null, 2); | ||
const systemInfo = JSON.stringify(getSystemInfo(), null, 2); | ||
let systemInfo = getSystemInfo(); | ||
systemInfo.Contrast.Agent = { | ||
Name: agentName, | ||
Version: agentVersion, | ||
}; | ||
systemInfo = JSON.stringify(systemInfo, null, 2).concat('\n\n'); | ||
if (!config.agent.diagnostics.quiet) { | ||
@@ -155,0 +148,0 @@ fs.writeFileSync(1, effectiveConfig, 'utf8'); |
{ | ||
"name": "@contrast/agentify", | ||
"version": "1.4.1", | ||
"version": "1.5.0", | ||
"description": "Configures Contrast agent services and instrumentation within an application", | ||
@@ -5,0 +5,0 @@ "license": "SEE LICENSE IN LICENSE", |
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
15892
8
420