Comparing version 0.5.2 to 0.5.3
@@ -11,3 +11,3 @@ // This is so you can have options aliasing and defaults in one place. | ||
gzip = false, | ||
defaultExt, | ||
defaultExt = '.html', | ||
handleError = true; | ||
@@ -57,9 +57,4 @@ | ||
if (opts.defaultExt) { | ||
if (opts.defaultExt === true) { | ||
defaultExt = 'html'; | ||
} | ||
else { | ||
defaultExt = opts.defaultExt; | ||
} | ||
if (opts.defaultExt && typeof opts.defaultExt === 'string') { | ||
defaultExt = opts.defaultExt; | ||
} | ||
@@ -66,0 +61,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"description": "A simple static file server middleware that works with both Express and Flatiron", | ||
"version": "0.5.2", | ||
"version": "0.5.3", | ||
"homepage": "https://github.com/jesusabdullah/node-ecstatic", | ||
@@ -8,0 +8,0 @@ "repository": { |
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
237557
1119