glob-watcher
Advanced tools
Comparing version 3.2.0 to 4.0.0
'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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8559
134
+ Addedjust-debounce@^1.0.0
+ Addedjust-debounce@1.1.0(transitive)
- Removedlodash.debounce@^4.0.6
- Removedlodash.debounce@4.0.8(transitive)
Updatedobject.defaults@^1.1.0