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

wtch

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

wtch - npm Package Compare versions

Comparing version 3.1.2 to 3.2.0

6

index.js

@@ -48,4 +48,8 @@ var xtend = require('xtend')

if (reject(path, ignoreReload))
if ((Array.isArray(ignoreReload) || typeof ignoreReload === 'string')
&& reject(path, ignoreReload)) {
return
} else if (typeof ignoreReload === 'function' && ignoreReload(path)) {
return
}

@@ -52,0 +56,0 @@ try {

2

package.json
{
"name": "wtch",
"version": "3.1.2",
"version": "3.2.0",
"description": "small livereload/watch command line utility",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -58,4 +58,17 @@ # wtch

- `port` the port for livereload, defaults to 35729
- `ignoreReload` a glob or array of globs to ignore live reload events (`watch` event is still triggered)
- `ignoreReload` allows ignoring LiveReload events for specific files; can be a file path, or an array of paths, or a function that returns `true` to ignore the reload, Example:
```js
wtch('**/*.js', {
ignoreReload: function(file) {
//don't trigger LiveReload for this file
if (file === fileToIgnore)
return true
return false
}
})
//instead, manually decide what to do when that file changes
.on('watch', handler)
```
#### `live.on('connect')`

@@ -62,0 +75,0 @@

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