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

connect

Package Overview
Dependencies
Maintainers
0
Versions
234
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

connect - npm Package Compare versions

Comparing version 1.4.6 to 1.5.0

lib/middleware/directory.js

2

lib/connect.js

@@ -29,3 +29,3 @@

exports.version = '1.4.6';
exports.version = '1.5.0';

@@ -32,0 +32,0 @@ /**

@@ -31,2 +31,3 @@

* - [static](middleware-static.html) streaming static file server supporting `Range` and more
* - [directory](middleware-directory.html) directory listing middleware
* - [vhost](middleware-vhost.html) virtual host sub-domain mapping middleware

@@ -33,0 +34,0 @@ * - [favicon](middleware-favicon.html) efficient favicon server (with default icon)

{
"name": "connect",
"version": "1.4.6",
"version": "1.5.0",
"description": "High performance middleware framework",

@@ -18,2 +18,4 @@ "keywords": ["framework", "web", "middleware", "connect", "rack"],

"sass": "0.5.0",
"markdown": "0.2.1",
"ejs": "0.4.3",
"should": "0.2.1"

@@ -20,0 +22,0 @@ },

/**
* Module dependencies.
*/
require.paths.unshift(__dirname + '/support');
var connect = require('./');
var connect = require('./')
, app = connect();
connect(
connect.static('/Users/tj/projects', { hidden: true })
, connect.directory('/Users/tj/projects', { hidden: false, icons: true })
).listen(3000);
// 2235.12 rps
// 2171
// 2300
app.use(connect.static(__dirname + '/lib'));
app.use(connect.directory(__dirname + '/lib', { hidden: true, icons: true }));
app.listen(3000);

Sorry, the diff of this file is not supported yet

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