serve-handler
Advanced tools
Comparing version 2.3.2 to 2.3.3
{ | ||
"name": "serve-handler", | ||
"version": "2.3.2", | ||
"version": "2.3.3", | ||
"description": "The routing foundation of `serve` and static deployments on Now", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -192,3 +192,3 @@ // Native | ||
if (typeof configEntry !== 'undefined') { | ||
matches = (configEntry === !negative); | ||
matches = (configEntry === !matches); | ||
@@ -246,9 +246,3 @@ if (!matches && Array.isArray(configEntry)) { | ||
// need to check for the existance of `.htm` ones. | ||
const relatedHTM = findRelated(current, relativePath, stat, '.htm'); | ||
if (relatedHTM) { | ||
return relatedHTM; | ||
} | ||
return null; | ||
return findRelated(current, relativePath, stat, '.htm'); | ||
}; | ||
@@ -387,7 +381,3 @@ | ||
if (acceptsJSON) { | ||
return JSON.stringify(spec); | ||
} | ||
return template(spec); | ||
return acceptsJSON ? JSON.stringify(spec) : template(spec); | ||
}; | ||
@@ -394,0 +384,0 @@ |
21360
394