Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

serve-handler

Package Overview
Dependencies
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serve-handler - npm Package Compare versions

Comparing version 4.0.1 to 5.0.0

4

package.json
{
"name": "serve-handler",
"version": "4.0.1",
"version": "5.0.0",
"description": "The routing foundation of `serve` and static deployments on Now",

@@ -68,3 +68,3 @@ "main": "src/index.js",

"fast-url-parser": "1.1.3",
"glob-slasher": "1.0.1",
"glob-slash": "1.0.0",
"mime-types": "2.1.18",

@@ -71,0 +71,0 @@ "minimatch": "3.0.4",

@@ -180,4 +180,4 @@ # serve-handler

}]
}]
}
}
]
}

@@ -184,0 +184,0 @@ ```

@@ -8,3 +8,3 @@ // Native

const url = require('fast-url-parser');
const slasher = require('glob-slasher');
const slasher = require('glob-slash');
const minimatch = require('minimatch');

@@ -220,3 +220,11 @@ const pathToRegExp = require('path-to-regexp');

return Object.assign(defaultHeaders, related);
const headers = Object.assign(defaultHeaders, related);
for (const key in headers) {
if (headers.hasOwnProperty(key) && headers[key] === null) {
delete headers[key];
}
}
return headers;
};

@@ -510,3 +518,3 @@

const cwd = process.cwd();
const current = config.public ? path.join(cwd, config.public) : cwd;
const current = config.public ? path.resolve(cwd, config.public) : cwd;
const handlers = getHandlers(methods);

@@ -513,0 +521,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc