include-all
Advanced tools
Comparing version 0.1.3 to 0.1.5
@@ -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 @@ } |
{ | ||
"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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
8088
186
0