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 3.2.0 to 4.0.0

8

index.js
'use strict';
var chokidar = require('chokidar');
var debounce = require('lodash.debounce');
var debounce = require('just-debounce');
var asyncDone = require('async-done');
var defaults = require('object.defaults');
var defaults = require('object.defaults/immutable');

@@ -21,3 +21,3 @@ var defaultOpts = {

var opt = defaults({}, options, defaultOpts);
var opt = defaults(options, defaultOpts);

@@ -61,3 +61,3 @@ if (!Array.isArray(opt.events)) {

if (typeof cb === 'function') {
fn = debounce(onChange, opt.delay, opt);
fn = debounce(onChange, opt.delay);
}

@@ -64,0 +64,0 @@

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

@@ -26,8 +26,7 @@ "author": "Gulp Team <team@gulpjs.com> (http://gulpjs.com/)",

"chokidar": "^1.4.3",
"lodash.debounce": "^4.0.6",
"object.defaults": "^1.0.0"
"just-debounce": "^1.0.0",
"object.defaults": "^1.1.0"
},
"devDependencies": {
"coveralls": "^2.11.2",
"del": "^2.2.0",
"eslint": "^1.10.3",

@@ -42,2 +41,3 @@ "eslint-config-gulp": "^2.0.0",

"mocha-lcov-reporter": "^1.2.0",
"rimraf": "^2.6.1",
"through2": "^2.0.1"

@@ -44,0 +44,0 @@ },

@@ -13,3 +13,3 @@ <p align="center">

## Example
## Usage

@@ -110,3 +110,3 @@ ```js

Options are passed directly to [lodash.debounce][lodash-debounce] and [chokidar][chokidar], so all their options are supported. Any debounce-related options are documented in [lodash.debounce][lodash-debounce]. Any chokidar-related options are documented in [chokidar][chokidar].
Options are passed directly to [chokidar][chokidar].

@@ -136,2 +136,1 @@ ## License

[chokidar]: https://github.com/paulmillr/chokidar
[lodash-debounce]: https://lodash.com/docs#debounce

Sorry, the diff of this file is not supported yet

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