Comparing version 3.1.0 to 3.1.1
19
index.js
@@ -340,14 +340,3 @@ 'use strict'; | ||
// Public methods | ||
// -------------- | ||
_normalizePaths(paths_) { | ||
const paths = flatten(arrify(paths_)); | ||
if (!paths.every(p => typeof p === STRING_TYPE)) { | ||
throw new TypeError('Non-string provided as watch path: ' + paths); | ||
} | ||
return paths; | ||
} | ||
/** | ||
@@ -367,3 +356,7 @@ * Adds paths to be watched on an existing FSWatcher instance | ||
*/ | ||
let paths = this._normalizePaths(paths_); | ||
let paths = flatten(arrify(paths_)); | ||
if (!paths.every(p => typeof p === STRING_TYPE)) { | ||
throw new TypeError('Non-string provided as watch path: ' + paths); | ||
} | ||
paths = paths.map(path => sysPath.normalize(path)); | ||
@@ -906,3 +899,3 @@ if (cwd) { | ||
const watcher = new FSWatcher(options); | ||
watcher.add(watcher._normalizePaths(paths)); | ||
watcher.add(paths); | ||
return watcher; | ||
@@ -909,0 +902,0 @@ }; |
{ | ||
"name": "chokidar", | ||
"description": "A neat wrapper around node.js fs.watch / fs.watchFile / fsevents.", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"homepage": "https://github.com/paulmillr/chokidar", | ||
@@ -6,0 +6,0 @@ "author": "Paul Miller (https://paulmillr.com)", |
@@ -284,7 +284,7 @@ # Chokidar [![Weekly downloads](https://img.shields.io/npm/dw/chokidar.svg)](https://github.com/paulmillr/chokidar) [![Yearly downloads](https://img.shields.io/npm/dy/chokidar.svg)](https://github.com/paulmillr/chokidar) | ||
- v3.1 (Sep 16, 2019): emit dotfiles by default. You can filter them out by using `ignored` option. Improves Linux performance by 50%. | ||
- v3 (Apr 30, 2019): massive CPU & RAM consumption improvements; reduces deps / package size by a factor of 17x and bumps Node.js requirement to v8 and higher. | ||
- v2 (Dec 29, 2017): Globs are now posix-style-only; without windows support. Tons of bugfixes. | ||
- v1 (Apr 7, 2015): Glob support, symlink support, tons of bugfixes. Node 0.8+ is supported | ||
- v0.1 (Apr 20, 2012): Initial release, extracted from [Brunch](https://github.com/brunch/brunch/blob/9847a065aea300da99bd0753f90354cde9de1261/src/helpers.coffee#L66) | ||
- **v3.1 (Sep 16, 2019):** dotfiles are no longer filtered out by default. Use `ignored` option if needed. Improve Linux performance by 50%. | ||
- **v3 (Apr 30, 2019):** massive CPU & RAM consumption improvements; reduces deps / package size by a factor of 17x and bumps Node.js requirement to v8.16 and higher. | ||
- **v2 (Dec 29, 2017):** Globs are now posix-style-only; without windows support. Tons of bugfixes. | ||
- **v1 (Apr 7, 2015):** Glob support, symlink support, tons of bugfixes. Node 0.8+ is supported | ||
- **v0.1 (Apr 20, 2012):** Initial release, extracted from [Brunch](https://github.com/brunch/brunch/blob/9847a065aea300da99bd0753f90354cde9de1261/src/helpers.coffee#L66) | ||
@@ -291,0 +291,0 @@ ## License |
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
82261
1880