couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gar...@apache.org
Subject [43/51] [abbrv] [partial] couchdb-nmo git commit: Remove node_modules from repo
Date Mon, 30 Nov 2015 09:37:25 GMT
http://git-wip-us.apache.org/repos/asf/couchdb-nmo/blob/6436833c/node_modules/bulkbadger/node_modules/JSONStream/test/fixtures/depth.json
----------------------------------------------------------------------
diff --git a/node_modules/bulkbadger/node_modules/JSONStream/test/fixtures/depth.json b/node_modules/bulkbadger/node_modules/JSONStream/test/fixtures/depth.json
deleted file mode 100644
index 868062f..0000000
--- a/node_modules/bulkbadger/node_modules/JSONStream/test/fixtures/depth.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
-  "total": 5,
-  "docs": [
-    {
-      "key": {
-        "value": 0,
-        "some": "property"
-      }
-    },
-    {"value": 1},
-    {"value": 2},
-    {"blbl": [{}, {"a":0, "b":1, "value":3}, 10]},
-    {"value": 4}
-  ]
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/couchdb-nmo/blob/6436833c/node_modules/bulkbadger/node_modules/JSONStream/test/fn.js
----------------------------------------------------------------------
diff --git a/node_modules/bulkbadger/node_modules/JSONStream/test/fn.js b/node_modules/bulkbadger/node_modules/JSONStream/test/fn.js
deleted file mode 100644
index 4acc672..0000000
--- a/node_modules/bulkbadger/node_modules/JSONStream/test/fn.js
+++ /dev/null
@@ -1,39 +0,0 @@
-
-
-var fs = require ('fs')
-  , join = require('path').join
-  , file = join(__dirname, 'fixtures','all_npm.json')
-  , JSONStream = require('../')
-  , it = require('it-is')
-
-function fn (s) {
-  return !isNaN(parseInt(s, 10))
-}
-
-var expected = JSON.parse(fs.readFileSync(file))
-  , parser = JSONStream.parse(['rows', fn])
-  , called = 0
-  , ended = false
-  , parsed = []
-
-fs.createReadStream(file).pipe(parser)
-  
-parser.on('data', function (data) {
-  called ++
-  it.has({
-    id: it.typeof('string'),
-    value: {rev: it.typeof('string')},
-    key:it.typeof('string')
-  })
-  parsed.push(data)
-})
-
-parser.on('end', function () {
-  ended = true
-})
-
-process.on('exit', function () {
-  it(called).equal(expected.rows.length)
-  it(parsed).deepEqual(expected.rows)
-  console.error('PASSED')
-})

http://git-wip-us.apache.org/repos/asf/couchdb-nmo/blob/6436833c/node_modules/bulkbadger/node_modules/JSONStream/test/gen.js
----------------------------------------------------------------------
diff --git a/node_modules/bulkbadger/node_modules/JSONStream/test/gen.js b/node_modules/bulkbadger/node_modules/JSONStream/test/gen.js
deleted file mode 100644
index c233722..0000000
--- a/node_modules/bulkbadger/node_modules/JSONStream/test/gen.js
+++ /dev/null
@@ -1,135 +0,0 @@
-return // dont run this test for now since tape is weird and broken on 0.10
-
-var fs = require('fs')
-var JSONStream = require('../')
-var file = process.argv[2] || '/tmp/JSONStream-test-large.json'
-var size = Number(process.argv[3] || 100000)
-var tape = require('tape')
-// if (process.title !== 'browser') {
-  tape('out of mem', function (t) {
-    t.plan(1)
-    //////////////////////////////////////////////////////
-    // Produces a random number between arg1 and arg2
-    //////////////////////////////////////////////////////
-    var randomNumber = function (min, max) {
-      var number = Math.floor(Math.random() * (max - min + 1) + min);
-      return number;
-    };
-
-    //////////////////////////////////////////////////////
-    // Produces a random string of a length between arg1 and arg2
-    //////////////////////////////////////////////////////
-    var randomString = function (min, max) {
-
-      // add several spaces to increase chanses of creating 'words'
-      var chars = '      0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
-      var result = '';
-
-      var randomLength = randomNumber(min, max);
-
-      for (var i = randomLength; i > 0; --i) {
-        result += chars[Math.round(Math.random() * (chars.length - 1))];
-      }
-      return result;
-    };
-
-    //////////////////////////////////////////////////////
-    // Produces a random JSON document, as a string
-    //////////////////////////////////////////////////////
-    var randomJsonDoc = function () {
-
-      var doc = {
-        "CrashOccurenceID": randomNumber(10000, 50000),
-        "CrashID": randomNumber(1000, 10000),
-        "SiteName": randomString(10, 25),
-        "MachineName": randomString(10, 25),
-        "Date": randomString(26, 26),
-        "ProcessDuration": randomString(18, 18),
-        "ThreadIdentityName": null,
-        "WindowsIdentityName": randomString(15, 40),
-        "OperatingSystemName": randomString(35, 65),
-        "DetailedExceptionInformation": randomString(100, 800)
-      };
-
-      doc = JSON.stringify(doc);
-      doc = doc.replace(/\,/g, ',\n'); // add new lines after each attribute
-      return doc;
-    };
-
-    //////////////////////////////////////////////////////
-    // generates test data
-    //////////////////////////////////////////////////////
-    var generateTestData = function (cb) {
-
-      console.log('generating large data file...');
-
-      var stream = fs.createWriteStream(file, {
-        encoding: 'utf8'
-      });
-
-      var i = 0;
-      var max = size;
-      var writing = false
-      var split = ',\n';
-      var doc = randomJsonDoc();
-      stream.write('[');
-
-      function write () {
-        if(writing) return
-        writing = true
-        while(++i < max) {
-          if(Math.random() < 0.001)
-            console.log('generate..', i + ' / ' + size)
-          if(!stream.write(doc + split)) {
-            writing = false
-            return stream.once('drain', write)
-          }
-        }
-        stream.write(doc + ']')
-        stream.end();
-        console.log('END')
-      }
-      write()
-      stream.on('close', cb)
-    };
-
-    //////////////////////////////////////////////////////
-    // Shows that parsing 100000 instances using JSONStream fails
-    //
-    // After several seconds, you will get this crash
-    //     FATAL ERROR: JS Allocation failed - process out of memory
-    //////////////////////////////////////////////////////
-    var testJSONStreamParse_causesOutOfMem = function (done) {
-      var items = 0
-      console.log('parsing data files using JSONStream...');
-
-      var parser = JSONStream.parse([true]);
-      var stream = fs.createReadStream(file);
-      stream.pipe(parser);
-
-      parser.on('data', function (data) {
-        items++
-        if(Math.random() < 0.01) console.log(items, '...')
-      });
-      
-      parser.on('end', function () {
-        t.equal(items, size)
-      });
-
-    };
-
-    //////////////////////////////////////////////////////
-    // main
-    //////////////////////////////////////////////////////
-
-    fs.stat(file, function (err, stat) {
-      console.log(stat)
-      if(err)
-        generateTestData(testJSONStreamParse_causesOutOfMem);
-      else 
-        testJSONStreamParse_causesOutOfMem()
-    })
-
-  })
-  
-// }

http://git-wip-us.apache.org/repos/asf/couchdb-nmo/blob/6436833c/node_modules/bulkbadger/node_modules/JSONStream/test/issues.js
----------------------------------------------------------------------
diff --git a/node_modules/bulkbadger/node_modules/JSONStream/test/issues.js b/node_modules/bulkbadger/node_modules/JSONStream/test/issues.js
deleted file mode 100644
index eba392e..0000000
--- a/node_modules/bulkbadger/node_modules/JSONStream/test/issues.js
+++ /dev/null
@@ -1,20 +0,0 @@
-var JSONStream = require('../');
-var test = require('tape')
-
-test('#66', function (t) {
-   var error = 0;
-   var stream = JSONStream
-    .parse()
-    .on('error', function (err) {
-        t.ok(err);
-        error++;
-    })
-    .on('end', function () {
-        t.ok(error === 1);
-        t.end();
-    });
-
-    stream.write('["foo":bar[');
-    stream.end();
-
-});

http://git-wip-us.apache.org/repos/asf/couchdb-nmo/blob/6436833c/node_modules/bulkbadger/node_modules/JSONStream/test/map.js
----------------------------------------------------------------------
diff --git a/node_modules/bulkbadger/node_modules/JSONStream/test/map.js b/node_modules/bulkbadger/node_modules/JSONStream/test/map.js
deleted file mode 100644
index 29b9d89..0000000
--- a/node_modules/bulkbadger/node_modules/JSONStream/test/map.js
+++ /dev/null
@@ -1,40 +0,0 @@
-
-var test = require('tape')
-
-var JSONStream = require('../')
-
-test('map function', function (t) {
-
-  var actual = []
-
-  stream = JSONStream.parse([true], function (e) { return e*10 })
-    stream.on('data', function (v) { actual.push(v)})
-    stream.on('end', function () {
-      t.deepEqual(actual, [10,20,30,40,50,60])
-      t.end()
-
-    })
-
-  stream.write(JSON.stringify([1,2,3,4,5,6], null, 2))
-  stream.end()
-
-})
-
-test('filter function', function (t) {
-
-  var actual = []
-
-  stream = JSONStream
-    .parse([true], function (e) { return e%2 ? e : null})
-    .on('data', function (v) { actual.push(v)})
-    .on('end', function () {
-      t.deepEqual(actual, [1,3,5])
-      t.end()
-
-    })
-
-  stream.write(JSON.stringify([1,2,3,4,5,6], null, 2))
-  stream.end()
-
-})
-

http://git-wip-us.apache.org/repos/asf/couchdb-nmo/blob/6436833c/node_modules/bulkbadger/node_modules/JSONStream/test/multiple_objects.js
----------------------------------------------------------------------
diff --git a/node_modules/bulkbadger/node_modules/JSONStream/test/multiple_objects.js b/node_modules/bulkbadger/node_modules/JSONStream/test/multiple_objects.js
deleted file mode 100644
index 22f6324..0000000
--- a/node_modules/bulkbadger/node_modules/JSONStream/test/multiple_objects.js
+++ /dev/null
@@ -1,36 +0,0 @@
-var fs = require ('fs');
-var net = require('net');
-var join = require('path').join;
-var file = join(__dirname, 'fixtures','all_npm.json');
-var it = require('it-is');
-var JSONStream = require('../');
-
-var str = fs.readFileSync(file);
-
-var datas = {}
-
-var server = net.createServer(function(client) {
-    var data_calls = 0;
-    var parser = JSONStream.parse(['rows', true, 'key']);
-    parser.on('data', function(data) {
-        ++ data_calls;
-        datas[data] = (datas[data] || 0) + 1
-        it(data).typeof('string')
-    });
-
-    parser.on('end', function() {
-        console.log('END')
-        var min = Infinity
-        for (var d in datas)
-          min = min > datas[d] ? datas[d] : min
-        it(min).equal(3);
-        server.close();
-    });
-    client.pipe(parser);
-});
-server.listen(9999);
-
-var client = net.connect({ port : 9999 }, function() {
-    var msgs = str + ' ' + str + '\n\n' + str
-    client.end(msgs);
-});

http://git-wip-us.apache.org/repos/asf/couchdb-nmo/blob/6436833c/node_modules/bulkbadger/node_modules/JSONStream/test/multiple_objects_error.js
----------------------------------------------------------------------
diff --git a/node_modules/bulkbadger/node_modules/JSONStream/test/multiple_objects_error.js b/node_modules/bulkbadger/node_modules/JSONStream/test/multiple_objects_error.js
deleted file mode 100644
index 83d113b..0000000
--- a/node_modules/bulkbadger/node_modules/JSONStream/test/multiple_objects_error.js
+++ /dev/null
@@ -1,29 +0,0 @@
-var fs = require ('fs');
-var net = require('net');
-var join = require('path').join;
-var file = join(__dirname, 'fixtures','all_npm.json');
-var it = require('it-is');
-var JSONStream = require('../');
-
-var str = fs.readFileSync(file);
-
-var server = net.createServer(function(client) {
-    var data_calls = 0;
-    var parser = JSONStream.parse();
-    parser.on('error', function(err) {
-        console.log(err);
-        server.close();
-    });
-
-    parser.on('end', function() {
-        console.log('END');
-        server.close();
-    });
-    client.pipe(parser);
-});
-server.listen(9999);
-
-var client = net.connect({ port : 9999 }, function() {
-    var msgs = str + '}';
-    client.end(msgs);
-});

http://git-wip-us.apache.org/repos/asf/couchdb-nmo/blob/6436833c/node_modules/bulkbadger/node_modules/JSONStream/test/null.js
----------------------------------------------------------------------
diff --git a/node_modules/bulkbadger/node_modules/JSONStream/test/null.js b/node_modules/bulkbadger/node_modules/JSONStream/test/null.js
deleted file mode 100644
index 95dd60c..0000000
--- a/node_modules/bulkbadger/node_modules/JSONStream/test/null.js
+++ /dev/null
@@ -1,28 +0,0 @@
-var JSONStream = require('../')
-
-var data = [
-  {ID: 1, optional: null},
-  {ID: 2, optional: null},
-  {ID: 3, optional: 20},
-  {ID: 4, optional: null},
-  {ID: 5, optional: 'hello'},
-  {ID: 6, optional: null}
-]
-
-
-var test = require('tape')
-
-test ('null properties', function (t) {
-  var actual = []
-  var stream = 
-
-  JSONStream.parse('*.optional')
-    .on('data', function (v) { actual.push(v) })
-    .on('end', function () {
-      t.deepEqual(actual, [20, 'hello'])
-      t.end()
-    })
-
-  stream.write(JSON.stringify(data, null, 2))
-  stream.end()
-})

http://git-wip-us.apache.org/repos/asf/couchdb-nmo/blob/6436833c/node_modules/bulkbadger/node_modules/JSONStream/test/parsejson.js
----------------------------------------------------------------------
diff --git a/node_modules/bulkbadger/node_modules/JSONStream/test/parsejson.js b/node_modules/bulkbadger/node_modules/JSONStream/test/parsejson.js
deleted file mode 100644
index 0279887..0000000
--- a/node_modules/bulkbadger/node_modules/JSONStream/test/parsejson.js
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-/*
- sometimes jsonparse changes numbers slightly.
-*/
-
-var r = Math.random()
-  , Parser = require('jsonparse')
-  , p = new Parser()
-  , assert = require('assert')  
-  , times = 20
-while (times --) {
-
-  assert.equal(JSON.parse(JSON.stringify(r)), r, 'core JSON')
-
-  p.onValue = function (v) {
-    console.error('parsed', v)
-    assert.equal(
-      String(v).slice(0,12),
-      String(r).slice(0,12)
-    )
-  }
-  console.error('correct', r)
-  p.write (new Buffer(JSON.stringify([r])))
-
-
-
-}

http://git-wip-us.apache.org/repos/asf/couchdb-nmo/blob/6436833c/node_modules/bulkbadger/node_modules/JSONStream/test/stringify.js
----------------------------------------------------------------------
diff --git a/node_modules/bulkbadger/node_modules/JSONStream/test/stringify.js b/node_modules/bulkbadger/node_modules/JSONStream/test/stringify.js
deleted file mode 100644
index b6de85e..0000000
--- a/node_modules/bulkbadger/node_modules/JSONStream/test/stringify.js
+++ /dev/null
@@ -1,41 +0,0 @@
-
-var fs = require ('fs')
-  , join = require('path').join
-  , file = join(__dirname, 'fixtures','all_npm.json')
-  , JSONStream = require('../')
-  , it = require('it-is').style('colour')
-
-  function randomObj () {
-    return (
-      Math.random () < 0.4
-      ? {hello: 'eonuhckmqjk',
-          whatever: 236515,
-          lies: true,
-          nothing: [null],
-          stuff: [Math.random(),Math.random(),Math.random()]
-        } 
-      : ['AOREC', 'reoubaor', {ouec: 62642}, [[[], {}, 53]]]
-    )
-  }
-
-var expected =  []
-  , stringify = JSONStream.stringify()
-  , es = require('event-stream')
-  , stringified = ''
-  , called = 0
-  , count = 10
-  , ended = false
-  
-while (count --)
-  expected.push(randomObj())
-
-  es.connect(
-    es.readArray(expected),
-    stringify,
-    //JSONStream.parse([/./]),
-    es.writeArray(function (err, lines) {
-      
-      it(JSON.parse(lines.join(''))).deepEqual(expected)
-      console.error('PASSED')
-    })
-  )

http://git-wip-us.apache.org/repos/asf/couchdb-nmo/blob/6436833c/node_modules/bulkbadger/node_modules/JSONStream/test/stringify_object.js
----------------------------------------------------------------------
diff --git a/node_modules/bulkbadger/node_modules/JSONStream/test/stringify_object.js b/node_modules/bulkbadger/node_modules/JSONStream/test/stringify_object.js
deleted file mode 100644
index 9490115..0000000
--- a/node_modules/bulkbadger/node_modules/JSONStream/test/stringify_object.js
+++ /dev/null
@@ -1,47 +0,0 @@
-
-var fs = require ('fs')
-  , join = require('path').join
-  , file = join(__dirname, 'fixtures','all_npm.json')
-  , JSONStream = require('../')
-  , it = require('it-is').style('colour')
-  , es = require('event-stream')
-  , pending = 10
-  , passed = true
-
-  function randomObj () {
-    return (
-      Math.random () < 0.4
-      ? {hello: 'eonuhckmqjk',
-          whatever: 236515,
-          lies: true,
-          nothing: [null],
-          stuff: [Math.random(),Math.random(),Math.random()]
-        } 
-      : ['AOREC', 'reoubaor', {ouec: 62642}, [[[], {}, 53]]]
-    )
-  }
-
-for (var ix = 0; ix < pending; ix++) (function (count) {
-  var expected =  {}
-    , stringify = JSONStream.stringifyObject()
-    
-  es.connect(
-    stringify,
-    es.writeArray(function (err, lines) {
-      it(JSON.parse(lines.join(''))).deepEqual(expected)
-      if (--pending === 0) {
-        console.error('PASSED')
-      }
-    })
-  )
-
-  while (count --) {
-    var key = Math.random().toString(16).slice(2)
-    expected[key] = randomObj()
-    stringify.write([ key, expected[key] ])
-  }
-
-  process.nextTick(function () {
-    stringify.end()
-  })
-})(ix)

http://git-wip-us.apache.org/repos/asf/couchdb-nmo/blob/6436833c/node_modules/bulkbadger/node_modules/JSONStream/test/test.js
----------------------------------------------------------------------
diff --git a/node_modules/bulkbadger/node_modules/JSONStream/test/test.js b/node_modules/bulkbadger/node_modules/JSONStream/test/test.js
deleted file mode 100644
index 8ea7c2e..0000000
--- a/node_modules/bulkbadger/node_modules/JSONStream/test/test.js
+++ /dev/null
@@ -1,35 +0,0 @@
-
-
-var fs = require ('fs')
-  , join = require('path').join
-  , file = join(__dirname, 'fixtures','all_npm.json')
-  , JSONStream = require('../')
-  , it = require('it-is')
-
-var expected = JSON.parse(fs.readFileSync(file))
-  , parser = JSONStream.parse(['rows', /\d+/ /*, 'value'*/])
-  , called = 0
-  , ended = false
-  , parsed = []
-
-fs.createReadStream(file).pipe(parser)
-  
-parser.on('data', function (data) {
-  called ++
-  it.has({
-    id: it.typeof('string'),
-    value: {rev: it.typeof('string')},
-    key:it.typeof('string')
-  })
-  parsed.push(data)
-})
-
-parser.on('end', function () {
-  ended = true
-})
-
-process.on('exit', function () {
-  it(called).equal(expected.rows.length)
-  it(parsed).deepEqual(expected.rows)
-  console.error('PASSED')
-})

http://git-wip-us.apache.org/repos/asf/couchdb-nmo/blob/6436833c/node_modules/bulkbadger/node_modules/JSONStream/test/test2.js
----------------------------------------------------------------------
diff --git a/node_modules/bulkbadger/node_modules/JSONStream/test/test2.js b/node_modules/bulkbadger/node_modules/JSONStream/test/test2.js
deleted file mode 100644
index d09df7b..0000000
--- a/node_modules/bulkbadger/node_modules/JSONStream/test/test2.js
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
-var fs = require ('fs')
-  , join = require('path').join
-  , file = join(__dirname, '..','package.json')
-  , JSONStream = require('../')
-  , it = require('it-is')
-
-var expected = JSON.parse(fs.readFileSync(file))
-  , parser = JSONStream.parse([])
-  , called = 0
-  , ended = false
-  , parsed = []
-
-fs.createReadStream(file).pipe(parser)
-  
-parser.on('data', function (data) {
-  called ++
-  it(data).deepEqual(expected)
-})
-
-parser.on('end', function () {
-  ended = true
-})
-
-process.on('exit', function () {
-  it(called).equal(1)
-  console.error('PASSED')
-})
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/couchdb-nmo/blob/6436833c/node_modules/bulkbadger/node_modules/JSONStream/test/two-ways.js
----------------------------------------------------------------------
diff --git a/node_modules/bulkbadger/node_modules/JSONStream/test/two-ways.js b/node_modules/bulkbadger/node_modules/JSONStream/test/two-ways.js
deleted file mode 100644
index 8f3b89c..0000000
--- a/node_modules/bulkbadger/node_modules/JSONStream/test/two-ways.js
+++ /dev/null
@@ -1,41 +0,0 @@
-
-var fs = require ('fs')
-  , join = require('path').join
-  , file = join(__dirname, 'fixtures','all_npm.json')
-  , JSONStream = require('../')
-  , it = require('it-is').style('colour')
-
-  function randomObj () {
-    return (
-      Math.random () < 0.4
-      ? {hello: 'eonuhckmqjk',
-          whatever: 236515,
-          lies: true,
-          nothing: [null],
-//          stuff: [Math.random(),Math.random(),Math.random()]
-        } 
-      : ['AOREC', 'reoubaor', {ouec: 62642}, [[[], {}, 53]]]
-    )
-  }
-
-var expected =  []
-  , stringify = JSONStream.stringify()
-  , es = require('event-stream')
-  , stringified = ''
-  , called = 0
-  , count = 10
-  , ended = false
-  
-while (count --)
-  expected.push(randomObj())
-
-  es.connect(
-    es.readArray(expected),
-    stringify,
-    JSONStream.parse([/./]),
-    es.writeArray(function (err, lines) {
-    
-      it(lines).has(expected)
-      console.error('PASSED')
-    })
-  )

http://git-wip-us.apache.org/repos/asf/couchdb-nmo/blob/6436833c/node_modules/bulkbadger/node_modules/stream-transform/.npmignore
----------------------------------------------------------------------
diff --git a/node_modules/bulkbadger/node_modules/stream-transform/.npmignore b/node_modules/bulkbadger/node_modules/stream-transform/.npmignore
deleted file mode 100644
index 4c9bd0a..0000000
--- a/node_modules/bulkbadger/node_modules/stream-transform/.npmignore
+++ /dev/null
@@ -1,4 +0,0 @@
-/src
-/test
-/Makefile
-.travis.yml
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/couchdb-nmo/blob/6436833c/node_modules/bulkbadger/node_modules/stream-transform/LICENSE
----------------------------------------------------------------------
diff --git a/node_modules/bulkbadger/node_modules/stream-transform/LICENSE b/node_modules/bulkbadger/node_modules/stream-transform/LICENSE
deleted file mode 100644
index f77b58e..0000000
--- a/node_modules/bulkbadger/node_modules/stream-transform/LICENSE
+++ /dev/null
@@ -1,16 +0,0 @@
-Software License Agreement (BSD License)
-========================================
-
-Copyright (c) 2011, SARL Adaltas.
-
-All rights reserved.
-
-Redistribution and use of this software in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
-
--   Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
-
--   Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
-
--   Neither the name of SARL Adaltas nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission of the SARL Adaltas.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

http://git-wip-us.apache.org/repos/asf/couchdb-nmo/blob/6436833c/node_modules/bulkbadger/node_modules/stream-transform/README.md
----------------------------------------------------------------------
diff --git a/node_modules/bulkbadger/node_modules/stream-transform/README.md b/node_modules/bulkbadger/node_modules/stream-transform/README.md
deleted file mode 100644
index c23c35a..0000000
--- a/node_modules/bulkbadger/node_modules/stream-transform/README.md
+++ /dev/null
@@ -1,65 +0,0 @@
-[![Build Status](https://secure.travis-ci.org/wdavidw/node-csv-parse.png)][travis]
-
-Part of the [CSV module][csv_home], this project is a simple object
-transformation framework. It implements the Node.js
-[`stream.Transform` API][stream_transform]. It also provides a simple
-callback-based API for convenience. It is both extremely easy to use and
-powerful.
-
-[Documentation for the "csv-parse" package is available here][home].
-
-## Features
-
-*   Follow the Node.js [streaming API][streamtransform]
-*   Simplicity with the optional callback API
-*   Synchronous and asynchronous user handler functions
-*   Accepts arrays of strings, or arrays of objects as input
-*   Sequential or user-defined concurrent execution
-*   Skip and create new records
-*   Alter or clone input data
-*   BSD License
-
-Usage
------
-
-Refer to the [project webpage][home] for [an exhaustive list of options][home]
-and [some usage examples][examples]. 
-
-The module is built on the Node.js Stream API. For the sake of simplify, a
-simple callback API is also provided. To give you a quick look, here's an
-example of the callback API:
-
-```javascript
-var transform = require('stream-transform');
-
-input = [ [ '1', '2', '3', '4' ], [ 'a', 'b', 'c', 'd' ] ];
-transform(input, function(data){
-  data.push(data.shift());
-  return data.join(',')+'\n';
-}, function(err, output){
-  output.should.eql([ '2,3,4,1\n', 'b,c,d,a\n' ]);
-});
-```
-
-Development
------------
-
-Tests are executed with mocha. To install it, simple run `npm install` 
-followed by `npm test`. It will install mocha and its dependencies in your 
-project "node_modules" directory and run the test suite. The tests run 
-against the CoffeeScript source files.
-
-To generate the JavaScript files, run `npm run coffee`.
-
-The test suite is run online with [Travis][travis] against the versions 
-0.10, 0.11 and 0.12 of Node.js.
-
-
-[streamtransform]: http://nodejs.org/api/stream.html#stream_class_stream_transform
-[home]: http://csv.adaltas.com/transform/
-[examples]: http://csv.adaltas.com/transform/examples/
-[csv_home]: https://github.com/wdavidw/node-csv
-[stream-samples]: https://github.com/wdavidw/node-stream-transform/tree/master/samples
-[stream-test]: https://github.com/wdavidw/node-stream-transform/tree/master/test
-[travis]: http://travis-ci.org/wdavidw/node-stream-transform
-

http://git-wip-us.apache.org/repos/asf/couchdb-nmo/blob/6436833c/node_modules/bulkbadger/node_modules/stream-transform/lib/index.js
----------------------------------------------------------------------
diff --git a/node_modules/bulkbadger/node_modules/stream-transform/lib/index.js b/node_modules/bulkbadger/node_modules/stream-transform/lib/index.js
deleted file mode 100644
index cd7246e..0000000
--- a/node_modules/bulkbadger/node_modules/stream-transform/lib/index.js
+++ /dev/null
@@ -1,158 +0,0 @@
-// Generated by CoffeeScript 1.9.2
-var Transformer, stream, util,
-  slice = [].slice;
-
-stream = require('stream');
-
-util = require('util');
-
-module.exports = function() {
-  var argument, callback, data, error, handler, i, j, k, len, options, result, transform, type, v;
-  options = {};
-  for (i = j = 0, len = arguments.length; j < len; i = ++j) {
-    argument = arguments[i];
-    type = typeof argument;
-    if (argument === null) {
-      type = 'null';
-    } else if (type === 'object' && Array.isArray(argument)) {
-      type = 'array';
-    }
-    if (i === 0) {
-      if (type === 'function') {
-        handler = argument;
-      } else if (type !== null) {
-        data = argument;
-      }
-      continue;
-    }
-    if (type === 'object') {
-      for (k in argument) {
-        v = argument[k];
-        options[k] = v;
-      }
-    } else if (type === 'function') {
-      if (handler && i === arguments.length - 1) {
-        callback = argument;
-      } else {
-        handler = argument;
-      }
-    } else if (type !== 'null') {
-      throw new Error('Invalid arguments');
-    }
-  }
-  transform = new Transformer(options, handler);
-  error = false;
-  if (data) {
-    process.nextTick(function() {
-      var l, len1, row;
-      for (l = 0, len1 = data.length; l < len1; l++) {
-        row = data[l];
-        if (error) {
-          break;
-        }
-        transform.write(row);
-      }
-      return transform.end();
-    });
-  }
-  if (callback) {
-    result = [];
-    transform.on('readable', function() {
-      var r, results;
-      results = [];
-      while ((r = transform.read())) {
-        results.push(result.push(r));
-      }
-      return results;
-    });
-    transform.on('error', function(err) {
-      error = true;
-      return callback(err);
-    });
-    transform.on('end', function() {
-      if (!error) {
-        return callback(null, result);
-      }
-    });
-  }
-  return transform;
-};
-
-Transformer = function(options1, transform1) {
-  var base;
-  this.options = options1 != null ? options1 : {};
-  this.transform = transform1;
-  this.options.objectMode = true;
-  if ((base = this.options).parallel == null) {
-    base.parallel = 100;
-  }
-  stream.Transform.call(this, this.options);
-  this.running = 0;
-  this.started = 0;
-  this.finished = 0;
-  return this;
-};
-
-util.inherits(Transformer, stream.Transform);
-
-module.exports.Transformer = Transformer;
-
-Transformer.prototype._transform = function(chunk, encoding, cb) {
-  var err;
-  this.started++;
-  this.running++;
-  if (this.running < this.options.parallel) {
-    cb();
-    cb = null;
-  }
-  try {
-    if (this.transform.length === 2) {
-      this.transform.call(null, chunk, (function(_this) {
-        return function() {
-          var chunks, err;
-          err = arguments[0], chunks = 2 <= arguments.length ? slice.call(arguments, 1) : [];
-          return _this._done(err, chunks, cb);
-        };
-      })(this));
-    } else {
-      this._done(null, [this.transform.call(null, chunk)], cb);
-    }
-    return false;
-  } catch (_error) {
-    err = _error;
-    return this._done(err);
-  }
-};
-
-Transformer.prototype._flush = function(cb) {
-  this._ending = function() {
-    if (this.running === 0) {
-      return cb();
-    }
-  };
-  return this._ending();
-};
-
-Transformer.prototype._done = function(err, chunks, cb) {
-  var chunk, j, len;
-  this.running--;
-  if (err) {
-    return this.emit('error', err);
-  }
-  this.finished++;
-  for (j = 0, len = chunks.length; j < len; j++) {
-    chunk = chunks[j];
-    if (typeof chunk === 'number') {
-      chunk = "" + chunk;
-    }
-    if (chunk != null) {
-      this.push(chunk);
-    }
-  }
-  if (cb) {
-    cb();
-  }
-  if (this._ending) {
-    return this._ending();
-  }
-};

http://git-wip-us.apache.org/repos/asf/couchdb-nmo/blob/6436833c/node_modules/bulkbadger/node_modules/stream-transform/package.json
----------------------------------------------------------------------
diff --git a/node_modules/bulkbadger/node_modules/stream-transform/package.json b/node_modules/bulkbadger/node_modules/stream-transform/package.json
deleted file mode 100644
index 8de70df..0000000
--- a/node_modules/bulkbadger/node_modules/stream-transform/package.json
+++ /dev/null
@@ -1,54 +0,0 @@
-{
-  "version": "0.1.0",
-  "name": "stream-transform",
-  "description": "Object transformations implementing the Node.js `stream.Transform` API",
-  "keywords": [
-    "stream",
-    "transform",
-    "csv",
-    "object"
-  ],
-  "license": "BSD-3-Clause",
-  "repository": {
-    "type": "git",
-    "url": "http://www.github.com/wdavidw/node-stream-transform"
-  },
-  "homepage": "http://csv.adaltas.com/transform/",
-  "dependencies": {},
-  "devDependencies": {
-    "coffee-script": "latest",
-    "pad": "latest",
-    "mocha": "latest",
-    "csv-generate": "latest",
-    "should": "latest"
-  },
-  "optionalDependencies": {},
-  "main": "./lib",
-  "scripts": {
-    "coffee": "coffee -b -o lib src",
-    "pretest": "coffee -b -o lib src",
-    "test": "NODE_ENV=test ./node_modules/.bin/mocha --compilers coffee:coffee-script/register --reporter dot"
-  },
-  "gitHead": "1e56e58222733f0767a03cf9c16c79364903a507",
-  "_id": "stream-transform@0.1.0",
-  "_shasum": "6bd0d47b79f48b34ff21f6b9393126427e61f485",
-  "_from": "stream-transform@>=0.1.0 <0.2.0",
-  "_npmVersion": "1.4.28",
-  "_npmUser": {
-    "name": "david",
-    "email": "david@adaltas.com"
-  },
-  "maintainers": [
-    {
-      "name": "david",
-      "email": "david@adaltas.com"
-    }
-  ],
-  "dist": {
-    "shasum": "6bd0d47b79f48b34ff21f6b9393126427e61f485",
-    "tarball": "http://registry.npmjs.org/stream-transform/-/stream-transform-0.1.0.tgz"
-  },
-  "directories": {},
-  "_resolved": "https://registry.npmjs.org/stream-transform/-/stream-transform-0.1.0.tgz",
-  "readme": "ERROR: No README data found!"
-}

http://git-wip-us.apache.org/repos/asf/couchdb-nmo/blob/6436833c/node_modules/bulkbadger/node_modules/stream-transform/samples/asynchronous.js
----------------------------------------------------------------------
diff --git a/node_modules/bulkbadger/node_modules/stream-transform/samples/asynchronous.js b/node_modules/bulkbadger/node_modules/stream-transform/samples/asynchronous.js
deleted file mode 100644
index a65d194..0000000
--- a/node_modules/bulkbadger/node_modules/stream-transform/samples/asynchronous.js
+++ /dev/null
@@ -1,17 +0,0 @@
-
-var transform = require('..');
-
-transform([
-  ['1','2','3','4'],
-  ['a','b','c','d']
-], function(data, callback){
-  setImmediate(function(){
-    data.push(data.shift());
-    callback(null, data.join(',')+'\n');
-  });
-}, {parallel: 20})
-.pipe(process.stdout);
-
-// Output:
-// 2,3,4,1
-// b,c,d,a

http://git-wip-us.apache.org/repos/asf/couchdb-nmo/blob/6436833c/node_modules/bulkbadger/node_modules/stream-transform/samples/callback.js
----------------------------------------------------------------------
diff --git a/node_modules/bulkbadger/node_modules/stream-transform/samples/callback.js b/node_modules/bulkbadger/node_modules/stream-transform/samples/callback.js
deleted file mode 100644
index 32db1e9..0000000
--- a/node_modules/bulkbadger/node_modules/stream-transform/samples/callback.js
+++ /dev/null
@@ -1,13 +0,0 @@
-
-var transform = require('..');
-var should = require('should');
-
-transform([
-  ['1','2','3','4'],
-  ['a','b','c','d']
-], function(data){
-  data.push(data.shift())
-  return data;
-}, function(err, output){
-  output.should.eql([ [ '2', '3', '4', '1' ], [ 'b', 'c', 'd', 'a' ] ]);
-});

http://git-wip-us.apache.org/repos/asf/couchdb-nmo/blob/6436833c/node_modules/bulkbadger/node_modules/stream-transform/samples/stream.js
----------------------------------------------------------------------
diff --git a/node_modules/bulkbadger/node_modules/stream-transform/samples/stream.js b/node_modules/bulkbadger/node_modules/stream-transform/samples/stream.js
deleted file mode 100644
index a9282a9..0000000
--- a/node_modules/bulkbadger/node_modules/stream-transform/samples/stream.js
+++ /dev/null
@@ -1,23 +0,0 @@
-
-var transform = require('..');
-var should = require('should');
-
-var output = [];
-var transformer = transform(function(data){
-  data.push(data.shift())
-  return data;
-});
-transformer.on('readable', function(){
-  while(row = transformer.read()){
-    output.push(row);
-  }
-});
-transformer.on('error', function(err){
-  console.log(err.message);
-});
-transformer.on('finish', function(){
-  output.should.eql([ [ '2', '3', '4', '1' ], [ 'b', 'c', 'd', 'a' ] ]);
-});
-transformer.write(['1','2','3','4']);
-transformer.write(['a','b','c','d']);
-transformer.end();

http://git-wip-us.apache.org/repos/asf/couchdb-nmo/blob/6436833c/node_modules/bulkbadger/node_modules/stream-transform/samples/synchronous.js
----------------------------------------------------------------------
diff --git a/node_modules/bulkbadger/node_modules/stream-transform/samples/synchronous.js b/node_modules/bulkbadger/node_modules/stream-transform/samples/synchronous.js
deleted file mode 100644
index 1c3caf7..0000000
--- a/node_modules/bulkbadger/node_modules/stream-transform/samples/synchronous.js
+++ /dev/null
@@ -1,15 +0,0 @@
-
-var transform = require('..');
-
-transform([
-  ['1','2','3','4'],
-  ['a','b','c','d']
-], function(data){
-  data.push(data.shift());
-  return data.join(',')+'\n';
-})
-.pipe(process.stdout);
-
-// Output:
-// 2,3,4,1
-// b,c,d,a

http://git-wip-us.apache.org/repos/asf/couchdb-nmo/blob/6436833c/node_modules/bulkbadger/package.json
----------------------------------------------------------------------
diff --git a/node_modules/bulkbadger/package.json b/node_modules/bulkbadger/package.json
deleted file mode 100644
index 2b658cd..0000000
--- a/node_modules/bulkbadger/package.json
+++ /dev/null
@@ -1,63 +0,0 @@
-{
-  "name": "bulkbadger",
-  "version": "1.0.0",
-  "description": "batch ldjson suitable for couchdb's _bulk_docs",
-  "main": "index.js",
-  "scripts": {
-    "test": "tap test"
-  },
-  "repository": {
-    "type": "git",
-    "url": "git+https://github.com/robertkowalski/bulkbadger.git"
-  },
-  "keywords": [
-    "couchdb"
-  ],
-  "author": {
-    "name": "Robert Kowalski",
-    "email": "rok@kowalski.gd"
-  },
-  "license": "BSD-2-Clause",
-  "bugs": {
-    "url": "https://github.com/robertkowalski/bulkbadger/issues"
-  },
-  "homepage": "https://github.com/robertkowalski/bulkbadger",
-  "devDependencies": {
-    "hock": "~1.2.0",
-    "tap": "~1.3.2",
-    "couchbulkimporter": "*"
-  },
-  "optionalDependencies": {
-    "csv-parse": "~1.0.0",
-    "JSONStream": "~1.0.3",
-    "stream-transform": "~0.1.0"
-  },
-  "gitHead": "d6e7835d273ce91d35de7c7084a60b3dfeba4416",
-  "dependencies": {
-    "csv-parse": "~1.0.0",
-    "JSONStream": "~1.0.3",
-    "stream-transform": "~0.1.0"
-  },
-  "_id": "bulkbadger@1.0.0",
-  "_shasum": "f9cb9c249d4e7f7c7e00aceef17e6b96d2937479",
-  "_from": "bulkbadger@>=1.0.0 <2.0.0",
-  "_npmVersion": "2.7.4",
-  "_nodeVersion": "0.12.2",
-  "_npmUser": {
-    "name": "robertkowalski",
-    "email": "rok@kowalski.gd"
-  },
-  "maintainers": [
-    {
-      "name": "robertkowalski",
-      "email": "rok@kowalski.gd"
-    }
-  ],
-  "dist": {
-    "shasum": "f9cb9c249d4e7f7c7e00aceef17e6b96d2937479",
-    "tarball": "http://registry.npmjs.org/bulkbadger/-/bulkbadger-1.0.0.tgz"
-  },
-  "directories": {},
-  "_resolved": "https://registry.npmjs.org/bulkbadger/-/bulkbadger-1.0.0.tgz",
-  "readme": "ERROR: No README data found!"
-}

http://git-wip-us.apache.org/repos/asf/couchdb-nmo/blob/6436833c/node_modules/bulkbadger/test/01-unit.js
----------------------------------------------------------------------
diff --git a/node_modules/bulkbadger/test/01-unit.js b/node_modules/bulkbadger/test/01-unit.js
deleted file mode 100644
index 23cbb4d..0000000
--- a/node_modules/bulkbadger/test/01-unit.js
+++ /dev/null
@@ -1,72 +0,0 @@
-const test = require('tap').test
-const BulkBadger = require('../')
-
-const PassThrough = require('stream').PassThrough
-
-test('three elements - default chunksize', function (t) {
-
-  const readable = new PassThrough({objectMode: true})
-  const pt = new PassThrough({objectMode: true})
-
-  pt.on('data', function (data) {
-    t.deepEqual(data, {docs: [{a: 1}, {a: 2}, {a: 3}]})
-    t.end()
-  })
-
-  readable
-    .pipe(new BulkBadger())
-    .pipe(pt)
-
-  readable.write({a: 1})
-  readable.write({a: 2})
-  readable.write({a: 3})
-  readable.end()
-})
-
-
-test('three elements - chunksize 1 element', function (t) {
-
-  const res = []
-  const readable = new PassThrough({objectMode: true})
-  const pt = new PassThrough({objectMode: true})
-
-  pt
-    .on('data', function (data) {
-
-      res.push(data)
-    })
-    .on('finish', function () {
-      t.deepEqual(res, [{docs: [{a: 1}]}, {docs: [{a: 2}]}, {docs: [{a: 3}]}])
-      t.end()
-    })
-
-  readable
-    .pipe(new BulkBadger({chunksize: 1}))
-    .pipe(pt)
-
-
-  readable.write({a: 1})
-  readable.write({a: 2})
-  readable.write({a: 3})
-  readable.end()
-})
-
-test('three elements - chunksize 10 elements', function (t) {
-
-  const readable = new PassThrough({objectMode: true})
-  const pt = new PassThrough({objectMode: true})
-
-  pt.on('data', function (data) {
-    t.deepEqual(data, {docs: [{a: 1}, {a: 2}, {a: 3}]})
-    t.end()
-  })
-
-  readable
-    .pipe(new BulkBadger({chunksize: 10}))
-    .pipe(pt)
-
-  readable.write({a: 1})
-  readable.write({a: 2})
-  readable.write({a: 3})
-  readable.end()
-})

http://git-wip-us.apache.org/repos/asf/couchdb-nmo/blob/6436833c/node_modules/bulkbadger/test/02-integration.js
----------------------------------------------------------------------
diff --git a/node_modules/bulkbadger/test/02-integration.js b/node_modules/bulkbadger/test/02-integration.js
deleted file mode 100644
index 788fbdb..0000000
--- a/node_modules/bulkbadger/test/02-integration.js
+++ /dev/null
@@ -1,50 +0,0 @@
-const test = require('tap').test
-const BulkBadger = require('../')
-
-const CouchBulkImporter = require('couchbulkimporter')
-const http = require('http')
-
-const PassThrough = require('stream').PassThrough
-
-
-test('sends data to CouchDB', function (t) {
-
-  t.plan(4)
-  const results = [
-    '{}',
-    '{"docs":[{"a":1}]}',
-    '{"docs":[{"a":2}]}',
-    '{"docs":[{"a":3}]}'
-  ]
-
-  const server = http.createServer(function (req, res) {
-    req.on('data', function (data) {
-      t.equal(results.shift(), data.toString())
-    })
-    res.statusCode = 201
-    res.end('{"ok": "true"}')
-  })
-
-  server.listen(1337, function () {
-    const readable = new PassThrough({objectMode: true})
-
-    const couchbulk = new CouchBulkImporter({
-      url: 'http://localhost:1337/baseball'
-    })
-
-    couchbulk.on('finish', function () {
-      server.close(function () {
-        t.end()
-      })
-    })
-
-    readable
-      .pipe(new BulkBadger({chunksize: 1}))
-      .pipe(couchbulk)
-
-    readable.write({a: 1})
-    readable.write({a: 2})
-    readable.write({a: 3})
-    readable.end()
-  })
-})

http://git-wip-us.apache.org/repos/asf/couchdb-nmo/blob/6436833c/node_modules/config-chain/.npmignore
----------------------------------------------------------------------
diff --git a/node_modules/config-chain/.npmignore b/node_modules/config-chain/.npmignore
deleted file mode 100644
index 13abef4..0000000
--- a/node_modules/config-chain/.npmignore
+++ /dev/null
@@ -1,3 +0,0 @@
-node_modules
-node_modules/*
-npm_debug.log

http://git-wip-us.apache.org/repos/asf/couchdb-nmo/blob/6436833c/node_modules/config-chain/LICENCE
----------------------------------------------------------------------
diff --git a/node_modules/config-chain/LICENCE b/node_modules/config-chain/LICENCE
deleted file mode 100644
index 171dd97..0000000
--- a/node_modules/config-chain/LICENCE
+++ /dev/null
@@ -1,22 +0,0 @@
-Copyright (c) 2011 Dominic Tarr
-
-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/couchdb-nmo/blob/6436833c/node_modules/config-chain/index.js
----------------------------------------------------------------------
diff --git a/node_modules/config-chain/index.js b/node_modules/config-chain/index.js
deleted file mode 100755
index 0ef3a91..0000000
--- a/node_modules/config-chain/index.js
+++ /dev/null
@@ -1,282 +0,0 @@
-var ProtoList = require('proto-list')
-  , path = require('path')
-  , fs = require('fs')
-  , ini = require('ini')
-  , EE = require('events').EventEmitter
-  , url = require('url')
-  , http = require('http')
-
-var exports = module.exports = function () {
-  var args = [].slice.call(arguments)
-    , conf = new ConfigChain()
-
-  while(args.length) {
-    var a = args.shift()
-    if(a) conf.push
-          ( 'string' === typeof a
-            ? json(a)
-            : a )
-  }
-
-  return conf
-}
-
-//recursively find a file...
-
-var find = exports.find = function () {
-  var rel = path.join.apply(null, [].slice.call(arguments))
-
-  function find(start, rel) {
-    var file = path.join(start, rel)
-    try {
-      fs.statSync(file)
-      return file
-    } catch (err) {
-      if(path.dirname(start) !== start) // root
-        return find(path.dirname(start), rel)
-    }
-  }
-  return find(__dirname, rel)
-}
-
-var parse = exports.parse = function (content, file, type) {
-  content = '' + content
-  // if we don't know what it is, try json and fall back to ini
-  // if we know what it is, then it must be that.
-  if (!type) {
-    try { return JSON.parse(content) }
-    catch (er) { return ini.parse(content) }
-  } else if (type === 'json') {
-    if (this.emit) {
-      try { return JSON.parse(content) }
-      catch (er) { this.emit('error', er) }
-    } else {
-      return JSON.parse(content)
-    }
-  } else {
-    return ini.parse(content)
-  }
-}
-
-var json = exports.json = function () {
-  var args = [].slice.call(arguments).filter(function (arg) { return arg != null })
-  var file = path.join.apply(null, args)
-  var content
-  try {
-    content = fs.readFileSync(file,'utf-8')
-  } catch (err) {
-    return
-  }
-  return parse(content, file, 'json')
-}
-
-var env = exports.env = function (prefix, env) {
-  env = env || process.env
-  var obj = {}
-  var l = prefix.length
-  for(var k in env) {
-    if(k.indexOf(prefix) === 0)
-      obj[k.substring(l)] = env[k]
-  }
-
-  return obj
-}
-
-exports.ConfigChain = ConfigChain
-function ConfigChain () {
-  EE.apply(this)
-  ProtoList.apply(this, arguments)
-  this._awaiting = 0
-  this._saving = 0
-  this.sources = {}
-}
-
-// multi-inheritance-ish
-var extras = {
-  constructor: { value: ConfigChain }
-}
-Object.keys(EE.prototype).forEach(function (k) {
-  extras[k] = Object.getOwnPropertyDescriptor(EE.prototype, k)
-})
-ConfigChain.prototype = Object.create(ProtoList.prototype, extras)
-
-ConfigChain.prototype.del = function (key, where) {
-  // if not specified where, then delete from the whole chain, scorched
-  // earth style
-  if (where) {
-    var target = this.sources[where]
-    target = target && target.data
-    if (!target) {
-      return this.emit('error', new Error('not found '+where))
-    }
-    delete target[key]
-  } else {
-    for (var i = 0, l = this.list.length; i < l; i ++) {
-      delete this.list[i][key]
-    }
-  }
-  return this
-}
-
-ConfigChain.prototype.set = function (key, value, where) {
-  var target
-
-  if (where) {
-    target = this.sources[where]
-    target = target && target.data
-    if (!target) {
-      return this.emit('error', new Error('not found '+where))
-    }
-  } else {
-    target = this.list[0]
-    if (!target) {
-      return this.emit('error', new Error('cannot set, no confs!'))
-    }
-  }
-  target[key] = value
-  return this
-}
-
-ConfigChain.prototype.get = function (key, where) {
-  if (where) {
-    where = this.sources[where]
-    if (where) where = where.data
-    if (where && Object.hasOwnProperty.call(where, key)) return where[key]
-    return undefined
-  }
-  return this.list[0][key]
-}
-
-ConfigChain.prototype.save = function (where, type, cb) {
-  if (typeof type === 'function') cb = type, type = null
-  var target = this.sources[where]
-  if (!target || !(target.path || target.source) || !target.data) {
-    // TODO: maybe save() to a url target could be a PUT or something?
-    // would be easy to swap out with a reddis type thing, too
-    return this.emit('error', new Error('bad save target: '+where))
-  }
-
-  if (target.source) {
-    var pref = target.prefix || ''
-    Object.keys(target.data).forEach(function (k) {
-      target.source[pref + k] = target.data[k]
-    })
-    return this
-  }
-
-  var type = type || target.type
-  var data = target.data
-  if (target.type === 'json') {
-    data = JSON.stringify(data)
-  } else {
-    data = ini.stringify(data)
-  }
-
-  this._saving ++
-  fs.writeFile(target.path, data, 'utf8', function (er) {
-    this._saving --
-    if (er) {
-      if (cb) return cb(er)
-      else return this.emit('error', er)
-    }
-    if (this._saving === 0) {
-      if (cb) cb()
-      this.emit('save')
-    }
-  }.bind(this))
-  return this
-}
-
-ConfigChain.prototype.addFile = function (file, type, name) {
-  name = name || file
-  var marker = {__source__:name}
-  this.sources[name] = { path: file, type: type }
-  this.push(marker)
-  this._await()
-  fs.readFile(file, 'utf8', function (er, data) {
-    if (er) this.emit('error', er)
-    this.addString(data, file, type, marker)
-  }.bind(this))
-  return this
-}
-
-ConfigChain.prototype.addEnv = function (prefix, env, name) {
-  name = name || 'env'
-  var data = exports.env(prefix, env)
-  this.sources[name] = { data: data, source: env, prefix: prefix }
-  return this.add(data, name)
-}
-
-ConfigChain.prototype.addUrl = function (req, type, name) {
-  this._await()
-  var href = url.format(req)
-  name = name || href
-  var marker = {__source__:name}
-  this.sources[name] = { href: href, type: type }
-  this.push(marker)
-  http.request(req, function (res) {
-    var c = []
-    var ct = res.headers['content-type']
-    if (!type) {
-      type = ct.indexOf('json') !== -1 ? 'json'
-           : ct.indexOf('ini') !== -1 ? 'ini'
-           : href.match(/\.json$/) ? 'json'
-           : href.match(/\.ini$/) ? 'ini'
-           : null
-      marker.type = type
-    }
-
-    res.on('data', c.push.bind(c))
-    .on('end', function () {
-      this.addString(Buffer.concat(c), href, type, marker)
-    }.bind(this))
-    .on('error', this.emit.bind(this, 'error'))
-
-  }.bind(this))
-  .on('error', this.emit.bind(this, 'error'))
-  .end()
-
-  return this
-}
-
-ConfigChain.prototype.addString = function (data, file, type, marker) {
-  data = this.parse(data, file, type)
-  this.add(data, marker)
-  return this
-}
-
-ConfigChain.prototype.add = function (data, marker) {
-  if (marker && typeof marker === 'object') {
-    var i = this.list.indexOf(marker)
-    if (i === -1) {
-      return this.emit('error', new Error('bad marker'))
-    }
-    this.splice(i, 1, data)
-    marker = marker.__source__
-    this.sources[marker] = this.sources[marker] || {}
-    this.sources[marker].data = data
-    // we were waiting for this.  maybe emit 'load'
-    this._resolve()
-  } else {
-    if (typeof marker === 'string') {
-      this.sources[marker] = this.sources[marker] || {}
-      this.sources[marker].data = data
-    }
-    // trigger the load event if nothing was already going to do so.
-    this._await()
-    this.push(data)
-    process.nextTick(this._resolve.bind(this))
-  }
-  return this
-}
-
-ConfigChain.prototype.parse = exports.parse
-
-ConfigChain.prototype._await = function () {
-  this._awaiting++
-}
-
-ConfigChain.prototype._resolve = function () {
-  this._awaiting--
-  if (this._awaiting === 0) this.emit('load', this)
-}

http://git-wip-us.apache.org/repos/asf/couchdb-nmo/blob/6436833c/node_modules/config-chain/node_modules/proto-list/LICENSE
----------------------------------------------------------------------
diff --git a/node_modules/config-chain/node_modules/proto-list/LICENSE b/node_modules/config-chain/node_modules/proto-list/LICENSE
deleted file mode 100644
index 19129e3..0000000
--- a/node_modules/config-chain/node_modules/proto-list/LICENSE
+++ /dev/null
@@ -1,15 +0,0 @@
-The ISC License
-
-Copyright (c) Isaac Z. Schlueter and Contributors
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
-IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

http://git-wip-us.apache.org/repos/asf/couchdb-nmo/blob/6436833c/node_modules/config-chain/node_modules/proto-list/README.md
----------------------------------------------------------------------
diff --git a/node_modules/config-chain/node_modules/proto-list/README.md b/node_modules/config-chain/node_modules/proto-list/README.md
deleted file mode 100644
index 43cfa35..0000000
--- a/node_modules/config-chain/node_modules/proto-list/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-A list of objects, bound by their prototype chain.
-
-Used in npm's config stuff.

http://git-wip-us.apache.org/repos/asf/couchdb-nmo/blob/6436833c/node_modules/config-chain/node_modules/proto-list/package.json
----------------------------------------------------------------------
diff --git a/node_modules/config-chain/node_modules/proto-list/package.json b/node_modules/config-chain/node_modules/proto-list/package.json
deleted file mode 100644
index 458621a..0000000
--- a/node_modules/config-chain/node_modules/proto-list/package.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
-  "name": "proto-list",
-  "version": "1.2.4",
-  "description": "A utility for managing a prototype chain",
-  "main": "./proto-list.js",
-  "author": {
-    "name": "Isaac Z. Schlueter",
-    "email": "i@izs.me",
-    "url": "http://blog.izs.me/"
-  },
-  "scripts": {
-    "test": "tap test/*.js"
-  },
-  "repository": {
-    "type": "git",
-    "url": "git+https://github.com/isaacs/proto-list.git"
-  },
-  "license": "ISC",
-  "devDependencies": {
-    "tap": "0"
-  },
-  "gitHead": "9e4af12d4dddee2fd531f0fe0c21c9cfacb78ac0",
-  "bugs": {
-    "url": "https://github.com/isaacs/proto-list/issues"
-  },
-  "homepage": "https://github.com/isaacs/proto-list#readme",
-  "_id": "proto-list@1.2.4",
-  "_shasum": "212d5bfe1318306a420f6402b8e26ff39647a849",
-  "_from": "proto-list@>=1.2.1 <1.3.0",
-  "_npmVersion": "2.10.0",
-  "_nodeVersion": "2.0.1",
-  "_npmUser": {
-    "name": "isaacs",
-    "email": "isaacs@npmjs.com"
-  },
-  "dist": {
-    "shasum": "212d5bfe1318306a420f6402b8e26ff39647a849",
-    "tarball": "http://registry.npmjs.org/proto-list/-/proto-list-1.2.4.tgz"
-  },
-  "maintainers": [
-    {
-      "name": "isaacs",
-      "email": "i@izs.me"
-    }
-  ],
-  "directories": {},
-  "_resolved": "https://registry.npmjs.org/proto-list/-/proto-list-1.2.4.tgz"
-}

http://git-wip-us.apache.org/repos/asf/couchdb-nmo/blob/6436833c/node_modules/config-chain/node_modules/proto-list/proto-list.js
----------------------------------------------------------------------
diff --git a/node_modules/config-chain/node_modules/proto-list/proto-list.js b/node_modules/config-chain/node_modules/proto-list/proto-list.js
deleted file mode 100644
index b55c25c..0000000
--- a/node_modules/config-chain/node_modules/proto-list/proto-list.js
+++ /dev/null
@@ -1,88 +0,0 @@
-
-module.exports = ProtoList
-
-function setProto(obj, proto) {
-  if (typeof Object.setPrototypeOf === "function")
-    return Object.setPrototypeOf(obj, proto)
-  else
-    obj.__proto__ = proto
-}
-
-function ProtoList () {
-  this.list = []
-  var root = null
-  Object.defineProperty(this, 'root', {
-    get: function () { return root },
-    set: function (r) {
-      root = r
-      if (this.list.length) {
-        setProto(this.list[this.list.length - 1], r)
-      }
-    },
-    enumerable: true,
-    configurable: true
-  })
-}
-
-ProtoList.prototype =
-  { get length () { return this.list.length }
-  , get keys () {
-      var k = []
-      for (var i in this.list[0]) k.push(i)
-      return k
-    }
-  , get snapshot () {
-      var o = {}
-      this.keys.forEach(function (k) { o[k] = this.get(k) }, this)
-      return o
-    }
-  , get store () {
-      return this.list[0]
-    }
-  , push : function (obj) {
-      if (typeof obj !== "object") obj = {valueOf:obj}
-      if (this.list.length >= 1) {
-        setProto(this.list[this.list.length - 1], obj)
-      }
-      setProto(obj, this.root)
-      return this.list.push(obj)
-    }
-  , pop : function () {
-      if (this.list.length >= 2) {
-        setProto(this.list[this.list.length - 2], this.root)
-      }
-      return this.list.pop()
-    }
-  , unshift : function (obj) {
-      setProto(obj, this.list[0] || this.root)
-      return this.list.unshift(obj)
-    }
-  , shift : function () {
-      if (this.list.length === 1) {
-        setProto(this.list[0], this.root)
-      }
-      return this.list.shift()
-    }
-  , get : function (key) {
-      return this.list[0][key]
-    }
-  , set : function (key, val, save) {
-      if (!this.length) this.push({})
-      if (save && this.list[0].hasOwnProperty(key)) this.push({})
-      return this.list[0][key] = val
-    }
-  , forEach : function (fn, thisp) {
-      for (var key in this.list[0]) fn.call(thisp, key, this.list[0][key])
-    }
-  , slice : function () {
-      return this.list.slice.apply(this.list, arguments)
-    }
-  , splice : function () {
-      // handle injections
-      var ret = this.list.splice.apply(this.list, arguments)
-      for (var i = 0, l = this.list.length; i < l; i++) {
-        setProto(this.list[i], this.list[i + 1] || this.root)
-      }
-      return ret
-    }
-  }

http://git-wip-us.apache.org/repos/asf/couchdb-nmo/blob/6436833c/node_modules/config-chain/node_modules/proto-list/test/basic.js
----------------------------------------------------------------------
diff --git a/node_modules/config-chain/node_modules/proto-list/test/basic.js b/node_modules/config-chain/node_modules/proto-list/test/basic.js
deleted file mode 100644
index 5cd66be..0000000
--- a/node_modules/config-chain/node_modules/proto-list/test/basic.js
+++ /dev/null
@@ -1,61 +0,0 @@
-var tap = require("tap")
-  , test = tap.test
-  , ProtoList = require("../proto-list.js")
-
-tap.plan(1)
-
-tap.test("protoList tests", function (t) {
-  var p = new ProtoList
-  p.push({foo:"bar"})
-  p.push({})
-  p.set("foo", "baz")
-  t.equal(p.get("foo"), "baz")
-
-  var p = new ProtoList
-  p.push({foo:"bar"})
-  p.set("foo", "baz")
-  t.equal(p.get("foo"), "baz")
-  t.equal(p.length, 1)
-  p.pop()
-  t.equal(p.length, 0)
-  p.set("foo", "asdf")
-  t.equal(p.length, 1)
-  t.equal(p.get("foo"), "asdf")
-  p.push({bar:"baz"})
-  t.equal(p.length, 2)
-  t.equal(p.get("foo"), "asdf")
-  p.shift()
-  t.equal(p.length, 1)
-  t.equal(p.get("foo"), undefined)
-
-
-  p.unshift({foo:"blo", bar:"rab"})
-  p.unshift({foo:"boo"})
-  t.equal(p.length, 3)
-  t.equal(p.get("foo"), "boo")
-  t.equal(p.get("bar"), "rab")
-
-  var ret = p.splice(1, 1, {bar:"bar"})
-  t.same(ret, [{foo:"blo", bar:"rab"}])
-  t.equal(p.get("bar"), "bar")
-
-  // should not inherit default object properties
-  t.equal(p.get('hasOwnProperty'), undefined)
-
-  // unless we give it those.
-  p.root = {}
-  t.equal(p.get('hasOwnProperty'), {}.hasOwnProperty)
-
-  p.root = {default:'monkey'}
-  t.equal(p.get('default'), 'monkey')
-
-  p.push({red:'blue'})
-  p.push({red:'blue'})
-  p.push({red:'blue'})
-  while (p.length) {
-    t.equal(p.get('default'), 'monkey')
-    p.shift()
-  }
-
-  t.end()
-})

http://git-wip-us.apache.org/repos/asf/couchdb-nmo/blob/6436833c/node_modules/config-chain/package.json
----------------------------------------------------------------------
diff --git a/node_modules/config-chain/package.json b/node_modules/config-chain/package.json
deleted file mode 100644
index cf8358a..0000000
--- a/node_modules/config-chain/package.json
+++ /dev/null
@@ -1,54 +0,0 @@
-{
-  "name": "config-chain",
-  "version": "1.1.8",
-  "description": "HANDLE CONFIGURATION ONCE AND FOR ALL",
-  "homepage": "http://github.com/dominictarr/config-chain",
-  "repository": {
-    "type": "git",
-    "url": "https://github.com/dominictarr/config-chain.git"
-  },
-  "dependencies": {
-    "proto-list": "~1.2.1",
-    "ini": "1"
-  },
-  "devDependencies": {
-    "tap": "0.3.0"
-  },
-  "author": {
-    "name": "Dominic Tarr",
-    "email": "dominic.tarr@gmail.com",
-    "url": "http://dominictarr.com"
-  },
-  "scripts": {
-    "test": "tap test/"
-  },
-  "readme": "#config-chain\n\nUSE THIS MODULE TO LOAD ALL YOUR CONFIGURATIONS\n\n``` js\n\n  //npm install config-chain\n\n  var cc = require('config-chain')\n    , opts = require('optimist').argv //ALWAYS USE OPTIMIST FOR COMMAND LINE OPTIONS.\n    , env = opts.env || process.env.YOUR_APP_ENV || 'dev' //SET YOUR ENV LIKE THIS.\n\n  // EACH ARG TO CONFIGURATOR IS LOADED INTO CONFIGURATION CHAIN\n  // EARLIER ITEMS OVERIDE LATER ITEMS\n  // PUTS COMMAND LINE OPTS FIRST, AND DEFAULTS LAST!\n\n  //strings are interpereted as filenames.\n  //will be loaded synchronously\n\n  var conf =\n  cc(\n    //OVERRIDE SETTINGS WITH COMMAND LINE OPTS\n    opts,\n\n    //ENV VARS IF PREFIXED WITH 'myApp_'\n\n    cc.env('myApp_'), //myApp_foo = 'like this'\n\n    //FILE NAMED BY ENV\n    path.join(__dirname,  'config.' + env + '.json'),\n\n    //IF `env` is PRODUCTION\n    env === 'prod'\n      ? path.join(__dirname, 'special.json') //load a special file\n      : null //NULL IS IGNORED!\n\n    //SUB
 DIR FOR ENV CONFIG\n    path.join(__dirname,  'config', env, 'config.json'),\n\n    //SEARCH PARENT DIRECTORIES FROM CURRENT DIR FOR FILE\n    cc.find('config.json'),\n\n    //PUT DEFAULTS LAST\n    {\n      host: 'localhost'\n      port: 8000\n    })\n\n  var host = conf.get('host')\n\n  // or\n\n  var host = conf.store.host\n\n```\n\nFINALLY, EASY FLEXIBLE CONFIGURATIONS!\n\n##see also: [proto-list](https://github.com/isaacs/proto-list/)\n\nWHATS THAT YOU SAY?\n\nYOU WANT A \"CLASS\" SO THAT YOU CAN DO CRAYCRAY JQUERY CRAPS?\n\nEXTEND WITH YOUR OWN FUNCTIONALTY!?\n\n## CONFIGCHAIN LIVES TO SERVE ONLY YOU!\n\n```javascript\nvar cc = require('config-chain')\n\n// all the stuff you did before\nvar config = cc({\n      some: 'object'\n    },\n    cc.find('config.json'),\n    cc.env('myApp_')\n  )\n  // CONFIGS AS A SERVICE, aka \"CaaS\", aka EVERY DEVOPS DREAM OMG!\n  .addUrl('http://configurator:1234/my-configs')\n  // ASYNC FTW!\n  .addFile('/path/to/file.json')\n\n  // OBJECTS ARE 
 OK TOO, they're SYNC but they still ORDER RIGHT\n  // BECAUSE PROMISES ARE USED BUT NO, NOT *THOSE* PROMISES, JUST\n  // ACTUAL PROMISES LIKE YOU MAKE TO YOUR MOM, KEPT OUT OF LOVE\n  .add({ another: 'object' })\n\n  // DIE A THOUSAND DEATHS IF THIS EVER HAPPENS!!\n  .on('error', function (er) {\n    // IF ONLY THERE WAS SOMETHIGN HARDER THAN THROW\n    // MY SORROW COULD BE ADEQUATELY EXPRESSED.  /o\\\n    throw er\n  })\n\n  // THROW A PARTY IN YOUR FACE WHEN ITS ALL LOADED!!\n  .on('load', function (config) {\n    console.awesome('HOLY SHIT!')\n  })\n```\n\n# BORING API DOCS\n\n## cc(...args)\n\nMAKE A CHAIN AND ADD ALL THE ARGS.\n\nIf the arg is a STRING, then it shall be a JSON FILENAME.\n\nSYNC I/O!\n\nRETURN THE CHAIN!\n\n## cc.json(...args)\n\nJoin the args INTO A JSON FILENAME!\n\nSYNC I/O!\n\n## cc.find(relativePath)\n\nSEEK the RELATIVE PATH by climbing the TREE OF DIRECTORIES.\n\nRETURN THE FOUND PATH!\n\nSYNC I/O!\n\n## cc.parse(content, file, type)\n\nParse the content
  string, and guess the type from either the\nspecified type or the filename.\n\nRETURN THE RESULTING OBJECT!\n\nNO I/O!\n\n## cc.env(prefix, env=process.env)\n\nGet all the keys on the provided env object (or process.env) which are\nprefixed by the specified prefix, and put the values on a new object.\n\nRETURN THE RESULTING OBJECT!\n\nNO I/O!\n\n## cc.ConfigChain()\n\nThe ConfigChain class for CRAY CRAY JQUERY STYLE METHOD CHAINING!\n\nOne of these is returned by the main exported function, as well.\n\nIt inherits (prototypically) from\n[ProtoList](https://github.com/isaacs/proto-list/), and also inherits\n(parasitically) from\n[EventEmitter](http://nodejs.org/api/events.html#events_class_events_eventemitter)\n\nIt has all the methods from both, and except where noted, they are\nunchanged.\n\n### LET IT BE KNOWN THAT chain IS AN INSTANCE OF ConfigChain.\n\n## chain.sources\n\nA list of all the places where it got stuff.  The keys are the names\npassed to addFile or addUrl etc, and 
 the value is an object with some\ninfo about the data source.\n\n## chain.addFile(filename, type, [name=filename])\n\nFilename is the name of the file.  Name is an arbitrary string to be\nused later if you desire.  Type is either 'ini' or 'json', and will\ntry to guess intelligently if omitted.\n\nLoaded files can be saved later.\n\n## chain.addUrl(url, type, [name=url])\n\nSame as the filename thing, but with a url.\n\nCan't be saved later.\n\n## chain.addEnv(prefix, env, [name='env'])\n\nAdd all the keys from the env object that start with the prefix.\n\n## chain.addString(data, file, type, [name])\n\nParse the string and add it to the set.  (Mainly used internally.)\n\n## chain.add(object, [name])\n\nAdd the object to the set.\n\n## chain.root {Object}\n\nThe root from which all the other config objects in the set descend\nprototypically.\n\nPut your defaults here.\n\n## chain.set(key, value, name)\n\nSet the key to the value on the named config object.  If name is\nunset, then s
 et it on the first config object in the set.  (That is,\nthe one with the highest priority, which was added first.)\n\n## chain.get(key, [name])\n\nGet the key from the named config object explicitly, or from the\nresolved configs if not specified.\n\n## chain.save(name, type)\n\nWrite the named config object back to its origin.\n\nCurrently only supported for env and file config types.\n\nFor files, encode the data according to the type.\n\n## chain.on('save', function () {})\n\nWhen one or more files are saved, emits `save` event when they're all\nsaved.\n\n## chain.on('load', function (chain) {})\n\nWhen the config chain has loaded all the specified files and urls and\nsuch, the 'load' event fires.\n",
-  "readmeFilename": "readme.markdown",
-  "bugs": {
-    "url": "https://github.com/dominictarr/config-chain/issues"
-  },
-  "_id": "config-chain@1.1.8",
-  "dist": {
-    "shasum": "0943d0b7227213a20d4eaff4434f4a1c0a052cad",
-    "tarball": "http://registry.npmjs.org/config-chain/-/config-chain-1.1.8.tgz"
-  },
-  "_from": "config-chain@>=1.1.8 <1.2.0",
-  "_npmVersion": "1.3.6",
-  "_npmUser": {
-    "name": "dominictarr",
-    "email": "dominic.tarr@gmail.com"
-  },
-  "maintainers": [
-    {
-      "name": "dominictarr",
-      "email": "dominic.tarr@gmail.com"
-    },
-    {
-      "name": "isaacs",
-      "email": "i@izs.me"
-    }
-  ],
-  "directories": {},
-  "_shasum": "0943d0b7227213a20d4eaff4434f4a1c0a052cad",
-  "_resolved": "https://registry.npmjs.org/config-chain/-/config-chain-1.1.8.tgz"
-}

http://git-wip-us.apache.org/repos/asf/couchdb-nmo/blob/6436833c/node_modules/config-chain/readme.markdown
----------------------------------------------------------------------
diff --git a/node_modules/config-chain/readme.markdown b/node_modules/config-chain/readme.markdown
deleted file mode 100644
index c83a430..0000000
--- a/node_modules/config-chain/readme.markdown
+++ /dev/null
@@ -1,228 +0,0 @@
-#config-chain
-
-USE THIS MODULE TO LOAD ALL YOUR CONFIGURATIONS
-
-``` js
-
-  //npm install config-chain
-
-  var cc = require('config-chain')
-    , opts = require('optimist').argv //ALWAYS USE OPTIMIST FOR COMMAND LINE OPTIONS.
-    , env = opts.env || process.env.YOUR_APP_ENV || 'dev' //SET YOUR ENV LIKE THIS.
-
-  // EACH ARG TO CONFIGURATOR IS LOADED INTO CONFIGURATION CHAIN
-  // EARLIER ITEMS OVERIDE LATER ITEMS
-  // PUTS COMMAND LINE OPTS FIRST, AND DEFAULTS LAST!
-
-  //strings are interpereted as filenames.
-  //will be loaded synchronously
-
-  var conf =
-  cc(
-    //OVERRIDE SETTINGS WITH COMMAND LINE OPTS
-    opts,
-
-    //ENV VARS IF PREFIXED WITH 'myApp_'
-
-    cc.env('myApp_'), //myApp_foo = 'like this'
-
-    //FILE NAMED BY ENV
-    path.join(__dirname,  'config.' + env + '.json'),
-
-    //IF `env` is PRODUCTION
-    env === 'prod'
-      ? path.join(__dirname, 'special.json') //load a special file
-      : null //NULL IS IGNORED!
-
-    //SUBDIR FOR ENV CONFIG
-    path.join(__dirname,  'config', env, 'config.json'),
-
-    //SEARCH PARENT DIRECTORIES FROM CURRENT DIR FOR FILE
-    cc.find('config.json'),
-
-    //PUT DEFAULTS LAST
-    {
-      host: 'localhost'
-      port: 8000
-    })
-
-  var host = conf.get('host')
-
-  // or
-
-  var host = conf.store.host
-
-```
-
-FINALLY, EASY FLEXIBLE CONFIGURATIONS!
-
-##see also: [proto-list](https://github.com/isaacs/proto-list/)
-
-WHATS THAT YOU SAY?
-
-YOU WANT A "CLASS" SO THAT YOU CAN DO CRAYCRAY JQUERY CRAPS?
-
-EXTEND WITH YOUR OWN FUNCTIONALTY!?
-
-## CONFIGCHAIN LIVES TO SERVE ONLY YOU!
-
-```javascript
-var cc = require('config-chain')
-
-// all the stuff you did before
-var config = cc({
-      some: 'object'
-    },
-    cc.find('config.json'),
-    cc.env('myApp_')
-  )
-  // CONFIGS AS A SERVICE, aka "CaaS", aka EVERY DEVOPS DREAM OMG!
-  .addUrl('http://configurator:1234/my-configs')
-  // ASYNC FTW!
-  .addFile('/path/to/file.json')
-
-  // OBJECTS ARE OK TOO, they're SYNC but they still ORDER RIGHT
-  // BECAUSE PROMISES ARE USED BUT NO, NOT *THOSE* PROMISES, JUST
-  // ACTUAL PROMISES LIKE YOU MAKE TO YOUR MOM, KEPT OUT OF LOVE
-  .add({ another: 'object' })
-
-  // DIE A THOUSAND DEATHS IF THIS EVER HAPPENS!!
-  .on('error', function (er) {
-    // IF ONLY THERE WAS SOMETHIGN HARDER THAN THROW
-    // MY SORROW COULD BE ADEQUATELY EXPRESSED.  /o\
-    throw er
-  })
-
-  // THROW A PARTY IN YOUR FACE WHEN ITS ALL LOADED!!
-  .on('load', function (config) {
-    console.awesome('HOLY SHIT!')
-  })
-```
-
-# BORING API DOCS
-
-## cc(...args)
-
-MAKE A CHAIN AND ADD ALL THE ARGS.
-
-If the arg is a STRING, then it shall be a JSON FILENAME.
-
-SYNC I/O!
-
-RETURN THE CHAIN!
-
-## cc.json(...args)
-
-Join the args INTO A JSON FILENAME!
-
-SYNC I/O!
-
-## cc.find(relativePath)
-
-SEEK the RELATIVE PATH by climbing the TREE OF DIRECTORIES.
-
-RETURN THE FOUND PATH!
-
-SYNC I/O!
-
-## cc.parse(content, file, type)
-
-Parse the content string, and guess the type from either the
-specified type or the filename.
-
-RETURN THE RESULTING OBJECT!
-
-NO I/O!
-
-## cc.env(prefix, env=process.env)
-
-Get all the keys on the provided env object (or process.env) which are
-prefixed by the specified prefix, and put the values on a new object.
-
-RETURN THE RESULTING OBJECT!
-
-NO I/O!
-
-## cc.ConfigChain()
-
-The ConfigChain class for CRAY CRAY JQUERY STYLE METHOD CHAINING!
-
-One of these is returned by the main exported function, as well.
-
-It inherits (prototypically) from
-[ProtoList](https://github.com/isaacs/proto-list/), and also inherits
-(parasitically) from
-[EventEmitter](http://nodejs.org/api/events.html#events_class_events_eventemitter)
-
-It has all the methods from both, and except where noted, they are
-unchanged.
-
-### LET IT BE KNOWN THAT chain IS AN INSTANCE OF ConfigChain.
-
-## chain.sources
-
-A list of all the places where it got stuff.  The keys are the names
-passed to addFile or addUrl etc, and the value is an object with some
-info about the data source.
-
-## chain.addFile(filename, type, [name=filename])
-
-Filename is the name of the file.  Name is an arbitrary string to be
-used later if you desire.  Type is either 'ini' or 'json', and will
-try to guess intelligently if omitted.
-
-Loaded files can be saved later.
-
-## chain.addUrl(url, type, [name=url])
-
-Same as the filename thing, but with a url.
-
-Can't be saved later.
-
-## chain.addEnv(prefix, env, [name='env'])
-
-Add all the keys from the env object that start with the prefix.
-
-## chain.addString(data, file, type, [name])
-
-Parse the string and add it to the set.  (Mainly used internally.)
-
-## chain.add(object, [name])
-
-Add the object to the set.
-
-## chain.root {Object}
-
-The root from which all the other config objects in the set descend
-prototypically.
-
-Put your defaults here.
-
-## chain.set(key, value, name)
-
-Set the key to the value on the named config object.  If name is
-unset, then set it on the first config object in the set.  (That is,
-the one with the highest priority, which was added first.)
-
-## chain.get(key, [name])
-
-Get the key from the named config object explicitly, or from the
-resolved configs if not specified.
-
-## chain.save(name, type)
-
-Write the named config object back to its origin.
-
-Currently only supported for env and file config types.
-
-For files, encode the data according to the type.
-
-## chain.on('save', function () {})
-
-When one or more files are saved, emits `save` event when they're all
-saved.
-
-## chain.on('load', function (chain) {})
-
-When the config chain has loaded all the specified files and urls and
-such, the 'load' event fires.

http://git-wip-us.apache.org/repos/asf/couchdb-nmo/blob/6436833c/node_modules/config-chain/test/broken.js
----------------------------------------------------------------------
diff --git a/node_modules/config-chain/test/broken.js b/node_modules/config-chain/test/broken.js
deleted file mode 100644
index 101a3e4..0000000
--- a/node_modules/config-chain/test/broken.js
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-var cc = require('..')
-var assert = require('assert')
-
-
-//throw on invalid json
-assert.throws(function () {
-  cc(__dirname + '/broken.json')
-})

http://git-wip-us.apache.org/repos/asf/couchdb-nmo/blob/6436833c/node_modules/config-chain/test/broken.json
----------------------------------------------------------------------
diff --git a/node_modules/config-chain/test/broken.json b/node_modules/config-chain/test/broken.json
deleted file mode 100644
index 2107ac1..0000000
--- a/node_modules/config-chain/test/broken.json
+++ /dev/null
@@ -1,21 +0,0 @@
-{
-  "name": "config-chain",
-  "version": "0.3.0",
-  "description": "HANDLE CONFIGURATION ONCE AND FOR ALL",
-  "homepage": "http://github.com/dominictarr/config-chain",
-  "repository": {
-    "type": "git",
-    "url": "https://github.com/dominictarr/config-chain.git"
-  }
-  //missing , and then this comment. this json is intensionally invalid
-  "dependencies": {
-    "proto-list": "1",
-    "ini": "~1.0.2"
-  },
-  "bundleDependencies": ["ini"],
-  "REM": "REMEMBER TO REMOVE BUNDLING WHEN/IF ISAACS MERGES ini#7",
-  "author": "Dominic Tarr <dominic.tarr@gmail.com> (http://dominictarr.com)",
-  "scripts": {
-    "test": "node test/find-file.js && node test/ini.js && node test/env.js"
-  }
-}

http://git-wip-us.apache.org/repos/asf/couchdb-nmo/blob/6436833c/node_modules/config-chain/test/chain-class.js
----------------------------------------------------------------------
diff --git a/node_modules/config-chain/test/chain-class.js b/node_modules/config-chain/test/chain-class.js
deleted file mode 100644
index bbc0d4c..0000000
--- a/node_modules/config-chain/test/chain-class.js
+++ /dev/null
@@ -1,100 +0,0 @@
-var test = require('tap').test
-var CC = require('../index.js').ConfigChain
-
-var env = { foo_blaz : 'blzaa', foo_env : 'myenv' }
-var jsonObj = { blaz: 'json', json: true }
-var iniObj = { 'x.y.z': 'xyz', blaz: 'ini' }
-
-var fs = require('fs')
-var ini = require('ini')
-
-fs.writeFileSync('/tmp/config-chain-class.json', JSON.stringify(jsonObj))
-fs.writeFileSync('/tmp/config-chain-class.ini', ini.stringify(iniObj))
-
-var http = require('http')
-var reqs = 0
-http.createServer(function (q, s) {
-  if (++reqs === 2) this.close()
-  if (q.url === '/json') {
-    // make sure that the requests come back from the server
-    // out of order.  they should still be ordered properly
-    // in the resulting config object set.
-    setTimeout(function () {
-      s.setHeader('content-type', 'application/json')
-      s.end(JSON.stringify({
-        blaz: 'http',
-        http: true,
-        json: true
-      }))
-    }, 200)
-  } else {
-    s.setHeader('content-type', 'application/ini')
-    s.end(ini.stringify({
-      blaz: 'http',
-      http: true,
-      ini: true,
-      json: false
-    }))
-  }
-}).listen(1337)
-
-test('basic class test', function (t) {
-  var cc = new CC()
-  var expectlist =
-      [ { blaz: 'json', json: true },
-        { 'x.y.z': 'xyz', blaz: 'ini' },
-        { blaz: 'blzaa', env: 'myenv' },
-        { blaz: 'http', http: true, json: true },
-        { blaz: 'http', http: true, ini: true, json: false } ]
-
-  cc.addFile('/tmp/config-chain-class.json')
-    .addFile('/tmp/config-chain-class.ini')
-    .addEnv('foo_', env)
-    .addUrl('http://localhost:1337/json')
-    .addUrl('http://localhost:1337/ini')
-    .on('load', function () {
-      t.same(cc.list, expectlist)
-      t.same(cc.snapshot, { blaz: 'json',
-                            json: true,
-                            'x.y.z': 'xyz',
-                            env: 'myenv',
-                            http: true,
-                            ini: true })
-
-      cc.del('blaz', '/tmp/config-chain-class.json')
-      t.same(cc.snapshot, { blaz: 'ini',
-                            json: true,
-                            'x.y.z': 'xyz',
-                            env: 'myenv',
-                            http: true,
-                            ini: true })
-      cc.del('blaz')
-      t.same(cc.snapshot, { json: true,
-                            'x.y.z': 'xyz',
-                            env: 'myenv',
-                            http: true,
-                            ini: true })
-      cc.shift()
-      t.same(cc.snapshot, { 'x.y.z': 'xyz',
-                            env: 'myenv',
-                            http: true,
-                            json: true,
-                            ini: true })
-      cc.shift()
-      t.same(cc.snapshot, { env: 'myenv',
-                            http: true,
-                            json: true,
-                            ini: true })
-      cc.shift()
-      t.same(cc.snapshot, { http: true,
-                            json: true,
-                            ini: true })
-      cc.shift()
-      t.same(cc.snapshot, { http: true,
-                            ini: true,
-                            json: false })
-      cc.shift()
-      t.same(cc.snapshot, {})
-      t.end()
-    })
-})

http://git-wip-us.apache.org/repos/asf/couchdb-nmo/blob/6436833c/node_modules/config-chain/test/env.js
----------------------------------------------------------------------
diff --git a/node_modules/config-chain/test/env.js b/node_modules/config-chain/test/env.js
deleted file mode 100644
index fb718f3..0000000
--- a/node_modules/config-chain/test/env.js
+++ /dev/null
@@ -1,10 +0,0 @@
-var cc = require('..')
-var assert = require('assert')
-
-assert.deepEqual({
-  hello: true
-}, cc.env('test_', {
-  'test_hello': true,
-  'ignore_this': 4,
-  'ignore_test_this_too': []
-}))

http://git-wip-us.apache.org/repos/asf/couchdb-nmo/blob/6436833c/node_modules/config-chain/test/find-file.js
----------------------------------------------------------------------
diff --git a/node_modules/config-chain/test/find-file.js b/node_modules/config-chain/test/find-file.js
deleted file mode 100644
index 23cde52..0000000
--- a/node_modules/config-chain/test/find-file.js
+++ /dev/null
@@ -1,13 +0,0 @@
-
-var fs = require('fs')
-  , assert = require('assert')
-  , objx = {
-    rand: Math.random()
-  }
-
-fs.writeFileSync('/tmp/random-test-config.json', JSON.stringify(objx))
-
-var cc = require('../')
-var path = cc.find('tmp/random-test-config.json')
-
-assert.equal(path, '/tmp/random-test-config.json')
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/couchdb-nmo/blob/6436833c/node_modules/config-chain/test/get.js
----------------------------------------------------------------------
diff --git a/node_modules/config-chain/test/get.js b/node_modules/config-chain/test/get.js
deleted file mode 100644
index d6fd79f..0000000
--- a/node_modules/config-chain/test/get.js
+++ /dev/null
@@ -1,15 +0,0 @@
-var cc = require("../");
-
-var chain = cc()
-    , name = "forFun";
-
-chain
-    .add({
-        __sample:"for fun only"
-    }, name)
-    .on("load", function() {
-        //It throw exception here
-        console.log(chain.get("__sample", name));
-        //But if I drop the name param, it run normally and return as expected: "for fun only"
-        //console.log(chain.get("__sample"));
-    });

http://git-wip-us.apache.org/repos/asf/couchdb-nmo/blob/6436833c/node_modules/config-chain/test/ignore-unfound-file.js
----------------------------------------------------------------------
diff --git a/node_modules/config-chain/test/ignore-unfound-file.js b/node_modules/config-chain/test/ignore-unfound-file.js
deleted file mode 100644
index d742b82..0000000
--- a/node_modules/config-chain/test/ignore-unfound-file.js
+++ /dev/null
@@ -1,5 +0,0 @@
-
-var cc = require('..')
-
-//should not throw
-cc(__dirname, 'non_existing_file')

http://git-wip-us.apache.org/repos/asf/couchdb-nmo/blob/6436833c/node_modules/config-chain/test/ini.js
----------------------------------------------------------------------
diff --git a/node_modules/config-chain/test/ini.js b/node_modules/config-chain/test/ini.js
deleted file mode 100644
index 5572a6e..0000000
--- a/node_modules/config-chain/test/ini.js
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-var cc =require('..')
-var INI = require('ini')
-var assert = require('assert')
-
-function test(obj) {
-
-  var _json, _ini
-  var json = cc.parse (_json = JSON.stringify(obj))
-  var ini = cc.parse (_ini = INI.stringify(obj))
-console.log(_ini, _json)
-  assert.deepEqual(json, ini)
-}
-
-
-test({hello: true})
-

http://git-wip-us.apache.org/repos/asf/couchdb-nmo/blob/6436833c/node_modules/config-chain/test/save.js
----------------------------------------------------------------------
diff --git a/node_modules/config-chain/test/save.js b/node_modules/config-chain/test/save.js
deleted file mode 100644
index 7834613..0000000
--- a/node_modules/config-chain/test/save.js
+++ /dev/null
@@ -1,59 +0,0 @@
-var CC = require('../index.js').ConfigChain
-var test = require('tap').test
-
-var f1 = '/tmp/f1.ini'
-var f2 = '/tmp/f2.json'
-
-var ini = require('ini')
-
-var f1data = {foo: {bar: 'baz'}, bloo: 'jaus'}
-var f2data = {oof: {rab: 'zab'}, oolb: 'suaj'}
-
-var fs = require('fs')
-
-fs.writeFileSync(f1, ini.stringify(f1data), 'utf8')
-fs.writeFileSync(f2, JSON.stringify(f2data), 'utf8')
-
-test('test saving and loading ini files', function (t) {
-  new CC()
-    .add({grelb:'blerg'}, 'opt')
-    .addFile(f1, 'ini', 'inifile')
-    .addFile(f2, 'json', 'jsonfile')
-    .on('load', function (cc) {
-
-      t.same(cc.snapshot, { grelb: 'blerg',
-                            bloo: 'jaus',
-                            foo: { bar: 'baz' },
-                            oof: { rab: 'zab' },
-                            oolb: 'suaj' })
-
-      t.same(cc.list, [ { grelb: 'blerg' },
-                        { bloo: 'jaus', foo: { bar: 'baz' } },
-                        { oof: { rab: 'zab' }, oolb: 'suaj' } ])
-
-      cc.set('grelb', 'brelg', 'opt')
-        .set('foo', 'zoo', 'inifile')
-        .set('oof', 'ooz', 'jsonfile')
-        .save('inifile')
-        .save('jsonfile')
-        .on('save', function () {
-          t.equal(fs.readFileSync(f1, 'utf8'),
-                  "bloo = jaus\nfoo = zoo\n")
-          t.equal(fs.readFileSync(f2, 'utf8'),
-                  "{\"oof\":\"ooz\",\"oolb\":\"suaj\"}")
-
-          t.same(cc.snapshot, { grelb: 'brelg',
-                                bloo: 'jaus',
-                                foo: 'zoo',
-                                oof: 'ooz',
-                                oolb: 'suaj' })
-
-          t.same(cc.list, [ { grelb: 'brelg' },
-                            { bloo: 'jaus', foo: 'zoo' },
-                            { oof: 'ooz', oolb: 'suaj' } ])
-
-          t.pass('ok')
-          t.end()
-        })
-    })
-})

http://git-wip-us.apache.org/repos/asf/couchdb-nmo/blob/6436833c/node_modules/couchbulkimporter/.npmignore
----------------------------------------------------------------------
diff --git a/node_modules/couchbulkimporter/.npmignore b/node_modules/couchbulkimporter/.npmignore
deleted file mode 100644
index 7a0fc07..0000000
--- a/node_modules/couchbulkimporter/.npmignore
+++ /dev/null
@@ -1,14 +0,0 @@
-*.swp
-.*.swp
-
-.DS_Store
-*~
-.project
-.settings
-npm-debug.log
-coverage.html
-.idea
-lib-cov
-
-node_modules
-

http://git-wip-us.apache.org/repos/asf/couchdb-nmo/blob/6436833c/node_modules/couchbulkimporter/LICENSE
----------------------------------------------------------------------
diff --git a/node_modules/couchbulkimporter/LICENSE b/node_modules/couchbulkimporter/LICENSE
deleted file mode 100644
index 6c53ca0..0000000
--- a/node_modules/couchbulkimporter/LICENSE
+++ /dev/null
@@ -1,27 +0,0 @@
-Copyright (c) Robert Kowalski ("Author")
-All rights reserved.
-
-The BSD License
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions
-are met:
-
-1. Redistributions of source code must retain the above copyright
-   notice, this list of conditions and the following disclaimer.
-
-2. Redistributions in binary form must reproduce the above copyright
-   notice, this list of conditions and the following disclaimer in the
-   documentation and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS
-BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


Mime
View raw message