New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

broccoli-content-funnel

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli-content-funnel - npm Package Compare versions

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);

4

package.json
{
"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": {

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