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:27 UTC
[21/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/http-proxy/node_modules/utile/node_modules/mkdirp/test/chmod.js
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/chmod.js b/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/chmod.js
deleted file mode 100644
index 520dcb8..0000000
--- a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/chmod.js
+++ /dev/null
@@ -1,38 +0,0 @@
-var mkdirp = require('../').mkdirp;
-var path = require('path');
-var fs = require('fs');
-var test = require('tap').test;
-
-var ps = [ '', 'tmp' ];
-
-for (var i = 0; i < 25; i++) {
- var dir = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- ps.push(dir);
-}
-
-var file = ps.join('/');
-
-test('chmod-pre', function (t) {
- var mode = 0744
- mkdirp(file, mode, function (er) {
- t.ifError(er, 'should not error');
- fs.stat(file, function (er, stat) {
- t.ifError(er, 'should exist');
- t.ok(stat && stat.isDirectory(), 'should be directory');
- t.equal(stat && stat.mode & 0777, mode, 'should be 0744');
- t.end();
- });
- });
-});
-
-test('chmod', function (t) {
- var mode = 0755
- mkdirp(file, mode, function (er) {
- t.ifError(er, 'should not error');
- fs.stat(file, function (er, stat) {
- t.ifError(er, 'should exist');
- t.ok(stat && stat.isDirectory(), 'should be directory');
- t.end();
- });
- });
-});
http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/clobber.js
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/clobber.js b/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/clobber.js
deleted file mode 100644
index 0eb7099..0000000
--- a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/clobber.js
+++ /dev/null
@@ -1,37 +0,0 @@
-var mkdirp = require('../').mkdirp;
-var path = require('path');
-var fs = require('fs');
-var test = require('tap').test;
-
-var ps = [ '', 'tmp' ];
-
-for (var i = 0; i < 25; i++) {
- var dir = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- ps.push(dir);
-}
-
-var file = ps.join('/');
-
-// a file in the way
-var itw = ps.slice(0, 3).join('/');
-
-
-test('clobber-pre', function (t) {
- console.error("about to write to "+itw)
- fs.writeFileSync(itw, 'I AM IN THE WAY, THE TRUTH, AND THE LIGHT.');
-
- fs.stat(itw, function (er, stat) {
- t.ifError(er)
- t.ok(stat && stat.isFile(), 'should be file')
- t.end()
- })
-})
-
-test('clobber', function (t) {
- t.plan(2);
- mkdirp(file, 0755, function (err) {
- t.ok(err);
- t.equal(err.code, 'ENOTDIR');
- t.end();
- });
-});
http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/mkdirp.js
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/mkdirp.js b/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/mkdirp.js
deleted file mode 100644
index b07cd70..0000000
--- a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/mkdirp.js
+++ /dev/null
@@ -1,28 +0,0 @@
-var mkdirp = require('../');
-var path = require('path');
-var fs = require('fs');
-var test = require('tap').test;
-
-test('woo', function (t) {
- t.plan(2);
- var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
-
- var file = '/tmp/' + [x,y,z].join('/');
-
- mkdirp(file, 0755, function (err) {
- if (err) t.fail(err);
- else path.exists(file, function (ex) {
- if (!ex) t.fail('file not created')
- else fs.stat(file, function (err, stat) {
- if (err) t.fail(err)
- else {
- t.equal(stat.mode & 0777, 0755);
- t.ok(stat.isDirectory(), 'target not a directory');
- t.end();
- }
- })
- })
- });
-});
http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/perm.js
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/perm.js b/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/perm.js
deleted file mode 100644
index 23a7abb..0000000
--- a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/perm.js
+++ /dev/null
@@ -1,32 +0,0 @@
-var mkdirp = require('../');
-var path = require('path');
-var fs = require('fs');
-var test = require('tap').test;
-
-test('async perm', function (t) {
- t.plan(2);
- var file = '/tmp/' + (Math.random() * (1<<30)).toString(16);
-
- mkdirp(file, 0755, function (err) {
- if (err) t.fail(err);
- else path.exists(file, function (ex) {
- if (!ex) t.fail('file not created')
- else fs.stat(file, function (err, stat) {
- if (err) t.fail(err)
- else {
- t.equal(stat.mode & 0777, 0755);
- t.ok(stat.isDirectory(), 'target not a directory');
- t.end();
- }
- })
- })
- });
-});
-
-test('async root perm', function (t) {
- mkdirp('/tmp', 0755, function (err) {
- if (err) t.fail(err);
- t.end();
- });
- t.end();
-});
http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/perm_sync.js
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/perm_sync.js b/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/perm_sync.js
deleted file mode 100644
index f685f60..0000000
--- a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/perm_sync.js
+++ /dev/null
@@ -1,39 +0,0 @@
-var mkdirp = require('../');
-var path = require('path');
-var fs = require('fs');
-var test = require('tap').test;
-
-test('sync perm', function (t) {
- t.plan(2);
- var file = '/tmp/' + (Math.random() * (1<<30)).toString(16) + '.json';
-
- mkdirp.sync(file, 0755);
- path.exists(file, function (ex) {
- if (!ex) t.fail('file not created')
- else fs.stat(file, function (err, stat) {
- if (err) t.fail(err)
- else {
- t.equal(stat.mode & 0777, 0755);
- t.ok(stat.isDirectory(), 'target not a directory');
- t.end();
- }
- })
- });
-});
-
-test('sync root perm', function (t) {
- t.plan(1);
-
- var file = '/tmp';
- mkdirp.sync(file, 0755);
- path.exists(file, function (ex) {
- if (!ex) t.fail('file not created')
- else fs.stat(file, function (err, stat) {
- if (err) t.fail(err)
- else {
- t.ok(stat.isDirectory(), 'target not a directory');
- t.end();
- }
- })
- });
-});
http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/race.js
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/race.js b/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/race.js
deleted file mode 100644
index 96a0447..0000000
--- a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/race.js
+++ /dev/null
@@ -1,41 +0,0 @@
-var mkdirp = require('../').mkdirp;
-var path = require('path');
-var fs = require('fs');
-var test = require('tap').test;
-
-test('race', function (t) {
- t.plan(4);
- var ps = [ '', 'tmp' ];
-
- for (var i = 0; i < 25; i++) {
- var dir = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- ps.push(dir);
- }
- var file = ps.join('/');
-
- var res = 2;
- mk(file, function () {
- if (--res === 0) t.end();
- });
-
- mk(file, function () {
- if (--res === 0) t.end();
- });
-
- function mk (file, cb) {
- mkdirp(file, 0755, function (err) {
- if (err) t.fail(err);
- else path.exists(file, function (ex) {
- if (!ex) t.fail('file not created')
- else fs.stat(file, function (err, stat) {
- if (err) t.fail(err)
- else {
- t.equal(stat.mode & 0777, 0755);
- t.ok(stat.isDirectory(), 'target not a directory');
- if (cb) cb();
- }
- })
- })
- });
- }
-});
http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/rel.js
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/rel.js b/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/rel.js
deleted file mode 100644
index 7985824..0000000
--- a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/rel.js
+++ /dev/null
@@ -1,32 +0,0 @@
-var mkdirp = require('../');
-var path = require('path');
-var fs = require('fs');
-var test = require('tap').test;
-
-test('rel', function (t) {
- t.plan(2);
- var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
-
- var cwd = process.cwd();
- process.chdir('/tmp');
-
- var file = [x,y,z].join('/');
-
- mkdirp(file, 0755, function (err) {
- if (err) t.fail(err);
- else path.exists(file, function (ex) {
- if (!ex) t.fail('file not created')
- else fs.stat(file, function (err, stat) {
- if (err) t.fail(err)
- else {
- process.chdir(cwd);
- t.equal(stat.mode & 0777, 0755);
- t.ok(stat.isDirectory(), 'target not a directory');
- t.end();
- }
- })
- })
- });
-});
http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/return.js
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/return.js b/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/return.js
deleted file mode 100644
index bce68e5..0000000
--- a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/return.js
+++ /dev/null
@@ -1,25 +0,0 @@
-var mkdirp = require('../');
-var path = require('path');
-var fs = require('fs');
-var test = require('tap').test;
-
-test('return value', function (t) {
- t.plan(4);
- var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
-
- var file = '/tmp/' + [x,y,z].join('/');
-
- // should return the first dir created.
- // By this point, it would be profoundly surprising if /tmp didn't
- // already exist, since every other test makes things in there.
- mkdirp(file, function (err, made) {
- t.ifError(err);
- t.equal(made, '/tmp/' + x);
- mkdirp(file, function (err, made) {
- t.ifError(err);
- t.equal(made, null);
- });
- });
-});
http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/return_sync.js
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/return_sync.js b/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/return_sync.js
deleted file mode 100644
index 7c222d3..0000000
--- a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/return_sync.js
+++ /dev/null
@@ -1,24 +0,0 @@
-var mkdirp = require('../');
-var path = require('path');
-var fs = require('fs');
-var test = require('tap').test;
-
-test('return value', function (t) {
- t.plan(2);
- var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
-
- var file = '/tmp/' + [x,y,z].join('/');
-
- // should return the first dir created.
- // By this point, it would be profoundly surprising if /tmp didn't
- // already exist, since every other test makes things in there.
- // Note that this will throw on failure, which will fail the test.
- var made = mkdirp.sync(file);
- t.equal(made, '/tmp/' + x);
-
- // making the same file again should have no effect.
- made = mkdirp.sync(file);
- t.equal(made, null);
-});
http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/root.js
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/root.js b/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/root.js
deleted file mode 100644
index 97ad7a2..0000000
--- a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/root.js
+++ /dev/null
@@ -1,18 +0,0 @@
-var mkdirp = require('../');
-var path = require('path');
-var fs = require('fs');
-var test = require('tap').test;
-
-test('root', function (t) {
- // '/' on unix, 'c:/' on windows.
- var file = path.resolve('/');
-
- mkdirp(file, 0755, function (err) {
- if (err) throw err
- fs.stat(file, function (er, stat) {
- if (er) throw er
- t.ok(stat.isDirectory(), 'target is a directory');
- t.end();
- })
- });
-});
http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/sync.js
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/sync.js b/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/sync.js
deleted file mode 100644
index 7530cad..0000000
--- a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/sync.js
+++ /dev/null
@@ -1,32 +0,0 @@
-var mkdirp = require('../');
-var path = require('path');
-var fs = require('fs');
-var test = require('tap').test;
-
-test('sync', function (t) {
- t.plan(2);
- var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
-
- var file = '/tmp/' + [x,y,z].join('/');
-
- try {
- mkdirp.sync(file, 0755);
- } catch (err) {
- t.fail(err);
- return t.end();
- }
-
- path.exists(file, function (ex) {
- if (!ex) t.fail('file not created')
- else fs.stat(file, function (err, stat) {
- if (err) t.fail(err)
- else {
- t.equal(stat.mode & 0777, 0755);
- t.ok(stat.isDirectory(), 'target not a directory');
- t.end();
- }
- });
- });
-});
http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/umask.js
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/umask.js b/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/umask.js
deleted file mode 100644
index 64ccafe..0000000
--- a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/umask.js
+++ /dev/null
@@ -1,28 +0,0 @@
-var mkdirp = require('../');
-var path = require('path');
-var fs = require('fs');
-var test = require('tap').test;
-
-test('implicit mode from umask', function (t) {
- t.plan(2);
- var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
-
- var file = '/tmp/' + [x,y,z].join('/');
-
- mkdirp(file, function (err) {
- if (err) t.fail(err);
- else path.exists(file, function (ex) {
- if (!ex) t.fail('file not created')
- else fs.stat(file, function (err, stat) {
- if (err) t.fail(err)
- else {
- t.equal(stat.mode & 0777, 0777 & (~process.umask()));
- t.ok(stat.isDirectory(), 'target not a directory');
- t.end();
- }
- })
- })
- });
-});
http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/umask_sync.js
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/umask_sync.js b/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/umask_sync.js
deleted file mode 100644
index 35bd5cb..0000000
--- a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/mkdirp/test/umask_sync.js
+++ /dev/null
@@ -1,32 +0,0 @@
-var mkdirp = require('../');
-var path = require('path');
-var fs = require('fs');
-var test = require('tap').test;
-
-test('umask sync modes', function (t) {
- t.plan(2);
- var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
-
- var file = '/tmp/' + [x,y,z].join('/');
-
- try {
- mkdirp.sync(file);
- } catch (err) {
- t.fail(err);
- return t.end();
- }
-
- path.exists(file, function (ex) {
- if (!ex) t.fail('file not created')
- else fs.stat(file, function (err, stat) {
- if (err) t.fail(err)
- else {
- t.equal(stat.mode & 0777, (0777 & (~process.umask())));
- t.ok(stat.isDirectory(), 'target not a directory');
- t.end();
- }
- });
- });
-});
http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/.npmignore
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/.npmignore b/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/.npmignore
deleted file mode 100644
index 9ecd205..0000000
--- a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/.npmignore
+++ /dev/null
@@ -1,4 +0,0 @@
-node_modules
-.*.sw[op]
-.DS_Store
-test/fixtures/out
http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/.travis.yml
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/.travis.yml b/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/.travis.yml
deleted file mode 100644
index f686c49..0000000
--- a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/.travis.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-language: node_js
-
-node_js:
- - 0.4
- - 0.6
- - 0.7
- - 0.8
http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/LICENSE.md
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/LICENSE.md b/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/LICENSE.md
deleted file mode 100644
index e2b9b41..0000000
--- a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/LICENSE.md
+++ /dev/null
@@ -1,21 +0,0 @@
-# MIT License
-
-###Copyright (C) 2011 by Charlie McConnell
-
-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/http-proxy/node_modules/utile/node_modules/ncp/README.md
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/README.md b/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/README.md
deleted file mode 100644
index 79ad086..0000000
--- a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/README.md
+++ /dev/null
@@ -1,52 +0,0 @@
-# ncp - Asynchronous recursive file & directory copying
-
-[![Build Status](https://secure.travis-ci.org/AvianFlu/ncp.png)](http://travis-ci.org/AvianFlu/ncp)
-
-Think `cp -r`, but pure node, and asynchronous. `ncp` can be used both as a CLI tool and programmatically.
-
-## Command Line usage
-
-Usage is simple: `ncp [source] [dest] [--limit=concurrency limit]
-[--filter=filter] --stopOnErr`
-
-The 'filter' is a Regular Expression - matched files will be copied.
-
-The 'concurrency limit' is an integer that represents how many pending file system requests `ncp` has at a time.
-
-'stopOnErr' is a boolean flag that will tell `ncp` to stop immediately if any
-errors arise, rather than attempting to continue while logging errors.
-
-If there are no errors, `ncp` will output `done.` when complete. If there are errors, the error messages will be logged to `stdout` and to `./ncp-debug.log`, and the copy operation will attempt to continue.
-
-## Programmatic usage
-
-Programmatic usage of `ncp` is just as simple. The only argument to the completion callback is a possible error.
-
-```javascript
-var ncp = require('ncp').ncp;
-
-ncp.limit = 16;
-
-ncp(source, destination, function (err) {
- if (err) {
- return console.error(err);
- }
- console.log('done!');
-});
-```
-
-You can also call ncp like `ncp(source, destination, options, callback)`.
-`options` should be a dictionary. Currently, such options are available:
-
- * `options.filter` - a `RegExp` instance, against which each file name is
- tested to determine whether to copy it or not, or a function taking single
- parameter: copied file name, returning `true` or `false`, determining
- whether to copy file or not.
-
- * `options.transform` - a function: `function (read, write) { read.pipe(write) }`
- used to apply streaming transforms while copying.
-
- * `options.clobber` - boolean=true. if set to false, `ncp` will not overwrite
- destination files that already exist.
-
-Please open an issue if any bugs arise. As always, I accept (working) pull requests, and refunds are available at `/dev/null`.
http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/bin/ncp
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/bin/ncp b/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/bin/ncp
deleted file mode 100755
index 388eaba..0000000
--- a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/bin/ncp
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/usr/bin/env node
-
-
-
-
-var ncp = require('../lib/ncp'),
- args = process.argv.slice(2),
- source, dest;
-
-if (args.length < 2) {
- console.error('Usage: ncp [source] [destination] [--filter=filter] [--limit=concurrency limit]');
- process.exit(1);
-}
-
-// parse arguments the hard way
-function startsWith(str, prefix) {
- return str.substr(0, prefix.length) == prefix;
-}
-
-var options = {};
-args.forEach(function (arg) {
- if (startsWith(arg, "--limit=")) {
- options.limit = parseInt(arg.split('=', 2)[1], 10);
- }
- if (startsWith(arg, "--filter=")) {
- options.filter = new RegExp(arg.split('=', 2)[1]);
- }
- if (startsWith(arg, "--stoponerr")) {
- options.stopOnErr = true;
- }
-});
-
-ncp.ncp(args[0], args[1], options, function (err) {
- if (Array.isArray(err)) {
- console.error('There were errors during the copy.');
- err.forEach(function (err) {
- console.error(err.stack || err.message);
- });
- process.exit(1);
- }
- else if (err) {
- console.error('An error has occurred.');
- console.error(err.stack || err.message);
- process.exit(1);
- }
-});
-
-
http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/lib/ncp.js
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/lib/ncp.js b/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/lib/ncp.js
deleted file mode 100644
index d871e00..0000000
--- a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/lib/ncp.js
+++ /dev/null
@@ -1,222 +0,0 @@
-var fs = require('fs'),
- path = require('path');
-
-module.exports = ncp
-ncp.ncp = ncp
-
-function ncp (source, dest, options, callback) {
- if (!callback) {
- callback = options;
- options = {};
- }
-
- var basePath = process.cwd(),
- currentPath = path.resolve(basePath, source),
- targetPath = path.resolve(basePath, dest),
- filter = options.filter,
- transform = options.transform,
- clobber = options.clobber !== false,
- errs = null,
- started = 0,
- finished = 0,
- running = 0,
- limit = options.limit || ncp.limit || 16;
-
- limit = (limit < 1) ? 1 : (limit > 512) ? 512 : limit;
-
- startCopy(currentPath);
-
- function startCopy(source) {
- started++;
- if (filter) {
- if (filter instanceof RegExp) {
- if (!filter.test(source)) {
- return cb(true);
- }
- }
- else if (typeof filter === 'function') {
- if (!filter(source)) {
- return cb(true);
- }
- }
- }
- return getStats(source);
- }
-
- function defer(fn) {
- if (typeof(setImmediate) === 'function')
- return setImmediate(fn);
- return process.nextTick(fn);
- }
-
- function getStats(source) {
- if (running >= limit) {
- return defer(function () {
- getStats(source);
- });
- }
- running++;
- fs.lstat(source, function (err, stats) {
- var item = {};
- if (err) {
- return onError(err);
- }
-
- // We need to get the mode from the stats object and preserve it.
- item.name = source;
- item.mode = stats.mode;
-
- if (stats.isDirectory()) {
- return onDir(item);
- }
- else if (stats.isFile()) {
- return onFile(item);
- }
- else if (stats.isSymbolicLink()) {
- // Symlinks don't really need to know about the mode.
- return onLink(source);
- }
- });
- }
-
- function onFile(file) {
- var target = file.name.replace(currentPath, targetPath);
- isWritable(target, function (writable) {
- if (writable) {
- return copyFile(file, target);
- }
- if(clobber)
- rmFile(target, function () {
- copyFile(file, target);
- });
- });
- }
-
- function copyFile(file, target) {
- var readStream = fs.createReadStream(file.name),
- writeStream = fs.createWriteStream(target, { mode: file.mode });
- if(transform) {
- transform(readStream, writeStream,file);
- } else {
- readStream.pipe(writeStream);
- }
- readStream.once('end', cb);
- }
-
- function rmFile(file, done) {
- fs.unlink(file, function (err) {
- if (err) {
- return onError(err);
- }
- return done();
- });
- }
-
- function onDir(dir) {
- var target = dir.name.replace(currentPath, targetPath);
- isWritable(target, function (writable) {
- if (writable) {
- return mkDir(dir, target);
- }
- copyDir(dir.name);
- });
- }
-
- function mkDir(dir, target) {
- fs.mkdir(target, dir.mode, function (err) {
- if (err) {
- return onError(err);
- }
- copyDir(dir.name);
- });
- }
-
- function copyDir(dir) {
- fs.readdir(dir, function (err, items) {
- if (err) {
- return onError(err);
- }
- items.forEach(function (item) {
- startCopy(dir + '/' + item);
- });
- return cb();
- });
- }
-
- function onLink(link) {
- var target = link.replace(currentPath, targetPath);
- fs.readlink(link, function (err, resolvedPath) {
- if (err) {
- return onError(err);
- }
- checkLink(resolvedPath, target);
- });
- }
-
- function checkLink(resolvedPath, target) {
- isWritable(target, function (writable) {
- if (writable) {
- return makeLink(resolvedPath, target);
- }
- fs.readlink(target, function (err, targetDest) {
- if (err) {
- return onError(err);
- }
- if (targetDest === resolvedPath) {
- return cb();
- }
- return rmFile(target, function () {
- makeLink(resolvedPath, target);
- });
- });
- });
- }
-
- function makeLink(linkPath, target) {
- fs.symlink(linkPath, target, function (err) {
- if (err) {
- return onError(err);
- }
- return cb();
- });
- }
-
- function isWritable(path, done) {
- fs.lstat(path, function (err, stats) {
- if (err) {
- if (err.code === 'ENOENT') return done(true);
- return done(false);
- }
- return done(false);
- });
- }
-
- function onError(err) {
- if (options.stopOnError) {
- return callback(err);
- }
- else if (!errs && options.errs) {
- errs = fs.createWriteStream(options.errs);
- }
- else if (!errs) {
- errs = [];
- }
- if (typeof errs.write === 'undefined') {
- errs.push(err);
- }
- else {
- errs.write(err.stack + '\n\n');
- }
- return cb();
- }
-
- function cb(skipped) {
- if (!skipped) running--;
- finished++;
- if ((started === finished) && (running === 0)) {
- return errs ? callback(errs) : callback(null);
- }
- }
-};
-
-
http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/package.json
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/package.json b/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/package.json
deleted file mode 100644
index 82608c9..0000000
--- a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/package.json
+++ /dev/null
@@ -1,41 +0,0 @@
-{
- "name": "ncp",
- "version": "0.4.2",
- "author": {
- "name": "AvianFlu",
- "email": "charlie@charlieistheman.com"
- },
- "description": "Asynchronous recursive file copy utility.",
- "bin": {
- "ncp": "./bin/ncp"
- },
- "devDependencies": {
- "vows": "0.6.x",
- "rimraf": "1.0.x",
- "read-dir-files": "0.0.x"
- },
- "main": "./lib/ncp.js",
- "repository": {
- "type": "git",
- "url": "https://github.com/AvianFlu/ncp.git"
- },
- "keywords": [
- "cli",
- "copy"
- ],
- "license": "MIT",
- "engine": {
- "node": ">=0.4"
- },
- "scripts": {
- "test": "vows --isolate --spec"
- },
- "readme": "# ncp - Asynchronous recursive file & directory copying\n\n[![Build Status](https://secure.travis-ci.org/AvianFlu/ncp.png)](http://travis-ci.org/AvianFlu/ncp)\n\nThink `cp -r`, but pure node, and asynchronous. `ncp` can be used both as a CLI tool and programmatically.\n\n## Command Line usage\n\nUsage is simple: `ncp [source] [dest] [--limit=concurrency limit]\n[--filter=filter] --stopOnErr`\n\nThe 'filter' is a Regular Expression - matched files will be copied.\n\nThe 'concurrency limit' is an integer that represents how many pending file system requests `ncp` has at a time.\n\n'stopOnErr' is a boolean flag that will tell `ncp` to stop immediately if any\nerrors arise, rather than attempting to continue while logging errors.\n\nIf there are no errors, `ncp` will output `done.` when complete. If there are errors, the error messages will be logged to `stdout` and to `./ncp-debug.log`, and the copy operation will attempt to continue.\n\n## Programmatic usage\n\nProgramm
atic usage of `ncp` is just as simple. The only argument to the completion callback is a possible error. \n\n```javascript\nvar ncp = require('ncp').ncp;\n\nncp.limit = 16;\n\nncp(source, destination, function (err) {\n if (err) {\n return console.error(err);\n }\n console.log('done!');\n});\n```\n\nYou can also call ncp like `ncp(source, destination, options, callback)`. \n`options` should be a dictionary. Currently, such options are available:\n\n * `options.filter` - a `RegExp` instance, against which each file name is\n tested to determine whether to copy it or not, or a function taking single\n parameter: copied file name, returning `true` or `false`, determining\n whether to copy file or not.\n\n * `options.transform` - a function: `function (read, write) { read.pipe(write) }`\n used to apply streaming transforms while copying.\n\n * `options.clobber` - boolean=true. if set to false, `ncp` will not overwrite \n destination files that already exist.\n\nPlease open a
n issue if any bugs arise. As always, I accept (working) pull requests, and refunds are available at `/dev/null`.\n",
- "readmeFilename": "README.md",
- "bugs": {
- "url": "https://github.com/AvianFlu/ncp/issues"
- },
- "homepage": "https://github.com/AvianFlu/ncp",
- "_id": "ncp@0.4.2",
- "_from": "ncp@0.4.x"
-}
http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/test/fixtures/src/a
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/test/fixtures/src/a b/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/test/fixtures/src/a
deleted file mode 100644
index 802992c..0000000
--- a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/test/fixtures/src/a
+++ /dev/null
@@ -1 +0,0 @@
-Hello world
http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/test/fixtures/src/b
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/test/fixtures/src/b b/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/test/fixtures/src/b
deleted file mode 100644
index 9f6bb18..0000000
--- a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/test/fixtures/src/b
+++ /dev/null
@@ -1 +0,0 @@
-Hello ncp
http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/test/fixtures/src/c
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/test/fixtures/src/c b/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/test/fixtures/src/c
deleted file mode 100644
index e69de29..0000000
http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/test/fixtures/src/d
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/test/fixtures/src/d b/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/test/fixtures/src/d
deleted file mode 100644
index e69de29..0000000
http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/test/fixtures/src/e
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/test/fixtures/src/e b/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/test/fixtures/src/e
deleted file mode 100644
index e69de29..0000000
http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/test/fixtures/src/f
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/test/fixtures/src/f b/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/test/fixtures/src/f
deleted file mode 100644
index e69de29..0000000
http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/test/fixtures/src/sub/a
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/test/fixtures/src/sub/a b/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/test/fixtures/src/sub/a
deleted file mode 100644
index cf291b5..0000000
--- a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/test/fixtures/src/sub/a
+++ /dev/null
@@ -1 +0,0 @@
-Hello nodejitsu
http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/test/fixtures/src/sub/b
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/test/fixtures/src/sub/b b/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/test/fixtures/src/sub/b
deleted file mode 100644
index e69de29..0000000
http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/test/ncp-test.js
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/test/ncp-test.js b/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/test/ncp-test.js
deleted file mode 100644
index 3c613f7..0000000
--- a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/ncp/test/ncp-test.js
+++ /dev/null
@@ -1,86 +0,0 @@
-var assert = require('assert'),
- path = require('path'),
- rimraf = require('rimraf'),
- vows = require('vows'),
- readDirFiles = require('read-dir-files'),
- ncp = require('../').ncp;
-
-var fixtures = path.join(__dirname, 'fixtures'),
- src = path.join(fixtures, 'src'),
- out = path.join(fixtures, 'out');
-
-vows.describe('ncp').addBatch({
- 'When copying a directory of files': {
- topic: function () {
- var cb = this.callback;
- rimraf(out, function () {
- ncp(src, out, cb);
- });
- },
- 'files should be copied': {
- topic: function () {
- var cb = this.callback;
-
- readDirFiles(src, 'utf8', function (srcErr, srcFiles) {
- readDirFiles(out, 'utf8', function (outErr, outFiles) {
- cb(outErr, srcFiles, outFiles);
- });
- });
- },
- 'and the destination should match the source': function (err, srcFiles, outFiles) {
- assert.isNull(err);
- assert.deepEqual(srcFiles, outFiles);
- }
- }
- }
-}).addBatch({
- 'When copying files using filter': {
- topic: function() {
- var cb = this.callback;
- var filter = function(name) {
- return name.substr(name.length - 1) != 'a'
- }
- rimraf(out, function () {
- ncp(src, out, {filter: filter}, cb);
- });
- },
- 'it should copy files': {
- topic: function () {
- var cb = this.callback;
-
- readDirFiles(src, 'utf8', function (srcErr, srcFiles) {
- function filter(files) {
- for (var fileName in files) {
- var curFile = files[fileName];
- if (curFile instanceof Object)
- return filter(curFile);
- if (fileName.substr(fileName.length - 1) == 'a')
- delete files[fileName];
- }
- }
- filter(srcFiles);
- readDirFiles(out, 'utf8', function (outErr, outFiles) {
- cb(outErr, srcFiles, outFiles);
- });
- });
- },
- 'and destination files should match source files that pass filter': function (err, srcFiles, outFiles) {
- assert.isNull(err);
- assert.deepEqual(srcFiles, outFiles);
- }
- }
- }
-}).addBatch({
- 'When copying files using transform': {
- 'it should pass file descriptors along to transform functions': function() {
- ncp(src, out, {
- transform: function(read,write,file) {
- assert.notEqual(file.name, undefined);
- assert.strictEqual(typeof file.mode,'number');
- read.pipe(write);
- }
- }, function(){});
- }
- }
-}).export(module);
-
http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/rimraf/AUTHORS
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/rimraf/AUTHORS b/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/rimraf/AUTHORS
deleted file mode 100644
index 247b754..0000000
--- a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/rimraf/AUTHORS
+++ /dev/null
@@ -1,6 +0,0 @@
-# Authors sorted by whether or not they're me.
-Isaac Z. Schlueter <i...@izs.me> (http://blog.izs.me)
-Wayne Larsen <wa...@larsen.st> (http://github.com/wvl)
-ritch <sk...@gmail.com>
-Marcel Laverdet
-Yosef Dinerstein <yo...@microsoft.com>
http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/rimraf/LICENSE
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/rimraf/LICENSE b/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/rimraf/LICENSE
deleted file mode 100644
index 05a4010..0000000
--- a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/rimraf/LICENSE
+++ /dev/null
@@ -1,23 +0,0 @@
-Copyright 2009, 2010, 2011 Isaac Z. Schlueter.
-All rights reserved.
-
-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/http-proxy/node_modules/utile/node_modules/rimraf/README.md
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/rimraf/README.md b/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/rimraf/README.md
deleted file mode 100644
index cd123b6..0000000
--- a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/rimraf/README.md
+++ /dev/null
@@ -1,30 +0,0 @@
-`rm -rf` for node.
-
-Install with `npm install rimraf`, or just drop rimraf.js somewhere.
-
-## API
-
-`rimraf(f, callback)`
-
-The callback will be called with an error if there is one. Certain
-errors are handled for you:
-
-* Windows: `EBUSY` and `ENOTEMPTY` - rimraf will back off a maximum of
- `opts.maxBusyTries` times before giving up.
-* `ENOENT` - If the file doesn't exist, rimraf will return
- successfully, since your desired outcome is already the case.
-
-## rimraf.sync
-
-It can remove stuff synchronously, too. But that's not so good. Use
-the async API. It's better.
-
-## CLI
-
-If installed with `npm install rimraf -g` it can be used as a global
-command `rimraf <path>` which is useful for cross platform support.
-
-## mkdirp
-
-If you need to create a directory recursively, check out
-[mkdirp](https://github.com/substack/node-mkdirp).
http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/rimraf/bin.js
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/rimraf/bin.js b/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/rimraf/bin.js
deleted file mode 100755
index 29bfa8a..0000000
--- a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/rimraf/bin.js
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/bin/env node
-
-var rimraf = require('./')
-
-var help = false
-var dashdash = false
-var args = process.argv.slice(2).filter(function(arg) {
- if (dashdash)
- return !!arg
- else if (arg === '--')
- dashdash = true
- else if (arg.match(/^(-+|\/)(h(elp)?|\?)$/))
- help = true
- else
- return !!arg
-});
-
-if (help || args.length === 0) {
- // If they didn't ask for help, then this is not a "success"
- var log = help ? console.log : console.error
- log('Usage: rimraf <path>')
- log('')
- log(' Deletes all files and folders at "path" recursively.')
- log('')
- log('Options:')
- log('')
- log(' -h, --help Display this usage info')
- process.exit(help ? 0 : 1)
-} else {
- args.forEach(function(arg) {
- rimraf.sync(arg)
- })
-}
http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/rimraf/package.json
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/rimraf/package.json b/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/rimraf/package.json
deleted file mode 100644
index 70f8170..0000000
--- a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/rimraf/package.json
+++ /dev/null
@@ -1,56 +0,0 @@
-{
- "name": "rimraf",
- "version": "2.2.6",
- "main": "rimraf.js",
- "description": "A deep deletion module for node (like `rm -rf`)",
- "author": {
- "name": "Isaac Z. Schlueter",
- "email": "i@izs.me",
- "url": "http://blog.izs.me/"
- },
- "license": {
- "type": "MIT",
- "url": "https://github.com/isaacs/rimraf/raw/master/LICENSE"
- },
- "repository": {
- "type": "git",
- "url": "git://github.com/isaacs/rimraf.git"
- },
- "scripts": {
- "test": "cd test && bash run.sh"
- },
- "bin": {
- "rimraf": "./bin.js"
- },
- "contributors": [
- {
- "name": "Isaac Z. Schlueter",
- "email": "i@izs.me",
- "url": "http://blog.izs.me"
- },
- {
- "name": "Wayne Larsen",
- "email": "wayne@larsen.st",
- "url": "http://github.com/wvl"
- },
- {
- "name": "ritch",
- "email": "skawful@gmail.com"
- },
- {
- "name": "Marcel Laverdet"
- },
- {
- "name": "Yosef Dinerstein",
- "email": "yosefd@microsoft.com"
- }
- ],
- "readme": "`rm -rf` for node.\n\nInstall with `npm install rimraf`, or just drop rimraf.js somewhere.\n\n## API\n\n`rimraf(f, callback)`\n\nThe callback will be called with an error if there is one. Certain\nerrors are handled for you:\n\n* Windows: `EBUSY` and `ENOTEMPTY` - rimraf will back off a maximum of\n `opts.maxBusyTries` times before giving up.\n* `ENOENT` - If the file doesn't exist, rimraf will return\n successfully, since your desired outcome is already the case.\n\n## rimraf.sync\n\nIt can remove stuff synchronously, too. But that's not so good. Use\nthe async API. It's better.\n\n## CLI\n\nIf installed with `npm install rimraf -g` it can be used as a global\ncommand `rimraf <path>` which is useful for cross platform support.\n\n## mkdirp\n\nIf you need to create a directory recursively, check out\n[mkdirp](https://github.com/substack/node-mkdirp).\n",
- "readmeFilename": "README.md",
- "bugs": {
- "url": "https://github.com/isaacs/rimraf/issues"
- },
- "homepage": "https://github.com/isaacs/rimraf",
- "_id": "rimraf@2.2.6",
- "_from": "rimraf@2.x.x"
-}
http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/rimraf/rimraf.js
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/rimraf/rimraf.js b/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/rimraf/rimraf.js
deleted file mode 100644
index ce62051..0000000
--- a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/rimraf/rimraf.js
+++ /dev/null
@@ -1,178 +0,0 @@
-module.exports = rimraf
-rimraf.sync = rimrafSync
-
-var path = require("path")
-var fs = require("fs")
-
-// for EMFILE handling
-var timeout = 0
-exports.EMFILE_MAX = 1000
-exports.BUSYTRIES_MAX = 3
-
-var isWindows = (process.platform === "win32")
-
-function rimraf (p, cb) {
- if (!cb) throw new Error("No callback passed to rimraf()")
-
- var busyTries = 0
- rimraf_(p, function CB (er) {
- if (er) {
- if (isWindows && (er.code === "EBUSY" || er.code === "ENOTEMPTY") &&
- busyTries < exports.BUSYTRIES_MAX) {
- busyTries ++
- var time = busyTries * 100
- // try again, with the same exact callback as this one.
- return setTimeout(function () {
- rimraf_(p, CB)
- }, time)
- }
-
- // this one won't happen if graceful-fs is used.
- if (er.code === "EMFILE" && timeout < exports.EMFILE_MAX) {
- return setTimeout(function () {
- rimraf_(p, CB)
- }, timeout ++)
- }
-
- // already gone
- if (er.code === "ENOENT") er = null
- }
-
- timeout = 0
- cb(er)
- })
-}
-
-// Two possible strategies.
-// 1. Assume it's a file. unlink it, then do the dir stuff on EPERM or EISDIR
-// 2. Assume it's a directory. readdir, then do the file stuff on ENOTDIR
-//
-// Both result in an extra syscall when you guess wrong. However, there
-// are likely far more normal files in the world than directories. This
-// is based on the assumption that a the average number of files per
-// directory is >= 1.
-//
-// If anyone ever complains about this, then I guess the strategy could
-// be made configurable somehow. But until then, YAGNI.
-function rimraf_ (p, cb) {
- fs.unlink(p, function (er) {
- if (er) {
- if (er.code === "ENOENT")
- return cb(null)
- if (er.code === "EPERM")
- return (isWindows) ? fixWinEPERM(p, er, cb) : rmdir(p, er, cb)
- if (er.code === "EISDIR")
- return rmdir(p, er, cb)
- }
- return cb(er)
- })
-}
-
-function fixWinEPERM (p, er, cb) {
- fs.chmod(p, 666, function (er2) {
- if (er2)
- cb(er2.code === "ENOENT" ? null : er)
- else
- fs.stat(p, function(er3, stats) {
- if (er3)
- cb(er3.code === "ENOENT" ? null : er)
- else if (stats.isDirectory())
- rmdir(p, er, cb)
- else
- fs.unlink(p, cb)
- })
- })
-}
-
-function fixWinEPERMSync (p, er, cb) {
- try {
- fs.chmodSync(p, 666)
- } catch (er2) {
- if (er2.code !== "ENOENT")
- throw er
- }
-
- try {
- var stats = fs.statSync(p)
- } catch (er3) {
- if (er3 !== "ENOENT")
- throw er
- }
-
- if (stats.isDirectory())
- rmdirSync(p, er)
- else
- fs.unlinkSync(p)
-}
-
-function rmdir (p, originalEr, cb) {
- // try to rmdir first, and only readdir on ENOTEMPTY or EEXIST (SunOS)
- // if we guessed wrong, and it's not a directory, then
- // raise the original error.
- fs.rmdir(p, function (er) {
- if (er && (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM"))
- rmkids(p, cb)
- else if (er && er.code === "ENOTDIR")
- cb(originalEr)
- else
- cb(er)
- })
-}
-
-function rmkids(p, cb) {
- fs.readdir(p, function (er, files) {
- if (er)
- return cb(er)
- var n = files.length
- if (n === 0)
- return fs.rmdir(p, cb)
- var errState
- files.forEach(function (f) {
- rimraf(path.join(p, f), function (er) {
- if (errState)
- return
- if (er)
- return cb(errState = er)
- if (--n === 0)
- fs.rmdir(p, cb)
- })
- })
- })
-}
-
-// this looks simpler, and is strictly *faster*, but will
-// tie up the JavaScript thread and fail on excessively
-// deep directory trees.
-function rimrafSync (p) {
- try {
- fs.unlinkSync(p)
- } catch (er) {
- if (er.code === "ENOENT")
- return
- if (er.code === "EPERM")
- return isWindows ? fixWinEPERMSync(p, er) : rmdirSync(p, er)
- if (er.code !== "EISDIR")
- throw er
- rmdirSync(p, er)
- }
-}
-
-function rmdirSync (p, originalEr) {
- try {
- fs.rmdirSync(p)
- } catch (er) {
- if (er.code === "ENOENT")
- return
- if (er.code === "ENOTDIR")
- throw originalEr
- if (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM")
- rmkidsSync(p)
- }
-}
-
-function rmkidsSync (p) {
- fs.readdirSync(p).forEach(function (f) {
- rimrafSync(path.join(p, f))
- })
- fs.rmdirSync(p)
-}
http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/rimraf/test/run.sh
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/rimraf/test/run.sh b/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/rimraf/test/run.sh
deleted file mode 100644
index 598f016..0000000
--- a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/rimraf/test/run.sh
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/bash
-set -e
-for i in test-*.js; do
- echo -n $i ...
- bash setup.sh
- node $i
- ! [ -d target ]
- echo "pass"
-done
-rm -rf target
http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/rimraf/test/setup.sh
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/rimraf/test/setup.sh b/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/rimraf/test/setup.sh
deleted file mode 100644
index 2602e63..0000000
--- a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/rimraf/test/setup.sh
+++ /dev/null
@@ -1,47 +0,0 @@
-#!/bin/bash
-
-set -e
-
-files=10
-folders=2
-depth=4
-target="$PWD/target"
-
-rm -rf target
-
-fill () {
- local depth=$1
- local files=$2
- local folders=$3
- local target=$4
-
- if ! [ -d $target ]; then
- mkdir -p $target
- fi
-
- local f
-
- f=$files
- while [ $f -gt 0 ]; do
- touch "$target/f-$depth-$f"
- let f--
- done
-
- let depth--
-
- if [ $depth -le 0 ]; then
- return 0
- fi
-
- f=$folders
- while [ $f -gt 0 ]; do
- mkdir "$target/folder-$depth-$f"
- fill $depth $files $folders "$target/d-$depth-$f"
- let f--
- done
-}
-
-fill $depth $files $folders $target
-
-# sanity assert
-[ -d $target ]
http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/rimraf/test/test-async.js
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/rimraf/test/test-async.js b/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/rimraf/test/test-async.js
deleted file mode 100644
index 9c2e0b7..0000000
--- a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/rimraf/test/test-async.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var rimraf = require("../rimraf")
- , path = require("path")
-rimraf(path.join(__dirname, "target"), function (er) {
- if (er) throw er
-})
http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/rimraf/test/test-sync.js
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/rimraf/test/test-sync.js b/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/rimraf/test/test-sync.js
deleted file mode 100644
index eb71f10..0000000
--- a/web/demos/package/node_modules/http-proxy/node_modules/utile/node_modules/rimraf/test/test-sync.js
+++ /dev/null
@@ -1,3 +0,0 @@
-var rimraf = require("../rimraf")
- , path = require("path")
-rimraf.sync(path.join(__dirname, "target"))
http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/utile/package.json
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/package.json b/web/demos/package/node_modules/http-proxy/node_modules/utile/package.json
deleted file mode 100644
index 4ed29cf..0000000
--- a/web/demos/package/node_modules/http-proxy/node_modules/utile/package.json
+++ /dev/null
@@ -1,45 +0,0 @@
-{
- "name": "utile",
- "description": "A drop-in replacement for `util` with some additional advantageous functions",
- "version": "0.2.1",
- "author": {
- "name": "Nodejitsu Inc.",
- "email": "info@nodejitsu.com"
- },
- "maintainers": [
- {
- "name": "indexzero",
- "email": "charlie@nodejitsu.com"
- }
- ],
- "repository": {
- "type": "git",
- "url": "http://github.com/flatiron/utile.git"
- },
- "dependencies": {
- "async": "~0.2.9",
- "deep-equal": "*",
- "i": "0.3.x",
- "mkdirp": "0.x.x",
- "ncp": "0.4.x",
- "rimraf": "2.x.x"
- },
- "devDependencies": {
- "vows": "0.7.x"
- },
- "scripts": {
- "test": "vows --spec"
- },
- "main": "./lib/index",
- "engines": {
- "node": ">= 0.6.4"
- },
- "readme": "# utile [![Build Status](https://secure.travis-ci.org/flatiron/utile.png)](http://travis-ci.org/flatiron/utile)\n\nA drop-in replacement for `util` with some additional advantageous functions\n\n## Motivation\nJavascript is definitely a \"batteries not included language\" when compared to languages like Ruby or Python. Node.js has a simple utility library which exposes some basic (but important) functionality:\n\n```\n$ node\n> var util = require('util');\n> util.\n(...)\n\nutil.debug util.error util.exec util.inherits util.inspect\nutil.log util.p util.print util.pump util.puts\n```\n\nWhen one considers their own utility library, why ever bother requiring `util` again? That is the approach taken by this module. To compare:\n\n```\n$ node\n> var utile = require('./lib')\n> utile.\n(...)\n\nutile.async utile.capitalize
utile.clone utile.cpr utile.createPath utile.debug\nutile.each utile.error utile.exec utile.file utile.filter utile.find\nutile.inherits utile.log utile.mixin utile.mkdirp utile.p utile.path\nutile.print utile.pump utile.puts utile.randomString utile.requireDir uile.requireDirLazy\nutile.rimraf\n```\n\nAs you can see all of the original methods from `util` are there, but there are several new methods specific to `utile`. A note about implementation: _no node.js native modules are modified by utile, it simply copies those methods._\n\n## Methods\nThe `utile` modules exposes some simple utility methods:\n\n* `.each(obj, iterator)`: Iterate over the keys of an object.\n* `.mixin(target [source0, source1,
...])`: Copies enumerable properties from `source0 ... sourceN` onto `target` and returns the resulting object.\n* `.clone(obj)`: Shallow clones the specified object.\n* `.capitalize(str)`: Capitalizes the specified `str`.\n* `.randomString(length)`: randomString returns a pseudo-random ASCII string (subset) the return value is a string of length ⌈bits/6⌉ of characters from the base64 alphabet.\n* `.filter(obj, test)`: return an object with the properties that `test` returns true on.\n* `.args(arguments)`: Converts function arguments into actual array with special `callback`, `cb`, `array`, and `last` properties. Also supports *optional* argument contracts. See [the example](https://github.com/flatiron/utile/blob/master/examples/utile-args.js) for more details.\n* `.requireDir(directory)`: Requires all files and directories from `directory`, returning an object with keys being filenames (without trailing `.js`) and respective values being return values of `require(filename)`.\n*
`.requireDirLazy(directory)`: Lazily requires all files and directories from `directory`, returning an object with keys being filenames (without trailing `.js`) and respective values (getters) being return values of `require(filename)`.\n* `.format([string] text, [array] formats, [array] replacements)`: Replace `formats` in `text` with `replacements`. This will fall back to the original `util.format` command if it is called improperly.\n\n## Packaged Dependencies\nIn addition to the methods that are built-in, utile includes a number of commonly used dependencies to reduce the number of includes in your package.json. These modules _are not eagerly loaded to be respectful of startup time,_ but instead are lazy-loaded getters on the `utile` object\n\n* `.async`: [Async utilities for node and the browser][0]\n* `.inflect`: [Customizable inflections for node.js][6]\n* `.mkdirp`: [Recursively mkdir, like mkdir -p, but in node.js][1]\n* `.rimraf`: [A rm -rf util for nodejs][2]\n* `.cpr`:
[Asynchronous recursive file copying with Node.js][3]\n\n## Installation\n\n### Installing npm (node package manager)\n```\n curl http://npmjs.org/install.sh | sh\n```\n\n### Installing utile\n```\n [sudo] npm install utile\n```\n\n## Tests\nAll tests are written with [vows][4] and should be run with [npm][5]:\n\n``` bash\n $ npm test\n```\n\n#### Author: [Nodejitsu Inc.](http://www.nodejitsu.com)\n#### Contributors: [Charlie Robbins](http://github.com/indexzero), [Dominic Tarr](http://github.com/dominictarr)\n#### License: MIT\n\n[0]: https://github.com/caolan/async\n[1]: https://github.com/substack/node-mkdirp\n[2]: https://github.com/isaacs/rimraf\n[3]: https://github.com/avianflu/ncp\n[4]: https://vowsjs.org\n[5]: https://npmjs.org\n[6]: https://github.com/pksunkara/inflect\n",
- "readmeFilename": "README.md",
- "bugs": {
- "url": "https://github.com/flatiron/utile/issues"
- },
- "homepage": "https://github.com/flatiron/utile",
- "_id": "utile@0.2.1",
- "_from": "utile@~0.2.1"
-}
http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/utile/test/file-test.js
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/test/file-test.js b/web/demos/package/node_modules/http-proxy/node_modules/utile/test/file-test.js
deleted file mode 100644
index 93ea089..0000000
--- a/web/demos/package/node_modules/http-proxy/node_modules/utile/test/file-test.js
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * file-test.js: Tests for `utile.file` module.
- *
- * (C) 2011, Nodejitsu Inc.
- * MIT LICENSE
- *
- */
-
-var assert = require('assert'),
- path = require('path'),
- vows = require('vows'),
- macros = require('./helpers/macros'),
- utile = require('../');
-
-var fixture = path.join(__dirname, 'fixtures', 'read-json-file', 'config.json');
-
-vows.describe('utile/file').addBatch({
- 'When using utile': {
- 'the `.file.readJson()` function': {
- topic: function () {
- utile.file.readJson(fixture, this.callback);
- },
- 'should return correct JSON structure': macros.assertReadCorrectJson
- },
- 'the `.file.readJsonSync()` function': {
- topic: utile.file.readJsonSync(fixture),
- 'should return correct JSON structure': macros.assertReadCorrectJson
- }
- }
-}).export(module);
-
http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/utile/test/fixtures/read-json-file/config.json
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/test/fixtures/read-json-file/config.json b/web/demos/package/node_modules/http-proxy/node_modules/utile/test/fixtures/read-json-file/config.json
deleted file mode 100644
index e12a106..0000000
--- a/web/demos/package/node_modules/http-proxy/node_modules/utile/test/fixtures/read-json-file/config.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "hello": "World",
- "I am": ["the utile module"],
- "thisMakesMe": {
- "really": 1337,
- "right?": true
- }
-}
-
http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/utile/test/fixtures/require-directory/directory/index.js
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/test/fixtures/require-directory/directory/index.js b/web/demos/package/node_modules/http-proxy/node_modules/utile/test/fixtures/require-directory/directory/index.js
deleted file mode 100644
index 1afb489..0000000
--- a/web/demos/package/node_modules/http-proxy/node_modules/utile/test/fixtures/require-directory/directory/index.js
+++ /dev/null
@@ -1,2 +0,0 @@
-exports.me = 'directory/index.js';
-
http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/utile/test/fixtures/require-directory/helloWorld.js
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/test/fixtures/require-directory/helloWorld.js b/web/demos/package/node_modules/http-proxy/node_modules/utile/test/fixtures/require-directory/helloWorld.js
deleted file mode 100644
index 1c842ec..0000000
--- a/web/demos/package/node_modules/http-proxy/node_modules/utile/test/fixtures/require-directory/helloWorld.js
+++ /dev/null
@@ -1,2 +0,0 @@
-exports.me = 'helloWorld.js';
-
http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/utile/test/format-test.js
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/test/format-test.js b/web/demos/package/node_modules/http-proxy/node_modules/utile/test/format-test.js
deleted file mode 100644
index fb1a2b7..0000000
--- a/web/demos/package/node_modules/http-proxy/node_modules/utile/test/format-test.js
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * format-test.js: Tests for `utile.format` module.
- *
- * (C) 2011, Nodejitsu Inc.
- * MIT LICENSE
- *
- */
-
-var vows = require('vows'),
- assert = require('assert'),
- utile = require('../lib');
-
-vows.describe('utile/format').addBatch({
-
- 'Should use the original `util.format` if there are no custom parameters to replace.': function() {
- assert.equal(utile.format('%s %s %s', 'test', 'test2', 'test3'), 'test test2 test3');
- },
-
- 'Should use `utile.format` if custom parameters are provided.': function() {
- assert.equal(utile.format('%a %b %c', [
- '%a',
- '%b',
- '%c'
- ], [
- 'test',
- 'test2',
- 'test3'
- ]), 'test test2 test3');
- }
-
-}).export(module);
http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/utile/test/function-args-test.js
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/test/function-args-test.js b/web/demos/package/node_modules/http-proxy/node_modules/utile/test/function-args-test.js
deleted file mode 100644
index b2852eb..0000000
--- a/web/demos/package/node_modules/http-proxy/node_modules/utile/test/function-args-test.js
+++ /dev/null
@@ -1,104 +0,0 @@
-/*
- * function-args-test.js: Tests for `args` method
- *
- * (C) 2012, Nodejitsu Inc.
- * MIT LICENSE
- *
- */
-
-var assert = require('assert'),
- path = require('path'),
- vows = require('vows'),
- macros = require('./helpers/macros'),
- utile = require('../');
-
-vows.describe('utile/args').addBatch({
- 'When using utile': {
- 'the `args` function': {
- topic: utile,
- 'should be a function': function (_utile) {
- assert.isFunction(_utile.args);
- },
- }
- },
- 'utile.rargs()': {
- 'with no arguments': {
- topic: utile.rargs(),
- 'should return an empty object': function (result) {
- assert.isArray(result);
- assert.lengthOf(result, 0);
- }
- },
- 'with simple arguments': {
- topic: function () {
- return (function () {
- return utile.rargs(arguments);
- })('a', 'b', 'c');
- },
- 'should return an array with three items': function (result) {
- assert.isArray(result);
- assert.equal(3, result.length);
- assert.equal(result[0], 'a');
- assert.equal(result[1], 'b');
- assert.equal(result[2], 'c');
- }
- },
- 'with a simple slice': {
- topic: function () {
- return (function () {
- return utile.rargs(arguments, 1);
- })('a', 'b', 'c');
- },
- 'should return an array with three items': function (result) {
- assert.isArray(result);
- assert.equal(2, result.length);
- assert.equal(result[0], 'b');
- assert.equal(result[1], 'c');
- }
- }
- },
- 'utile.args()': {
- 'with no arguments': {
- topic: utile.args(),
- 'should return an empty Array': function (result) {
- assert.isUndefined(result.callback);
- assert.isArray(result);
- assert.lengthOf(result, 0);
- }
- },
- 'with simple arguments': {
- topic: function () {
- return (function () {
- return utile.args(arguments);
- })('a', 'b', 'c', function () {
- return 'ok';
- });
- },
- 'should return an array with three items': function (result) {
- assert.isArray(result);
- assert.equal(3, result.length);
- assert.equal(result[0], 'a');
- assert.equal(result[1], 'b');
- assert.equal(result[2], 'c');
-
- //
- // Ensure that the Array returned
- // by `utile.args()` enumerates correctly
- //
- var length = 0;
- result.forEach(function (item) {
- length++;
- });
-
- assert.equal(length, 3);
- },
- 'should return lookup helpers': function (result) {
- assert.isArray(result);
- assert.equal(result.first, 'a');
- assert.equal(result.last, 'c');
- assert.isFunction(result.callback);
- assert.isFunction(result.cb);
- }
- }
- }
-}).export(module);
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/utile/test/helpers/macros.js
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/test/helpers/macros.js b/web/demos/package/node_modules/http-proxy/node_modules/utile/test/helpers/macros.js
deleted file mode 100644
index 66f386d..0000000
--- a/web/demos/package/node_modules/http-proxy/node_modules/utile/test/helpers/macros.js
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * macros.js: Test macros for `utile` module.
- *
- * (C) 2011, Nodejitsu Inc.
- * MIT LICENSE
- *
- */
-
-var assert = require('assert'),
- utile = require('../../lib');
-
-var macros = exports;
-
-macros.assertReadCorrectJson = function (obj) {
- assert.isObject(obj);
- utile.deepEqual(obj, {
- hello: 'World',
- 'I am': ['the utile module'],
- thisMakesMe: {
- really: 1337,
- 'right?': true
- }
- });
-};
-
-macros.assertDirectoryRequired = function (obj) {
- assert.isObject(obj);
- utile.deepEqual(obj, {
- directory: {
- me: 'directory/index.js'
- },
- helloWorld: {
- me: 'helloWorld.js'
- }
- });
-};
-
http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/utile/test/random-string-test.js
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/test/random-string-test.js b/web/demos/package/node_modules/http-proxy/node_modules/utile/test/random-string-test.js
deleted file mode 100644
index c21af3f..0000000
--- a/web/demos/package/node_modules/http-proxy/node_modules/utile/test/random-string-test.js
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * common-test.js : testing common.js for expected functionality
- *
- * (C) 2011, Nodejitsu Inc.
- *
- */
-
-var assert = require('assert'),
- vows = require('vows'),
- utile = require('../lib');
-
-vows.describe('utile/randomString').addBatch({
- "When using utile": {
- "the randomString() function": {
- topic: function () {
- return utile.randomString();
- },
- "should return 16 characters that are actually random by default": function (random) {
- assert.isString(random);
- assert.lengthOf(random, 16);
- assert.notEqual(random, utile.randomString());
- },
- "when you can asked for different length strings": {
- topic: function () {
- return [utile.randomString(4), utile.randomString(128)];
- },
- "where they actually are of length 4, 128": function (strings) {
- assert.isArray(strings);
- assert.lengthOf(strings,2);
- assert.isString(strings[0]);
- assert.isString(strings[1]);
- assert.lengthOf(strings[0], 4);
- assert.lengthOf(strings[1], 128);
- assert.notEqual(strings[0], strings[1].substr(0,4));
- }
- }
- }
- }
-}).export(module);
http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/utile/test/require-directory-test.js
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/test/require-directory-test.js b/web/demos/package/node_modules/http-proxy/node_modules/utile/test/require-directory-test.js
deleted file mode 100644
index ce7ea83..0000000
--- a/web/demos/package/node_modules/http-proxy/node_modules/utile/test/require-directory-test.js
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * require-directory-test.js: Tests for `requireDir` and `requireDirLazy`
- * methods.
- *
- * (C) 2011, Nodejitsu Inc.
- * MIT LICENSE
- *
- */
-
-var assert = require('assert'),
- path = require('path'),
- vows = require('vows'),
- macros = require('./helpers/macros'),
- utile = require('../');
-
-var requireFixtures = path.join(__dirname, 'fixtures', 'require-directory');
-
-vows.describe('utile/require-directory').addBatch({
- 'When using utile': {
- 'the `requireDir()` function': {
- topic: utile.requireDir(requireFixtures),
- 'should contain all wanted modules': macros.assertDirectoryRequired
- },
- 'the `requireDirLazy()` function': {
- topic: utile.requireDirLazy(requireFixtures),
- 'all properties should be getters': function (obj) {
- assert.isObject(obj);
- assert.isTrue(!!Object.getOwnPropertyDescriptor(obj, 'directory').get);
- assert.isTrue(!!Object.getOwnPropertyDescriptor(obj, 'helloWorld').get);
- },
- 'should contain all wanted modules': macros.assertDirectoryRequired
- }
- }
-}).export(module);
-
http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/utile/test/utile-test.js
----------------------------------------------------------------------
diff --git a/web/demos/package/node_modules/http-proxy/node_modules/utile/test/utile-test.js b/web/demos/package/node_modules/http-proxy/node_modules/utile/test/utile-test.js
deleted file mode 100644
index 7dd5b0f..0000000
--- a/web/demos/package/node_modules/http-proxy/node_modules/utile/test/utile-test.js
+++ /dev/null
@@ -1,126 +0,0 @@
-/*
- * utile-test.js: Tests for `utile` module.
- *
- * (C) 2011, Nodejitsu Inc.
- * MIT LICENSE
- *
- */
-
-var assert = require('assert'),
- vows = require('vows'),
- utile = require('../lib');
-
-var obj1, obj2;
-
-obj1 = {
- foo: true,
- bar: {
- bar1: true,
- bar2: 'bar2'
- }
-};
-
-obj2 = {
- baz: true,
- buzz: 'buzz'
-};
-
-Object.defineProperties(obj2, {
-
- 'bazz': {
- get: function() {
- return 'bazz';
- },
-
- set: function() {
- return 'bazz';
- }
- },
-
- 'wat': {
- set: function() {
- return 'wat';
- }
- }
-
-});
-
-vows.describe('utile').addBatch({
- "When using utile": {
- "it should have the same methods as the `util` module": function () {
- Object.keys(require('util')).forEach(function (fn) {
- assert.isFunction(utile[fn]);
- });
- },
- "it should have the correct methods defined": function () {
- assert.isFunction(utile.mixin);
- assert.isFunction(utile.clone);
- assert.isFunction(utile.rimraf);
- assert.isFunction(utile.mkdirp);
- assert.isFunction(utile.cpr);
- },
- "the mixin() method": function () {
- var mixed = utile.mixin({}, obj1, obj2);
- assert.isTrue(mixed.foo);
- assert.isObject(mixed.bar);
- assert.isTrue(mixed.baz);
- assert.isString(mixed.buzz);
- assert.isTrue(!!Object.getOwnPropertyDescriptor(mixed, 'bazz').get);
- assert.isTrue(!!Object.getOwnPropertyDescriptor(mixed, 'bazz').set);
- assert.isTrue(!!Object.getOwnPropertyDescriptor(mixed, 'wat').set);
- assert.isString(mixed.bazz);
- },
- "the clone() method": function () {
- var clone = utile.clone(obj1);
- assert.isTrue(clone.foo);
- assert.isObject(clone.bar);
- assert.notStrictEqual(obj1, clone);
- },
- "the createPath() method": function () {
- var x = {},
- r = Math.random();
-
- utile.createPath(x, ['a','b','c'], r)
- assert.equal(x.a.b.c, r)
- },
- "the capitalize() method": function () {
- assert.isFunction(utile.capitalize);
- assert.equal(utile.capitalize('bullet'), 'Bullet');
- assert.equal(utile.capitalize('bullet_train'), 'BulletTrain');
- },
- "the escapeRegExp() method": function () {
- var ans = "\\/path\\/to\\/resource\\.html\\?search=query";
- assert.isFunction(utile.escapeRegExp);
- assert.equal(utile.escapeRegExp('/path/to/resource.html?search=query'), ans);
- },
- "the underscoreToCamel() method": function () {
- var obj = utile.underscoreToCamel({
- key_with_underscore: {
- andNested: 'values',
- several: [1, 2, 3],
- nested_underscores: true
- },
- just_one: 'underscore'
- });
-
- assert.isObject(obj.keyWithUnderscore);
- assert.isString(obj.justOne);
- assert.isTrue(obj.keyWithUnderscore.nestedUnderscores);
- },
- "the camelToUnderscore() method": function () {
- var obj = utile.camelToUnderscore({
- keyWithCamel: {
- andNested: 'values',
- several: [1, 2, 3],
- nestedCamel: true
- },
- justOne: 'camel'
- });
-
- assert.isObject(obj.key_with_camel);
- assert.isString(obj.just_one);
- assert.isTrue(obj.key_with_camel.nested_camel);
- }
- }
-}).export(module);
-