@contrast/cli
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -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'); |
{ | ||
"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" | ||
} | ||
} | ||
} |
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
4901
99
4
+ Added@contrast/agent@5.0.0-alpha.1(transitive)
+ Added@contrast/agent-lib@5.3.5(transitive)
+ Added@contrast/agentify@1.4.1(transitive)
+ Added@contrast/architecture-components@1.2.0(transitive)
+ Added@contrast/assess@1.1.0(transitive)
+ Added@contrast/cli@1.2.0(transitive)
+ Added@contrast/common@1.4.1(transitive)
+ Added@contrast/config@1.6.1(transitive)
+ Added@contrast/core@1.11.1(transitive)
+ Added@contrast/distringuish@4.5.0(transitive)
+ Added@contrast/esm-hooks@1.7.0(transitive)
+ Added@contrast/fn-inspect@3.3.0(transitive)
+ Added@contrast/library-analysis@1.0.0(transitive)
+ Added@contrast/protect@1.13.0(transitive)
+ Added@contrast/protect-agent@5.5.0(transitive)
+ Added@contrast/reporter@1.9.1(transitive)
+ Added@contrast/route-coverage@1.0.0(transitive)
+ Addedasync-hook-domain@3.0.2(transitive)
+ Addeddetect-libc@2.0.3(transitive)
+ Addedipaddr.js@2.2.0(transitive)
+ Addednode-addon-api@4.3.0(transitive)
+ Addedparseurl@1.3.3(transitive)
Updated@contrast/core@1.11.1