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

include-all

Package Overview
Dependencies
Maintainers
2
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

include-all - npm Package Compare versions

Comparing version 0.1.3 to 0.1.5

6

index.js

@@ -10,2 +10,6 @@ var fs = require('fs');

if (typeof(options.force) == 'undefined') {
options.force = true;
}
// Sane default for `filter` option

@@ -77,3 +81,3 @@ if (!options.filter) {

Object.keys(modules).forEach(function(identity) {
if (typeof(modules[identity]) !== 'object') {
if (typeof(modules[identity]) !== 'object' && typeof(modules[identity]) !== 'function') {
return;

@@ -80,0 +84,0 @@ }

2

package.json
{
"name": "include-all",
"version": "0.1.3",
"version": "0.1.5",
"description": "An easy way to include all node.js modules within a directory. This is a fork of felixge's awesome module, require-all (https://github.com/felixge/node-require-all) which adds the ability to mark an include as **optional**.",

@@ -5,0 +5,0 @@ "main": "index.js",

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