Socket
Socket
Sign inDemoInstall

glob-watcher

Package Overview
Dependencies
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

glob-watcher - npm Package Compare versions

Comparing version 5.0.0 to 5.0.1

14

index.js

@@ -15,2 +15,14 @@ 'use strict';

function listenerCount(ee, evtName) {
if (typeof ee.listenerCount === 'function') {
return ee.listenerCount(evtName);
}
return ee.listeners(evtName).length;
}
function hasErrorListener(ee) {
return listenerCount(ee, 'error') !== 0;
}
function watch(glob, options, cb) {

@@ -36,3 +48,3 @@ if (typeof options === 'function') {

if (err) {
if (err && hasErrorListener(watcher)) {
watcher.emit('error', err);

@@ -39,0 +51,0 @@ }

2

package.json
{
"name": "glob-watcher",
"version": "5.0.0",
"version": "5.0.1",
"description": "Watch globs and execute a function upon change, with intelligent defaults for debouncing and queueing.",

@@ -5,0 +5,0 @@ "author": "Gulp Team <team@gulpjs.com> (http://gulpjs.com/)",

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