@contrast/library-analysis
Advanced tools
Comparing version 1.9.0 to 1.10.0
/* | ||
* Copyright: 2022 Contrast Security, Inc | ||
* Copyright: 2023 Contrast Security, Inc | ||
* Contact: support@contrastsecurity.com | ||
@@ -20,16 +20,22 @@ * License: Commercial | ||
module.exports = function (core) { | ||
const ORDER = ['libraryUsage', 'libraryReporting']; | ||
module.exports = function init(core) { | ||
const { config } = core; | ||
const libraryAnalysis = core.libraryAnalysis = {}; | ||
require('./install/library-usage')(core); | ||
require('./install/library-reporting')(core); | ||
core.libraryAnalysis = { | ||
async install() { | ||
callChildComponentMethods(this, 'install', ORDER); | ||
} | ||
}; | ||
libraryAnalysis.install = async function install() { | ||
if (!config.agent.node.library_usage.reporting.enable) return; | ||
if (config.inventory.analyze_libraries) { | ||
require('./install/library-reporting')(core); | ||
callChildComponentMethods(libraryAnalysis, 'install'); | ||
}; | ||
if (config.agent.node.library_usage.reporting.enable) { | ||
require('./install/library-usage')(core); | ||
} | ||
} | ||
return libraryAnalysis; | ||
return core.libraryAnalysis; | ||
}; |
/* | ||
* Copyright: 2022 Contrast Security, Inc | ||
* Copyright: 2023 Contrast Security, Inc | ||
* Contact: support@contrastsecurity.com | ||
@@ -4,0 +4,0 @@ * License: Commercial |
/* | ||
* Copyright: 2022 Contrast Security, Inc | ||
* Copyright: 2023 Contrast Security, Inc | ||
* Contact: support@contrastsecurity.com | ||
@@ -4,0 +4,0 @@ * License: Commercial |
/* | ||
* Copyright: 2022 Contrast Security, Inc | ||
* Copyright: 2023 Contrast Security, Inc | ||
* Contact: support@contrastsecurity.com | ||
@@ -22,3 +22,3 @@ * License: Commercial | ||
module.exports = function(core) { | ||
module.exports = function (core) { | ||
const { config, logger, messages } = core; | ||
@@ -91,4 +91,4 @@ | ||
libraryUsage.install = function() { | ||
const evalInterval = config.agent.node.library_usage.reporting.interval; | ||
libraryUsage.install = function () { | ||
const evalInterval = config.agent.node.library_usage.reporting.interval_ms; | ||
setCodeEventListener(libraryUsage.codeEventListener, evalInterval); | ||
@@ -95,0 +95,0 @@ }; |
/* | ||
* Copyright: 2022 Contrast Security, Inc | ||
* Copyright: 2023 Contrast Security, Inc | ||
* Contact: support@contrastsecurity.com | ||
@@ -4,0 +4,0 @@ * License: Commercial |
{ | ||
"name": "@contrast/library-analysis", | ||
"version": "1.9.0", | ||
"version": "1.10.0", | ||
"description": "", | ||
@@ -19,3 +19,3 @@ "author": "Contrast Security <nodejs@contrastsecurity.com> (https://www.contrastsecurity.com)", | ||
"dependencies": { | ||
"@contrast/common": "1.13.0", | ||
"@contrast/common": "1.14.0", | ||
"@contrast/fn-inspect": "^3.3.0", | ||
@@ -22,0 +22,0 @@ "semver": "^7.3.8" |
Sorry, the diff of this file is not supported yet
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
16663
425
+ Added@contrast/common@1.14.0(transitive)
- Removed@contrast/common@1.13.0(transitive)
Updated@contrast/common@1.14.0