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 0.5.3 to 0.5.4

2

._index.js

@@ -1,4 +0,4 @@

Mac OS X  2��ATTR�����"�"com.macromates.caret{
Mac OS X  2��ATTR�ک��"�"com.macromates.caret{
column = 42;
line = 1;
}

@@ -1,4 +0,4 @@

Mac OS X  2��ATTR����"�"com.macromates.caret{
Mac OS X  2��ATTR�ڮ��"�"com.macromates.caret{
column = 19;
line = 3;
}

@@ -1,4 +0,4 @@

Mac OS X  2��ATTR����#�#com.macromates.caret{
Mac OS X  2��ATTR�ڲ��#�#com.macromates.caret{
column = 23;
line = 11;
}

@@ -1,4 +0,4 @@

Mac OS X  2��ATTR����#�#com.macromates.caret{
Mac OS X  2��ATTR�ڿ��#�#com.macromates.caret{
column = 24;
line = 11;
}

@@ -12,3 +12,3 @@

exports.version = '0.5.3';
exports.version = '0.5.4';

@@ -21,4 +21,4 @@ /**

, http = require('http')
, utils = require('./utils')
, assert = require('assert');
, assert = require('assert')
, parseUrl = require('url').parse;

@@ -205,7 +205,7 @@

try {
var path = utils.pathname(req.url);
if (path === undefined) path = '/';
var pathname = parseUrl(req.url).pathname;
if (pathname === undefined) pathname = '/';
// Skip this layer if the route doesn't match.
if (path.indexOf(layer.route) !== 0) {
if (pathname.indexOf(layer.route) !== 0) {
next(err);

@@ -215,3 +215,3 @@ return;

var nextChar = path[layer.route.length];
var nextChar = pathname[layer.route.length];
if (nextChar && nextChar !== '/' && nextChar !== '.') {

@@ -218,0 +218,0 @@ next(err);

@@ -1,4 +0,4 @@

Mac OS X  2��ATTR����"�"com.macromates.caret{
Mac OS X  2��ATTR�����"�"com.macromates.caret{
column = 0;
line = 24;
}

@@ -1,4 +0,4 @@

Mac OS X  2��ATTR����#�#com.macromates.caret{
Mac OS X  2��ATTR�����#�#com.macromates.caret{
column = 34;
line = 67;
}

@@ -1,1 +0,1 @@

Mac OS X  2��ATTR��!�� � com.macromates.caretx���R������<[k0?'3/«��
Mac OS X  2��ATTR����� � com.macromates.caretx���R������<[k0?'3/«��

@@ -1,4 +0,4 @@

Mac OS X  2��ATTR��#��#�#com.macromates.caret{
Mac OS X  2��ATTR�����#�#com.macromates.caret{
column = 21;
line = 45;
}

@@ -1,4 +0,4 @@

Mac OS X  2��ATTR��&��"�"com.macromates.caret{
Mac OS X  2��ATTR�����"�"com.macromates.caret{
column = 8;
line = 51;
}

@@ -1,1 +0,4 @@

Mac OS X  2��ATTR��(�� � com.macromates.caretx���R������<[k0?'3/«��
Mac OS X  2��ATTR�����"�"com.macromates.caret{
column = 5;
line = 30;
}

@@ -1,4 +0,4 @@

Mac OS X  2��ATTR��*��#�#com.macromates.caret{
Mac OS X  2��ATTR�����#�#com.macromates.caret{
column = 62;
line = 66;
}

@@ -1,1 +0,1 @@

Mac OS X  2��ATTR��,�� � com.macromates.caretx���R������<[k0?'3/«��
Mac OS X  2��ATTR����� � com.macromates.caretx���R������<[k0?'3/«��

@@ -1,1 +0,1 @@

Mac OS X  2��ATTR��.�� � com.macromates.caretx���R������<[k0?'3/«��
Mac OS X  2��ATTR����� � com.macromates.caretx���R������<[k0?'3/«��

@@ -1,4 +0,4 @@

Mac OS X  2��ATTR��0��!�!com.macromates.caret{
Mac OS X  2��ATTR�����!�!com.macromates.caret{
column = 0;
line = 1;
}

@@ -1,1 +0,1 @@

Mac OS X  2��ATTR��2�� � com.macromates.caretx���R������<[k0?'3/«��
Mac OS X  2��ATTR����� � com.macromates.caretx���R������<[k0?'3/«��

@@ -1,1 +0,1 @@

Mac OS X  2��ATTR��4�� � com.macromates.caretx���R������<[k0?'3/«��
Mac OS X  2��ATTR����� � com.macromates.caretx���R������<[k0?'3/«��

@@ -1,4 +0,4 @@

Mac OS X  2��ATTR��6��$�$com.macromates.caret{
Mac OS X  2��ATTR�����$�$com.macromates.caret{
column = 19;
line = 128;
}

@@ -1,1 +0,1 @@

Mac OS X  2��ATTR��8�� � com.macromates.caretx���R������<[k0?'3/«��
Mac OS X  2��ATTR����� � com.macromates.caretx���R������<[k0?'3/«��

@@ -1,1 +0,1 @@

Mac OS X  2��ATTR��:�� � com.macromates.caretx���R������<[k0?'3/«��
Mac OS X  2��ATTR����� � com.macromates.caretx���R������<[k0?'3/«��

@@ -1,4 +0,4 @@

Mac OS X  2��ATTR��<��$�$com.macromates.caret{
column = 10;
line = 263;
Mac OS X  2��ATTR�����"�"com.macromates.caret{
column = 0;
line = 67;
}

@@ -1,4 +0,4 @@

Mac OS X  2��ATTR��A��"�"com.macromates.caret{
Mac OS X  2��ATTR�����"�"com.macromates.caret{
column = 0;
line = 67;
}

@@ -1,4 +0,4 @@

Mac OS X  2��ATTR��C��#�#com.macromates.caret{
Mac OS X  2��ATTR�����#�#com.macromates.caret{
column = 69;
line = 30;
}

@@ -1,4 +0,4 @@

Mac OS X  2��ATTR��E��#�#com.macromates.caret{
Mac OS X  2��ATTR�����#�#com.macromates.caret{
column = 41;
line = 30;
}

@@ -22,17 +22,14 @@

module.exports = function cookieDecoder(){
return function cookieDecoder(req, res, next) {
var cookie = req.headers.cookie;
req.cookies = {};
if (cookie) {
try {
req.cookies = utils.parseCookie(cookie);
delete req.headers.cookie;
} catch (err) {
// Ignore
}
next();
} else {
next();
}
};
return function cookieDecoder(req, res, next) {
var cookie = req.headers.cookie;
req.cookies = {};
if (cookie) {
try {
req.cookies = utils.parseCookie(cookie);
} catch (err) {
return next(err);
}
}
next();
};
};

@@ -101,2 +101,4 @@

var keys = [];
if (!path) throw new Error(name + ' route requires a path');
if (!fn) throw new Error(name + ' route ' + path + ' requires a callback');
path = path instanceof RegExp

@@ -103,0 +105,0 @@ ? path

@@ -1,4 +0,4 @@

Mac OS X  2��ATTR��K��"�"com.macromates.caret{
Mac OS X  2��ATTR�����"�"com.macromates.caret{
column = 2;
line = 28;
}

@@ -13,3 +13,2 @@

var queryString = require('querystring'),
parseUrl = require('url').parse,
crypto = require('crypto'),

@@ -20,20 +19,2 @@ Path = require('path'),

/**
* Memory cache.
*/
var cache = {};
/**
* Memoized url.parse().pathname.
*
* @param {String} url
* @return {Object}
* @api public
*/
exports.pathname = function(url){
return cache[url] || (cache[url] = parseUrl(url).pathname);
}
/**
* Return md5 hash of the given string and optional encoding,

@@ -40,0 +21,0 @@ * defaulting to hex.

{
"name": "connect",
"description": "High performance middleware framework",
"version": "0.5.3",
"version": "0.5.4",
"contributors": [

@@ -6,0 +6,0 @@ { "name": "TJ Holowaychuk", "email": "tj@vision-media.ca" },

Sorry, the diff of this file is not supported yet

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