You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apex.apache.org by da...@apache.org on 2015/11/30 22:06:36 UTC

[30/98] [abbrv] [partial] incubator-apex-malhar git commit: Removing all web demos

http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-incoming-form.js
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-incoming-form.js b/web/demos/package/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-incoming-form.js
deleted file mode 100644
index 25bd887..0000000
--- a/web/demos/package/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-incoming-form.js
+++ /dev/null
@@ -1,756 +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);
-  // Can't assume dir === '/tmp' for portability
-  // assert.strictEqual(form.uploadDir, '/tmp');
-  // Make sure it is a directory instead
-  assert.doesNotThrow(function () {
-    assert(fs.statSync(form.uploadDir).isDirectory());
-  });
-  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');
-    });
-    gently.expect(form, '_error');
-
-    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, '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;
-    });
-
-    gently.expect(form, 'writeHeaders');
-
-    gently.expect(REQ, 'on', 4, function() {
-      return this;
-    });
-
-    var parseCbOk = function (err, fields, files) {
-      assert.deepEqual(fields, {field1: 'bar', field2: 'nice'});
-      assert.deepEqual(files, {file1: '2', file2: '3'});
-    };
-    form.parse(REQ, parseCbOk);
-
-    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');
-        gently.expect(form, 'writeHeaders');
-        gently.expect(REQ, 'on', 4, function() {
-          return this;
-        });
-      }
-      return this;
-    });
-
-    form.parse(REQ, function parseCbErr(err, fields, files) {
-      assert.strictEqual(err, ERR);
-      assert.deepEqual(fields, {foo: 'bar'});
-    });
-  })();
-
-  (function testWriteOrder() {
-    gently.expect(EventEmitterStub, 'call');
-    var form    = new IncomingForm();
-    var REQ     = new events.EventEmitter();
-    var BUF     = {};
-    var DATACB  = null;
-
-    REQ.on('newListener', function(event, fn) {
-      if ('data' === event) fn(BUF);
-    });
-
-    gently.expect(form, 'writeHeaders');
-    gently.expect(form, 'write', function(buf) {
-      assert.strictEqual(buf, BUF);
-    });
-
-    form.parse(REQ);
-  })();
-});
-
-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 = {};
-  gently.expect(form, 'emit', function(event, bytesReceived, bytesExpected) {
-    assert.equal(event, 'progress');
-    assert.equal(bytesReceived, 0);
-    assert.equal(bytesExpected, 0);
-  });
-  form._parseContentLength();
-
-  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/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-multipart-parser.js
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-multipart-parser.js b/web/demos/package/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-multipart-parser.js
deleted file mode 100644
index bf2cd5e..0000000
--- a/web/demos/package/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), 5);
-});
-
-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/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-querystring-parser.js
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-querystring-parser.js b/web/demos/package/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-querystring-parser.js
deleted file mode 100644
index 54d3e2d..0000000
--- a/web/demos/package/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/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/system/test-multi-video-upload.js
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/system/test-multi-video-upload.js b/web/demos/package/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/system/test-multi-video-upload.js
deleted file mode 100644
index b35ffd6..0000000
--- a/web/demos/package/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/system/test-multi-video-upload.js
+++ /dev/null
@@ -1,71 +0,0 @@
-var common = require('../common');
-var BOUNDARY = '---------------------------10102754414578508781458777923',
-    FIXTURE = TEST_FIXTURES+'/multi_video.upload',
-    fs = require('fs'),
-    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.name] = tracker;
-      file
-        .on('progress', function(bytesReceived) {
-          tracker.progress.push(bytesReceived);
-          assert.equal(bytesReceived, file.size);
-        })
-        .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.name].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.size);
-      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 stat, headers, request, fixture;
-
-  stat = fs.statSync(FIXTURE);
-  request = http.request({
-    port: TEST_PORT,
-    path: '/',
-    method: 'POST',
-    headers: {
-      'content-type': 'multipart/form-data; boundary='+BOUNDARY,
-      'content-length': stat.size,
-    },
-  });
-  fs.createReadStream(FIXTURE).pipe(request);
-});

http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/express/node_modules/connect/node_modules/formidable/test/run.js
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/express/node_modules/connect/node_modules/formidable/test/run.js b/web/demos/package/node_modules/express/node_modules/connect/node_modules/formidable/test/run.js
deleted file mode 100755
index 02d6d5c..0000000
--- a/web/demos/package/node_modules/express/node_modules/connect/node_modules/formidable/test/run.js
+++ /dev/null
@@ -1 +0,0 @@
-require('urun')(__dirname)

http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/express/node_modules/connect/node_modules/formidable/test/standalone/test-connection-aborted.js
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/express/node_modules/connect/node_modules/formidable/test/standalone/test-connection-aborted.js b/web/demos/package/node_modules/express/node_modules/connect/node_modules/formidable/test/standalone/test-connection-aborted.js
deleted file mode 100644
index 4ea4431..0000000
--- a/web/demos/package/node_modules/express/node_modules/connect/node_modules/formidable/test/standalone/test-connection-aborted.js
+++ /dev/null
@@ -1,27 +0,0 @@
-var assert = require('assert');
-var http = require('http');
-var net = require('net');
-var formidable = require('../../lib/index');
-
-var server = http.createServer(function (req, res) {
-  var form = new formidable.IncomingForm();
-  var aborted_received = false;
-  form.on('aborted', function () {
-    aborted_received = true;
-  });
-  form.on('error', function () {
-    assert(aborted_received, 'Error event should follow aborted');
-    server.close();
-  });
-  form.on('end', function () {
-    throw new Error('Unexpected "end" event');
-  });
-  form.parse(req);
-}).listen(0, 'localhost', function () {
-  var client = net.connect(server.address().port);
-  client.write(
-    "POST / HTTP/1.1\r\n" +
-    "Content-Length: 70\r\n" +
-    "Content-Type: multipart/form-data; boundary=foo\r\n\r\n");
-  client.end();
-});

http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/express/node_modules/connect/node_modules/formidable/test/standalone/test-content-transfer-encoding.js
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/express/node_modules/connect/node_modules/formidable/test/standalone/test-content-transfer-encoding.js b/web/demos/package/node_modules/express/node_modules/connect/node_modules/formidable/test/standalone/test-content-transfer-encoding.js
deleted file mode 100644
index 165628a..0000000
--- a/web/demos/package/node_modules/express/node_modules/connect/node_modules/formidable/test/standalone/test-content-transfer-encoding.js
+++ /dev/null
@@ -1,48 +0,0 @@
-var assert = require('assert');
-var common = require('../common');
-var formidable = require('../../lib/index');
-var http = require('http');
-
-var server = http.createServer(function(req, res) {
-  var form = new formidable.IncomingForm();
-  form.uploadDir = common.dir.tmp;
-  form.on('end', function () {
-    throw new Error('Unexpected "end" event');
-  });
-  form.on('error', function (e) {
-    res.writeHead(500);
-    res.end(e.message);
-  });
-  form.parse(req);
-});
-
-server.listen(0, function() {
-  var body =
-    '--foo\r\n' +
-    'Content-Disposition: form-data; name="file1"; filename="file1"\r\n' +
-    'Content-Type: application/octet-stream\r\n' +
-    '\r\nThis is the first file\r\n' +
-    '--foo\r\n' +
-    'Content-Type: application/octet-stream\r\n' +
-    'Content-Disposition: form-data; name="file2"; filename="file2"\r\n' +
-    'Content-Transfer-Encoding: unknown\r\n' +
-    '\r\nThis is the second file\r\n' +
-    '--foo--\r\n';
-
-  var req = http.request({
-    method: 'POST',
-    port: server.address().port,
-    headers: {
-      'Content-Length': body.length,
-      'Content-Type': 'multipart/form-data; boundary=foo'
-    }
-  });
-  req.on('response', function (res) {
-    assert.equal(res.statusCode, 500);
-    res.on('data', function () {});
-    res.on('end', function () {
-      server.close();
-    });
-  });
-  req.end(body);
-});

http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/express/node_modules/connect/node_modules/formidable/test/standalone/test-issue-46.js
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/express/node_modules/connect/node_modules/formidable/test/standalone/test-issue-46.js b/web/demos/package/node_modules/express/node_modules/connect/node_modules/formidable/test/standalone/test-issue-46.js
deleted file mode 100644
index 1939328..0000000
--- a/web/demos/package/node_modules/express/node_modules/connect/node_modules/formidable/test/standalone/test-issue-46.js
+++ /dev/null
@@ -1,49 +0,0 @@
-var http       = require('http'),
-    formidable = require('../../lib/index'),
-    request    = require('request'),
-    assert     = require('assert');
-
-var host = 'localhost';
-
-var index = [
-  '<form action="/" method="post" enctype="multipart/form-data">',
-  '  <input type="text" name="foo" />',
-  '  <input type="submit" />',
-  '</form>'
-].join("\n");
-
-var server = http.createServer(function(req, res) {
-
-  // Show a form for testing purposes.
-  if (req.method == 'GET') {
-    res.writeHead(200, {'content-type': 'text/html'});
-    res.end(index);
-    return;
-  }
-
-  // Parse form and write results to response.
-  var form = new formidable.IncomingForm();
-  form.parse(req, function(err, fields, files) {
-    res.writeHead(200, {'content-type': 'text/plain'}); 
-    res.write(JSON.stringify({err: err, fields: fields, files: files}));
-    res.end();
-  });
-
-}).listen(0, host, function() {
-
-  console.log("Server up and running...");
-
-  var server = this,
-      url    = 'http://' + host + ':' + server.address().port;
-
-  var parts  = [
-    {'Content-Disposition': 'form-data; name="foo"', 'body': 'bar'}
-  ]
-
-  var req = request({method: 'POST', url: url, multipart: parts}, function(e, res, body) {
-    var obj = JSON.parse(body);
-    assert.equal("bar", obj.fields.foo);
-    server.close();
-  });
-
-});

http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/express/node_modules/connect/node_modules/formidable/test/tools/base64.html
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/express/node_modules/connect/node_modules/formidable/test/tools/base64.html b/web/demos/package/node_modules/express/node_modules/connect/node_modules/formidable/test/tools/base64.html
deleted file mode 100644
index 48ad92e..0000000
--- a/web/demos/package/node_modules/express/node_modules/connect/node_modules/formidable/test/tools/base64.html
+++ /dev/null
@@ -1,67 +0,0 @@
-<html>
-<head>
-	<title>Convert a file to a base64 request</title>
-
-<script type="text/javascript">
-
-function form_submit(e){
-	console.log(e)
-
-	var resultOutput = document.getElementById('resultOutput');
-	var fileInput = document.getElementById('fileInput');
-	var fieldInput = document.getElementById('fieldInput');
-
-	makeRequestBase64(fileInput.files[0], fieldInput.value, function(err, result){
-		resultOutput.value = result;
-	});
-
-	return false;
-}
-
-function makeRequestBase64(file, fieldName, cb){
-	var boundary = '\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/';
-	var crlf = "\r\n";
-
-	var reader = new FileReader();
-	reader.onload = function(e){
-		var body = '';
-
-		body += '--' + boundary + crlf;
-		body += 'Content-Disposition: form-data; name="' + fieldName + '"; filename="' + escape(file.name)+ '"' + crlf;
-		body += 'Content-Type: ' + file.type + '' + crlf;
-		body += 'Content-Transfer-Encoding: base64' + crlf
-		body += crlf;
-		body += e.target.result.substring(e.target.result.indexOf(',') + 1) + crlf;
-
-		body += '--' + boundary + '--';
-
-		var head = '';
-		head += 'POST /upload HTTP/1.1' + crlf;
-		head += 'Host: localhost:8080' + crlf;
-		head += 'Content-Type: multipart/form-data; boundary=' + boundary + '' + crlf;
-		head += 'Content-Length: ' + body.length + '' + crlf;
-
-		cb(null, head + crlf + body);
-	};
-
-	reader.readAsDataURL(file);
-}
-
-</script>
-
-</head>
-
-<body>
-
-<form action="" onsubmit="return form_submit();">
-	<label>File: <input id="fileInput" type="file" /></label><br />
-	<label>Field: <input id="fieldInput" type="text" value="file" /></label><br />
-	<button type="submit">Ok!</button><br />
-	<label>Request: <textarea id="resultOutput" readonly="readonly" rows="20" cols="80"></textarea></label><br />
-</form>
-<p>
-Don't forget to save the output with windows (CRLF) line endings!
-</p>
-
-</body>
-</html>

http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/express/node_modules/connect/node_modules/formidable/test/unit/test-file.js
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/express/node_modules/connect/node_modules/formidable/test/unit/test-file.js b/web/demos/package/node_modules/express/node_modules/connect/node_modules/formidable/test/unit/test-file.js
deleted file mode 100644
index fc8f36e..0000000
--- a/web/demos/package/node_modules/express/node_modules/connect/node_modules/formidable/test/unit/test-file.js
+++ /dev/null
@@ -1,33 +0,0 @@
-var common       = require('../common');
-var test         = require('utest');
-var assert       = common.assert;
-var File = common.require('file');
-
-var file;
-var now = new Date;
-test('IncomingForm', {
-  before: function() {
-    file = new File({
-      size: 1024,
-      path: '/tmp/cat.png',
-      name: 'cat.png',
-      type: 'image/png',
-      lastModifiedDate: now,
-      filename: 'cat.png',
-      mime: 'image/png'
-    })
-  },
-
-  '#toJSON()': function() {
-    var obj = file.toJSON();
-    var len = Object.keys(obj).length;
-    assert.equal(1024, obj.size);
-    assert.equal('/tmp/cat.png', obj.path);
-    assert.equal('cat.png', obj.name);
-    assert.equal('image/png', obj.type);
-    assert.equal('image/png', obj.mime);
-    assert.equal('cat.png', obj.filename);
-    assert.equal(now, obj.mtime);
-    assert.equal(len, 8);
-  }
-});
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/express/node_modules/connect/node_modules/formidable/test/unit/test-incoming-form.js
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/express/node_modules/connect/node_modules/formidable/test/unit/test-incoming-form.js b/web/demos/package/node_modules/express/node_modules/connect/node_modules/formidable/test/unit/test-incoming-form.js
deleted file mode 100644
index fe2ac1c..0000000
--- a/web/demos/package/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/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/express/node_modules/connect/node_modules/formidable/tool/record.js
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/express/node_modules/connect/node_modules/formidable/tool/record.js b/web/demos/package/node_modules/express/node_modules/connect/node_modules/formidable/tool/record.js
deleted file mode 100644
index 9f1cef8..0000000
--- a/web/demos/package/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/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/express/node_modules/connect/node_modules/pause/.npmignore
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/express/node_modules/connect/node_modules/pause/.npmignore b/web/demos/package/node_modules/express/node_modules/connect/node_modules/pause/.npmignore
deleted file mode 100644
index f1250e5..0000000
--- a/web/demos/package/node_modules/express/node_modules/connect/node_modules/pause/.npmignore
+++ /dev/null
@@ -1,4 +0,0 @@
-support
-test
-examples
-*.sock

http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/express/node_modules/connect/node_modules/pause/History.md
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/express/node_modules/connect/node_modules/pause/History.md b/web/demos/package/node_modules/express/node_modules/connect/node_modules/pause/History.md
deleted file mode 100644
index c8aa68f..0000000
--- a/web/demos/package/node_modules/express/node_modules/connect/node_modules/pause/History.md
+++ /dev/null
@@ -1,5 +0,0 @@
-
-0.0.1 / 2010-01-03
-==================
-
-  * Initial release

http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/express/node_modules/connect/node_modules/pause/Makefile
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/express/node_modules/connect/node_modules/pause/Makefile b/web/demos/package/node_modules/express/node_modules/connect/node_modules/pause/Makefile
deleted file mode 100644
index 4e9c8d3..0000000
--- a/web/demos/package/node_modules/express/node_modules/connect/node_modules/pause/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-
-test:
-	@./node_modules/.bin/mocha \
-		--require should \
-		--reporter spec
-
-.PHONY: test
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/express/node_modules/connect/node_modules/pause/Readme.md
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/express/node_modules/connect/node_modules/pause/Readme.md b/web/demos/package/node_modules/express/node_modules/connect/node_modules/pause/Readme.md
deleted file mode 100644
index 1cdd68a..0000000
--- a/web/demos/package/node_modules/express/node_modules/connect/node_modules/pause/Readme.md
+++ /dev/null
@@ -1,29 +0,0 @@
-
-# pause
-
-  Pause streams...
-
-## License 
-
-(The MIT License)
-
-Copyright (c) 2012 TJ Holowaychuk &lt;tj@vision-media.ca&gt;
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-'Software'), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/express/node_modules/connect/node_modules/pause/index.js
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/express/node_modules/connect/node_modules/pause/index.js b/web/demos/package/node_modules/express/node_modules/connect/node_modules/pause/index.js
deleted file mode 100644
index 1b7b379..0000000
--- a/web/demos/package/node_modules/express/node_modules/connect/node_modules/pause/index.js
+++ /dev/null
@@ -1,29 +0,0 @@
-
-module.exports = function(obj){
-  var onData
-    , onEnd
-    , events = [];
-
-  // buffer data
-  obj.on('data', onData = function(data, encoding){
-    events.push(['data', data, encoding]);
-  });
-
-  // buffer end
-  obj.on('end', onEnd = function(data, encoding){
-    events.push(['end', data, encoding]);
-  });
-
-  return {
-    end: function(){
-      obj.removeListener('data', onData);
-      obj.removeListener('end', onEnd);
-    },
-    resume: function(){
-      this.end();
-      for (var i = 0, len = events.length; i < len; ++i) {
-        obj.emit.apply(obj, events[i]);
-      }
-    }
-  };
-};
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/express/node_modules/connect/node_modules/pause/package.json
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/express/node_modules/connect/node_modules/pause/package.json b/web/demos/package/node_modules/express/node_modules/connect/node_modules/pause/package.json
deleted file mode 100644
index 73cfe40..0000000
--- a/web/demos/package/node_modules/express/node_modules/connect/node_modules/pause/package.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
-  "name": "pause",
-  "version": "0.0.1",
-  "description": "Pause streams...",
-  "keywords": [],
-  "author": {
-    "name": "TJ Holowaychuk",
-    "email": "tj@vision-media.ca"
-  },
-  "dependencies": {},
-  "devDependencies": {
-    "mocha": "*",
-    "should": "*"
-  },
-  "main": "index",
-  "readme": "\n# pause\n\n  Pause streams...\n\n## License \n\n(The MIT License)\n\nCopyright (c) 2012 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\nC
 LAIM, 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",
-  "_id": "pause@0.0.1",
-  "_from": "pause@0.0.1"
-}

http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/express/node_modules/connect/node_modules/qs/.gitmodules
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/express/node_modules/connect/node_modules/qs/.gitmodules b/web/demos/package/node_modules/express/node_modules/connect/node_modules/qs/.gitmodules
deleted file mode 100644
index 49e31da..0000000
--- a/web/demos/package/node_modules/express/node_modules/connect/node_modules/qs/.gitmodules
+++ /dev/null
@@ -1,6 +0,0 @@
-[submodule "support/expresso"]
-	path = support/expresso
-	url = git://github.com/visionmedia/expresso.git
-[submodule "support/should"]
-	path = support/should
-	url = git://github.com/visionmedia/should.js.git

http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/express/node_modules/connect/node_modules/qs/.npmignore
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/express/node_modules/connect/node_modules/qs/.npmignore b/web/demos/package/node_modules/express/node_modules/connect/node_modules/qs/.npmignore
deleted file mode 100644
index e85ce2a..0000000
--- a/web/demos/package/node_modules/express/node_modules/connect/node_modules/qs/.npmignore
+++ /dev/null
@@ -1,7 +0,0 @@
-test
-.travis.yml
-benchmark.js
-component.json
-examples.js
-History.md
-Makefile

http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/express/node_modules/connect/node_modules/qs/Readme.md
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/express/node_modules/connect/node_modules/qs/Readme.md b/web/demos/package/node_modules/express/node_modules/connect/node_modules/qs/Readme.md
deleted file mode 100644
index 27e54a4..0000000
--- a/web/demos/package/node_modules/express/node_modules/connect/node_modules/qs/Readme.md
+++ /dev/null
@@ -1,58 +0,0 @@
-# node-querystring
-
-  query string parser for node and the browser 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.
-
-## Installation
-
-    $ npm install qs
-
-## Examples
-
-```js
-var qs = require('qs');
-
-qs.parse('user[name][first]=Tobi&user[email]=tobi@learnboost.com');
-// => { user: { name: { first: 'Tobi' }, email: 'tobi@learnboost.com' } }
-
-qs.stringify({ user: { name: 'Tobi', email: 'tobi@learnboost.com' }})
-// => user[name]=Tobi&user[email]=tobi%40learnboost.com
-```
-
-## Testing
-
-Install dev dependencies:
-
-    $ npm install -d
-
-and execute:
-
-    $ make test
-
-browser:
-
-    $ open test/browser/index.html
-
-## License 
-
-(The MIT License)
-
-Copyright (c) 2010 TJ Holowaychuk &lt;tj@vision-media.ca&gt;
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-'Software'), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/express/node_modules/connect/node_modules/qs/index.js
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/express/node_modules/connect/node_modules/qs/index.js b/web/demos/package/node_modules/express/node_modules/connect/node_modules/qs/index.js
deleted file mode 100644
index 590491e..0000000
--- a/web/demos/package/node_modules/express/node_modules/connect/node_modules/qs/index.js
+++ /dev/null
@@ -1,387 +0,0 @@
-/**
- * Object#toString() ref for stringify().
- */
-
-var toString = Object.prototype.toString;
-
-/**
- * Object#hasOwnProperty ref
- */
-
-var hasOwnProperty = Object.prototype.hasOwnProperty;
-
-/**
- * Array#indexOf shim.
- */
-
-var indexOf = typeof Array.prototype.indexOf === 'function'
-  ? function(arr, el) { return arr.indexOf(el); }
-  : function(arr, el) {
-      for (var i = 0; i < arr.length; i++) {
-        if (arr[i] === el) return i;
-      }
-      return -1;
-    };
-
-/**
- * Array.isArray shim.
- */
-
-var isArray = Array.isArray || function(arr) {
-  return toString.call(arr) == '[object Array]';
-};
-
-/**
- * Object.keys shim.
- */
-
-var objectKeys = Object.keys || function(obj) {
-  var ret = [];
-  for (var key in obj) ret.push(key);
-  return ret;
-};
-
-/**
- * Array#forEach shim.
- */
-
-var forEach = typeof Array.prototype.forEach === 'function'
-  ? function(arr, fn) { return arr.forEach(fn); }
-  : function(arr, fn) {
-      for (var i = 0; i < arr.length; i++) fn(arr[i]);
-    };
-
-/**
- * Array#reduce shim.
- */
-
-var reduce = function(arr, fn, initial) {
-  if (typeof arr.reduce === 'function') return arr.reduce(fn, initial);
-  var res = initial;
-  for (var i = 0; i < arr.length; i++) res = fn(res, arr[i]);
-  return res;
-};
-
-/**
- * Create a nullary object if possible
- */
-
-function createObject() {
-  return Object.create
-    ? Object.create(null)
-    : {};
-}
-
-/**
- * Cache non-integer test regexp.
- */
-
-var isint = /^[0-9]+$/;
-
-function promote(parent, key) {
-  if (parent[key].length == 0) return parent[key] = createObject();
-  var t = createObject();
-  for (var i in parent[key]) {
-    if (hasOwnProperty.call(parent[key], i)) {
-      t[i] = parent[key][i];
-    }
-  }
-  parent[key] = t;
-  return t;
-}
-
-function parse(parts, parent, key, val) {
-  var part = parts.shift();
-  // end
-  if (!part) {
-    if (isArray(parent[key])) {
-      parent[key].push(val);
-    } else if ('object' == typeof parent[key]) {
-      parent[key] = val;
-    } else if ('undefined' == typeof parent[key]) {
-      parent[key] = val;
-    } else {
-      parent[key] = [parent[key], val];
-    }
-    // array
-  } else {
-    var obj = parent[key] = parent[key] || [];
-    if (']' == part) {
-      if (isArray(obj)) {
-        if ('' != val) obj.push(val);
-      } else if ('object' == typeof obj) {
-        obj[objectKeys(obj).length] = val;
-      } else {
-        obj = parent[key] = [parent[key], val];
-      }
-      // prop
-    } else if (~indexOf(part, ']')) {
-      part = part.substr(0, part.length - 1);
-      if (!isint.test(part) && isArray(obj)) obj = promote(parent, key);
-      parse(parts, obj, part, val);
-      // key
-    } else {
-      if (!isint.test(part) && isArray(obj)) obj = promote(parent, key);
-      parse(parts, obj, part, val);
-    }
-  }
-}
-
-/**
- * Merge parent key/val pair.
- */
-
-function merge(parent, key, val){
-  if (~indexOf(key, ']')) {
-    var parts = key.split('[')
-      , len = parts.length
-      , last = len - 1;
-    parse(parts, parent, 'base', val);
-    // optimize
-  } else {
-    if (!isint.test(key) && isArray(parent.base)) {
-      var t = createObject();
-      for (var k in parent.base) t[k] = parent.base[k];
-      parent.base = t;
-    }
-    set(parent.base, key, val);
-  }
-
-  return parent;
-}
-
-/**
- * Compact sparse arrays.
- */
-
-function compact(obj) {
-  if ('object' != typeof obj) return obj;
-
-  if (isArray(obj)) {
-    var ret = [];
-
-    for (var i in obj) {
-      if (hasOwnProperty.call(obj, i)) {
-        ret.push(obj[i]);
-      }
-    }
-
-    return ret;
-  }
-
-  for (var key in obj) {
-    obj[key] = compact(obj[key]);
-  }
-
-  return obj;
-}
-
-/**
- * Restore Object.prototype.
- * see pull-request #58
- */
-
-function restoreProto(obj) {
-  if (!Object.create) return obj;
-  if (isArray(obj)) return obj;
-  if (obj && 'object' != typeof obj) return obj;
-
-  for (var key in obj) {
-    if (hasOwnProperty.call(obj, key)) {
-      obj[key] = restoreProto(obj[key]);
-    }
-  }
-
-  obj.__proto__ = Object.prototype;
-  return obj;
-}
-
-/**
- * Parse the given obj.
- */
-
-function parseObject(obj){
-  var ret = { base: {} };
-
-  forEach(objectKeys(obj), function(name){
-    merge(ret, name, obj[name]);
-  });
-
-  return compact(ret.base);
-}
-
-/**
- * Parse the given str.
- */
-
-function parseString(str){
-  var ret = reduce(String(str).split('&'), function(ret, pair){
-    var eql = indexOf(pair, '=')
-      , brace = lastBraceInKey(pair)
-      , key = pair.substr(0, brace || eql)
-      , val = pair.substr(brace || eql, pair.length)
-      , val = val.substr(indexOf(val, '=') + 1, val.length);
-
-    // ?foo
-    if ('' == key) key = pair, val = '';
-    if ('' == key) return ret;
-
-    return merge(ret, decode(key), decode(val));
-  }, { base: createObject() }).base;
-
-  return restoreProto(compact(ret));
-}
-
-/**
- * Parse the given query `str` or `obj`, returning an object.
- *
- * @param {String} str | {Object} obj
- * @return {Object}
- * @api public
- */
-
-exports.parse = function(str){
-  if (null == str || '' == str) return {};
-  return 'object' == typeof str
-    ? parseObject(str)
-    : parseString(str);
-};
-
-/**
- * Turn the given `obj` into a query string
- *
- * @param {Object} obj
- * @return {String}
- * @api public
- */
-
-var stringify = exports.stringify = function(obj, prefix) {
-  if (isArray(obj)) {
-    return stringifyArray(obj, prefix);
-  } else if ('[object Object]' == toString.call(obj)) {
-    return stringifyObject(obj, prefix);
-  } else if ('string' == typeof obj) {
-    return stringifyString(obj, prefix);
-  } else {
-    return prefix + '=' + encodeURIComponent(String(obj));
-  }
-};
-
-/**
- * Stringify the given `str`.
- *
- * @param {String} str
- * @param {String} prefix
- * @return {String}
- * @api private
- */
-
-function stringifyString(str, prefix) {
-  if (!prefix) throw new TypeError('stringify expects an object');
-  return prefix + '=' + encodeURIComponent(str);
-}
-
-/**
- * Stringify the given `arr`.
- *
- * @param {Array} arr
- * @param {String} prefix
- * @return {String}
- * @api private
- */
-
-function stringifyArray(arr, prefix) {
-  var ret = [];
-  if (!prefix) throw new TypeError('stringify expects an object');
-  for (var i = 0; i < arr.length; i++) {
-    ret.push(stringify(arr[i], prefix + '[' + i + ']'));
-  }
-  return ret.join('&');
-}
-
-/**
- * Stringify the given `obj`.
- *
- * @param {Object} obj
- * @param {String} prefix
- * @return {String}
- * @api private
- */
-
-function stringifyObject(obj, prefix) {
-  var ret = []
-    , keys = objectKeys(obj)
-    , key;
-
-  for (var i = 0, len = keys.length; i < len; ++i) {
-    key = keys[i];
-    if ('' == key) continue;
-    if (null == obj[key]) {
-      ret.push(encodeURIComponent(key) + '=');
-    } else {
-      ret.push(stringify(obj[key], prefix
-        ? prefix + '[' + encodeURIComponent(key) + ']'
-        : encodeURIComponent(key)));
-    }
-  }
-
-  return ret.join('&');
-}
-
-/**
- * Set `obj`'s `key` to `val` respecting
- * the weird and wonderful syntax of a qs,
- * where "foo=bar&foo=baz" becomes an array.
- *
- * @param {Object} obj
- * @param {String} key
- * @param {String} val
- * @api private
- */
-
-function set(obj, key, val) {
-  var v = obj[key];
-  if (undefined === v) {
-    obj[key] = val;
-  } else if (isArray(v)) {
-    v.push(val);
-  } else {
-    obj[key] = [v, val];
-  }
-}
-
-/**
- * Locate last brace in `str` within the key.
- *
- * @param {String} str
- * @return {Number}
- * @api private
- */
-
-function lastBraceInKey(str) {
-  var len = str.length
-    , brace
-    , c;
-  for (var i = 0; i < len; ++i) {
-    c = str[i];
-    if (']' == c) brace = false;
-    if ('[' == c) brace = true;
-    if ('=' == c && !brace) return i;
-  }
-}
-
-/**
- * Decode `str`.
- *
- * @param {String} str
- * @return {String}
- * @api private
- */
-
-function decode(str) {
-  try {
-    return decodeURIComponent(str.replace(/\+/g, ' '));
-  } catch (err) {
-    return str;
-  }
-}

http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/express/node_modules/connect/node_modules/qs/package.json
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/express/node_modules/connect/node_modules/qs/package.json b/web/demos/package/node_modules/express/node_modules/connect/node_modules/qs/package.json
deleted file mode 100644
index 1f5ea69..0000000
--- a/web/demos/package/node_modules/express/node_modules/connect/node_modules/qs/package.json
+++ /dev/null
@@ -1,38 +0,0 @@
-{
-  "name": "qs",
-  "description": "querystring parser",
-  "version": "0.6.5",
-  "keywords": [
-    "query string",
-    "parser",
-    "component"
-  ],
-  "repository": {
-    "type": "git",
-    "url": "git://github.com/visionmedia/node-querystring.git"
-  },
-  "devDependencies": {
-    "mocha": "*",
-    "expect.js": "*"
-  },
-  "scripts": {
-    "test": "make test"
-  },
-  "author": {
-    "name": "TJ Holowaychuk",
-    "email": "tj@vision-media.ca",
-    "url": "http://tjholowaychuk.com"
-  },
-  "main": "index",
-  "engines": {
-    "node": "*"
-  },
-  "readme": "# node-querystring\n\n  query string parser for node and the browser 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\nbrowser:\n\n    $ open test/browser/index.html\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.6.5",
-  "_from": "qs@0.6.5"
-}

http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/express/node_modules/connect/node_modules/uid2/index.js
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/express/node_modules/connect/node_modules/uid2/index.js b/web/demos/package/node_modules/express/node_modules/connect/node_modules/uid2/index.js
deleted file mode 100644
index d665f51..0000000
--- a/web/demos/package/node_modules/express/node_modules/connect/node_modules/uid2/index.js
+++ /dev/null
@@ -1,49 +0,0 @@
-/**
- * Module dependencies
- */
-
-var crypto = require('crypto');
-
-/**
- * The size ratio between a base64 string and the equivalent byte buffer
- */
-
-var ratio = Math.log(64) / Math.log(256);
-
-/**
- * Make a Base64 string ready for use in URLs
- *
- * @param {String}
- * @returns {String}
- * @api private
- */
-
-function urlReady(str) {
-  return str.replace(/\+/g, '_').replace(/\//g, '-');
-}
-
-/**
- * Generate an Unique Id
- *
- * @param {Number} length  The number of chars of the uid
- * @param {Number} cb (optional)  Callback for async uid generation
- * @api public
- */
-
-function uid(length, cb) {
-  var numbytes = Math.ceil(length * ratio);
-  if (typeof cb === 'undefined') {
-    return urlReady(crypto.randomBytes(numbytes).toString('base64').slice(0, length));
-  } else {
-    crypto.randomBytes(numbytes, function(err, bytes) {
-       if (err) return cb(err);
-       cb(null, urlReady(bytes.toString('base64').slice(0, length)));
-    })
-  }
-}
-
-/**
- * Exports
- */
-
-module.exports = uid;

http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/express/node_modules/connect/node_modules/uid2/package.json
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/express/node_modules/connect/node_modules/uid2/package.json b/web/demos/package/node_modules/express/node_modules/connect/node_modules/uid2/package.json
deleted file mode 100644
index 9498f77..0000000
--- a/web/demos/package/node_modules/express/node_modules/connect/node_modules/uid2/package.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
-  "name": "uid2",
-  "description": "strong uid",
-  "tags": [
-    "uid"
-  ],
-  "version": "0.0.2",
-  "dependencies": {},
-  "readme": "ERROR: No README data found!",
-  "_id": "uid2@0.0.2",
-  "_from": "uid2@0.0.2"
-}

http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/express/node_modules/connect/package.json
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/express/node_modules/connect/package.json b/web/demos/package/node_modules/express/node_modules/connect/package.json
deleted file mode 100644
index 028f760..0000000
--- a/web/demos/package/node_modules/express/node_modules/connect/package.json
+++ /dev/null
@@ -1,60 +0,0 @@
-{
-  "name": "connect",
-  "version": "2.8.5",
-  "description": "High performance middleware framework",
-  "keywords": [
-    "framework",
-    "web",
-    "middleware",
-    "connect",
-    "rack"
-  ],
-  "repository": {
-    "type": "git",
-    "url": "git://github.com/senchalabs/connect.git"
-  },
-  "author": {
-    "name": "TJ Holowaychuk",
-    "email": "tj@vision-media.ca",
-    "url": "http://tjholowaychuk.com"
-  },
-  "dependencies": {
-    "qs": "0.6.5",
-    "formidable": "1.0.14",
-    "cookie-signature": "1.0.1",
-    "buffer-crc32": "0.2.1",
-    "cookie": "0.1.0",
-    "send": "0.1.4",
-    "bytes": "0.2.0",
-    "fresh": "0.2.0",
-    "pause": "0.0.1",
-    "uid2": "0.0.2",
-    "debug": "*",
-    "methods": "0.0.1"
-  },
-  "devDependencies": {
-    "should": "*",
-    "mocha": "*",
-    "jade": "*",
-    "dox": "*"
-  },
-  "main": "index",
-  "engines": {
-    "node": ">= 0.8.0"
-  },
-  "scripts": {
-    "test": "make"
-  },
-  "readme": "[![build status](https://secure.travis-ci.org/senchalabs/connect.png)](http://travis-ci.org/senchalabs/connect)\n# Connect\n\n  Connect is an extensible HTTP server framework for [node](http://nodejs.org), providing high performance \"plugins\" known as _middleware_.\n\n Connect is bundled with over _20_ commonly used middleware, including\n a logger, session support, cookie parser, and [more](http://senchalabs.github.com/connect). Be sure to view the 2.x [documentation](http://senchalabs.github.com/connect/).\n\n```js\nvar connect = require('connect')\n  , http = require('http');\n\nvar app = connect()\n  .use(connect.favicon())\n  .use(connect.logger('dev'))\n  .use(connect.static('public'))\n  .use(connect.directory('public'))\n  .use(connect.cookieParser())\n  .use(connect.session({ secret: 'my secret here' }))\n  .use(function(req, res){\n    res.end('Hello from Connect!\\n');\n  });\n\nhttp.createServer(app).listen(3000);\n```\n\n## Middleware\n\n  - [csrf](http:/
 /www.senchalabs.org/connect/csrf.html)\n  - [basicAuth](http://www.senchalabs.org/connect/basicAuth.html)\n  - [bodyParser](http://www.senchalabs.org/connect/bodyParser.html)\n  - [json](http://www.senchalabs.org/connect/json.html)\n  - [multipart](http://www.senchalabs.org/connect/multipart.html)\n  - [urlencoded](http://www.senchalabs.org/connect/urlencoded.html)\n  - [cookieParser](http://www.senchalabs.org/connect/cookieParser.html)\n  - [directory](http://www.senchalabs.org/connect/directory.html)\n  - [compress](http://www.senchalabs.org/connect/compress.html)\n  - [errorHandler](http://www.senchalabs.org/connect/errorHandler.html)\n  - [favicon](http://www.senchalabs.org/connect/favicon.html)\n  - [limit](http://www.senchalabs.org/connect/limit.html)\n  - [logger](http://www.senchalabs.org/connect/logger.html)\n  - [methodOverride](http://www.senchalabs.org/connect/methodOverride.html)\n  - [query](http://www.senchalabs.org/connect/query.html)\n  - [responseTime](http://www.s
 enchalabs.org/connect/responseTime.html)\n  - [session](http://www.senchalabs.org/connect/session.html)\n  - [static](http://www.senchalabs.org/connect/static.html)\n  - [staticCache](http://www.senchalabs.org/connect/staticCache.html)\n  - [vhost](http://www.senchalabs.org/connect/vhost.html)\n  - [subdomains](http://www.senchalabs.org/connect/subdomains.html)\n  - [cookieSession](http://www.senchalabs.org/connect/cookieSession.html)\n\n## Running Tests\n\nfirst:\n\n    $ npm install -d\n\nthen:\n\n    $ make test\n\n## Authors\n\n Below is the output from [git-summary](http://github.com/visionmedia/git-extras).\n\n\n     project: connect\n     commits: 2033\n     active : 301 days\n     files  : 171\n     authors: \n      1414\tTj Holowaychuk          69.6%\n       298\tvisionmedia             14.7%\n       191\tTim Caswell             9.4%\n        51\tTJ Holowaychuk          2.5%\n        10\tRyan Olds               0.5%\n         8\tAstro                   0.4%\n         5\tNat
 han Rajlich          0.2%\n         5\tJakub Nešetřil          0.2%\n         3\tDaniel Dickison         0.1%\n         3\tDavid Rio Deiros        0.1%\n         3\tAlexander Simmerl       0.1%\n         3\tAndreas Lind Petersen   0.1%\n         2\tAaron Heckmann          0.1%\n         2\tJacques Crocker         0.1%\n         2\tFabian Jakobs           0.1%\n         2\tBrian J Brennan         0.1%\n         2\tAdam Malcontenti-Wilson 0.1%\n         2\tGlen Mailer             0.1%\n         2\tJames Campos            0.1%\n         1\tTrent Mick              0.0%\n         1\tTroy Kruthoff           0.0%\n         1\tWei Zhu                 0.0%\n         1\tcomerc                  0.0%\n         1\tdarobin                 0.0%\n         1\tnateps                  0.0%\n         1\tMarco Sanson            0.0%\n         1\tArthur Taylor           0.0%\n         1\tAseem Kishore           0.0%\n         1\tBart Teeuwisse          0.0%\n         1\tCameron Howey           0.0%\n  
        1\tChad Weider             0.0%\n         1\tCraig Barnes            0.0%\n         1\tEran Hammer-Lahav       0.0%\n         1\tGregory McWhirter       0.0%\n         1\tGuillermo Rauch         0.0%\n         1\tJae Kwon                0.0%\n         1\tJakub Nesetril          0.0%\n         1\tJoshua Peek             0.0%\n         1\tJxck                    0.0%\n         1\tAJ ONeal                0.0%\n         1\tMichael Hemesath        0.0%\n         1\tMorten Siebuhr          0.0%\n         1\tSamori Gorse            0.0%\n         1\tTom Jensen              0.0%\n\n## Node Compatibility\n\n  Connect `< 1.x` is compatible with node 0.2.x\n\n\n  Connect `1.x` is compatible with node 0.4.x\n\n\n  Connect (_master_) `2.x` is compatible with node 0.6.x\n\n## CLA\n\n [http://sencha.com/cla](http://sencha.com/cla)\n\n## License\n\nView the [LICENSE](https://github.com/senchalabs/connect/blob/master/LICENSE) file. The [Silk](http://www.famfamfam.com/lab/icons/silk/) icons us
 ed by the `directory` middleware created by/copyright of [FAMFAMFAM](http://www.famfamfam.com/).\n",
-  "readmeFilename": "Readme.md",
-  "bugs": {
-    "url": "https://github.com/senchalabs/connect/issues"
-  },
-  "homepage": "https://github.com/senchalabs/connect",
-  "_id": "connect@2.8.5",
-  "dist": {
-    "shasum": "a219332423ac25d4711f81aad10ef6b7cf4659e9"
-  },
-  "_from": "connect@2.8.5",
-  "_resolved": "https://registry.npmjs.org/connect/-/connect-2.8.5.tgz"
-}

http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/express/node_modules/cookie-signature/.npmignore
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/express/node_modules/cookie-signature/.npmignore b/web/demos/package/node_modules/express/node_modules/cookie-signature/.npmignore
deleted file mode 100644
index f1250e5..0000000
--- a/web/demos/package/node_modules/express/node_modules/cookie-signature/.npmignore
+++ /dev/null
@@ -1,4 +0,0 @@
-support
-test
-examples
-*.sock

http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/express/node_modules/cookie-signature/History.md
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/express/node_modules/cookie-signature/History.md b/web/demos/package/node_modules/express/node_modules/cookie-signature/History.md
deleted file mode 100644
index 9e30179..0000000
--- a/web/demos/package/node_modules/express/node_modules/cookie-signature/History.md
+++ /dev/null
@@ -1,11 +0,0 @@
-
-1.0.1 / 2013-04-15 
-==================
-
-  * Revert "Changed underlying HMAC algo. to sha512."
-  * Revert "Fix for timing attacks on MAC verification."
-
-0.0.1 / 2010-01-03
-==================
-
-  * Initial release

http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/express/node_modules/cookie-signature/Makefile
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/express/node_modules/cookie-signature/Makefile b/web/demos/package/node_modules/express/node_modules/cookie-signature/Makefile
deleted file mode 100644
index 4e9c8d3..0000000
--- a/web/demos/package/node_modules/express/node_modules/cookie-signature/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-
-test:
-	@./node_modules/.bin/mocha \
-		--require should \
-		--reporter spec
-
-.PHONY: test
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/express/node_modules/cookie-signature/Readme.md
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/express/node_modules/cookie-signature/Readme.md b/web/demos/package/node_modules/express/node_modules/cookie-signature/Readme.md
deleted file mode 100644
index 2559e84..0000000
--- a/web/demos/package/node_modules/express/node_modules/cookie-signature/Readme.md
+++ /dev/null
@@ -1,42 +0,0 @@
-
-# cookie-signature
-
-  Sign and unsign cookies.
-
-## Example
-
-```js
-var cookie = require('cookie-signature');
-
-var val = cookie.sign('hello', 'tobiiscool');
-val.should.equal('hello.DGDUkGlIkCzPz+C0B064FNgHdEjox7ch8tOBGslZ5QI');
-
-var val = cookie.sign('hello', 'tobiiscool');
-cookie.unsign(val, 'tobiiscool').should.equal('hello');
-cookie.unsign(val, 'luna').should.be.false;
-```
-
-## License 
-
-(The MIT License)
-
-Copyright (c) 2012 LearnBoost &lt;tj@learnboost.com&gt;
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-'Software'), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/express/node_modules/cookie-signature/index.js
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/express/node_modules/cookie-signature/index.js b/web/demos/package/node_modules/express/node_modules/cookie-signature/index.js
deleted file mode 100644
index ed62814..0000000
--- a/web/demos/package/node_modules/express/node_modules/cookie-signature/index.js
+++ /dev/null
@@ -1,42 +0,0 @@
-
-/**
- * Module dependencies.
- */
-
-var crypto = require('crypto');
-
-/**
- * Sign the given `val` with `secret`.
- *
- * @param {String} val
- * @param {String} secret
- * @return {String}
- * @api private
- */
-
-exports.sign = function(val, secret){
-  if ('string' != typeof val) throw new TypeError('cookie required');
-  if ('string' != typeof secret) throw new TypeError('secret required');
-  return val + '.' + crypto
-    .createHmac('sha256', secret)
-    .update(val)
-    .digest('base64')
-    .replace(/\=+$/, '');
-};
-
-/**
- * Unsign and decode the given `val` with `secret`,
- * returning `false` if the signature is invalid.
- *
- * @param {String} val
- * @param {String} secret
- * @return {String|Boolean}
- * @api private
- */
-
-exports.unsign = function(val, secret){
-  if ('string' != typeof val) throw new TypeError('cookie required');
-  if ('string' != typeof secret) throw new TypeError('secret required');
-  var str = val.slice(0, val.lastIndexOf('.'));
-  return exports.sign(str, secret) == val ? str : false;
-};

http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/express/node_modules/cookie-signature/package.json
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/express/node_modules/cookie-signature/package.json b/web/demos/package/node_modules/express/node_modules/cookie-signature/package.json
deleted file mode 100644
index 83bea32..0000000
--- a/web/demos/package/node_modules/express/node_modules/cookie-signature/package.json
+++ /dev/null
@@ -1,24 +0,0 @@
-{
-  "name": "cookie-signature",
-  "version": "1.0.1",
-  "description": "Sign and unsign cookies",
-  "keywords": [
-    "cookie",
-    "sign",
-    "unsign"
-  ],
-  "author": {
-    "name": "TJ Holowaychuk",
-    "email": "tj@learnboost.com"
-  },
-  "dependencies": {},
-  "devDependencies": {
-    "mocha": "*",
-    "should": "*"
-  },
-  "main": "index",
-  "readme": "\n# cookie-signature\n\n  Sign and unsign cookies.\n\n## Example\n\n```js\nvar cookie = require('cookie-signature');\n\nvar val = cookie.sign('hello', 'tobiiscool');\nval.should.equal('hello.DGDUkGlIkCzPz+C0B064FNgHdEjox7ch8tOBGslZ5QI');\n\nvar val = cookie.sign('hello', 'tobiiscool');\ncookie.unsign(val, 'tobiiscool').should.equal('hello');\ncookie.unsign(val, 'luna').should.be.false;\n```\n\n## License \n\n(The MIT License)\n\nCopyright (c) 2012 LearnBoost &lt;tj@learnboost.com&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 not
 ice 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",
-  "_id": "cookie-signature@1.0.1",
-  "_from": "cookie-signature@1.0.1"
-}

http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/express/node_modules/cookie/.npmignore
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/express/node_modules/cookie/.npmignore b/web/demos/package/node_modules/express/node_modules/cookie/.npmignore
deleted file mode 100644
index 3c3629e..0000000
--- a/web/demos/package/node_modules/express/node_modules/cookie/.npmignore
+++ /dev/null
@@ -1 +0,0 @@
-node_modules

http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/express/node_modules/cookie/.travis.yml
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/express/node_modules/cookie/.travis.yml b/web/demos/package/node_modules/express/node_modules/cookie/.travis.yml
deleted file mode 100644
index 9400c11..0000000
--- a/web/demos/package/node_modules/express/node_modules/cookie/.travis.yml
+++ /dev/null
@@ -1,5 +0,0 @@
-language: node_js
-node_js:
-    - "0.6"
-    - "0.8"
-    - "0.10"

http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/express/node_modules/cookie/LICENSE
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/express/node_modules/cookie/LICENSE b/web/demos/package/node_modules/express/node_modules/cookie/LICENSE
deleted file mode 100644
index 249d9de..0000000
--- a/web/demos/package/node_modules/express/node_modules/cookie/LICENSE
+++ /dev/null
@@ -1,9 +0,0 @@
-// MIT License
-
-Copyright (C) Roman Shtylman <sh...@gmail.com>
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/express/node_modules/cookie/README.md
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/express/node_modules/cookie/README.md b/web/demos/package/node_modules/express/node_modules/cookie/README.md
deleted file mode 100644
index 5187ed1..0000000
--- a/web/demos/package/node_modules/express/node_modules/cookie/README.md
+++ /dev/null
@@ -1,44 +0,0 @@
-# cookie [![Build Status](https://secure.travis-ci.org/shtylman/node-cookie.png?branch=master)](http://travis-ci.org/shtylman/node-cookie) #
-
-cookie is a basic cookie parser and serializer. It doesn't make assumptions about how you are going to deal with your cookies. It basically just provides a way to read and write the HTTP cookie headers.
-
-See [RFC6265](http://tools.ietf.org/html/rfc6265) for details about the http header for cookies.
-
-## how?
-
-```
-npm install cookie
-```
-
-```javascript
-var cookie = require('cookie');
-
-var hdr = cookie.serialize('foo', 'bar');
-// hdr = 'foo=bar';
-
-var cookies = cookie.parse('foo=bar; cat=meow; dog=ruff');
-// cookies = { foo: 'bar', cat: 'meow', dog: 'ruff' };
-```
-
-## more
-
-The serialize function takes a third parameter, an object, to set cookie options. See the RFC for valid values.
-
-### path
-> cookie path
-
-### expires
-> absolute expiration date for the cookie (Date object)
-
-### maxAge
-> relative max age of the cookie from when the client receives it (seconds)
-
-### domain
-> domain for the cookie
-
-### secure
-> true or false
-
-### httpOnly
-> true or false
-