broccoli-content-funnel
Advanced tools
Comparing version 0.0.6 to 0.1.0
16
index.js
@@ -8,4 +8,2 @@ 'use strict'; | ||
const readFile = denodeify(fs.readFile); | ||
const realpath = denodeify(fs.realpath); | ||
const stat = denodeify(fs.stat); | ||
@@ -39,14 +37,6 @@ class ContentFunnel extends Funnel { | ||
.on('data', item => { | ||
if (item.stats.isDirectory()) { | ||
return; | ||
} | ||
promises.push(Promise.resolve().then(() => { | ||
if (item.stats.isSymbolicLink()) { | ||
return Promise.all([ | ||
realpath(item.path), | ||
stat(item.path) | ||
]).then(([path, stats]) => ({ path, stats })); | ||
} | ||
return item; | ||
}).then(item => { | ||
if (item.stats.isDirectory()) { | ||
return; | ||
} | ||
if (type === 'function') { | ||
@@ -53,0 +43,0 @@ return this.options[option](item.path); |
{ | ||
"name": "broccoli-content-funnel", | ||
"version": "0.0.6", | ||
"version": "0.1.0", | ||
"description": "Funnel based on file contents", | ||
@@ -29,3 +29,3 @@ "main": "index.js", | ||
"denodeify": "^1.2.1", | ||
"klaw": "^2.1.1" | ||
"klaw": "^3.0.0" | ||
}, | ||
@@ -32,0 +32,0 @@ "devDependencies": { |
4299
56
+ Addedklaw@3.0.0(transitive)
- Removedklaw@2.1.1(transitive)
Updatedklaw@^3.0.0