Comparing version 2.2.0 to 2.2.1
@@ -113,4 +113,7 @@ const { promises: fs } = require('fs'); | ||
this.resume = () => implementation.resume(); | ||
this.getExcludedPaths = () => implementation.getExcludedPaths(); | ||
this.updateExcludedPaths = (paths) => implementation.updateExcludedPaths(paths); | ||
} | ||
nsfw.actions = { | ||
@@ -117,0 +120,0 @@ CREATED: 0, |
{ | ||
"name": "nsfw", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "A simple file watcher for Node", | ||
@@ -8,3 +8,4 @@ "main": "js/src/index.js", | ||
"lint": "eslint js/src js/spec", | ||
"test": "yarn lint && node js/scripts/test.js" | ||
"test": "yarn lint && node js/scripts/test.js", | ||
"test:nolint": "node js/scripts/test.js" | ||
}, | ||
@@ -11,0 +12,0 @@ "repository": { |
@@ -72,2 +72,5 @@ # node-sentinel-file-watcher | ||
// we are now watching dir2 for events! | ||
// we can update excludedPaths array | ||
return watcher2.updateExcludedPaths(['dir2/node_modules', '.git']); | ||
}) | ||
@@ -86,2 +89,3 @@ .then(function() { | ||
- excludedPaths: array with the absolute paths we want to exclude watching. | ||
You can update the excludedPaths array without restarting the service using the `updateExcludedPaths` function | ||
@@ -88,0 +92,0 @@ ## Callback Argument |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
94414
166
133
1