@electric-eloquence/chokidar
Advanced tools
Comparing version 1.7.7 to 1.7.8
# Chokidar Changelog | ||
### 1.7.8 | ||
### 1.7.7 | ||
@@ -4,0 +6,0 @@ * Disabling fsevents for macOS versions < Sierra |
11
index.js
'use strict'; | ||
var EventEmitter = require('events').EventEmitter; | ||
var fs = require('fs'); | ||
var os = require('os'); | ||
var sysPath = require('path'); | ||
var asyncEach = require('async-each'); | ||
@@ -16,2 +18,5 @@ var anymatch = require('anymatch'); | ||
var osMajor = parseInt(os.release().split('.')[0], 10); | ||
var isDarwin = process.platform === 'darwin'; | ||
var slashStringOrArray = function(stringOrArray) { | ||
@@ -127,6 +132,10 @@ var slashed; | ||
// Darwin major version 15 is macOS 10.11 El Capitan. | ||
// fsevents does not work in 10.11 El Capitan and lower. | ||
if (isDarwin && osMajor > 15) opts.useFsEvents = false; | ||
// Use polling on Mac if not using fsevents. | ||
// Other platforms use non-polling fs.watch. | ||
if (undef('usePolling') && !opts.useFsEvents) { | ||
opts.usePolling = process.platform === 'darwin'; | ||
opts.usePolling = isDarwin; | ||
} | ||
@@ -133,0 +142,0 @@ |
{ | ||
"name": "@electric-eloquence/chokidar", | ||
"description": "A neat wrapper around node.js fs.watch / fs.watchFile / fsevents.", | ||
"version": "1.7.7", | ||
"version": "1.7.8", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "fs", |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
75370
1521
1