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 0.2.1 to 0.3.0

3

index.js

@@ -78,2 +78,3 @@ var fs = require('fs');

Watcher.prototype.register = function(filepath) {
var relativePath = path.relative(this.root, filepath);
var globs = this.globs;

@@ -83,3 +84,3 @@ var matched;

for (var i = 0; i < globs.length; i++) {
if (minimatch(filepath, globs[i])) {
if (minimatch(relativePath, globs[i])) {
matched = true;

@@ -86,0 +87,0 @@ break;

{
"name": "sane",
"version": "0.2.1",
"version": "0.3.0",
"description": "Sane aims to be fast, small, and reliable file system watcher. No bells and whistles, just change events.",

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

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