From 06823fbf1c2e763a5bf76c3990ca98fbbcd98691 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Tue, 14 May 2024 14:05:49 +0800 Subject: updated node_modules --- node_modules/chokidar/README.md | 2 +- node_modules/chokidar/index.js | 2 +- node_modules/chokidar/lib/constants.js | 1 + node_modules/chokidar/lib/fsevents-handler.js | 2 ++ node_modules/chokidar/package.json | 25 +++++-------------------- node_modules/chokidar/types/index.d.ts | 4 ++++ 6 files changed, 14 insertions(+), 22 deletions(-) (limited to 'node_modules/chokidar') diff --git a/node_modules/chokidar/README.md b/node_modules/chokidar/README.md index d6a57fd9..8e25decb 100644 --- a/node_modules/chokidar/README.md +++ b/node_modules/chokidar/README.md @@ -301,7 +301,7 @@ For more detailed changelog, see [`full_changelog.md`](.github/full_changelog.md Why was chokidar named this way? What's the meaning behind it? ->Chowkidar is a transliteration of a Hindi word meaning 'watchman, gatekeeper', चौकीदार. This ultimately comes from Sanskrit _ चतुष्क_ (crossway, quadrangle, consisting-of-four). +>Chowkidar is a transliteration of a Hindi word meaning 'watchman, gatekeeper', चौकीदार. This ultimately comes from Sanskrit _ चतुष्क_ (crossway, quadrangle, consisting-of-four). This word is also used in other languages like Urdu as (چوکیدار) which is widely used in Pakistan and India. ## License diff --git a/node_modules/chokidar/index.js b/node_modules/chokidar/index.js index ed4b6d5b..8752893c 100644 --- a/node_modules/chokidar/index.js +++ b/node_modules/chokidar/index.js @@ -441,7 +441,7 @@ add(paths_, _origAdd, _internal) { if (this.options.useFsEvents && this._fsEventsHandler) { if (!this._readyCount) this._readyCount = paths.length; - if (this.options.persistent) this._readyCount *= 2; + if (this.options.persistent) this._readyCount += paths.length; paths.forEach((path) => this._fsEventsHandler._addToFsEvents(path)); } else { if (!this._readyCount) this._readyCount = 0; diff --git a/node_modules/chokidar/lib/constants.js b/node_modules/chokidar/lib/constants.js index 1454f85b..4743865d 100644 --- a/node_modules/chokidar/lib/constants.js +++ b/node_modules/chokidar/lib/constants.js @@ -24,6 +24,7 @@ exports.FSEVENT_DELETED = 'deleted'; exports.FSEVENT_MOVED = 'moved'; exports.FSEVENT_CLONED = 'cloned'; exports.FSEVENT_UNKNOWN = 'unknown'; +exports.FSEVENT_FLAG_MUST_SCAN_SUBDIRS = 1; exports.FSEVENT_TYPE_FILE = 'file'; exports.FSEVENT_TYPE_DIRECTORY = 'directory'; exports.FSEVENT_TYPE_SYMLINK = 'symlink'; diff --git a/node_modules/chokidar/lib/fsevents-handler.js b/node_modules/chokidar/lib/fsevents-handler.js index 0f7f2cba..fe29393c 100644 --- a/node_modules/chokidar/lib/fsevents-handler.js +++ b/node_modules/chokidar/lib/fsevents-handler.js @@ -37,6 +37,7 @@ const { FSEVENT_MOVED, // FSEVENT_CLONED, FSEVENT_UNKNOWN, + FSEVENT_FLAG_MUST_SCAN_SUBDIRS, FSEVENT_TYPE_FILE, FSEVENT_TYPE_DIRECTORY, FSEVENT_TYPE_SYMLINK, @@ -148,6 +149,7 @@ function setFSEventsListener(path, realPath, listener, rawEmitter) { rawEmitter, watcher: createFSEventsInstance(watchPath, (fullPath, flags) => { if (!cont.listeners.size) return; + if (flags & FSEVENT_FLAG_MUST_SCAN_SUBDIRS) return; const info = fsevents.getInfo(fullPath, flags); cont.listeners.forEach(list => { list(fullPath, flags, info); diff --git a/node_modules/chokidar/package.json b/node_modules/chokidar/package.json index 6c3cd27c..e8f8b3d9 100644 --- a/node_modules/chokidar/package.json +++ b/node_modules/chokidar/package.json @@ -1,7 +1,7 @@ { "name": "chokidar", "description": "Minimal and efficient cross-platform file watching library", - "version": "3.5.3", + "version": "3.6.0", "homepage": "https://github.com/paulmillr/chokidar", "author": "Paul Miller (https://paulmillr.com)", "contributors": [ @@ -12,6 +12,7 @@ "node": ">= 8.10.0" }, "main": "index.js", + "types": "./types/index.d.ts", "dependencies": { "anymatch": "~3.1.2", "braces": "~3.0.2", @@ -30,11 +31,10 @@ "dtslint": "^3.3.0", "eslint": "^7.0.0", "mocha": "^7.0.0", - "nyc": "^15.0.0", "rimraf": "^3.0.0", "sinon": "^9.0.1", "sinon-chai": "^3.3.0", - "typescript": "~4.4.3", + "typescript": "^4.4.3", "upath": "^1.2.0" }, "files": [ @@ -53,6 +53,7 @@ "scripts": { "dtslint": "dtslint types", "lint": "eslint --report-unused-disable-directives --ignore-path .gitignore .", + "build": "npm ls", "mocha": "mocha --exit --timeout 90000", "test": "npm run lint && npm run mocha" }, @@ -65,21 +66,5 @@ "file", "fsevents" ], - "types": "./types/index.d.ts", - "nyc": { - "include": [ - "index.js", - "lib/*.js" - ], - "reporter": [ - "html", - "text" - ] - }, - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ] + "funding": "https://paulmillr.com/funding/" } diff --git a/node_modules/chokidar/types/index.d.ts b/node_modules/chokidar/types/index.d.ts index aab8e337..45580663 100644 --- a/node_modules/chokidar/types/index.d.ts +++ b/node_modules/chokidar/types/index.d.ts @@ -63,6 +63,10 @@ export class FSWatcher extends EventEmitter implements fs.FSWatcher { on(event: 'unlink'|'unlinkDir', listener: (path: string) => void): this; on(event: string, listener: (...args: any[]) => void): this; + + ref(): this; + + unref(): this; } export interface WatchOptions { -- cgit v1.2.3