Comparing version 1.5.2 to 1.6.0
@@ -0,1 +1,5 @@ | ||
# Chokidar 1.6.0 (Jun 22, 2016) | ||
* Added ability for force `usePolling` mode by setting `CHOKIDAR_USEPOLLING` | ||
env variable | ||
# Chokidar 1.5.2 (Jun 7, 2016) | ||
@@ -2,0 +6,0 @@ * Fix missing `addDir` events when using `cwd` and `alwaysStat` options |
15
index.js
@@ -93,2 +93,17 @@ 'use strict'; | ||
// Global override (useful for end-developers that need to force polling for all | ||
// instances of chokidar, regardless of usage/dependency depth) | ||
var envPoll = process.env.CHOKIDAR_USEPOLLING; | ||
if (envPoll !== undefined) { | ||
var envLower = envPoll.toLowerCase(); | ||
if (envLower === 'false' || envLower === '0') { | ||
opts.usePolling = false; | ||
} else if (envLower === 'true' || envLower === '1') { | ||
opts.usePolling = true; | ||
} else { | ||
opts.usePolling = !!envLower | ||
} | ||
} | ||
// Editor atomic write normalization enabled by default with fs.watch | ||
@@ -95,0 +110,0 @@ if (undef('atomic')) opts.atomic = !opts.usePolling && !opts.useFsEvents; |
{ | ||
"name": "chokidar", | ||
"description": "A neat wrapper around node.js fs.watch / fs.watchFile / fsevents.", | ||
"version": "1.5.2", | ||
"version": "1.6.0", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "fs", |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
76409
6
1370
0
288
5