Socket
Socket
Sign inDemoInstall

express

Package Overview
Dependencies
34
Maintainers
7
Versions
276
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.10.7 to 4.10.8

2

lib/middleware/init.js
/**
* Initialization middleware, exposing the
* request and response to eachother, as well
* request and response to each other, as well
* as defaulting the X-Powered-By header field.

@@ -5,0 +5,0 @@ *

@@ -155,5 +155,3 @@

if (err || options.length === 0) return old(err);
var body = options.join(',');
return res.set('Allow', body).send(body);
sendOptionsResponse(res, options, old);
});

@@ -575,2 +573,13 @@ }

// send an OPTIONS response
function sendOptionsResponse(res, options, next) {
try {
var body = options.join(',');
res.set('Allow', body);
res.send(body);
} catch (err) {
next(err);
}
}
// wrap a function

@@ -577,0 +586,0 @@ function wrap(old, fn) {

{
"name": "express",
"description": "Fast, unopinionated, minimalist web framework",
"version": "4.10.7",
"version": "4.10.8",
"author": "TJ Holowaychuk <tj@vision-media.ca>",

@@ -44,3 +44,3 @@ "contributors": [

"path-to-regexp": "0.1.3",
"proxy-addr": "~1.0.4",
"proxy-addr": "~1.0.5",
"qs": "2.3.3",

@@ -65,10 +65,10 @@ "range-parser": "~1.0.2",

"hjs": "~0.0.6",
"body-parser": "~1.9.3",
"body-parser": "~1.10.1",
"connect-redis": "~2.1.0",
"cookie-parser": "~1.3.3",
"express-session": "~1.9.2",
"jade": "~1.7.0",
"method-override": "~2.3.0",
"morgan": "~1.5.0",
"multiparty": "~4.0.0",
"jade": "~1.8.2",
"method-override": "~2.3.1",
"morgan": "~1.5.1",
"multiparty": "~4.1.0",
"vhost": "~3.0.0"

@@ -75,0 +75,0 @@ },

Sorry, the diff of this file is too big to display

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