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

@contrast/library-analysis

Package Overview
Dependencies
Maintainers
14
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contrast/library-analysis - npm Package Compare versions

Comparing version 1.9.0 to 1.10.0

26

lib/index.js
/*
* 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

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