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

findit

Package Overview
Dependencies
Maintainers
0
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

findit - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

test/cycle.js

13

index.js

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

var em = new EventEmitter;
var inodes = {};

@@ -28,3 +29,11 @@ function finder (dir, f) {

if (stat.isDirectory()) {
if (stat.isSymbolicLink()) {
em.emit('link', file, stat);
}
if (inodes[stat.ino]) {
// already seen this inode, probably a recursive symlink
this(null);
}
else if (stat.isDirectory()) {
em.emit('directory', file, stat);

@@ -37,2 +46,4 @@ finder(file, this);

}
inodes[stat.ino] = true;
})

@@ -39,0 +50,0 @@ .seq(f.bind({}, null))

{
"name" : "findit",
"version" : "0.0.4",
"version" : "0.0.5",
"description" : "Walk a directory tree.",

@@ -9,2 +9,6 @@ "main" : "./index.js",

},
"devDependencies" : {
"hashish" : ">=0.0.2 <0.1",
"expresso" : "0.7.x"
},
"repository" : {

@@ -11,0 +15,0 @@ "type" : "git",

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