Skip to content

Commit

Permalink
Random updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Apr 10, 2019
1 parent 3b51778 commit cc3b9ad
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 35 deletions.
4 changes: 2 additions & 2 deletions index.js
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion lib/nodefs-handler.js
Expand Up @@ -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);
}
Expand Down
70 changes: 38 additions & 32 deletions package.json
Expand Up @@ -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",
Expand All @@ -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,
Expand Down

0 comments on commit cc3b9ad

Please sign in to comment.