Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nsfw

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nsfw - npm Package Compare versions

Comparing version 1.0.16 to 1.1.0

includes/SingleshotSemaphore.h

39

lib/spec/index-spec.js

@@ -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);

3

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc