Comparing version 3.5.1 to 3.5.2
@@ -51,3 +51,4 @@ 'use strict'; | ||
isWindows, | ||
isMacos | ||
isMacos, | ||
isIBMi | ||
} = require('./lib/constants'); | ||
@@ -334,2 +335,7 @@ | ||
// Always default to polling on IBM i because fs.watch() is not available on IBM i. | ||
if(isIBMi) { | ||
opts.usePolling = true; | ||
} | ||
// Global override (useful for end-developers that need to force polling for all | ||
@@ -336,0 +342,0 @@ // instances of chokidar, regardless of usage/dependency depth) |
@@ -5,2 +5,3 @@ 'use strict'; | ||
const {platform} = process; | ||
const os = require('os'); | ||
@@ -65,1 +66,2 @@ exports.EV_ALL = 'all'; | ||
exports.isLinux = platform === 'linux'; | ||
exports.isIBMi = os.type() === 'OS400'; |
@@ -107,3 +107,4 @@ 'use strict'; | ||
function setFSEventsListener(path, realPath, listener, rawEmitter) { | ||
let watchPath = sysPath.extname(path) ? sysPath.dirname(path) : path; | ||
let watchPath = sysPath.extname(realPath) ? sysPath.dirname(realPath) : realPath; | ||
const parentPath = sysPath.dirname(watchPath); | ||
@@ -110,0 +111,0 @@ let cont = FSEventsWatchers.get(watchPath); |
{ | ||
"name": "chokidar", | ||
"description": "Minimal and efficient cross-platform file watching library", | ||
"version": "3.5.1", | ||
"version": "3.5.2", | ||
"homepage": "https://github.com/paulmillr/chokidar", | ||
@@ -16,16 +16,16 @@ "author": "Paul Miller (https://paulmillr.com)", | ||
"dependencies": { | ||
"anymatch": "~3.1.1", | ||
"anymatch": "~3.1.2", | ||
"braces": "~3.0.2", | ||
"glob-parent": "~5.1.0", | ||
"glob-parent": "~5.1.2", | ||
"is-binary-path": "~2.1.0", | ||
"is-glob": "~4.0.1", | ||
"normalize-path": "~3.0.0", | ||
"readdirp": "~3.5.0" | ||
"readdirp": "~3.6.0" | ||
}, | ||
"optionalDependencies": { | ||
"fsevents": "~2.3.1" | ||
"fsevents": "~2.3.2" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^14", | ||
"chai": "^4.2", | ||
"chai": "^4.3", | ||
"dtslint": "^3.3.0", | ||
@@ -56,3 +56,3 @@ "eslint": "^7.0.0", | ||
"lint": "eslint --report-unused-disable-directives --ignore-path .gitignore .", | ||
"mocha": "mocha --exit --timeout 60000", | ||
"mocha": "mocha --exit --timeout 90000", | ||
"test": "npm run lint && npm run mocha" | ||
@@ -59,0 +59,0 @@ }, |
@@ -16,2 +16,3 @@ # 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) | ||
* Does not provide an easy way to recursively watch file trees. | ||
* Does not support recursive watching on Linux. | ||
@@ -50,3 +51,3 @@ Node.js `fs.watchFile`: | ||
On other platforms, the `fs.watch`-based implementation is the default, which | ||
On most other platforms, the `fs.watch`-based implementation is the default, which | ||
avoids polling and keeps CPU usage down. Be advised that chokidar will initiate | ||
@@ -259,4 +260,4 @@ watchers recursively for everything within scope of the paths that have been | ||
* `.unwatch(path / paths)`: Stop watching files, directories, or glob patterns. | ||
Takes an array of strings or just one string. Use with `await` to ensure bugs don't happen. | ||
* `.close()`: **async** Removes all listeners from watched files. Asynchronous, returns Promise. | ||
Takes an array of strings or just one string. | ||
* `.close()`: **async** Removes all listeners from watched files. Asynchronous, returns Promise. Use with `await` to ensure bugs don't happen. | ||
* `.getWatched()`: Returns an object representing all the paths on the file | ||
@@ -263,0 +264,0 @@ system being watched by this `FSWatcher` instance. The object's keys are all the |
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
89810
2099
309
+ Addedreaddirp@3.6.0(transitive)
- Removedreaddirp@3.5.0(transitive)
Updatedanymatch@~3.1.2
Updatedglob-parent@~5.1.2
Updatedreaddirp@~3.6.0