nomics-platform
Advanced tools
Comparing version 0.3.2 to 0.4.0
const url = require('url') | ||
const { spawn } = require('child_process') | ||
@@ -15,3 +16,3 @@ module.exports = async function (options) { | ||
return new Error(endpoint + ' not recognized as url') | ||
return auditCommand(endpoint) | ||
} | ||
@@ -41,1 +42,24 @@ | ||
} | ||
async function auditCommand (command) { | ||
const parts = command.split(' ') | ||
const child = spawn(parts[0], parts.slice(1)) | ||
child.stdout.on('data', (data) => { | ||
console.log(`server: ${data}`) | ||
}) | ||
child.stderr.on('data', (data) => { | ||
console.log(`server: ${data}`) | ||
}) | ||
const closed = new Promise((resolve, reject) => { | ||
child.on('close', resolve) | ||
}) | ||
const port = process.env.PORT || '3000' | ||
await auditURL(`http://localhost:${port}`) | ||
child.kill('SIGINT') | ||
await closed | ||
} |
{ | ||
"name": "nomics-platform", | ||
"version": "0.3.2", | ||
"version": "0.4.0", | ||
"description": "Nomics Platform Toolkit", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
14854
385
1
3