cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmue...@apache.org
Subject [06/15] pre-compile CoffeeScript files in server
Date Thu, 04 Sep 2014 12:37:08 GMT
http://git-wip-us.apache.org/repos/asf/cordova-weinre/blob/03084bdb/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/package.json
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/package.json b/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/package.json
index d2cec1f..0c67f7f 100644
--- a/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/package.json
+++ b/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/package.json
@@ -1,25 +1,38 @@
 {
   "name": "formidable",
-  "version": "1.0.11",
-  "dependencies": {},
+  "description": "A node.js module for parsing form data, especially file uploads.",
+  "homepage": "https://github.com/felixge/node-formidable",
+  "version": "1.0.15",
   "devDependencies": {
     "gently": "0.8.0",
     "findit": "0.1.1",
     "hashish": "0.0.4",
-    "urun": "0.0.4",
-    "utest": "0.0.3"
+    "urun": "~0.0.6",
+    "utest": "0.0.3",
+    "request": "~2.11.4"
   },
   "directories": {
     "lib": "./lib"
   },
   "main": "./lib/index",
   "scripts": {
-    "test": "make test"
+    "test": "node test/run.js",
+    "clean": "rm test/tmp/*"
   },
   "engines": {
-    "node": "*"
+    "node": ">=0.8.0"
+  },
+  "repository": {
+    "type": "git",
+    "url": "git://github.com/felixge/node-formidable.git"
+  },
+  "bugs": {
+    "url": "http://github.com/felixge/node-formidable/issues"
   },
   "optionalDependencies": {},
-  "_id": "formidable@1.0.11",
+  "readme": "# Formidable\n\n[![Build Status](https://secure.travis-ci.org/felixge/node-formidable.png?branch=master)](http://travis-ci.org/felixge/node-formidable)\n\n## Purpose\n\nA node.js module for parsing form data, especially file uploads.\n\n## Current status\n\nThis module was developed for [Transloadit](http://transloadit.com/), a service focused on uploading\nand encoding images and videos. It has been battle-tested against hundreds of GB of file uploads from\na large variety of clients and is considered production-ready.\n\n## Features\n\n* Fast (~500mb/sec), non-buffering multipart parser\n* Automatically writing file uploads to disk\n* Low memory footprint\n* Graceful error handling\n* Very high test coverage\n\n## Installation\n\nThis is a low level package, and if you're using a high level framework such as Express, chances are it's already included in it. You can [read this discussion](http://stackoverflow.com/questions/11295554/how-to-disable-express-bodyparser-for
 -file-uploads-node-js) about how Formidable is integrated with Express.\n\nVia [npm](http://github.com/isaacs/npm):\n```\nnpm install formidable@latest\n```\nManually:\n```\ngit clone git://github.com/felixge/node-formidable.git formidable\nvim my.js\n# var formidable = require('./formidable');\n```\n\nNote: Formidable requires [gently](http://github.com/felixge/node-gently) to run the unit tests, but you won't need it for just using the library.\n\n## Example\n\nParse an incoming file upload.\n```javascript\nvar formidable = require('formidable'),\n    http = require('http'),\n    util = require('util');\n\nhttp.createServer(function(req, res) {\n  if (req.url == '/upload' && req.method.toLowerCase() == 'post') {\n    // parse a file upload\n    var form = new formidable.IncomingForm();\n\n    form.parse(req, function(err, fields, files) {\n      res.writeHead(200, {'content-type': 'text/plain'});\n      res.write('received upload:\\n\\n');\n      res.end(util.inspect({fields: fiel
 ds, files: files}));\n    });\n\n    return;\n  }\n\n  // show a file upload form\n  res.writeHead(200, {'content-type': 'text/html'});\n  res.end(\n    '<form action=\"/upload\" enctype=\"multipart/form-data\" method=\"post\">'+\n    '<input type=\"text\" name=\"title\"><br>'+\n    '<input type=\"file\" name=\"upload\" multiple=\"multiple\"><br>'+\n    '<input type=\"submit\" value=\"Upload\">'+\n    '</form>'\n  );\n}).listen(8080);\n```\n## API\n\n### Formidable.IncomingForm\n```javascript\nvar form = new formidable.IncomingForm()\n```\nCreates a new incoming form.\n\n```javascript\nform.encoding = 'utf-8';\n```\nSets encoding for incoming form fields.\n\n```javascript\nform.uploadDir = \"/my/dir\";\n```\nSets the directory for placing file uploads in. You can move them later on using\n`fs.rename()`. The default is `os.tmpDir()`.\n\n```javascript\nform.keepExtensions = false;\n```\nIf you want the files written to `form.uploadDir` to include the extensions of the original files, 
 set this property to `true`.\n\n```javascript\nform.type\n```\nEither 'multipart' or 'urlencoded' depending on the incoming request.\n\n```javascript\nform.maxFieldsSize = 2 * 1024 * 1024;\n```\nLimits the amount of memory a field (not file) can allocate in bytes.\nIf this value is exceeded, an `'error'` event is emitted. The default\nsize is 2MB.\n\n```javascript\nform.maxFields = 1000;\n```\nLimits the number of fields that the querystring parser will decode. Defaults\nto 1000 (0 for unlimited).\n\n```javascript\nform.hash = false;\n```\nIf you want checksums calculated for incoming files, set this to either `'sha1'` or `'md5'`.\n\n```javascript\nform.multiples = false;\n```\nIf this option is enabled, when you call `form.parse`, the `files` argument will contain arrays of files for inputs which submit multiple files using the HTML5 `multiple` attribute.\n\n```javascript\nform.bytesReceived\n```\nThe amount of bytes received for this form so far.\n\n```javascript\nform.bytesExpect
 ed\n```\nThe expected number of bytes in this form.\n\n```javascript\nform.parse(request, [cb]);\n```\nParses an incoming node.js `request` containing form data. If `cb` is provided, all fields and files are collected and passed to the callback:\n\n\n```javascript\nform.parse(req, function(err, fields, files) {\n  // ...\n});\n\nform.onPart(part);\n```\nYou may overwrite this method if you are interested in directly accessing the multipart stream. Doing so will disable any `'field'` / `'file'` events  processing which would occur otherwise, making you fully responsible for handling the processing.\n\n```javascript\nform.onPart = function(part) {\n  part.addListener('data', function() {\n    // ...\n  });\n}\n```\nIf you want to use formidable to only handle certain parts for you, you can do so:\n```javascript\nform.onPart = function(part) {\n  if (!part.filename) {\n    // let formidable handle all non-file parts\n    form.handlePart(part);\n  }\n}\n```\nCheck the code in this metho
 d for further inspiration.\n\n\n### Formidable.File\n```javascript\nfile.size = 0\n```\nThe size of the uploaded file in bytes. If the file is still being uploaded (see `'fileBegin'` event), this property says how many bytes of the file have been written to disk yet.\n```javascript\nfile.path = null\n```\nThe path this file is being written to. You can modify this in the `'fileBegin'` event in\ncase you are unhappy with the way formidable generates a temporary path for your files.\n```javascript\nfile.name = null\n```\nThe name this file had according to the uploading client.\n```javascript\nfile.type = null\n```\nThe mime type of this file, according to the uploading client.\n```javascript\nfile.lastModifiedDate = null\n```\nA date object (or `null`) containing the time this file was last written to. Mostly\nhere for compatibility with the [W3C File API Draft](http://dev.w3.org/2006/webapi/FileAPI/).\n```javascript\nfile.hash = null\n```\nIf hash calculation was set, you can read t
 he hex digest out of this var.\n\n#### Formidable.File#toJSON()\n\n  This method returns a JSON-representation of the file, allowing you to\n  `JSON.stringify()` the file which is useful for logging and responding\n  to requests.\n\n### Events\n\n\n#### 'progress'\n```javascript\nform.on('progress', function(bytesReceived, bytesExpected) {\n});\n```\nEmitted after each incoming chunk of data that has been parsed. Can be used to roll your own progress bar.\n\n\n\n#### 'field'\n```javascript\nform.on('field', function(name, value) {\n});\n```\n\n#### 'fileBegin'\n\nEmitted whenever a field / value pair has been received.\n```javascript\nform.on('fileBegin', function(name, file) {\n});\n```\n\n#### 'file'\n\nEmitted whenever a new file is detected in the upload stream. Use this even if\nyou want to stream the file to somewhere else while buffering the upload on\nthe file system.\n\nEmitted whenever a field / file pair has been received. `file` is an instance of `File`.\n```javascript\n
 form.on('file', function(name, file) {\n});\n```\n\n#### 'error'\n\nEmitted when there is an error processing the incoming form. A request that experiences an error is automatically paused, you will have to manually call `request.resume()` if you want the request to continue firing `'data'` events.\n```javascript\nform.on('error', function(err) {\n});\n```\n\n#### 'aborted'\n\n\nEmitted when the request was aborted by the user. Right now this can be due to a 'timeout' or 'close' event on the socket. In the future there will be a separate 'timeout' event (needs a change in the node core).\n```javascript\nform.on('aborted', function() {\n});\n```\n\n##### 'end'\n```javascript\nform.on('end', function() {\n});\n```\nEmitted when the entire request has been received, and all contained files have finished flushing to disk. This is a great place for you to send your response.\n\n\n\n## Changelog\n\n### v1.0.14\n\n* Add failing hash tests. (Ben Trask)\n* Enable hash calculation again (Euge
 ne Girshov)\n* Test for immediate data events (Tim Smart)\n* Re-arrange IncomingForm#parse (Tim Smart)\n\n### v1.0.13\n\n* Only update hash if update method exists (Sven Lito)\n* According to travis v0.10 needs to go quoted (Sven Lito)\n* Bumping build node versions (Sven Lito)\n* Additional fix for empty requests (Eugene Girshov)\n* Change the default to 1000, to match the new Node behaviour. (OrangeDog)\n* Add ability to control maxKeys in the querystring parser. (OrangeDog)\n* Adjust test case to work with node 0.9.x (Eugene Girshov)\n* Update package.json (Sven Lito)\n* Path adjustment according to eb4468b (Markus Ast)\n\n### v1.0.12\n\n* Emit error on aborted connections (Eugene Girshov)\n* Add support for empty requests (Eugene Girshov)\n* Fix name/filename handling in Content-Disposition (jesperp)\n* Tolerate malformed closing boundary in multipart (Eugene Girshov)\n* Ignore preamble in multipart messages (Eugene Girshov)\n* Add support for application/json (Mike Frey, Carlos
  Rodriguez)\n* Add support for Base64 encoding (Elmer Bulthuis)\n* Add File#toJSON (TJ Holowaychuk)\n* Remove support for Node.js 0.4 & 0.6 (Andrew Kelley)\n* Documentation improvements (Sven Lito, Andre Azevedo)\n* Add support for application/octet-stream (Ion Lupascu, Chris Scribner)\n* Use os.tmpDir() to get tmp directory (Andrew Kelley)\n* Improve package.json (Andrew Kelley, Sven Lito)\n* Fix benchmark script (Andrew Kelley)\n* Fix scope issue in incoming_forms (Sven Lito)\n* Fix file handle leak on error (OrangeDog)\n\n### v1.0.11\n\n* Calculate checksums for incoming files (sreuter)\n* Add definition parameters to \"IncomingForm\" as an argument (Math-)\n\n### v1.0.10\n\n* Make parts to be proper Streams (Matt Robenolt)\n\n### v1.0.9\n\n* Emit progress when content length header parsed (Tim Koschützki)\n* Fix Readme syntax due to GitHub changes (goob)\n* Replace references to old 'sys' module in Readme with 'util' (Peter Sugihara)\n\n### v1.0.8\n\n* Strip potentially unsafe 
 characters when using `keepExtensions: true`.\n* Switch to utest / urun for testing\n* Add travis build\n\n### v1.0.7\n\n* Remove file from package that was causing problems when installing on windows. (#102)\n* Fix typos in Readme (Jason Davies).\n\n### v1.0.6\n\n* Do not default to the default to the field name for file uploads where\n  filename=\"\".\n\n### v1.0.5\n\n* Support filename=\"\" in multipart parts\n* Explain unexpected end() errors in parser better\n\n**Note:** Starting with this version, formidable emits 'file' events for empty\nfile input fields. Previously those were incorrectly emitted as regular file\ninput fields with value = \"\".\n\n### v1.0.4\n\n* Detect a good default tmp directory regardless of platform. (#88)\n\n### v1.0.3\n\n* Fix problems with utf8 characters (#84) / semicolons in filenames (#58)\n* Small performance improvements\n* New test suite and fixture system\n\n### v1.0.2\n\n* Exclude node\\_modules folder from git\n* Implement new `'aborted'` ev
 ent\n* Fix files in example folder to work with recent node versions\n* Make gently a devDependency\n\n[See Commits](https://github.com/felixge/node-formidable/compare/v1.0.1...v1.0.2)\n\n### v1.0.1\n\n* Fix package.json to refer to proper main directory. (#68, Dean Landolt)\n\n[See Commits](https://github.com/felixge/node-formidable/compare/v1.0.0...v1.0.1)\n\n### v1.0.0\n\n* Add support for multipart boundaries that are quoted strings. (Jeff Craig)\n\nThis marks the beginning of development on version 2.0 which will include\nseveral architectural improvements.\n\n[See Commits](https://github.com/felixge/node-formidable/compare/v0.9.11...v1.0.0)\n\n### v0.9.11\n\n* Emit `'progress'` event when receiving data, regardless of parsing it. (Tim Koschützki)\n* Use [W3C FileAPI Draft](http://dev.w3.org/2006/webapi/FileAPI/) properties for File class\n\n**Important:** The old property names of the File class will be removed in a\nfuture release.\n\n[See Commits](https://github.com/felixge
 /node-formidable/compare/v0.9.10...v0.9.11)\n\n### Older releases\n\nThese releases were done before starting to maintain the above Changelog:\n\n* [v0.9.10](https://github.com/felixge/node-formidable/compare/v0.9.9...v0.9.10)\n* [v0.9.9](https://github.com/felixge/node-formidable/compare/v0.9.8...v0.9.9)\n* [v0.9.8](https://github.com/felixge/node-formidable/compare/v0.9.7...v0.9.8)\n* [v0.9.7](https://github.com/felixge/node-formidable/compare/v0.9.6...v0.9.7)\n* [v0.9.6](https://github.com/felixge/node-formidable/compare/v0.9.5...v0.9.6)\n* [v0.9.5](https://github.com/felixge/node-formidable/compare/v0.9.4...v0.9.5)\n* [v0.9.4](https://github.com/felixge/node-formidable/compare/v0.9.3...v0.9.4)\n* [v0.9.3](https://github.com/felixge/node-formidable/compare/v0.9.2...v0.9.3)\n* [v0.9.2](https://github.com/felixge/node-formidable/compare/v0.9.1...v0.9.2)\n* [v0.9.1](https://github.com/felixge/node-formidable/compare/v0.9.0...v0.9.1)\n* [v0.9.0](https://github.com/felixge/node-formid
 able/compare/v0.8.0...v0.9.0)\n* [v0.9.0](https://github.com/felixge/node-formidable/compare/v0.8.0...v0.9.0)\n* [v0.9.0](https://github.com/felixge/node-formidable/compare/v0.8.0...v0.9.0)\n* [v0.9.0](https://github.com/felixge/node-formidable/compare/v0.8.0...v0.9.0)\n* [v0.9.0](https://github.com/felixge/node-formidable/compare/v0.8.0...v0.9.0)\n* [v0.9.0](https://github.com/felixge/node-formidable/compare/v0.8.0...v0.9.0)\n* [v0.9.0](https://github.com/felixge/node-formidable/compare/v0.8.0...v0.9.0)\n* [v0.9.0](https://github.com/felixge/node-formidable/compare/v0.8.0...v0.9.0)\n* [v0.1.0](https://github.com/felixge/node-formidable/commits/v0.1.0)\n\n## License\n\nFormidable is licensed under the MIT license.\n\n## Ports\n\n* [multipart-parser](http://github.com/FooBarWidget/multipart-parser): a C++ parser based on formidable\n\n## Credits\n\n* [Ryan Dahl](http://twitter.com/ryah) for his work on [http-parser](http://github.com/ry/http-parser) which heavily inspired multipart_p
 arser.js\n",
+  "readmeFilename": "Readme.md",
+  "dependencies": {},
+  "_id": "formidable@1.0.15",
   "_from": "formidable@1.0.x"
 }

http://git-wip-us.apache.org/repos/asf/cordova-weinre/blob/03084bdb/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/common.js
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/common.js b/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/common.js
deleted file mode 100644
index eb432ad..0000000
--- a/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/common.js
+++ /dev/null
@@ -1,19 +0,0 @@
-var mysql = require('..');
-var path = require('path');
-
-var root = path.join(__dirname, '../');
-exports.dir = {
-  root    : root,
-  lib     : root + '/lib',
-  fixture : root + '/test/fixture',
-  tmp     : root + '/test/tmp',
-};
-
-exports.port = 13532;
-
-exports.formidable = require('..');
-exports.assert     = require('assert');
-
-exports.require = function(lib) {
-  return require(exports.dir.lib + '/' + lib);
-};

http://git-wip-us.apache.org/repos/asf/cordova-weinre/blob/03084bdb/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/file/funkyfilename.txt
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/file/funkyfilename.txt b/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/file/funkyfilename.txt
deleted file mode 100644
index e7a4785..0000000
--- a/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/file/funkyfilename.txt
+++ /dev/null
@@ -1 +0,0 @@
-I am a text file with a funky name!

http://git-wip-us.apache.org/repos/asf/cordova-weinre/blob/03084bdb/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/file/plain.txt
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/file/plain.txt b/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/file/plain.txt
deleted file mode 100644
index 9b6903e..0000000
--- a/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/file/plain.txt
+++ /dev/null
@@ -1 +0,0 @@
-I am a plain text file

http://git-wip-us.apache.org/repos/asf/cordova-weinre/blob/03084bdb/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/http/special-chars-in-filename/info.md
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/http/special-chars-in-filename/info.md b/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/http/special-chars-in-filename/info.md
deleted file mode 100644
index 3c9dbe3..0000000
--- a/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/http/special-chars-in-filename/info.md
+++ /dev/null
@@ -1,3 +0,0 @@
-* Opera does not allow submitting this file, it shows a warning to the
-  user that the file could not be found instead. Tested in 9.8, 11.51 on OSX.
-  Reported to Opera on 08.09.2011 (tracking email DSK-346009@bugs.opera.com).

http://git-wip-us.apache.org/repos/asf/cordova-weinre/blob/03084bdb/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/js/no-filename.js
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/js/no-filename.js b/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/js/no-filename.js
deleted file mode 100644
index 0bae449..0000000
--- a/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/js/no-filename.js
+++ /dev/null
@@ -1,3 +0,0 @@
-module.exports['generic.http'] = [
-  {type: 'file', name: 'upload', filename: '', fixture: 'plain.txt'},
-];

http://git-wip-us.apache.org/repos/asf/cordova-weinre/blob/03084bdb/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/js/special-chars-in-filename.js
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/js/special-chars-in-filename.js b/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/js/special-chars-in-filename.js
deleted file mode 100644
index eb76fdc..0000000
--- a/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/js/special-chars-in-filename.js
+++ /dev/null
@@ -1,21 +0,0 @@
-var properFilename = 'funkyfilename.txt';
-
-function expect(filename) {
-  return [
-    {type: 'field', name: 'title', value: 'Weird filename'},
-    {type: 'file', name: 'upload', filename: filename, fixture: properFilename},
-  ];
-};
-
-var webkit = " ? % * | \" < > . ? ; ' @ # $ ^ & ( ) - _ = + { } [ ] ` ~.txt";
-var ffOrIe = " ? % * | \" < > . ☃ ; ' @ # $ ^ & ( ) - _ = + { } [ ] ` ~.txt";
-
-module.exports = {
-  'osx-chrome-13.http'   : expect(webkit),
-  'osx-firefox-3.6.http' : expect(ffOrIe),
-  'osx-safari-5.http'    : expect(webkit),
-  'xp-chrome-12.http'    : expect(webkit),
-  'xp-ie-7.http'         : expect(ffOrIe),
-  'xp-ie-8.http'         : expect(ffOrIe),
-  'xp-safari-5.http'     : expect(webkit),
-};

http://git-wip-us.apache.org/repos/asf/cordova-weinre/blob/03084bdb/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/multipart.js
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/multipart.js b/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/multipart.js
deleted file mode 100644
index a476169..0000000
--- a/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/multipart.js
+++ /dev/null
@@ -1,72 +0,0 @@
-exports['rfc1867'] =
-  { boundary: 'AaB03x',
-    raw:
-      '--AaB03x\r\n'+
-      'content-disposition: form-data; name="field1"\r\n'+
-      '\r\n'+
-      'Joe Blow\r\nalmost tricked you!\r\n'+
-      '--AaB03x\r\n'+
-      'content-disposition: form-data; name="pics"; filename="file1.txt"\r\n'+
-      'Content-Type: text/plain\r\n'+
-      '\r\n'+
-      '... contents of file1.txt ...\r\r\n'+
-      '--AaB03x--\r\n',
-    parts:
-    [ { headers: {
-          'content-disposition': 'form-data; name="field1"',
-        },
-        data: 'Joe Blow\r\nalmost tricked you!',
-      },
-      { headers: {
-          'content-disposition': 'form-data; name="pics"; filename="file1.txt"',
-          'Content-Type': 'text/plain',
-        },
-        data: '... contents of file1.txt ...\r',
-      }
-    ]
-  };
-
-exports['noTrailing\r\n'] =
-  { boundary: 'AaB03x',
-    raw:
-      '--AaB03x\r\n'+
-      'content-disposition: form-data; name="field1"\r\n'+
-      '\r\n'+
-      'Joe Blow\r\nalmost tricked you!\r\n'+
-      '--AaB03x\r\n'+
-      'content-disposition: form-data; name="pics"; filename="file1.txt"\r\n'+
-      'Content-Type: text/plain\r\n'+
-      '\r\n'+
-      '... contents of file1.txt ...\r\r\n'+
-      '--AaB03x--',
-    parts:
-    [ { headers: {
-          'content-disposition': 'form-data; name="field1"',
-        },
-        data: 'Joe Blow\r\nalmost tricked you!',
-      },
-      { headers: {
-          'content-disposition': 'form-data; name="pics"; filename="file1.txt"',
-          'Content-Type': 'text/plain',
-        },
-        data: '... contents of file1.txt ...\r',
-      }
-    ]
-  };
-
-exports['emptyHeader'] =
-  { boundary: 'AaB03x',
-    raw:
-      '--AaB03x\r\n'+
-      'content-disposition: form-data; name="field1"\r\n'+
-      ': foo\r\n'+
-      '\r\n'+
-      'Joe Blow\r\nalmost tricked you!\r\n'+
-      '--AaB03x\r\n'+
-      'content-disposition: form-data; name="pics"; filename="file1.txt"\r\n'+
-      'Content-Type: text/plain\r\n'+
-      '\r\n'+
-      '... contents of file1.txt ...\r\r\n'+
-      '--AaB03x--\r\n',
-    expectError: true,
-  };

http://git-wip-us.apache.org/repos/asf/cordova-weinre/blob/03084bdb/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/integration/test-fixtures.js
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/integration/test-fixtures.js b/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/integration/test-fixtures.js
deleted file mode 100644
index 66ad259..0000000
--- a/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/integration/test-fixtures.js
+++ /dev/null
@@ -1,89 +0,0 @@
-var hashish = require('hashish');
-var fs = require('fs');
-var findit = require('findit');
-var path = require('path');
-var http = require('http');
-var net = require('net');
-var assert = require('assert');
-
-var common = require('../common');
-var formidable = common.formidable;
-
-var server = http.createServer();
-server.listen(common.port, findFixtures);
-
-function findFixtures() {
-  var fixtures = [];
-  findit
-    .sync(common.dir.fixture + '/js')
-    .forEach(function(jsPath) {
-      if (!/\.js$/.test(jsPath)) return;
-
-      var group = path.basename(jsPath, '.js');
-      hashish.forEach(require(jsPath), function(fixture, name) {
-        fixtures.push({
-          name    : group + '/' + name,
-          fixture : fixture,
-        });
-      });
-    });
-
-  testNext(fixtures);
-}
-
-function testNext(fixtures) {
-  var fixture = fixtures.shift();
-  if (!fixture) return server.close();
-
-  var name    = fixture.name;
-  var fixture = fixture.fixture;
-
-  uploadFixture(name, function(err, parts) {
-    if (err) throw err;
-
-    fixture.forEach(function(expectedPart, i) {
-      var parsedPart = parts[i];
-      assert.equal(parsedPart.type, expectedPart.type);
-      assert.equal(parsedPart.name, expectedPart.name);
-
-      if (parsedPart.type === 'file') {
-        var filename = parsedPart.value.name;
-        assert.equal(filename, expectedPart.filename);
-      }
-    });
-
-    testNext(fixtures);
-  });
-};
-
-function uploadFixture(name, cb) {
-  server.once('request', function(req, res) {
-    var form = new formidable.IncomingForm();
-    form.uploadDir = common.dir.tmp;
-    form.parse(req);
-
-    function callback() {
-      var realCallback = cb;
-      cb = function() {};
-      realCallback.apply(null, arguments);
-    }
-
-    var parts = [];
-    form
-      .on('error', callback)
-      .on('fileBegin', function(name, value) {
-        parts.push({type: 'file', name: name, value: value});
-      })
-      .on('field', function(name, value) {
-        parts.push({type: 'field', name: name, value: value});
-      })
-      .on('end', function() {
-        callback(null, parts);
-      });
-  });
-
-  var socket = net.createConnection(common.port);
-  var file = fs.createReadStream(common.dir.fixture + '/http/' + name);
-
-  file.pipe(socket);
-}

http://git-wip-us.apache.org/repos/asf/cordova-weinre/blob/03084bdb/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/common.js
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/common.js b/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/common.js
deleted file mode 100644
index 2b98598..0000000
--- a/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/common.js
+++ /dev/null
@@ -1,24 +0,0 @@
-var path = require('path'),
-    fs = require('fs');
-
-try {
-  global.Gently = require('gently');
-} catch (e) {
-  throw new Error('this test suite requires node-gently');
-}
-
-exports.lib = path.join(__dirname, '../../lib');
-
-global.GENTLY = new Gently();
-
-global.assert = require('assert');
-global.TEST_PORT = 13532;
-global.TEST_FIXTURES = path.join(__dirname, '../fixture');
-global.TEST_TMP = path.join(__dirname, '../tmp');
-
-// Stupid new feature in node that complains about gently attaching too many
-// listeners to process 'exit'. This is a workaround until I can think of a
-// better way to deal with this.
-if (process.setMaxListeners) {
-  process.setMaxListeners(10000);
-}

http://git-wip-us.apache.org/repos/asf/cordova-weinre/blob/03084bdb/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/integration/test-multipart-parser.js
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/integration/test-multipart-parser.js b/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/integration/test-multipart-parser.js
deleted file mode 100644
index 75232aa..0000000
--- a/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/integration/test-multipart-parser.js
+++ /dev/null
@@ -1,80 +0,0 @@
-var common = require('../common');
-var CHUNK_LENGTH = 10,
-    multipartParser = require(common.lib + '/multipart_parser'),
-    MultipartParser = multipartParser.MultipartParser,
-    parser = new MultipartParser(),
-    fixtures = require(TEST_FIXTURES + '/multipart'),
-    Buffer = require('buffer').Buffer;
-
-Object.keys(fixtures).forEach(function(name) {
-  var fixture = fixtures[name],
-      buffer = new Buffer(Buffer.byteLength(fixture.raw, 'binary')),
-      offset = 0,
-      chunk,
-      nparsed,
-
-      parts = [],
-      part = null,
-      headerField,
-      headerValue,
-      endCalled = '';
-
-  parser.initWithBoundary(fixture.boundary);
-  parser.onPartBegin = function() {
-    part = {headers: {}, data: ''};
-    parts.push(part);
-    headerField = '';
-    headerValue = '';
-  };
-
-  parser.onHeaderField = function(b, start, end) {
-    headerField += b.toString('ascii', start, end);
-  };
-
-  parser.onHeaderValue = function(b, start, end) {
-    headerValue += b.toString('ascii', start, end);
-  }
-
-  parser.onHeaderEnd = function() {
-    part.headers[headerField] = headerValue;
-    headerField = '';
-    headerValue = '';
-  };
-
-  parser.onPartData = function(b, start, end) {
-    var str = b.toString('ascii', start, end);
-    part.data += b.slice(start, end);
-  }
-
-  parser.onEnd = function() {
-    endCalled = true;
-  }
-
-  buffer.write(fixture.raw, 'binary', 0);
-
-  while (offset < buffer.length) {
-    if (offset + CHUNK_LENGTH < buffer.length) {
-      chunk = buffer.slice(offset, offset+CHUNK_LENGTH);
-    } else {
-      chunk = buffer.slice(offset, buffer.length);
-    }
-    offset = offset + CHUNK_LENGTH;
-
-    nparsed = parser.write(chunk);
-    if (nparsed != chunk.length) {
-      if (fixture.expectError) {
-        return;
-      }
-      puts('-- ERROR --');
-      p(chunk.toString('ascii'));
-      throw new Error(chunk.length+' bytes written, but only '+nparsed+' bytes parsed!');
-    }
-  }
-
-  if (fixture.expectError) {
-    throw new Error('expected parse error did not happen');
-  }
-
-  assert.ok(endCalled);
-  assert.deepEqual(parts, fixture.parts);
-});

http://git-wip-us.apache.org/repos/asf/cordova-weinre/blob/03084bdb/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-file.js
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-file.js b/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-file.js
deleted file mode 100644
index 52ceedb..0000000
--- a/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-file.js
+++ /dev/null
@@ -1,104 +0,0 @@
-var common = require('../common');
-var WriteStreamStub = GENTLY.stub('fs', 'WriteStream');
-
-var File = require(common.lib + '/file'),
-    EventEmitter = require('events').EventEmitter,
-    file,
-    gently;
-
-function test(test) {
-  gently = new Gently();
-  file = new File();
-  test();
-  gently.verify(test.name);
-}
-
-test(function constructor() {
-  assert.ok(file instanceof EventEmitter);
-  assert.strictEqual(file.size, 0);
-  assert.strictEqual(file.path, null);
-  assert.strictEqual(file.name, null);
-  assert.strictEqual(file.type, null);
-  assert.strictEqual(file.lastModifiedDate, null);
-
-  assert.strictEqual(file._writeStream, null);
-
-  (function testSetProperties() {
-    var file2 = new File({foo: 'bar'});
-    assert.equal(file2.foo, 'bar');
-  })();
-});
-
-test(function open() {
-  var WRITE_STREAM;
-  file.path = '/foo';
-
-  gently.expect(WriteStreamStub, 'new', function (path) {
-    WRITE_STREAM = this;
-    assert.strictEqual(path, file.path);
-  });
-
-  file.open();
-  assert.strictEqual(file._writeStream, WRITE_STREAM);
-});
-
-test(function write() {
-  var BUFFER = {length: 10},
-      CB_STUB,
-      CB = function() {
-        CB_STUB.apply(this, arguments);
-      };
-
-  file._writeStream = {};
-
-  gently.expect(file._writeStream, 'write', function (buffer, cb) {
-    assert.strictEqual(buffer, BUFFER);
-
-    gently.expect(file, 'emit', function (event, bytesWritten) {
-      assert.ok(file.lastModifiedDate instanceof Date);
-      assert.equal(event, 'progress');
-      assert.equal(bytesWritten, file.size);
-    });
-
-    CB_STUB = gently.expect(function writeCb() {
-      assert.equal(file.size, 10);
-    });
-
-    cb();
-
-    gently.expect(file, 'emit', function (event, bytesWritten) {
-      assert.equal(event, 'progress');
-      assert.equal(bytesWritten, file.size);
-    });
-
-    CB_STUB = gently.expect(function writeCb() {
-      assert.equal(file.size, 20);
-    });
-
-    cb();
-  });
-
-  file.write(BUFFER, CB);
-});
-
-test(function end() {
-  var CB_STUB,
-      CB = function() {
-        CB_STUB.apply(this, arguments);
-      };
-
-  file._writeStream = {};
-
-  gently.expect(file._writeStream, 'end', function (cb) {
-    gently.expect(file, 'emit', function (event) {
-      assert.equal(event, 'end');
-    });
-
-    CB_STUB = gently.expect(function endCb() {
-    });
-
-    cb();
-  });
-
-  file.end(CB);
-});

http://git-wip-us.apache.org/repos/asf/cordova-weinre/blob/03084bdb/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-incoming-form.js
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-incoming-form.js b/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-incoming-form.js
deleted file mode 100644
index 84de439..0000000
--- a/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-incoming-form.js
+++ /dev/null
@@ -1,727 +0,0 @@
-var common = require('../common');
-var MultipartParserStub = GENTLY.stub('./multipart_parser', 'MultipartParser'),
-    QuerystringParserStub = GENTLY.stub('./querystring_parser', 'QuerystringParser'),
-    EventEmitterStub = GENTLY.stub('events', 'EventEmitter'),
-    StreamStub = GENTLY.stub('stream', 'Stream'),
-    FileStub = GENTLY.stub('./file');
-
-var formidable = require(common.lib + '/index'),
-    IncomingForm = formidable.IncomingForm,
-    events = require('events'),
-    fs = require('fs'),
-    path = require('path'),
-    Buffer = require('buffer').Buffer,
-    fixtures = require(TEST_FIXTURES + '/multipart'),
-    form,
-    gently;
-
-function test(test) {
-  gently = new Gently();
-  gently.expect(EventEmitterStub, 'call');
-  form = new IncomingForm();
-  test();
-  gently.verify(test.name);
-}
-
-test(function constructor() {
-  assert.strictEqual(form.error, null);
-  assert.strictEqual(form.ended, false);
-  assert.strictEqual(form.type, null);
-  assert.strictEqual(form.headers, null);
-  assert.strictEqual(form.keepExtensions, false);
-  assert.strictEqual(form.uploadDir, '/tmp');
-  assert.strictEqual(form.encoding, 'utf-8');
-  assert.strictEqual(form.bytesReceived, null);
-  assert.strictEqual(form.bytesExpected, null);
-  assert.strictEqual(form.maxFieldsSize, 2 * 1024 * 1024);
-  assert.strictEqual(form._parser, null);
-  assert.strictEqual(form._flushing, 0);
-  assert.strictEqual(form._fieldsSize, 0);
-  assert.ok(form instanceof EventEmitterStub);
-  assert.equal(form.constructor.name, 'IncomingForm');
-
-  (function testSimpleConstructor() {
-    gently.expect(EventEmitterStub, 'call');
-    var form = IncomingForm();
-    assert.ok(form instanceof IncomingForm);
-  })();
-
-  (function testSimpleConstructorShortcut() {
-    gently.expect(EventEmitterStub, 'call');
-    var form = formidable();
-    assert.ok(form instanceof IncomingForm);
-  })();
-});
-
-test(function parse() {
-  var REQ = {headers: {}}
-    , emit = {};
-
-  gently.expect(form, 'writeHeaders', function(headers) {
-    assert.strictEqual(headers, REQ.headers);
-  });
-
-  var events = ['error', 'aborted', 'data', 'end'];
-  gently.expect(REQ, 'on', events.length, function(event, fn) {
-    assert.equal(event, events.shift());
-    emit[event] = fn;
-    return this;
-  });
-
-  form.parse(REQ);
-
-  (function testPause() {
-    gently.expect(REQ, 'pause');
-    assert.strictEqual(form.pause(), true);
-  })();
-
-  (function testPauseCriticalException() {
-    form.ended = false;
-
-    var ERR = new Error('dasdsa');
-    gently.expect(REQ, 'pause', function() {
-      throw ERR;
-    });
-
-    gently.expect(form, '_error', function(err) {
-      assert.strictEqual(err, ERR);
-    });
-
-    assert.strictEqual(form.pause(), false);
-  })();
-
-  (function testPauseHarmlessException() {
-    form.ended = true;
-
-    var ERR = new Error('dasdsa');
-    gently.expect(REQ, 'pause', function() {
-      throw ERR;
-    });
-
-    assert.strictEqual(form.pause(), false);
-  })();
-
-  (function testResume() {
-    gently.expect(REQ, 'resume');
-    assert.strictEqual(form.resume(), true);
-  })();
-
-  (function testResumeCriticalException() {
-    form.ended = false;
-
-    var ERR = new Error('dasdsa');
-    gently.expect(REQ, 'resume', function() {
-      throw ERR;
-    });
-
-    gently.expect(form, '_error', function(err) {
-      assert.strictEqual(err, ERR);
-    });
-
-    assert.strictEqual(form.resume(), false);
-  })();
-
-  (function testResumeHarmlessException() {
-    form.ended = true;
-
-    var ERR = new Error('dasdsa');
-    gently.expect(REQ, 'resume', function() {
-      throw ERR;
-    });
-
-    assert.strictEqual(form.resume(), false);
-  })();
-
-  (function testEmitError() {
-    var ERR = new Error('something bad happened');
-    gently.expect(form, '_error',function(err) {
-      assert.strictEqual(err, ERR);
-    });
-    emit.error(ERR);
-  })();
-
-  (function testEmitAborted() {
-    gently.expect(form, 'emit',function(event) {
-      assert.equal(event, 'aborted');
-    });
-
-    emit.aborted();
-  })();
-
-
-  (function testEmitData() {
-    var BUFFER = [1, 2, 3];
-    gently.expect(form, 'write', function(buffer) {
-      assert.strictEqual(buffer, BUFFER);
-    });
-    emit.data(BUFFER);
-  })();
-
-  (function testEmitEnd() {
-    form._parser = {};
-
-    (function testWithError() {
-      var ERR = new Error('haha');
-      gently.expect(form._parser, 'end', function() {
-        return ERR;
-      });
-
-      gently.expect(form, '_error', function(err) {
-        assert.strictEqual(err, ERR);
-      });
-
-      emit.end();
-    })();
-
-    (function testWithoutError() {
-      gently.expect(form._parser, 'end');
-      emit.end();
-    })();
-
-    (function testAfterError() {
-      form.error = true;
-      emit.end();
-    })();
-  })();
-
-  (function testWithCallback() {
-    gently.expect(EventEmitterStub, 'call');
-    var form = new IncomingForm(),
-        REQ = {headers: {}},
-        parseCalled = 0;
-
-    gently.expect(form, 'writeHeaders');
-    gently.expect(REQ, 'on', 4, function() {
-      return this;
-    });
-
-    gently.expect(form, 'on', 4, function(event, fn) {
-      if (event == 'field') {
-        fn('field1', 'foo');
-        fn('field1', 'bar');
-        fn('field2', 'nice');
-      }
-
-      if (event == 'file') {
-        fn('file1', '1');
-        fn('file1', '2');
-        fn('file2', '3');
-      }
-
-      if (event == 'end') {
-        fn();
-      }
-      return this;
-    });
-
-    form.parse(REQ, gently.expect(function parseCbOk(err, fields, files) {
-      assert.deepEqual(fields, {field1: 'bar', field2: 'nice'});
-      assert.deepEqual(files, {file1: '2', file2: '3'});
-    }));
-
-    gently.expect(form, 'writeHeaders');
-    gently.expect(REQ, 'on', 4, function() {
-      return this;
-    });
-
-    var ERR = new Error('test');
-    gently.expect(form, 'on', 3, function(event, fn) {
-      if (event == 'field') {
-        fn('foo', 'bar');
-      }
-
-      if (event == 'error') {
-        fn(ERR);
-        gently.expect(form, 'on');
-      }
-      return this;
-    });
-
-    form.parse(REQ, gently.expect(function parseCbErr(err, fields, files) {
-      assert.strictEqual(err, ERR);
-      assert.deepEqual(fields, {foo: 'bar'});
-    }));
-  })();
-});
-
-test(function pause() {
-  assert.strictEqual(form.pause(), false);
-});
-
-test(function resume() {
-  assert.strictEqual(form.resume(), false);
-});
-
-
-test(function writeHeaders() {
-  var HEADERS = {};
-  gently.expect(form, '_parseContentLength');
-  gently.expect(form, '_parseContentType');
-
-  form.writeHeaders(HEADERS);
-  assert.strictEqual(form.headers, HEADERS);
-});
-
-test(function write() {
-  var parser = {},
-      BUFFER = [1, 2, 3];
-
-  form._parser = parser;
-  form.bytesExpected = 523423;
-
-  (function testBasic() {
-    gently.expect(form, 'emit', function(event, bytesReceived, bytesExpected) {
-      assert.equal(event, 'progress');
-      assert.equal(bytesReceived, BUFFER.length);
-      assert.equal(bytesExpected, form.bytesExpected);
-    });
-
-    gently.expect(parser, 'write', function(buffer) {
-      assert.strictEqual(buffer, BUFFER);
-      return buffer.length;
-    });
-
-    assert.equal(form.write(BUFFER), BUFFER.length);
-    assert.equal(form.bytesReceived, BUFFER.length);
-  })();
-
-  (function testParserError() {
-    gently.expect(form, 'emit');
-
-    gently.expect(parser, 'write', function(buffer) {
-      assert.strictEqual(buffer, BUFFER);
-      return buffer.length - 1;
-    });
-
-    gently.expect(form, '_error', function(err) {
-      assert.ok(err.message.match(/parser error/i));
-    });
-
-    assert.equal(form.write(BUFFER), BUFFER.length - 1);
-    assert.equal(form.bytesReceived, BUFFER.length + BUFFER.length);
-  })();
-
-  (function testUninitialized() {
-    delete form._parser;
-
-    gently.expect(form, '_error', function(err) {
-      assert.ok(err.message.match(/unintialized parser/i));
-    });
-    form.write(BUFFER);
-  })();
-});
-
-test(function parseContentType() {
-  var HEADERS = {};
-
-  form.headers = {'content-type': 'application/x-www-form-urlencoded'};
-  gently.expect(form, '_initUrlencoded');
-  form._parseContentType();
-
-  // accept anything that has 'urlencoded' in it
-  form.headers = {'content-type': 'broken-client/urlencoded-stupid'};
-  gently.expect(form, '_initUrlencoded');
-  form._parseContentType();
-
-  var BOUNDARY = '---------------------------57814261102167618332366269';
-  form.headers = {'content-type': 'multipart/form-data; boundary='+BOUNDARY};
-
-  gently.expect(form, '_initMultipart', function(boundary) {
-    assert.equal(boundary, BOUNDARY);
-  });
-  form._parseContentType();
-
-  (function testQuotedBoundary() {
-    form.headers = {'content-type': 'multipart/form-data; boundary="' + BOUNDARY + '"'};
-
-    gently.expect(form, '_initMultipart', function(boundary) {
-      assert.equal(boundary, BOUNDARY);
-    });
-    form._parseContentType();
-  })();
-
-  (function testNoBoundary() {
-    form.headers = {'content-type': 'multipart/form-data'};
-
-    gently.expect(form, '_error', function(err) {
-      assert.ok(err.message.match(/no multipart boundary/i));
-    });
-    form._parseContentType();
-  })();
-
-  (function testNoContentType() {
-    form.headers = {};
-
-    gently.expect(form, '_error', function(err) {
-      assert.ok(err.message.match(/no content-type/i));
-    });
-    form._parseContentType();
-  })();
-
-  (function testUnknownContentType() {
-    form.headers = {'content-type': 'invalid'};
-
-    gently.expect(form, '_error', function(err) {
-      assert.ok(err.message.match(/unknown content-type/i));
-    });
-    form._parseContentType();
-  })();
-});
-
-test(function parseContentLength() {
-  var HEADERS = {};
-
-  form.headers = {};
-  form._parseContentLength();
-  assert.strictEqual(form.bytesReceived, null);
-  assert.strictEqual(form.bytesExpected, null);
-
-  form.headers['content-length'] = '8';
-  gently.expect(form, 'emit', function(event, bytesReceived, bytesExpected) {
-    assert.equal(event, 'progress');
-    assert.equal(bytesReceived, 0);
-    assert.equal(bytesExpected, 8);
-  });
-  form._parseContentLength();
-  assert.strictEqual(form.bytesReceived, 0);
-  assert.strictEqual(form.bytesExpected, 8);
-
-  // JS can be evil, lets make sure we are not
-  form.headers['content-length'] = '08';
-  gently.expect(form, 'emit', function(event, bytesReceived, bytesExpected) {
-    assert.equal(event, 'progress');
-    assert.equal(bytesReceived, 0);
-    assert.equal(bytesExpected, 8);
-  });
-  form._parseContentLength();
-  assert.strictEqual(form.bytesExpected, 8);
-});
-
-test(function _initMultipart() {
-  var BOUNDARY = '123',
-      PARSER;
-
-  gently.expect(MultipartParserStub, 'new', function() {
-    PARSER = this;
-  });
-
-  gently.expect(MultipartParserStub.prototype, 'initWithBoundary', function(boundary) {
-    assert.equal(boundary, BOUNDARY);
-  });
-
-  form._initMultipart(BOUNDARY);
-  assert.equal(form.type, 'multipart');
-  assert.strictEqual(form._parser, PARSER);
-
-  (function testRegularField() {
-    var PART;
-    gently.expect(StreamStub, 'new', function() {
-      PART = this;
-    });
-
-    gently.expect(form, 'onPart', function(part) {
-      assert.strictEqual(part, PART);
-      assert.deepEqual
-        ( part.headers
-        , { 'content-disposition': 'form-data; name="field1"'
-          , 'foo': 'bar'
-          }
-        );
-      assert.equal(part.name, 'field1');
-
-      var strings = ['hello', ' world'];
-      gently.expect(part, 'emit', 2, function(event, b) {
-          assert.equal(event, 'data');
-          assert.equal(b.toString(), strings.shift());
-      });
-
-      gently.expect(part, 'emit', function(event, b) {
-          assert.equal(event, 'end');
-      });
-    });
-
-    PARSER.onPartBegin();
-    PARSER.onHeaderField(new Buffer('content-disposition'), 0, 10);
-    PARSER.onHeaderField(new Buffer('content-disposition'), 10, 19);
-    PARSER.onHeaderValue(new Buffer('form-data; name="field1"'), 0, 14);
-    PARSER.onHeaderValue(new Buffer('form-data; name="field1"'), 14, 24);
-    PARSER.onHeaderEnd();
-    PARSER.onHeaderField(new Buffer('foo'), 0, 3);
-    PARSER.onHeaderValue(new Buffer('bar'), 0, 3);
-    PARSER.onHeaderEnd();
-    PARSER.onHeadersEnd();
-    PARSER.onPartData(new Buffer('hello world'), 0, 5);
-    PARSER.onPartData(new Buffer('hello world'), 5, 11);
-    PARSER.onPartEnd();
-  })();
-
-  (function testFileField() {
-    var PART;
-    gently.expect(StreamStub, 'new', function() {
-      PART = this;
-    });
-
-    gently.expect(form, 'onPart', function(part) {
-      assert.deepEqual
-        ( part.headers
-        , { 'content-disposition': 'form-data; name="field2"; filename="C:\\Documents and Settings\\IE\\Must\\Die\\Sun"et.jpg"'
-          , 'content-type': 'text/plain'
-          }
-        );
-      assert.equal(part.name, 'field2');
-      assert.equal(part.filename, 'Sun"et.jpg');
-      assert.equal(part.mime, 'text/plain');
-
-      gently.expect(part, 'emit', function(event, b) {
-        assert.equal(event, 'data');
-        assert.equal(b.toString(), '... contents of file1.txt ...');
-      });
-
-      gently.expect(part, 'emit', function(event, b) {
-          assert.equal(event, 'end');
-      });
-    });
-
-    PARSER.onPartBegin();
-    PARSER.onHeaderField(new Buffer('content-disposition'), 0, 19);
-    PARSER.onHeaderValue(new Buffer('form-data; name="field2"; filename="C:\\Documents and Settings\\IE\\Must\\Die\\Sun"et.jpg"'), 0, 85);
-    PARSER.onHeaderEnd();
-    PARSER.onHeaderField(new Buffer('Content-Type'), 0, 12);
-    PARSER.onHeaderValue(new Buffer('text/plain'), 0, 10);
-    PARSER.onHeaderEnd();
-    PARSER.onHeadersEnd();
-    PARSER.onPartData(new Buffer('... contents of file1.txt ...'), 0, 29);
-    PARSER.onPartEnd();
-  })();
-
-  (function testEnd() {
-    gently.expect(form, '_maybeEnd');
-    PARSER.onEnd();
-    assert.ok(form.ended);
-  })();
-});
-
-test(function _fileName() {
-  // TODO
-  return;
-});
-
-test(function _initUrlencoded() {
-  var PARSER;
-
-  gently.expect(QuerystringParserStub, 'new', function() {
-    PARSER = this;
-  });
-
-  form._initUrlencoded();
-  assert.equal(form.type, 'urlencoded');
-  assert.strictEqual(form._parser, PARSER);
-
-  (function testOnField() {
-    var KEY = 'KEY', VAL = 'VAL';
-    gently.expect(form, 'emit', function(field, key, val) {
-      assert.equal(field, 'field');
-      assert.equal(key, KEY);
-      assert.equal(val, VAL);
-    });
-
-    PARSER.onField(KEY, VAL);
-  })();
-
-  (function testOnEnd() {
-    gently.expect(form, '_maybeEnd');
-
-    PARSER.onEnd();
-    assert.equal(form.ended, true);
-  })();
-});
-
-test(function _error() {
-  var ERR = new Error('bla');
-
-  gently.expect(form, 'pause');
-  gently.expect(form, 'emit', function(event, err) {
-    assert.equal(event, 'error');
-    assert.strictEqual(err, ERR);
-  });
-
-  form._error(ERR);
-  assert.strictEqual(form.error, ERR);
-
-  // make sure _error only does its thing once
-  form._error(ERR);
-});
-
-test(function onPart() {
-  var PART = {};
-  gently.expect(form, 'handlePart', function(part) {
-    assert.strictEqual(part, PART);
-  });
-
-  form.onPart(PART);
-});
-
-test(function handlePart() {
-  (function testUtf8Field() {
-    var PART = new events.EventEmitter();
-    PART.name = 'my_field';
-
-    gently.expect(form, 'emit', function(event, field, value) {
-      assert.equal(event, 'field');
-      assert.equal(field, 'my_field');
-      assert.equal(value, 'hello world: €');
-    });
-
-    form.handlePart(PART);
-    PART.emit('data', new Buffer('hello'));
-    PART.emit('data', new Buffer(' world: '));
-    PART.emit('data', new Buffer([0xE2]));
-    PART.emit('data', new Buffer([0x82, 0xAC]));
-    PART.emit('end');
-  })();
-
-  (function testBinaryField() {
-    var PART = new events.EventEmitter();
-    PART.name = 'my_field2';
-
-    gently.expect(form, 'emit', function(event, field, value) {
-      assert.equal(event, 'field');
-      assert.equal(field, 'my_field2');
-      assert.equal(value, 'hello world: '+new Buffer([0xE2, 0x82, 0xAC]).toString('binary'));
-    });
-
-    form.encoding = 'binary';
-    form.handlePart(PART);
-    PART.emit('data', new Buffer('hello'));
-    PART.emit('data', new Buffer(' world: '));
-    PART.emit('data', new Buffer([0xE2]));
-    PART.emit('data', new Buffer([0x82, 0xAC]));
-    PART.emit('end');
-  })();
-
-  (function testFieldSize() {
-    form.maxFieldsSize = 8;
-    var PART = new events.EventEmitter();
-    PART.name = 'my_field';
-
-    gently.expect(form, '_error', function(err) {
-      assert.equal(err.message, 'maxFieldsSize exceeded, received 9 bytes of field data');
-    });
-
-    form.handlePart(PART);
-    form._fieldsSize = 1;
-    PART.emit('data', new Buffer(7));
-    PART.emit('data', new Buffer(1));
-  })();
-
-  (function testFilePart() {
-    var PART = new events.EventEmitter(),
-        FILE = new events.EventEmitter(),
-        PATH = '/foo/bar';
-
-    PART.name = 'my_file';
-    PART.filename = 'sweet.txt';
-    PART.mime = 'sweet.txt';
-
-    gently.expect(form, '_uploadPath', function(filename) {
-      assert.equal(filename, PART.filename);
-      return PATH;
-    });
-
-    gently.expect(FileStub, 'new', function(properties) {
-      assert.equal(properties.path, PATH);
-      assert.equal(properties.name, PART.filename);
-      assert.equal(properties.type, PART.mime);
-      FILE = this;
-
-      gently.expect(form, 'emit', function (event, field, file) {
-        assert.equal(event, 'fileBegin');
-        assert.strictEqual(field, PART.name);
-        assert.strictEqual(file, FILE);
-      });
-
-      gently.expect(FILE, 'open');
-    });
-
-    form.handlePart(PART);
-    assert.equal(form._flushing, 1);
-
-    var BUFFER;
-    gently.expect(form, 'pause');
-    gently.expect(FILE, 'write', function(buffer, cb) {
-      assert.strictEqual(buffer, BUFFER);
-      gently.expect(form, 'resume');
-      // @todo handle cb(new Err)
-      cb();
-    });
-
-    PART.emit('data', BUFFER = new Buffer('test'));
-
-    gently.expect(FILE, 'end', function(cb) {
-      gently.expect(form, 'emit', function(event, field, file) {
-        assert.equal(event, 'file');
-        assert.strictEqual(file, FILE);
-      });
-
-      gently.expect(form, '_maybeEnd');
-
-      cb();
-      assert.equal(form._flushing, 0);
-    });
-
-    PART.emit('end');
-  })();
-});
-
-test(function _uploadPath() {
-  (function testUniqueId() {
-    var UUID_A, UUID_B;
-    gently.expect(GENTLY.hijacked.path, 'join', function(uploadDir, uuid) {
-      assert.equal(uploadDir, form.uploadDir);
-      UUID_A = uuid;
-    });
-    form._uploadPath();
-
-    gently.expect(GENTLY.hijacked.path, 'join', function(uploadDir, uuid) {
-      UUID_B = uuid;
-    });
-    form._uploadPath();
-
-    assert.notEqual(UUID_A, UUID_B);
-  })();
-
-  (function testFileExtension() {
-    form.keepExtensions = true;
-    var FILENAME = 'foo.jpg',
-        EXT = '.bar';
-
-    gently.expect(GENTLY.hijacked.path, 'extname', function(filename) {
-      assert.equal(filename, FILENAME);
-      gently.restore(path, 'extname');
-
-      return EXT;
-    });
-
-    gently.expect(GENTLY.hijacked.path, 'join', function(uploadDir, name) {
-      assert.equal(path.extname(name), EXT);
-    });
-    form._uploadPath(FILENAME);
-  })();
-});
-
-test(function _maybeEnd() {
-  gently.expect(form, 'emit', 0);
-  form._maybeEnd();
-
-  form.ended = true;
-  form._flushing = 1;
-  form._maybeEnd();
-
-  gently.expect(form, 'emit', function(event) {
-    assert.equal(event, 'end');
-  });
-
-  form.ended = true;
-  form._flushing = 0;
-  form._maybeEnd();
-});

http://git-wip-us.apache.org/repos/asf/cordova-weinre/blob/03084bdb/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-multipart-parser.js
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-multipart-parser.js b/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-multipart-parser.js
deleted file mode 100644
index d8dc968..0000000
--- a/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-multipart-parser.js
+++ /dev/null
@@ -1,50 +0,0 @@
-var common = require('../common');
-var multipartParser = require(common.lib + '/multipart_parser'),
-    MultipartParser = multipartParser.MultipartParser,
-    events = require('events'),
-    Buffer = require('buffer').Buffer,
-    parser;
-
-function test(test) {
-  parser = new MultipartParser();
-  test();
-}
-
-test(function constructor() {
-  assert.equal(parser.boundary, null);
-  assert.equal(parser.state, 0);
-  assert.equal(parser.flags, 0);
-  assert.equal(parser.boundaryChars, null);
-  assert.equal(parser.index, null);
-  assert.equal(parser.lookbehind, null);
-  assert.equal(parser.constructor.name, 'MultipartParser');
-});
-
-test(function initWithBoundary() {
-  var boundary = 'abc';
-  parser.initWithBoundary(boundary);
-  assert.deepEqual(Array.prototype.slice.call(parser.boundary), [13, 10, 45, 45, 97, 98, 99]);
-  assert.equal(parser.state, multipartParser.START);
-
-  assert.deepEqual(parser.boundaryChars, {10: true, 13: true, 45: true, 97: true, 98: true, 99: true});
-});
-
-test(function parserError() {
-  var boundary = 'abc',
-      buffer = new Buffer(5);
-
-  parser.initWithBoundary(boundary);
-  buffer.write('--ad', 'ascii', 0);
-  assert.equal(parser.write(buffer), 3);
-});
-
-test(function end() {
-  (function testError() {
-    assert.equal(parser.end().message, 'MultipartParser.end(): stream ended unexpectedly: ' + parser.explain());
-  })();
-
-  (function testRegular() {
-    parser.state = multipartParser.END;
-    assert.strictEqual(parser.end(), undefined);
-  })();
-});

http://git-wip-us.apache.org/repos/asf/cordova-weinre/blob/03084bdb/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-querystring-parser.js
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-querystring-parser.js b/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-querystring-parser.js
deleted file mode 100644
index 54d3e2d..0000000
--- a/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-querystring-parser.js
+++ /dev/null
@@ -1,45 +0,0 @@
-var common = require('../common');
-var QuerystringParser = require(common.lib + '/querystring_parser').QuerystringParser,
-    Buffer = require('buffer').Buffer,
-    gently,
-    parser;
-
-function test(test) {
-  gently = new Gently();
-  parser = new QuerystringParser();
-  test();
-  gently.verify(test.name);
-}
-
-test(function constructor() {
-  assert.equal(parser.buffer, '');
-  assert.equal(parser.constructor.name, 'QuerystringParser');
-});
-
-test(function write() {
-  var a = new Buffer('a=1');
-  assert.equal(parser.write(a), a.length);
-
-  var b = new Buffer('&b=2');
-  parser.write(b);
-  assert.equal(parser.buffer, a + b);
-});
-
-test(function end() {
-  var FIELDS = {a: ['b', {c: 'd'}], e: 'f'};
-
-  gently.expect(GENTLY.hijacked.querystring, 'parse', function(str) {
-    assert.equal(str, parser.buffer);
-    return FIELDS;
-  });
-
-  gently.expect(parser, 'onField', Object.keys(FIELDS).length, function(key, val) {
-    assert.deepEqual(FIELDS[key], val);
-  });
-
-  gently.expect(parser, 'onEnd');
-
-  parser.buffer = 'my buffer';
-  parser.end();
-  assert.equal(parser.buffer, '');
-});

http://git-wip-us.apache.org/repos/asf/cordova-weinre/blob/03084bdb/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/system/test-multi-video-upload.js
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/system/test-multi-video-upload.js b/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/system/test-multi-video-upload.js
deleted file mode 100644
index 479e46d..0000000
--- a/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/system/test-multi-video-upload.js
+++ /dev/null
@@ -1,75 +0,0 @@
-var common = require('../common');
-var BOUNDARY = '---------------------------10102754414578508781458777923',
-    FIXTURE = TEST_FIXTURES+'/multi_video.upload',
-    fs = require('fs'),
-    util = require(common.lib + '/util'),
-    http = require('http'),
-    formidable = require(common.lib + '/index'),
-    server = http.createServer();
-
-server.on('request', function(req, res) {
-  var form = new formidable.IncomingForm(),
-      uploads = {};
-
-  form.uploadDir = TEST_TMP;
-  form.hash = 'sha1';
-  form.parse(req);
-
-  form
-    .on('fileBegin', function(field, file) {
-      assert.equal(field, 'upload');
-
-      var tracker = {file: file, progress: [], ended: false};
-      uploads[file.filename] = tracker;
-      file
-        .on('progress', function(bytesReceived) {
-          tracker.progress.push(bytesReceived);
-          assert.equal(bytesReceived, file.length);
-        })
-        .on('end', function() {
-          tracker.ended = true;
-        });
-    })
-    .on('field', function(field, value) {
-      assert.equal(field, 'title');
-      assert.equal(value, '');
-    })
-    .on('file', function(field, file) {
-      assert.equal(field, 'upload');
-      assert.strictEqual(uploads[file.filename].file, file);
-    })
-    .on('end', function() {
-      assert.ok(uploads['shortest_video.flv']);
-      assert.ok(uploads['shortest_video.flv'].ended);
-      assert.ok(uploads['shortest_video.flv'].progress.length > 3);
-      assert.equal(uploads['shortest_video.flv'].file.hash, 'd6a17616c7143d1b1438ceeef6836d1a09186b3a');
-      assert.equal(uploads['shortest_video.flv'].progress.slice(-1), uploads['shortest_video.flv'].file.length);
-      assert.ok(uploads['shortest_video.mp4']);
-      assert.ok(uploads['shortest_video.mp4'].ended);
-      assert.ok(uploads['shortest_video.mp4'].progress.length > 3);
-      assert.equal(uploads['shortest_video.mp4'].file.hash, '937dfd4db263f4887ceae19341dcc8d63bcd557f');
-
-      server.close();
-      res.writeHead(200);
-      res.end('good');
-    });
-});
-
-server.listen(TEST_PORT, function() {
-  var client = http.createClient(TEST_PORT),
-      stat = fs.statSync(FIXTURE),
-      headers = {
-        'content-type': 'multipart/form-data; boundary='+BOUNDARY,
-        'content-length': stat.size,
-      }
-      request = client.request('POST', '/', headers),
-      fixture = new fs.ReadStream(FIXTURE);
-
-  fixture
-    .on('data', function(b) {
-      request.write(b);
-    })
-    .on('end', function() {
-      request.end();
-    });
-});

http://git-wip-us.apache.org/repos/asf/cordova-weinre/blob/03084bdb/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/run.js
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/run.js b/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/run.js
deleted file mode 100755
index 50b2361..0000000
--- a/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/run.js
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/usr/bin/env node
-require('urun')(__dirname)

http://git-wip-us.apache.org/repos/asf/cordova-weinre/blob/03084bdb/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/unit/test-incoming-form.js
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/unit/test-incoming-form.js b/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/unit/test-incoming-form.js
deleted file mode 100644
index fe2ac1c..0000000
--- a/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/test/unit/test-incoming-form.js
+++ /dev/null
@@ -1,63 +0,0 @@
-var common       = require('../common');
-var test         = require('utest');
-var assert       = common.assert;
-var IncomingForm = common.require('incoming_form').IncomingForm;
-var path         = require('path');
-
-var form;
-test('IncomingForm', {
-  before: function() {
-    form = new IncomingForm();
-  },
-
-  '#_fileName with regular characters': function() {
-    var filename = 'foo.txt';
-    assert.equal(form._fileName(makeHeader(filename)), 'foo.txt');
-  },
-
-  '#_fileName with unescaped quote': function() {
-    var filename = 'my".txt';
-    assert.equal(form._fileName(makeHeader(filename)), 'my".txt');
-  },
-
-  '#_fileName with escaped quote': function() {
-    var filename = 'my%22.txt';
-    assert.equal(form._fileName(makeHeader(filename)), 'my".txt');
-  },
-
-  '#_fileName with bad quote and additional sub-header': function() {
-    var filename = 'my".txt';
-    var header = makeHeader(filename) + '; foo="bar"';
-    assert.equal(form._fileName(header), filename);
-  },
-
-  '#_fileName with semicolon': function() {
-    var filename = 'my;.txt';
-    assert.equal(form._fileName(makeHeader(filename)), 'my;.txt');
-  },
-
-  '#_fileName with utf8 character': function() {
-    var filename = 'my&#9731;.txt';
-    assert.equal(form._fileName(makeHeader(filename)), 'my☃.txt');
-  },
-
-  '#_uploadPath strips harmful characters from extension when keepExtensions': function() {
-    form.keepExtensions = true;
-
-    var ext = path.extname(form._uploadPath('fine.jpg?foo=bar'));
-    assert.equal(ext, '.jpg');
-
-    var ext = path.extname(form._uploadPath('fine?foo=bar'));
-    assert.equal(ext, '');
-
-    var ext = path.extname(form._uploadPath('super.cr2+dsad'));
-    assert.equal(ext, '.cr2');
-
-    var ext = path.extname(form._uploadPath('super.bar'));
-    assert.equal(ext, '.bar');
-  },
-});
-
-function makeHeader(filename) {
-  return 'Content-Disposition: form-data; name="upload"; filename="' + filename + '"';
-}

http://git-wip-us.apache.org/repos/asf/cordova-weinre/blob/03084bdb/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/tool/record.js
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/tool/record.js b/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/tool/record.js
deleted file mode 100644
index 9f1cef8..0000000
--- a/weinre.server/node_modules/express/node_modules/connect/node_modules/formidable/tool/record.js
+++ /dev/null
@@ -1,47 +0,0 @@
-var http = require('http');
-var fs = require('fs');
-var connections = 0;
-
-var server = http.createServer(function(req, res) {
-  var socket = req.socket;
-  console.log('Request: %s %s -> %s', req.method, req.url, socket.filename);
-
-  req.on('end', function() {
-    if (req.url !== '/') {
-      res.end(JSON.stringify({
-        method: req.method,
-        url: req.url,
-        filename: socket.filename,
-      }));
-      return;
-    }
-
-    res.writeHead(200, {'content-type': 'text/html'});
-    res.end(
-      '<form action="/upload" enctype="multipart/form-data" method="post">'+
-      '<input type="text" name="title"><br>'+
-      '<input type="file" name="upload" multiple="multiple"><br>'+
-      '<input type="submit" value="Upload">'+
-      '</form>'
-    );
-  });
-});
-
-server.on('connection', function(socket) {
-  connections++;
-
-  socket.id = connections;
-  socket.filename = 'connection-' + socket.id + '.http';
-  socket.file = fs.createWriteStream(socket.filename);
-  socket.pipe(socket.file);
-
-  console.log('--> %s', socket.filename);
-  socket.on('close', function() {
-    console.log('<-- %s', socket.filename);
-  });
-});
-
-var port = process.env.PORT || 8080;
-server.listen(port, function() {
-  console.log('Recording connections on port %s', port);
-});

http://git-wip-us.apache.org/repos/asf/cordova-weinre/blob/03084bdb/weinre.server/node_modules/express/node_modules/connect/package.json
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/express/node_modules/connect/package.json b/weinre.server/node_modules/express/node_modules/connect/package.json
index 50ef2b3..806713e 100644
--- a/weinre.server/node_modules/express/node_modules/connect/package.json
+++ b/weinre.server/node_modules/express/node_modules/connect/package.json
@@ -1,6 +1,6 @@
 {
   "name": "connect",
-  "version": "1.9.1",
+  "version": "1.9.2",
   "description": "High performance middleware framework",
   "keywords": [
     "framework",
@@ -36,6 +36,11 @@
     "tag": "1.8"
   },
   "main": "index",
-  "_id": "connect@1.9.1",
+  "bugs": {
+    "url": "https://github.com/senchalabs/connect/issues"
+  },
+  "readme": "ERROR: No README data found!",
+  "homepage": "https://github.com/senchalabs/connect",
+  "_id": "connect@1.9.2",
   "_from": "connect@1.x"
 }

http://git-wip-us.apache.org/repos/asf/cordova-weinre/blob/03084bdb/weinre.server/node_modules/express/node_modules/connect/test.js
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/express/node_modules/connect/test.js b/weinre.server/node_modules/express/node_modules/connect/test.js
index ff020e1..106ddd1 100644
--- a/weinre.server/node_modules/express/node_modules/connect/test.js
+++ b/weinre.server/node_modules/express/node_modules/connect/test.js
@@ -1,30 +1,15 @@
-var connect = require('./');
-var app = connect();
-
-function delay(ms) {
-  return function(req, res, next){
-    setTimeout(next, ms);
-  }
-}
 
-var set = true
-setTimeout(function(){
-  set = false;
-  console.log('setting');
-}, 3000);
-app.use(connect.logger('dev'));
-app.use(connect.staticCache());
-app.use(function(req, res, next){
-  if (set) {
-    console.log('setting cookie');
-    res.setHeader('Set-Cookie', 'name=tj');
-  }
-  next();
-});
-app.use(connect.static(__dirname, { maxAge: 100000 }));
+/**
+ * Module dependencies.
+ */
 
-app.listen(3000);
+var connect = require('./');
 
-// 8500 without
-// 8300 with
-// 6100 with cookie 7500 without signed check
\ No newline at end of file
+var app = connect()
+  .use(connect.logger('dev'))
+  .use(function(req, res){
+    var body = Array(3222).join('hey');
+    res.setHeader('Content-Length', body.length);
+    res.end(body);
+  })
+  .listen(3000);
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-weinre/blob/03084bdb/weinre.server/node_modules/express/node_modules/mime/package.json
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/express/node_modules/mime/package.json b/weinre.server/node_modules/express/node_modules/mime/package.json
index 0c6ca5a..3767a4e 100644
--- a/weinre.server/node_modules/express/node_modules/mime/package.json
+++ b/weinre.server/node_modules/express/node_modules/mime/package.json
@@ -28,9 +28,15 @@
   },
   "version": "1.2.4",
   "readme": "# mime\n\nSupport for mapping between file extensions and MIME types.  This module uses the latest version of the Apache \"mime.types\" file (maps over 620 types to 800+ extensions).  It is also trivially easy to add your own types and extensions, should you need to do that.\n\n## Install\n\nInstall with [npm](http://github.com/isaacs/npm):\n\n    npm install mime\n\n## API - Queries\n\n### mime.lookup(path)\nGet the mime type associated with a file. This is method is case-insensitive. Everything in path up to and including the last '/' or '.' is ignored, so you can pass it paths, filenames, or extensions, like so:\n\n    var mime = require('mime');\n\n    mime.lookup('/path/to/file.txt');         // => 'text/plain'\n    mime.lookup('file.txt');                  // => 'text/plain'\n    mime.lookup('.txt');                      // => 'text/plain'\n    mime.lookup('htm');                       // => 'text/html'\n\n### mime.extension(type) - lookup the default extension fo
 r type\n\n    mime.extension('text/html');                 // => 'html'\n    mime.extension('application/octet-stream');  // => 'bin'\n\n### mime.charsets.lookup() - map mime-type to charset\n\n    mime.charsets.lookup('text/plain');        // => 'UTF-8'\n\n(The logic for charset lookups is pretty rudimentary.  Feel free to suggest improvements.)\n\n## API - Customizing\n\nThe following APIs allow you to add your own type mappings within your project.  If you feel a type should be included as part of node-mime, see [requesting new types](https://github.com/bentomas/node-mime/wiki/Requesting-New-Types).\n### mime.define() - Add custom mime/extension mappings\n\n    mime.define({\n        'text/x-some-format': ['x-sf', 'x-sft', 'x-sfml'],\n        'application/x-my-type': ['x-mt', 'x-mtt'],\n        // etc ...\n    });\n\n    mime.lookup('x-sft');                 // => 'text/x-some-format'\n    mime.extension('text/x-some-format'); // => 'x-sf'\n\n### mime.load(filepath) - Load mappin
 gs from an Apache \".types\" format file\n\n    mime.load('./my_project.types');\n",
+  "readmeFilename": "README.md",
+  "bugs": {
+    "url": "https://github.com/bentomas/node-mime/issues"
+  },
+  "homepage": "https://github.com/bentomas/node-mime",
   "_id": "mime@1.2.4",
   "dist": {
-    "shasum": "708279b96036d1c56908f9d9ad04cae489690c19"
+    "shasum": "0f1a0da8e2ce35e5da7d1993f07528448e4af08f"
   },
-  "_from": "mime@1.2.4"
+  "_from": "mime@1.2.4",
+  "_resolved": "https://registry.npmjs.org/mime/-/mime-1.2.4.tgz"
 }

http://git-wip-us.apache.org/repos/asf/cordova-weinre/blob/03084bdb/weinre.server/node_modules/express/node_modules/mkdirp/package.json
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/express/node_modules/mkdirp/package.json b/weinre.server/node_modules/express/node_modules/mkdirp/package.json
index fb0c993..7863886 100644
--- a/weinre.server/node_modules/express/node_modules/mkdirp/package.json
+++ b/weinre.server/node_modules/express/node_modules/mkdirp/package.json
@@ -27,9 +27,11 @@
     "node": "*"
   },
   "readme": "mkdirp\n======\n\nLike `mkdir -p`, but in node.js!\n\nexample\n=======\n\npow.js\n------\n    var mkdirp = require('mkdirp');\n    \n    mkdirp('/tmp/foo/bar/baz', function (err) {\n        if (err) console.error(err)\n        else console.log('pow!')\n    });\n\nOutput\n    pow!\n\nAnd now /tmp/foo/bar/baz exists, huzzah!\n\nmethods\n=======\n\nvar mkdirp = require('mkdirp');\n\nmkdirp(dir, mode, cb)\n---------------------\n\nCreate a new directory and any necessary subdirectories at `dir` with octal\npermission string `mode`.\n\nIf `mode` isn't specified, it defaults to `0777 & (~process.umask())`.\n\nmkdirp.sync(dir, mode)\n----------------------\n\nSynchronously create a new directory and any necessary subdirectories at `dir`\nwith octal permission string `mode`.\n\nIf `mode` isn't specified, it defaults to `0777 & (~process.umask())`.\n\ninstall\n=======\n\nWith [npm](http://npmjs.org) do:\n\n    npm install mkdirp\n\nlicense\n=======\n\nMIT/X11\n",
-  "_id": "mkdirp@0.3.0",
-  "dist": {
-    "shasum": "d42b304feca2923700b59953afc6b802be335daa"
+  "readmeFilename": "README.markdown",
+  "bugs": {
+    "url": "https://github.com/substack/node-mkdirp/issues"
   },
+  "homepage": "https://github.com/substack/node-mkdirp",
+  "_id": "mkdirp@0.3.0",
   "_from": "mkdirp@0.3.0"
 }

http://git-wip-us.apache.org/repos/asf/cordova-weinre/blob/03084bdb/weinre.server/node_modules/express/node_modules/qs/package.json
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/express/node_modules/qs/package.json b/weinre.server/node_modules/express/node_modules/qs/package.json
index 3a488f1..706b904 100644
--- a/weinre.server/node_modules/express/node_modules/qs/package.json
+++ b/weinre.server/node_modules/express/node_modules/qs/package.json
@@ -19,6 +19,12 @@
   "engines": {
     "node": "*"
   },
+  "readme": "# node-querystring\n\n  query string parser for node supporting nesting, as it was removed from `0.3.x`, so this library provides the previous and commonly desired behaviour (and twice as fast). Used by [express](http://expressjs.com), [connect](http://senchalabs.github.com/connect) and others.\n\n## Installation\n\n    $ npm install qs\n\n## Examples\n\n```js\nvar qs = require('qs');\n\nqs.parse('user[name][first]=Tobi&user[email]=tobi@learnboost.com');\n// => { user: { name: { first: 'Tobi' }, email: 'tobi@learnboost.com' } }\n\nqs.stringify({ user: { name: 'Tobi', email: 'tobi@learnboost.com' }})\n// => user[name]=Tobi&user[email]=tobi%40learnboost.com\n```\n\n## Testing\n\nInstall dev dependencies:\n\n    $ npm install -d\n\nand execute:\n\n    $ make test\n\n## License \n\n(The MIT License)\n\nCopyright (c) 2010 TJ Holowaychuk &lt;tj@vision-media.ca&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated 
 documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
+  "readmeFilename": "Readme.md",
+  "bugs": {
+    "url": "https://github.com/visionmedia/node-querystring/issues"
+  },
+  "homepage": "https://github.com/visionmedia/node-querystring",
   "_id": "qs@0.4.2",
   "_from": "qs@0.4.x"
 }

http://git-wip-us.apache.org/repos/asf/cordova-weinre/blob/03084bdb/weinre.server/node_modules/express/package.json
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/express/package.json b/weinre.server/node_modules/express/package.json
index 9445014..3b8ab64 100644
--- a/weinre.server/node_modules/express/package.json
+++ b/weinre.server/node_modules/express/package.json
@@ -1,7 +1,7 @@
 {
   "name": "express",
   "description": "Sinatra inspired web development framework",
-  "version": "2.5.10",
+  "version": "2.5.11",
   "author": {
     "name": "TJ Holowaychuk",
     "email": "tj@vision-media.ca"
@@ -61,6 +61,12 @@
     "test": "make test",
     "prepublish": "npm prune"
   },
-  "_id": "express@2.5.10",
+  "readme": "\n# Express\n      \n  Insanely fast (and small) server-side JavaScript web development framework\n  built on [node](http://nodejs.org) and [Connect](http://github.com/senchalabs/connect).\n  \n     var app = express.createServer();\n     \n     app.get('/', function(req, res){\n       res.send('Hello World');\n     });\n     \n     app.listen(3000);\n\n## Installation\n\n    $ npm install express\n\nor to access the `express(1)` executable install globally:\n\n    $ npm install -g express\n\n## Quick Start\n\n The quickest way to get started with express is to utilize the executable `express(1)` to generate an application as shown below:\n\n Create the app:\n\n    $ npm install -g express\n    $ express /tmp/foo && cd /tmp/foo\n\n Install dependencies:\n\n    $ npm install -d\n\n Start the server:\n\n    $ node app.js\n\n## Features\n\n  * Robust routing\n  * Redirection helpers\n  * Dynamic view helpers\n  * Content negotiation\n  * Focus on high performance\n  * View
  rendering and partials support\n  * Environment based configuration\n  * Session based flash notifications\n  * Built on [Connect](http://github.com/senchalabs/connect)\n  * High test coverage\n  * Executable for generating applications quickly\n  * Application level view options\n\nVia Connect:\n\n  * Session support\n  * Cache API\n  * Mime helpers\n  * ETag support\n  * Persistent flash notifications\n  * Cookie support\n  * JSON-RPC\n  * Logging\n  * and _much_ more!\n\n## Contributors\n\nThe following are the major contributors of Express (in no specific order).\n\n  * TJ Holowaychuk ([visionmedia](http://github.com/visionmedia))\n  * Ciaran Jessup ([ciaranj](http://github.com/ciaranj))\n  * Aaron Heckmann ([aheckmann](http://github.com/aheckmann))\n  * Guillermo Rauch ([guille](http://github.com/guille))\n\n## More Information\n\n  * #express on freenode\n  * [express-expose](http://github.com/visionmedia/express-expose) expose objects, functions, modules and more to client-s
 ide js with ease\n  * [express-configure](http://github.com/visionmedia/express-configuration) async configuration support\n  * [express-messages](http://github.com/visionmedia/express-messages) flash notification rendering helper\n  * [express-namespace](http://github.com/visionmedia/express-namespace) namespaced route support\n  * [express-params](https://github.com/visionmedia/express-params) param pre-condition functions\n  * [express-mongoose](https://github.com/LearnBoost/express-mongoose) plugin for easy rendering of Mongoose async Query results\n  * Follow [tjholowaychuk](http://twitter.com/tjholowaychuk) on twitter for updates\n  * [Google Group](http://groups.google.com/group/express-js) for discussion\n  * Visit the [Wiki](http://github.com/visionmedia/express/wiki)\n  * [日本語ドキュメンテーション](http://hideyukisaito.com/doc/expressjs/) by [hideyukisaito](https://github.com/hideyukisaito)\n  * Screencast - [Introduction](http://bit.ly/eRYu0O)\n  * Screenca
 st - [View Partials](http://bit.ly/dU13Fx)\n  * Screencast - [Route Specific Middleware](http://bit.ly/hX4IaH)\n  * Screencast - [Route Path Placeholder Preconditions](http://bit.ly/eNqmVs)\n\n## Node Compatibility\n\nExpress 1.x is compatible with node 0.2.x and connect < 1.0.\n\nExpress 2.x is compatible with node 0.4.x or 0.6.x, and connect 1.x\n\nExpress 3.x (master) will be compatible with node 0.6.x and connect 2.x\n\n## Viewing Examples\n\nFirst install the dev dependencies to install all the example / test suite deps:\n\n    $ npm install\n\nthen run whichever tests you want:\n\n    $ node examples/jade/app.js\n\n## Running Tests\n\nTo run the test suite first invoke the following command within the repo, installing the development dependencies:\n\n    $ npm install\n\nthen run the tests:\n\n    $ make test\n\n## License \n\n(The MIT License)\n\nCopyright (c) 2009-2011 TJ Holowaychuk &lt;tj@vision-media.ca&gt;\n\nPermission is hereby granted, free of charge, to any person ob
 taining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n",
+  "readmeFilename": "Readme.md",
+  "bugs": {
+    "url": "https://github.com/visionmedia/express/issues"
+  },
+  "homepage": "https://github.com/visionmedia/express",
+  "_id": "express@2.5.11",
   "_from": "express@2.5.x"
 }

http://git-wip-us.apache.org/repos/asf/cordova-weinre/blob/03084bdb/weinre.server/node_modules/express/test.js
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/express/test.js b/weinre.server/node_modules/express/test.js
index 925d270..1f5ac01 100644
--- a/weinre.server/node_modules/express/test.js
+++ b/weinre.server/node_modules/express/test.js
@@ -2,7 +2,10 @@
 var express = require('./');
 var app = express.createServer();
 
+app.use(express.logger('dev'));
+
 app.get('/', function(req, res){
+  console.log(req.protocol);
   res.send('hello');
 });
 

http://git-wip-us.apache.org/repos/asf/cordova-weinre/blob/03084bdb/weinre.server/node_modules/nopt/.npmignore
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/nopt/.npmignore b/weinre.server/node_modules/nopt/.npmignore
index e69de29..3c3629e 100644
--- a/weinre.server/node_modules/nopt/.npmignore
+++ b/weinre.server/node_modules/nopt/.npmignore
@@ -0,0 +1 @@
+node_modules

http://git-wip-us.apache.org/repos/asf/cordova-weinre/blob/03084bdb/weinre.server/node_modules/nopt/README.md
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/nopt/README.md b/weinre.server/node_modules/nopt/README.md
index eeddfd4..5aba088 100644
--- a/weinre.server/node_modules/nopt/README.md
+++ b/weinre.server/node_modules/nopt/README.md
@@ -61,12 +61,12 @@ $ node my-program.js -fp --foofoo
 $ node my-program.js --foofoo -- -fp  # -- stops the flag parsing.
 { foo: "Mr. Foo", argv: { remain: ["-fp"] } }
 
-$ node my-program.js --blatzk 1000 -fp # unknown opts are ok.
-{ blatzk: 1000, flag: true, pick: true }
-
-$ node my-program.js --blatzk true -fp # but they need a value
+$ node my-program.js --blatzk -fp # unknown opts are ok.
 { blatzk: true, flag: true, pick: true }
 
+$ node my-program.js --blatzk=1000 -fp # but you need to use = if they have a value
+{ blatzk: 1000, flag: true, pick: true }
+
 $ node my-program.js --no-blatzk -fp # unless they start with "no-"
 { blatzk: false, flag: true, pick: true }
 
@@ -116,12 +116,13 @@ considered valid values.  For instance, in the example above, the
 and any other value will be rejected.
 
 When parsing unknown fields, `"true"`, `"false"`, and `"null"` will be
-interpreted as their JavaScript equivalents, and numeric values will be
-interpreted as a number.
+interpreted as their JavaScript equivalents.
 
 You can also mix types and values, or multiple types, in a list.  For
 instance `{ blah: [Number, null] }` would allow a value to be set to
-either a Number or null.
+either a Number or null.  When types are ordered, this implies a
+preference, and the first type that can be used to properly interpret
+the value will be used.
 
 To define a new type, add it to `nopt.typeDefs`.  Each item in that
 hash is an object with a `type` member and a `validate` method.  The

http://git-wip-us.apache.org/repos/asf/cordova-weinre/blob/03084bdb/weinre.server/node_modules/nopt/bin/nopt.js
----------------------------------------------------------------------
diff --git a/weinre.server/node_modules/nopt/bin/nopt.js b/weinre.server/node_modules/nopt/bin/nopt.js
index df90c72..3232d4c 100755
--- a/weinre.server/node_modules/nopt/bin/nopt.js
+++ b/weinre.server/node_modules/nopt/bin/nopt.js
@@ -1,5 +1,6 @@
 #!/usr/bin/env node
 var nopt = require("../lib/nopt")
+  , path = require("path")
   , types = { num: Number
             , bool: Boolean
             , help: Boolean
@@ -7,7 +8,12 @@ var nopt = require("../lib/nopt")
             , "num-list": [Number, Array]
             , "str-list": [String, Array]
             , "bool-list": [Boolean, Array]
-            , str: String }
+            , str: String
+            , clear: Boolean
+            , config: Boolean
+            , length: Number
+            , file: path
+            }
   , shorthands = { s: [ "--str", "astring" ]
                  , b: [ "--bool" ]
                  , nb: [ "--no-bool" ]
@@ -15,7 +21,11 @@ var nopt = require("../lib/nopt")
                  , "?": ["--help"]
                  , h: ["--help"]
                  , H: ["--help"]
-                 , n: [ "--num", "125" ] }
+                 , n: [ "--num", "125" ]
+                 , c: ["--config"]
+                 , l: ["--length"]
+                 , f: ["--file"]
+                 }
   , parsed = nopt( types
                  , shorthands
                  , process.argv


Mime
View raw message