Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

findup

Package Overview
Dependencies
2
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.4 to 0.1.5

7

index.js

@@ -67,6 +67,7 @@ var fs = require('fs'),

var parentDir = Path.join(dir, '..');
if (self.stopPlease) return self.emit('end');
if (dir === '/') return self.emit('end');
if (dir === parentDir) return self.emit('end');
if(dir.indexOf('../../') !== -1 ) return self.emit('error', new Error(dir + ' is not correct.'));
self._find(Path.join(dir, '..'), iterator, options, callback);
self._find(parentDir, iterator, options, callback);
});

@@ -89,3 +90,3 @@ };

var initialDir = dir;
while(dir !== '/'){
while(dir !== Path.join(dir, '..')){
if(dir.indexOf('../../') !== -1 ) throw new Error(initialDir + ' is not correct.');

@@ -92,0 +93,0 @@ if(iteratorSync(dir)) return dir;

@@ -5,3 +5,3 @@ {

"description": "Walk up ancester's dir up to root",
"version": "0.1.4",
"version": "0.1.5",
"repository": {

@@ -8,0 +8,0 @@ "type": "git",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc