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

nomics-platform

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nomics-platform - npm Package Compare versions

Comparing version 0.3.2 to 0.4.0

26

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

2

package.json
{
"name": "nomics-platform",
"version": "0.3.2",
"version": "0.4.0",
"description": "Nomics Platform Toolkit",

@@ -5,0 +5,0 @@ "keywords": [

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