Socket
Socket
Sign inDemoInstall

serve-handler

Package Overview
Dependencies
19
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.3.2 to 2.3.3

2

package.json
{
"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 @@

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