New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

smart-restart

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

smart-restart - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

4

index.js

@@ -39,3 +39,3 @@ #!/usr/bin/env node

)
const { killSignal } = options
const { killSignal, onChildSpawned } = options
if (!options.main) throw new Error('missing main')

@@ -139,2 +139,4 @@ const initial = path.resolve(options.main)

})
if (onChildSpawned) onChildSpawned(child)
}

@@ -141,0 +143,0 @@ restart()

{
"name": "smart-restart",
"version": "2.1.0",
"version": "2.2.0",
"description": "Like nodemon but only watches require()d files. Like piping but easy to use with node-inspector.",

@@ -5,0 +5,0 @@ "engines": {

@@ -34,2 +34,3 @@ # smart-restart

spawnOptions: {...}, // optional, options for `spawn`
onChildSpawned: child => {}, // optional, callback to receive ChildProcess instance
ignore: /(\/\.|~$)/, // optional, ignore pattern for `chokidar` (default: /(\/\.|~$)/)

@@ -36,0 +37,0 @@ usePolling: false, // optional, whether to use polling in `chokidar` (default: false)

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