[Pkg-javascript-commits] [node-findit2] 02/03: Imported Upstream version 2.2.3

Andrew Kelley andrewrk-guest at moszumanska.debian.org
Sun Oct 19 15:03:55 UTC 2014


This is an automated email from the git hooks/post-receive script.

andrewrk-guest pushed a commit to branch master
in repository node-findit2.

commit 83e38a24a18e6169084ff09cae7446a24ec49566
Author: Andrew Kelley <superjoe30 at gmail.com>
Date:   Sun Oct 19 15:02:47 2014 +0000

    Imported Upstream version 2.2.3
---
 README.md    | 6 +++---
 index.js     | 2 +-
 package.json | 5 ++++-
 3 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/README.md b/README.md
index 86f6954..14b2f46 100644
--- a/README.md
+++ b/README.md
@@ -25,16 +25,16 @@ and happily hand the maintainer hat back to substack.
 # example
 
 ``` js
-var finder = require('findit')(process.argv[2] || '.');
+var finder = require('findit2')(process.argv[2] || '.');
 var path = require('path');
 
-finder.on('directory', function (dir, stat, stop) {
+finder.on('directory', function (dir, stat, stop, linkPath) {
     var base = path.basename(dir);
     if (base === '.git' || base === 'node_modules') stop()
     else console.log(dir + '/')
 });
 
-finder.on('file', function (file, stat) {
+finder.on('file', function (file, stat, linkPath) {
     console.log(file);
 });
 
diff --git a/index.js b/index.js
index aa82454..20c81b9 100644
--- a/index.js
+++ b/index.js
@@ -84,7 +84,7 @@ function findit(basedir, opts) {
         pendEnd();
         return;
       }
-      var fullPath = path.join(path.dirname(linkPath), linkString);
+      var fullPath = path.resolve(path.dirname(linkPath), linkString);
       emitter.emit('readlink', linkPath, fullPath);
       walkPath(fullPath, linkPath);
       pendEnd();
diff --git a/package.json b/package.json
index 0e4ddc6..23fd99f 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "findit2",
-  "version": "2.2.2",
+  "version": "2.2.3",
   "description": "walk a directory tree recursively with events",
   "main": "index.js",
   "devDependencies": {
@@ -23,5 +23,8 @@
     "traversal"
   ],
   "author": "Andrew Kelley <superjoe30 at gmail.com>",
+  "engines": {
+    "node": ">=0.8.22"
+  },
   "license": "MIT"
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-findit2.git



More information about the Pkg-javascript-commits mailing list