Comparing version 1.0.4 to 1.0.5
@@ -461,2 +461,3 @@ 'use strict'; | ||
var watch = void 0; | ||
var errorRestart = Promise.resolve(); | ||
@@ -466,3 +467,5 @@ return nsfw(stressRepoPath, function () { | ||
}, { | ||
errorCallback: function errorCallback() {} | ||
errorCallback: function errorCallback() { | ||
errorRestart = watch.stop().then(watch.start); | ||
} | ||
}).then(function (_w) { | ||
@@ -474,2 +477,4 @@ watch = _w; | ||
}).then(function () { | ||
return errorRestart; | ||
}).then(function () { | ||
expect(count).toBeGreaterThan(0); | ||
@@ -485,3 +490,5 @@ return watch.stop(); | ||
}, { | ||
errorCallback: function errorCallback() {} | ||
errorCallback: function errorCallback() { | ||
errorRestart = watch.stop().then(watch.start); | ||
} | ||
}); | ||
@@ -491,2 +498,3 @@ }).then(function (_w) { | ||
count = 0; | ||
errorRestart = Promise.resolve(); | ||
return watch.start(); | ||
@@ -504,2 +512,4 @@ }).then(function () { | ||
}).then(function () { | ||
return errorRestart; | ||
}).then(function () { | ||
expect(count).toBeGreaterThan(0); | ||
@@ -506,0 +516,0 @@ count = 0; |
{ | ||
"name": "nsfw", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "A simple file watcher for Node", | ||
@@ -5,0 +5,0 @@ "main": "lib/src/index.js", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
192789
587
2