Socket
Socket
Sign inDemoInstall

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.4 to 0.5.5

lib/connect/._utils.js

2

._index.js

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

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

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

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

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

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

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

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

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

exports.version = '0.5.4';
exports.version = '0.5.5';

@@ -15,0 +15,0 @@ /**

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

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

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

Mac OS X  2��ATTR�����#�#com.macromates.caret{
Mac OS X  2��ATTR�3;��#�#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�3=�� � com.macromates.caretx���R������<[k0?'3/«��

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

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

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

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

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

Mac OS X  2��ATTR�����"�"com.macromates.caret{
Mac OS X  2��ATTR�3D��"�"com.macromates.caret{
column = 5;
line = 30;
}

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

Mac OS X  2��ATTR�����#�#com.macromates.caret{
Mac OS X  2��ATTR�3F��#�#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�3H�� � 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�3J�� � com.macromates.caretx���R������<[k0?'3/«��

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

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

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

Mac OS X  2��ATTR����� � com.macromates.caretx���R������<[k0?'3/«��
Mac OS X  2��ATTR�3N�� � 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�3P�� � com.macromates.caretx���R������<[k0?'3/«��

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

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

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

Mac OS X  2��ATTR����� � com.macromates.caretx���R������<[k0?'3/«��
Mac OS X  2��ATTR�3T�� � 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�3V�� � com.macromates.caretx���R������<[k0?'3/«��

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

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

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

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

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

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

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

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

@@ -12,4 +12,5 @@

var Session = require('./session/session'),
utils = require('./../utils');
var Session = require('./session/session')
, utils = require('./../utils')
, crypto = require('crypto');

@@ -43,5 +44,9 @@ /**

// This should be set by the app to make the session key tamper proof
var secret = options.secret || "hackme";
// Ensure secret is present
if (!options.secret) {
throw new Error('session requires the "secret" option string for security');
}
var secret = options.secret;
return function sessionHandle(req, res, next) {

@@ -93,3 +98,7 @@ if (!req.cookies) {

function hash(base) {
return utils.md5(base + fingerprint(req) + secret, 'base64').replace(/=*$/, '');
return crypto
.createHmac('sha256', secret)
.update(base + fingerprint(req))
.digest('base64')
.replace(/=*$/, '');
}

@@ -99,3 +108,3 @@

var generate = store.generate = function(){
var base = utils.uid();
var base = utils.uid(24);
var sessionID = base + "." + hash(base);

@@ -102,0 +111,0 @@ req.sessionID = sessionID;

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

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

@@ -12,6 +12,6 @@

var queryString = require('querystring'),
crypto = require('crypto'),
Path = require('path'),
fs = require('fs');
var queryString = require('querystring')
, crypto = require('crypto')
, Path = require('path')
, fs = require('fs');

@@ -29,3 +29,6 @@ /**

exports.md5 = function(str, encoding){
return crypto.createHash('md5').update(str).digest(encoding || 'hex');
return crypto
.createHash('md5')
.update(str)
.digest(encoding || 'hex');
};

@@ -48,5 +51,5 @@

exports.toBoolean = function(obj){
return typeof obj === 'string'
? (/^(y(es)?|true|1)$/).test(obj)
: !! obj;
return typeof obj === 'string'
? (/^(y(es)?|true|1)$/).test(obj)
: !! obj;
};

@@ -64,14 +67,15 @@

exports.merge = function(a, b){
if (a && b) {
var keys = Object.keys(b);
for (var i = 0, len = keys.length; i < len; ++i) {
a[keys[i]] = b[keys[i]];
}
if (a && b) {
var keys = Object.keys(b);
for (var i = 0, len = keys.length; i < len; ++i) {
a[keys[i]] = b[keys[i]];
}
return a;
}
return a;
};
/**
* Return a unique identifier.
* Return a unique identifier with the given `len`.
*
* @param {Number} len
* @return {String}

@@ -81,6 +85,12 @@ * @api public

exports.uid = function() {
// First three digits are from the current timestamp, the rest is the full
// 32-bit precision of Math.random()
return (Date.now() & 0x7fff).toString(32) + (0x100000000 * Math.random()).toString(32);
exports.uid = function(len) {
var buf = []
, chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'
, charlen = chars.length;
for (var i = 0; i < len; ++i) {
buf.push(chars[getRandomInt(0, charlen)]);
}
return buf.join('');
};

@@ -97,19 +107,21 @@

exports.parseCookie = function(str){
var obj = {},
pairs = str.split(/[;,] */);
for (var i = 0, len = pairs.length; i < len; ++i) {
var pair = pairs[i],
eqlIndex = pair.indexOf('='),
key = pair.substr(0, eqlIndex).trim().toLowerCase(),
val = pair.substr(++eqlIndex, pair.length).trim();
// Quoted values
if (val[0] === '"') {
val = val.slice(1, -1);
}
// Only assign once
if (obj[key] === undefined) {
obj[key] = queryString.unescape(val, true);
}
var obj = {}
, pairs = str.split(/[;,] */);
for (var i = 0, len = pairs.length; i < len; ++i) {
var pair = pairs[i]
, eqlIndex = pair.indexOf('=')
, key = pair.substr(0, eqlIndex).trim().toLowerCase()
, val = pair.substr(++eqlIndex, pair.length).trim();
// Quoted values
if (val[0] === '"') {
val = val.slice(1, -1);
}
return obj;
// Only assign once
if (obj[key] === undefined) {
obj[key] = queryString.unescape(val, true);
}
}
return obj;
};

@@ -128,19 +140,17 @@

exports.serializeCookie = function(name, val, obj){
var pairs = [name + '=' + queryString.escape(val)],
obj = obj || {},
keys = Object.keys(obj);
for (var i = 0, len = keys.length; i < len; ++i) {
var key = keys[i],
val = obj[key];
if (val instanceof Date) {
val = val.toUTCString();
} else if (typeof val === "boolean") {
if (val === true) {
pairs.push(key);
}
continue;
}
pairs.push(key + '=' + val);
var pairs = [name + '=' + queryString.escape(val)]
, obj = obj || {}
, keys = Object.keys(obj);
for (var i = 0, len = keys.length; i < len; ++i) {
var key = keys[i]
, val = obj[key];
if (val instanceof Date) {
val = val.toUTCString();
} else if (typeof val === "boolean") {
if (true === val) pairs.push(key);
continue;
}
return pairs.join('; ');
pairs.push(key + '=' + val);
}
return pairs.join('; ');
};

@@ -157,22 +167,22 @@

exports.pause = function(obj){
var events = [];
function onData(){
events.push(['data'].concat(toArray(arguments)));
};
function onEnd(){
events.push(['end'].concat(toArray(arguments)));
};
obj.on('data', onData);
obj.on('end', onEnd);
return {
end: function(){
obj.removeListener('data', onData);
obj.removeListener('end', onEnd);
},
resume: function(){
for (var i = 0, len = events.length; i < len; ++i) {
obj.emit.apply(obj, events[i]);
}
}
};
var events = [];
function onData(){
events.push(['data'].concat(toArray(arguments)));
};
function onEnd(){
events.push(['end'].concat(toArray(arguments)));
};
obj.on('data', onData);
obj.on('end', onEnd);
return {
end: function(){
obj.removeListener('data', onData);
obj.removeListener('end', onEnd);
},
resume: function(){
for (var i = 0, len = events.length; i < len; ++i) {
obj.emit.apply(obj, events[i]);
}
}
};
};

@@ -182,197 +192,195 @@

/**
* Return mime type for the given path,
* otherwise default to exports.defaultMime
* ("application/octet-stream").
*
* @param {String} path
* @return {String}
* @api public
*/
/**
* Return mime type for the given path,
* otherwise default to exports.defaultMime
* ("application/octet-stream").
*
* @param {String} path
* @return {String}
* @api public
*/
type: function getMime(path) {
var index = String(path).lastIndexOf(".");
if (index < 0) {
return defaultMime;
}
var type = exports.mime.types[path.substring(index).toLowerCase()] || defaultMime;
return (/(text|javascript)/).test(type)
? type + "; charset=utf-8"
: type;
},
type: function getMime(path) {
var index = String(path).lastIndexOf(".");
if (index < 0) return defaultMime;
var type = exports.mime.types[path.substring(index).toLowerCase()] || defaultMime;
return (/(text|javascript)/).test(type)
? type + "; charset=utf-8"
: type;
},
/**
* Mime types.
*/
/**
* Mime types.
*/
types: {
".3gp" : "video/3gpp",
".a" : "application/octet-stream",
".ai" : "application/postscript",
".aif" : "audio/x-aiff",
".aiff" : "audio/x-aiff",
".asc" : "application/pgp-signature",
".asf" : "video/x-ms-asf",
".asm" : "text/x-asm",
".asx" : "video/x-ms-asf",
".atom" : "application/atom+xml",
".au" : "audio/basic",
".avi" : "video/x-msvideo",
".bat" : "application/x-msdownload",
".bin" : "application/octet-stream",
".bmp" : "image/bmp",
".bz2" : "application/x-bzip2",
".c" : "text/x-c",
".cab" : "application/vnd.ms-cab-compressed",
".cc" : "text/x-c",
".chm" : "application/vnd.ms-htmlhelp",
".class" : "application/octet-stream",
".com" : "application/x-msdownload",
".conf" : "text/plain",
".cpp" : "text/x-c",
".crt" : "application/x-x509-ca-cert",
".css" : "text/css",
".csv" : "text/csv",
".cxx" : "text/x-c",
".deb" : "application/x-debian-package",
".der" : "application/x-x509-ca-cert",
".diff" : "text/x-diff",
".djv" : "image/vnd.djvu",
".djvu" : "image/vnd.djvu",
".dll" : "application/x-msdownload",
".dmg" : "application/octet-stream",
".doc" : "application/msword",
".dot" : "application/msword",
".dtd" : "application/xml-dtd",
".dvi" : "application/x-dvi",
".ear" : "application/java-archive",
".eml" : "message/rfc822",
".eps" : "application/postscript",
".exe" : "application/x-msdownload",
".f" : "text/x-fortran",
".f77" : "text/x-fortran",
".f90" : "text/x-fortran",
".flv" : "video/x-flv",
".for" : "text/x-fortran",
".gem" : "application/octet-stream",
".gemspec" : "text/x-script.ruby",
".gif" : "image/gif",
".gz" : "application/x-gzip",
".h" : "text/x-c",
".hh" : "text/x-c",
".htm" : "text/html",
".html" : "text/html",
".ico" : "image/vnd.microsoft.icon",
".ics" : "text/calendar",
".ifb" : "text/calendar",
".iso" : "application/octet-stream",
".jar" : "application/java-archive",
".java" : "text/x-java-source",
".jnlp" : "application/x-java-jnlp-file",
".jpeg" : "image/jpeg",
".jpg" : "image/jpeg",
".js" : "application/javascript",
".json" : "application/json",
".log" : "text/plain",
".m3u" : "audio/x-mpegurl",
".m4v" : "video/mp4",
".man" : "text/troff",
".manifest": "text/cache-manifest",
".mathml" : "application/mathml+xml",
".mbox" : "application/mbox",
".mdoc" : "text/troff",
".me" : "text/troff",
".mid" : "audio/midi",
".midi" : "audio/midi",
".mime" : "message/rfc822",
".mml" : "application/mathml+xml",
".mng" : "video/x-mng",
".mov" : "video/quicktime",
".mp3" : "audio/mpeg",
".mp4" : "video/mp4",
".mp4v" : "video/mp4",
".mpeg" : "video/mpeg",
".mpg" : "video/mpeg",
".ms" : "text/troff",
".msi" : "application/x-msdownload",
".odp" : "application/vnd.oasis.opendocument.presentation",
".ods" : "application/vnd.oasis.opendocument.spreadsheet",
".odt" : "application/vnd.oasis.opendocument.text",
".ogg" : "application/ogg",
".p" : "text/x-pascal",
".pas" : "text/x-pascal",
".pbm" : "image/x-portable-bitmap",
".pdf" : "application/pdf",
".pem" : "application/x-x509-ca-cert",
".pgm" : "image/x-portable-graymap",
".pgp" : "application/pgp-encrypted",
".pkg" : "application/octet-stream",
".pl" : "text/x-script.perl",
".pm" : "text/x-script.perl-module",
".png" : "image/png",
".pnm" : "image/x-portable-anymap",
".ppm" : "image/x-portable-pixmap",
".pps" : "application/vnd.ms-powerpoint",
".ppt" : "application/vnd.ms-powerpoint",
".ps" : "application/postscript",
".psd" : "image/vnd.adobe.photoshop",
".py" : "text/x-script.python",
".qt" : "video/quicktime",
".ra" : "audio/x-pn-realaudio",
".rake" : "text/x-script.ruby",
".ram" : "audio/x-pn-realaudio",
".rar" : "application/x-rar-compressed",
".rb" : "text/x-script.ruby",
".rdf" : "application/rdf+xml",
".roff" : "text/troff",
".rpm" : "application/x-redhat-package-manager",
".rss" : "application/rss+xml",
".rtf" : "application/rtf",
".ru" : "text/x-script.ruby",
".s" : "text/x-asm",
".sgm" : "text/sgml",
".sgml" : "text/sgml",
".sh" : "application/x-sh",
".sig" : "application/pgp-signature",
".snd" : "audio/basic",
".so" : "application/octet-stream",
".svg" : "image/svg+xml",
".svgz" : "image/svg+xml",
".swf" : "application/x-shockwave-flash",
".t" : "text/troff",
".tar" : "application/x-tar",
".tbz" : "application/x-bzip-compressed-tar",
".tci" : "application/x-topcloud",
".tcl" : "application/x-tcl",
".tex" : "application/x-tex",
".texi" : "application/x-texinfo",
".texinfo" : "application/x-texinfo",
".text" : "text/plain",
".tif" : "image/tiff",
".tiff" : "image/tiff",
".torrent" : "application/x-bittorrent",
".tr" : "text/troff",
".ttf" : "application/x-font-ttf",
".txt" : "text/plain",
".vcf" : "text/x-vcard",
".vcs" : "text/x-vcalendar",
".vrml" : "model/vrml",
".war" : "application/java-archive",
".wav" : "audio/x-wav",
".wma" : "audio/x-ms-wma",
".wmv" : "video/x-ms-wmv",
".wmx" : "video/x-ms-wmx",
".wrl" : "model/vrml",
".wsdl" : "application/wsdl+xml",
".xbm" : "image/x-xbitmap",
".xhtml" : "application/xhtml+xml",
".xls" : "application/vnd.ms-excel",
".xml" : "application/xml",
".xpm" : "image/x-xpixmap",
".xsl" : "application/xml",
".xslt" : "application/xslt+xml",
".yaml" : "text/yaml",
".yml" : "text/yaml",
".zip" : "application/zip"
}
types: {
".3gp" : "video/3gpp",
".a" : "application/octet-stream",
".ai" : "application/postscript",
".aif" : "audio/x-aiff",
".aiff" : "audio/x-aiff",
".asc" : "application/pgp-signature",
".asf" : "video/x-ms-asf",
".asm" : "text/x-asm",
".asx" : "video/x-ms-asf",
".atom" : "application/atom+xml",
".au" : "audio/basic",
".avi" : "video/x-msvideo",
".bat" : "application/x-msdownload",
".bin" : "application/octet-stream",
".bmp" : "image/bmp",
".bz2" : "application/x-bzip2",
".c" : "text/x-c",
".cab" : "application/vnd.ms-cab-compressed",
".cc" : "text/x-c",
".chm" : "application/vnd.ms-htmlhelp",
".class" : "application/octet-stream",
".com" : "application/x-msdownload",
".conf" : "text/plain",
".cpp" : "text/x-c",
".crt" : "application/x-x509-ca-cert",
".css" : "text/css",
".csv" : "text/csv",
".cxx" : "text/x-c",
".deb" : "application/x-debian-package",
".der" : "application/x-x509-ca-cert",
".diff" : "text/x-diff",
".djv" : "image/vnd.djvu",
".djvu" : "image/vnd.djvu",
".dll" : "application/x-msdownload",
".dmg" : "application/octet-stream",
".doc" : "application/msword",
".dot" : "application/msword",
".dtd" : "application/xml-dtd",
".dvi" : "application/x-dvi",
".ear" : "application/java-archive",
".eml" : "message/rfc822",
".eps" : "application/postscript",
".exe" : "application/x-msdownload",
".f" : "text/x-fortran",
".f77" : "text/x-fortran",
".f90" : "text/x-fortran",
".flv" : "video/x-flv",
".for" : "text/x-fortran",
".gem" : "application/octet-stream",
".gemspec" : "text/x-script.ruby",
".gif" : "image/gif",
".gz" : "application/x-gzip",
".h" : "text/x-c",
".hh" : "text/x-c",
".htm" : "text/html",
".html" : "text/html",
".ico" : "image/vnd.microsoft.icon",
".ics" : "text/calendar",
".ifb" : "text/calendar",
".iso" : "application/octet-stream",
".jar" : "application/java-archive",
".java" : "text/x-java-source",
".jnlp" : "application/x-java-jnlp-file",
".jpeg" : "image/jpeg",
".jpg" : "image/jpeg",
".js" : "application/javascript",
".json" : "application/json",
".log" : "text/plain",
".m3u" : "audio/x-mpegurl",
".m4v" : "video/mp4",
".man" : "text/troff",
".manifest": "text/cache-manifest",
".mathml" : "application/mathml+xml",
".mbox" : "application/mbox",
".mdoc" : "text/troff",
".me" : "text/troff",
".mid" : "audio/midi",
".midi" : "audio/midi",
".mime" : "message/rfc822",
".mml" : "application/mathml+xml",
".mng" : "video/x-mng",
".mov" : "video/quicktime",
".mp3" : "audio/mpeg",
".mp4" : "video/mp4",
".mp4v" : "video/mp4",
".mpeg" : "video/mpeg",
".mpg" : "video/mpeg",
".ms" : "text/troff",
".msi" : "application/x-msdownload",
".odp" : "application/vnd.oasis.opendocument.presentation",
".ods" : "application/vnd.oasis.opendocument.spreadsheet",
".odt" : "application/vnd.oasis.opendocument.text",
".ogg" : "application/ogg",
".p" : "text/x-pascal",
".pas" : "text/x-pascal",
".pbm" : "image/x-portable-bitmap",
".pdf" : "application/pdf",
".pem" : "application/x-x509-ca-cert",
".pgm" : "image/x-portable-graymap",
".pgp" : "application/pgp-encrypted",
".pkg" : "application/octet-stream",
".pl" : "text/x-script.perl",
".pm" : "text/x-script.perl-module",
".png" : "image/png",
".pnm" : "image/x-portable-anymap",
".ppm" : "image/x-portable-pixmap",
".pps" : "application/vnd.ms-powerpoint",
".ppt" : "application/vnd.ms-powerpoint",
".ps" : "application/postscript",
".psd" : "image/vnd.adobe.photoshop",
".py" : "text/x-script.python",
".qt" : "video/quicktime",
".ra" : "audio/x-pn-realaudio",
".rake" : "text/x-script.ruby",
".ram" : "audio/x-pn-realaudio",
".rar" : "application/x-rar-compressed",
".rb" : "text/x-script.ruby",
".rdf" : "application/rdf+xml",
".roff" : "text/troff",
".rpm" : "application/x-redhat-package-manager",
".rss" : "application/rss+xml",
".rtf" : "application/rtf",
".ru" : "text/x-script.ruby",
".s" : "text/x-asm",
".sgm" : "text/sgml",
".sgml" : "text/sgml",
".sh" : "application/x-sh",
".sig" : "application/pgp-signature",
".snd" : "audio/basic",
".so" : "application/octet-stream",
".svg" : "image/svg+xml",
".svgz" : "image/svg+xml",
".swf" : "application/x-shockwave-flash",
".t" : "text/troff",
".tar" : "application/x-tar",
".tbz" : "application/x-bzip-compressed-tar",
".tci" : "application/x-topcloud",
".tcl" : "application/x-tcl",
".tex" : "application/x-tex",
".texi" : "application/x-texinfo",
".texinfo" : "application/x-texinfo",
".text" : "text/plain",
".tif" : "image/tiff",
".tiff" : "image/tiff",
".torrent" : "application/x-bittorrent",
".tr" : "text/troff",
".ttf" : "application/x-font-ttf",
".txt" : "text/plain",
".vcf" : "text/x-vcard",
".vcs" : "text/x-vcalendar",
".vrml" : "model/vrml",
".war" : "application/java-archive",
".wav" : "audio/x-wav",
".wma" : "audio/x-ms-wma",
".wmv" : "video/x-ms-wmv",
".wmx" : "video/x-ms-wmx",
".wrl" : "model/vrml",
".wsdl" : "application/wsdl+xml",
".xbm" : "image/x-xbitmap",
".xhtml" : "application/xhtml+xml",
".xls" : "application/vnd.ms-excel",
".xml" : "application/xml",
".xpm" : "image/x-xpixmap",
".xsl" : "application/xml",
".xslt" : "application/xslt+xml",
".yaml" : "text/yaml",
".yml" : "text/yaml",
".zip" : "application/zip"
}
};

@@ -449,8 +457,21 @@

function toArray(obj){
var len = obj.length,
arr = new Array(len);
for (var i = 0; i < len; ++i) {
arr[i] = obj[i];
}
return arr;
var len = obj.length
, arr = new Array(len);
for (var i = 0; i < len; ++i) {
arr[i] = obj[i];
}
return arr;
}
/**
* Retrun a random int, used by `utils.uid()`
*
* @param {Number} min
* @param {Number} max
* @return {Number}
* @api private
*/
function getRandomInt(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}

@@ -1,11 +0,10 @@

{
"name": "connect",
"description": "High performance middleware framework",
"version": "0.5.4",
"contributors": [
{ "name": "TJ Holowaychuk", "email": "tj@vision-media.ca" },
{ "name": "Tim Caswell", "email": "tim@sencha.com" }
],
"directories": { "lib": "./lib/connect" },
"engines": { "node": ">= 0.1.98" }
{ "name": "connect"
, "description": "High performance middleware framework"
, "version": "0.5.5"
, "contributors": [
{ "name": "TJ Holowaychuk", "email": "tj@vision-media.ca" }
, { "name": "Tim Caswell", "email": "tim@sencha.com" }
]
, "directories": { "lib": "./lib/connect" }
, "engines": { "node": ">= 0.2.2" }
}

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