Comparing version 1.0.16 to 1.1.0
@@ -416,2 +416,21 @@ 'use strict'; | ||
}); | ||
it('does not loop endlessly when watching directories with recursive symlinks', function (done) { | ||
fse.mkdirSync(path.join(workDir, 'test')); | ||
fse.symlinkSync(path.join(workDir, 'test'), path.join(workDir, 'test', 'link')); | ||
var watch = void 0; | ||
return nsfw(workDir, function () {}, { debounceMS: DEBOUNCE, errorCallback: function errorCallback() {} | ||
}).then(function (_w) { | ||
watch = _w; | ||
return watch.start(); | ||
}).then(function () { | ||
return watch.stop(); | ||
}).then(done, function () { | ||
return watch.stop().then(function (err) { | ||
return done.fail(err); | ||
}); | ||
}); | ||
}); | ||
}); | ||
@@ -520,2 +539,22 @@ | ||
it('creates and destroys many watchers', function (done) { | ||
var watcher = null; | ||
var promiseChain = Promise.resolve(); | ||
for (var i = 0; i < 100; i++) { | ||
promiseChain = promiseChain.then(function () { | ||
return nsfw(stressRepoPath, function () {}); | ||
}).then(function (w) { | ||
watcher = w; | ||
return watcher.start(); | ||
}).then(function () { | ||
return watcher.stop(); | ||
}); | ||
} | ||
promiseChain.then(done, function (err) { | ||
return done.fail(err); | ||
}); | ||
}); | ||
afterEach(function (done) { | ||
@@ -522,0 +561,0 @@ return fse.remove(stressRepoPath).then(done); |
{ | ||
"name": "nsfw", | ||
"version": "1.0.16", | ||
"version": "1.1.0", | ||
"description": "A simple file watcher for Node", | ||
@@ -26,3 +26,2 @@ "main": "lib/src/index.js", | ||
"includes", | ||
"openpa", | ||
"binding.gyp" | ||
@@ -29,0 +28,0 @@ ], |
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
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
666
89614
28