Cleanup
This commit is contained in:
2
node_modules/chokidar/lib/constants.js
generated
vendored
2
node_modules/chokidar/lib/constants.js
generated
vendored
@@ -2,6 +2,7 @@
|
||||
|
||||
const {sep} = require('path');
|
||||
const {platform} = process;
|
||||
const os = require('os');
|
||||
|
||||
exports.EV_ALL = 'all';
|
||||
exports.EV_READY = 'ready';
|
||||
@@ -61,3 +62,4 @@ exports.IDENTITY_FN = val => val;
|
||||
exports.isWindows = platform === 'win32';
|
||||
exports.isMacos = platform === 'darwin';
|
||||
exports.isLinux = platform === 'linux';
|
||||
exports.isIBMi = os.type() === 'OS400';
|
||||
|
||||
3
node_modules/chokidar/lib/fsevents-handler.js
generated
vendored
3
node_modules/chokidar/lib/fsevents-handler.js
generated
vendored
@@ -104,7 +104,8 @@ const createFSEventsInstance = (path, callback) => {
|
||||
* @returns {Function} closer
|
||||
*/
|
||||
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);
|
||||
let cont = FSEventsWatchers.get(watchPath);
|
||||
|
||||
|
||||
10
node_modules/chokidar/lib/nodefs-handler.js
generated
vendored
10
node_modules/chokidar/lib/nodefs-handler.js
generated
vendored
@@ -421,7 +421,15 @@ async _handleSymlink(entry, directory, path, item) {
|
||||
if (!this.fsw.options.followSymlinks) {
|
||||
// watch symlink directly (don't follow) and detect changes
|
||||
this.fsw._incrReadyCount();
|
||||
const linkPath = await fsrealpath(path);
|
||||
|
||||
let linkPath;
|
||||
try {
|
||||
linkPath = await fsrealpath(path);
|
||||
} catch (e) {
|
||||
this.fsw._emitReady();
|
||||
return true;
|
||||
}
|
||||
|
||||
if (this.fsw.closed) return;
|
||||
if (dir.has(item)) {
|
||||
if (this.fsw._symlinkPaths.get(full) !== linkPath) {
|
||||
|
||||
Reference in New Issue
Block a user