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

find-file

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

find-file - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

11

index.js

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

files = files.filter(function (file) {
return file.name === self.name() && !file.stats.isDirectory();
return !file.stats.isDirectory();
});

@@ -101,2 +101,3 @@

var items = [];
var self = this;

@@ -110,2 +111,10 @@ each(this.where(), function (dir, i, done) {

files = files.filter(function (file) {
return path.basename(file) === self.name();
});
files = files.map(function (file) {
return path.join(dir, file);
});
items = items.concat(files);

@@ -112,0 +121,0 @@ done();

2

package.json
{
"name": "find-file",
"version": "1.0.0",
"version": "1.0.1",
"description": "Search for a file in an array of paths",

@@ -5,0 +5,0 @@ "license": "MIT",

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