Socket
Socket
Sign inDemoInstall

express-load

Package Overview
Dependencies
0
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.0 to 1.1.1

6

HISTORY.md

@@ -0,1 +1,7 @@

1.1.1 / 2012-09-15
==================
* Fixed logging
* Fixed recursive hidden directories
1.1.0 / 2012-08-23

@@ -2,0 +8,0 @@ ==================

17

lib/express-load.js

@@ -60,12 +60,10 @@ /*!

if (fs.statSync(script).isDirectory()) {
this.then(path.join(location, dir[file]));
if (dir[file].charAt(0) === '.') {
this.__log('Ignoring hidden entity: ' + dir[file], 'warn');
allow = false;
}
if (dir[file].charAt(0) === '.') {
if (this.verbose) {
this.log('Ignoring hidden entity: ' + dir[file], 'warn');
}
if (allow && fs.statSync(script).isDirectory()) {
this.then(path.join(location, dir[file]));
allow = false;

@@ -222,5 +220,6 @@ }

ExpressLoad.prototype.__log = function(message, type) {
var format = '%s: %s'; // title: message
if (this.options.verbose) {
if (this.options.verbose) {
var format = '%s: %s'; // title: message
switch (type) {

@@ -227,0 +226,0 @@

{
"name": "express-load",
"description": "Autoload modules into an Express application instance, config, models, routes, controllers etc...",
"version": "1.1.0",
"version": "1.1.1",
"author": {

@@ -6,0 +6,0 @@ "name": "Jarrad Seers",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc