From cc3b9ad64e9d7e44823c7a5c633de919c422d80d Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Wed, 10 Apr 2019 23:56:48 +0200 Subject: [PATCH] Random updates. --- index.js | 4 +-- lib/nodefs-handler.js | 2 +- package.json | 70 +++++++++++++++++++++++-------------------- 3 files changed, 41 insertions(+), 35 deletions(-) diff --git a/index.js b/index.js index cfd1d3c4..88016e3e 100644 --- a/index.js +++ b/index.js @@ -841,13 +841,13 @@ _readdirp(options) { this._streams.add(stream); stream.on('close', () => { stream = null; - }) + }); stream.on('end', () => { if (stream) { this._streams.delete(stream); stream = null; } - }) + }); return stream; } diff --git a/lib/nodefs-handler.js b/lib/nodefs-handler.js index 625ed58b..96483c4f 100644 --- a/lib/nodefs-handler.js +++ b/lib/nodefs-handler.js @@ -148,7 +148,7 @@ const setFsWatchListener = (path, fullPath, options, handlers) => { const set = cont[key]; set.clear(); Object.freeze(set); - }) + }); cont.watcher = null; Object.freeze(cont); } diff --git a/package.json b/package.json index 00397a98..3820354a 100644 --- a/package.json +++ b/package.json @@ -2,41 +2,17 @@ "name": "chokidar", "description": "A neat wrapper around node.js fs.watch / fs.watchFile / fsevents.", "version": "3.0.0-pre", - "keywords": [ - "fs", - "watch", - "watchFile", - "watcher", - "watching", - "file", - "fsevents" - ], - "types": "./types/index.d.ts", "homepage": "https://github.com/paulmillr/chokidar", - "author": "Paul Miller (https://paulmillr.com), Elan Shanker", - "repository": { - "type": "git", - "url": "https://github.com/paulmillr/chokidar.git" - }, - "bugs": { - "url": "https://github.com/paulmillr/chokidar/issues" - }, - "license": "MIT", - "scripts": { - "test": "nyc mocha --exit", - "mocha": "mocha", - "lint": "jshint index.js lib", - "coveralls": "nyc report --reporter=text-lcov | coveralls", - "dtslint": "dtslint types" - }, - "files": [ - "index.js", - "lib/", - "types/index.d.ts", - "LICENSE" + "author": "Paul Miller (https://paulmillr.com)", + "contributors": [ + "Paul Miller (https://paulmillr.com)", + "Elan Shanker" ], + "engines": { + "node": ">= 8" + }, "dependencies": { - "anymatch": "github:micromatch/anymatch", + "anymatch": "^3.0.0", "async-each": "^1.0.1", "braces": "^3.0.0", "glob-parent": "^5.0.0", @@ -61,6 +37,36 @@ "sinon-chai": "^3.3.0", "upath": "^1.1.2" }, + "files": [ + "index.js", + "lib/", + "types/index.d.ts" + ], + "repository": { + "type": "git", + "url": "https://github.com/paulmillr/chokidar.git" + }, + "bugs": { + "url": "https://github.com/paulmillr/chokidar/issues" + }, + "license": "MIT", + "scripts": { + "test": "nyc mocha --exit", + "mocha": "mocha", + "lint": "jshint index.js lib", + "coveralls": "nyc report --reporter=text-lcov | coveralls", + "dtslint": "dtslint types" + }, + "keywords": [ + "fs", + "watch", + "watchFile", + "watcher", + "watching", + "file", + "fsevents" + ], + "types": "./types/index.d.ts", "jshintConfig": { "node": true, "curly": false,