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

sane

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sane - npm Package Compare versions

Comparing version 1.3.1 to 1.3.2

2

package.json
{
"name": "sane",
"version": "1.3.1",
"version": "1.3.2",
"description": "Sane aims to be fast, small, and reliable file system watcher.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -279,3 +279,5 @@ 'use strict';

this.watchdir(fullPath);
this.emitEvent(ADD_EVENT, relativePath, stat);
if (common.isFileIncluded(this.globs, this.dot, relativePath)) {
this.emitEvent(ADD_EVENT, relativePath, stat);
}
}

@@ -282,0 +284,0 @@ } else {

@@ -138,3 +138,3 @@ 'use strict';

// Make sure we honor the dot option if even we're not using globs.
options.expression = ['match', '*', 'basename', {
options.expression = ['match', '**', 'wholename', {
includedotfiles: false

@@ -141,0 +141,0 @@ }];

@@ -370,6 +370,14 @@ var os = require('os');

});
this.watcher.on('add', function(filepath, dir) {
if (filepath.match(/^\.lol/)) {
done(new Error('Should not emit add events for ignored dirs'));
}
});
this.watcher.on('ready', function() {
fs.mkdirSync(jo(testdir, '.lol'));
fs.writeFileSync(jo(testdir, '.lol', 'file'), 'wow');
fs.writeFileSync(jo(testdir, '.file_3'), 'wow');
var subdir = jo(testdir, '.lol' + Math.floor(Math.random() * 10000));
fs.mkdirSync(subdir);
fs.writeFileSync(jo(subdir, 'file'), 'wow');
fs.writeFileSync(jo(subdir, '.file_3'), 'wow');
fs.writeFileSync(jo(testdir, 'file_1'), 'wow');

@@ -376,0 +384,0 @@ });

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