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

@contrast/cli

Package Overview
Dependencies
Maintainers
17
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contrast/cli - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

21

lib/system-diagnostics.js

@@ -31,4 +31,23 @@ #!/usr/bin/env node

await reporter.install();
const content = JSON.stringify(getSystemInfo(), null, 2).concat('\n\n');
let name, version;
try {
({ name, version } = require('@contrast/agent/package.json'));
} catch (err) {
try {
({ name, version } = require('@contrast/protect-agent/package.json'));
} catch (err) {
core.logger.error('unable find peer agent dependency');
return;
}
}
const systemInfo = getSystemInfo();
systemInfo.Contrast.Agent = {
Name: name,
Version: version,
};
const content = JSON.stringify(systemInfo, null, 2).concat('\n\n');
if (!options.quiet) {

@@ -35,0 +54,0 @@ fs.writeFileSync(1, content, 'utf8');

10

package.json
{
"author": "Contrast Security <nodejs@contrastsecurity.com> (https://www.contrastsecurity.com)",
"name": "@contrast/cli",
"version": "1.2.0",
"version": "1.2.1",
"description": "A collection of agent related CLI utilities",

@@ -23,6 +23,10 @@ "scripts": {

"license": "SEE LICENSE IN LICENSE",
"peerDependencies": {
"@contrast/agent": "5.0.0-alpha.1",
"@contrast/protect-agent": "5.5.0"
},
"dependencies": {
"@contrast/core": "1.11.0",
"@contrast/core": "1.11.1",
"commander": "^9.4.1"
}
}
}
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